github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/state/runtime/instrumentation/structlog.go (about)

     1  package instrumentation
     2  
     3  import (
     4  	"math/big"
     5  
     6  	"github.com/ethereum/go-ethereum/common"
     7  )
     8  
     9  // StructLog is emitted to the EVM each cycle and lists information about the current internal state
    10  // prior to the execution of the statement.
    11  type StructLog struct {
    12  	Pc            uint64                      `json:"pc"`
    13  	Op            string                      `json:"op"`
    14  	Gas           uint64                      `json:"gas"`
    15  	GasCost       uint64                      `json:"gasCost"`
    16  	Memory        []byte                      `json:"memory"`
    17  	MemorySize    int                         `json:"memSize"`
    18  	Stack         []*big.Int                  `json:"stack"`
    19  	ReturnData    []byte                      `json:"returnData"`
    20  	Storage       map[common.Hash]common.Hash `json:"-"`
    21  	Depth         int                         `json:"depth"`
    22  	RefundCounter uint64                      `json:"refund"`
    23  	Err           error                       `json:"-"`
    24  }