pbcodec

package
v0.0.0-...-efbdb50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TransactionTraceStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "SUCCEEDED",
		2: "FAILED",
		3: "REVERTED",
	}
	TransactionTraceStatus_value = map[string]int32{
		"UNKNOWN":   0,
		"SUCCEEDED": 1,
		"FAILED":    2,
		"REVERTED":  3,
	}
)

Enum value maps for TransactionTraceStatus.

View Source
var (
	CallType_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "CALL",
		2: "CALLCODE",
		3: "DELEGATE",
		4: "STATIC",
		5: "CREATE",
	}
	CallType_value = map[string]int32{
		"UNSPECIFIED": 0,
		"CALL":        1,
		"CALLCODE":    2,
		"DELEGATE":    3,
		"STATIC":      4,
		"CREATE":      5,
	}
)

Enum value maps for CallType.

View Source
var (
	TransactionState_Transition_name = map[int32]string{
		0: "TRANS_INIT",
		1: "TRANS_POOLED",
		2: "TRANS_MINED",
		3: "TRANS_FORKED",
		4: "TRANS_CONFIRMED",
		5: "TRANS_REPLACED",
		6: "TRANS_SPECULATIVELY_EXECUTED",
	}
	TransactionState_Transition_value = map[string]int32{
		"TRANS_INIT":                   0,
		"TRANS_POOLED":                 1,
		"TRANS_MINED":                  2,
		"TRANS_FORKED":                 3,
		"TRANS_CONFIRMED":              4,
		"TRANS_REPLACED":               5,
		"TRANS_SPECULATIVELY_EXECUTED": 6,
	}
)

Enum value maps for TransactionState_Transition.

View Source
var (
	TransactionState_State_name = map[int32]string{
		0: "STATE_UNKNOWN",
		1: "STATE_PENDING",
		2: "STATE_IN_BLOCK",
		3: "STATE_REPLACED",
	}
	TransactionState_State_value = map[string]int32{
		"STATE_UNKNOWN":  0,
		"STATE_PENDING":  1,
		"STATE_IN_BLOCK": 2,
		"STATE_REPLACED": 3,
	}
)

Enum value maps for TransactionState_State.

View Source
var (
	BalanceChange_Reason_name = map[int32]string{
		0:  "REASON_UNKNOWN",
		1:  "REASON_REWARD_MINE_UNCLE",
		2:  "REASON_REWARD_MINE_BLOCK",
		3:  "REASON_DAO_REFUND_CONTRACT",
		4:  "REASON_DAO_ADJUST_BALANCE",
		5:  "REASON_TRANSFER",
		6:  "REASON_GENESIS_BALANCE",
		7:  "REASON_GAS_BUY",
		8:  "REASON_REWARD_TRANSACTION_FEE",
		14: "REASON_REWARD_FEE_RESET",
		9:  "REASON_GAS_REFUND",
		10: "REASON_TOUCH_ACCOUNT",
		11: "REASON_SUICIDE_REFUND",
		13: "REASON_SUICIDE_WITHDRAW",
		12: "REASON_CALL_BALANCE_OVERRIDE",
		15: "REASON_BURN",
	}
	BalanceChange_Reason_value = map[string]int32{
		"REASON_UNKNOWN":                0,
		"REASON_REWARD_MINE_UNCLE":      1,
		"REASON_REWARD_MINE_BLOCK":      2,
		"REASON_DAO_REFUND_CONTRACT":    3,
		"REASON_DAO_ADJUST_BALANCE":     4,
		"REASON_TRANSFER":               5,
		"REASON_GENESIS_BALANCE":        6,
		"REASON_GAS_BUY":                7,
		"REASON_REWARD_TRANSACTION_FEE": 8,
		"REASON_REWARD_FEE_RESET":       14,
		"REASON_GAS_REFUND":             9,
		"REASON_TOUCH_ACCOUNT":          10,
		"REASON_SUICIDE_REFUND":         11,
		"REASON_SUICIDE_WITHDRAW":       13,
		"REASON_CALL_BALANCE_OVERRIDE":  12,
		"REASON_BURN":                   15,
	}
)

Enum value maps for BalanceChange_Reason.

View Source
var (
	GasChange_Reason_name = map[int32]string{
		0:  "REASON_UNKNOWN",
		1:  "REASON_CALL",
		2:  "REASON_CALL_CODE",
		3:  "REASON_CALL_DATA_COPY",
		4:  "REASON_CODE_COPY",
		5:  "REASON_CODE_STORAGE",
		6:  "REASON_CONTRACT_CREATION",
		7:  "REASON_CONTRACT_CREATION2",
		8:  "REASON_DELEGATE_CALL",
		9:  "REASON_EVENT_LOG",
		10: "REASON_EXT_CODE_COPY",
		11: "REASON_FAILED_EXECUTION",
		12: "REASON_INTRINSIC_GAS",
		13: "REASON_PRECOMPILED_CONTRACT",
		14: "REASON_REFUND_AFTER_EXECUTION",
		15: "REASON_RETURN",
		16: "REASON_RETURN_DATA_COPY",
		17: "REASON_REVERT",
		18: "REASON_SELF_DESTRUCT",
		19: "REASON_STATIC_CALL",
		20: "REASON_STATE_COLD_ACCESS",
	}
	GasChange_Reason_value = map[string]int32{
		"REASON_UNKNOWN":                0,
		"REASON_CALL":                   1,
		"REASON_CALL_CODE":              2,
		"REASON_CALL_DATA_COPY":         3,
		"REASON_CODE_COPY":              4,
		"REASON_CODE_STORAGE":           5,
		"REASON_CONTRACT_CREATION":      6,
		"REASON_CONTRACT_CREATION2":     7,
		"REASON_DELEGATE_CALL":          8,
		"REASON_EVENT_LOG":              9,
		"REASON_EXT_CODE_COPY":          10,
		"REASON_FAILED_EXECUTION":       11,
		"REASON_INTRINSIC_GAS":          12,
		"REASON_PRECOMPILED_CONTRACT":   13,
		"REASON_REFUND_AFTER_EXECUTION": 14,
		"REASON_RETURN":                 15,
		"REASON_RETURN_DATA_COPY":       16,
		"REASON_REVERT":                 17,
		"REASON_SELF_DESTRUCT":          18,
		"REASON_STATIC_CALL":            19,
		"REASON_STATE_COLD_ACCESS":      20,
	}
)

Enum value maps for GasChange_Reason.

View Source
var (
	GasEvent_Id_name = map[int32]string{
		0: "ID_UNKNOWN",
		1: "ID_AFTER_CALL",
		2: "ID_BEFORE_CALL",
	}
	GasEvent_Id_value = map[string]int32{
		"ID_UNKNOWN":     0,
		"ID_AFTER_CALL":  1,
		"ID_BEFORE_CALL": 2,
	}
)

Enum value maps for GasEvent_Id.

View Source
var File_sf_ethereum_codec_v1_codec_proto protoreflect.FileDescriptor

Functions

func BlockToBuffer

func BlockToBuffer(block *Block) ([]byte, error)

func MustBlockToBuffer

func MustBlockToBuffer(block *Block) []byte

Types

type BalanceChange

type BalanceChange struct {
	Address  []byte               `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	OldValue *BigInt              `protobuf:"bytes,2,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"`
	NewValue *BigInt              `protobuf:"bytes,3,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"`
	Reason   BalanceChange_Reason `protobuf:"varint,4,opt,name=reason,proto3,enum=sf.ethereum.codec.v1.BalanceChange_Reason" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*BalanceChange) Descriptor deprecated

func (*BalanceChange) Descriptor() ([]byte, []int)

Deprecated: Use BalanceChange.ProtoReflect.Descriptor instead.

func (*BalanceChange) GetAddress

func (x *BalanceChange) GetAddress() []byte

func (*BalanceChange) GetNewValue

func (x *BalanceChange) GetNewValue() *BigInt

func (*BalanceChange) GetOldValue

func (x *BalanceChange) GetOldValue() *BigInt

func (*BalanceChange) GetReason

func (x *BalanceChange) GetReason() BalanceChange_Reason

func (*BalanceChange) ProtoMessage

func (*BalanceChange) ProtoMessage()

func (*BalanceChange) ProtoReflect

func (x *BalanceChange) ProtoReflect() protoreflect.Message

func (*BalanceChange) Reset

func (x *BalanceChange) Reset()

func (*BalanceChange) String

func (x *BalanceChange) String() string

type BalanceChange_Reason

type BalanceChange_Reason int32

Obtain all balanche change reasons under deep mind repository:

```shell ack -ho 'BalanceChangeReason\(".*"\)' | grep -Eo '".*"' | sort | uniq ```

const (
	BalanceChange_REASON_UNKNOWN                BalanceChange_Reason = 0
	BalanceChange_REASON_REWARD_MINE_UNCLE      BalanceChange_Reason = 1
	BalanceChange_REASON_REWARD_MINE_BLOCK      BalanceChange_Reason = 2
	BalanceChange_REASON_DAO_REFUND_CONTRACT    BalanceChange_Reason = 3
	BalanceChange_REASON_DAO_ADJUST_BALANCE     BalanceChange_Reason = 4
	BalanceChange_REASON_TRANSFER               BalanceChange_Reason = 5
	BalanceChange_REASON_GENESIS_BALANCE        BalanceChange_Reason = 6
	BalanceChange_REASON_GAS_BUY                BalanceChange_Reason = 7
	BalanceChange_REASON_REWARD_TRANSACTION_FEE BalanceChange_Reason = 8
	BalanceChange_REASON_REWARD_FEE_RESET       BalanceChange_Reason = 14
	BalanceChange_REASON_GAS_REFUND             BalanceChange_Reason = 9
	BalanceChange_REASON_TOUCH_ACCOUNT          BalanceChange_Reason = 10
	BalanceChange_REASON_SUICIDE_REFUND         BalanceChange_Reason = 11
	BalanceChange_REASON_SUICIDE_WITHDRAW       BalanceChange_Reason = 13
	BalanceChange_REASON_CALL_BALANCE_OVERRIDE  BalanceChange_Reason = 12
	// Used on chain(s) where some Ether burning happens
	BalanceChange_REASON_BURN BalanceChange_Reason = 15
)

func (BalanceChange_Reason) Descriptor

func (BalanceChange_Reason) Enum

func (BalanceChange_Reason) EnumDescriptor deprecated

func (BalanceChange_Reason) EnumDescriptor() ([]byte, []int)

Deprecated: Use BalanceChange_Reason.Descriptor instead.

func (BalanceChange_Reason) Number

func (BalanceChange_Reason) String

func (x BalanceChange_Reason) String() string

func (BalanceChange_Reason) Type

type BigInt

type BigInt struct {
	Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// contains filtered or unexported fields
}

func BigIntFromBytes

func BigIntFromBytes(in []byte) *BigInt

func BigIntFromNative

func BigIntFromNative(in *big.Int) *BigInt

func NewBigInt

func NewBigInt(in int64) *BigInt

func (*BigInt) Descriptor deprecated

func (*BigInt) Descriptor() ([]byte, []int)

Deprecated: Use BigInt.ProtoReflect.Descriptor instead.

func (*BigInt) GetBytes

func (x *BigInt) GetBytes() []byte

func (*BigInt) MarshalJSON

func (m *BigInt) MarshalJSON() ([]byte, error)

func (*BigInt) MarshalJSONPB

func (m *BigInt) MarshalJSONPB(marshaler *jsonpb.Marshaler) ([]byte, error)

func (*BigInt) Native

func (m *BigInt) Native() *big.Int

func (*BigInt) ProtoMessage

func (*BigInt) ProtoMessage()

func (*BigInt) ProtoReflect

func (x *BigInt) ProtoReflect() protoreflect.Message

func (*BigInt) Reset

func (x *BigInt) Reset()

func (*BigInt) String

func (x *BigInt) String() string

func (*BigInt) Uint64

func (m *BigInt) Uint64() uint64

func (*BigInt) UnmarshalJSON

func (m *BigInt) UnmarshalJSON(in []byte) (err error)

func (*BigInt) UnmarshalJSONPB

func (m *BigInt) UnmarshalJSONPB(unmarshaler *jsonpb.Unmarshaler, in []byte) (err error)

type Block

type Block struct {
	Ver               int32               `protobuf:"varint,1,opt,name=ver,proto3" json:"ver,omitempty"`
	Hash              []byte              `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Number            uint64              `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"`
	Size              uint64              `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"`
	Header            *BlockHeader        `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"`
	Uncles            []*BlockHeader      `protobuf:"bytes,6,rep,name=uncles,proto3" json:"uncles,omitempty"`
	TransactionTraces []*TransactionTrace `protobuf:"bytes,10,rep,name=transaction_traces,json=transactionTraces,proto3" json:"transaction_traces,omitempty"`
	BalanceChanges    []*BalanceChange    `protobuf:"bytes,11,rep,name=balance_changes,json=balanceChanges,proto3" json:"balance_changes,omitempty"`
	CodeChanges       []*CodeChange       `protobuf:"bytes,20,rep,name=code_changes,json=codeChanges,proto3" json:"code_changes,omitempty"`
	// Wheter or not a filtering process was run on this block. The filtering process populated the
	// `transaction_traces` according to the `filtering_include_filter_expr` and
	// `filtering_exclude_filter_expr` CEL expressions. A transaction will be present in the `transaction_traces`
	// array if it matched the `filtering_include_filter_expr` and did *NOT* match the `filtering_exclude_filter_expr`.
	//
	// Moreover, each matching call that brought the transaction to be in `transaction_traces`
	// array will have a `filtering_matched` flag set on it to broadcast the fact that this call
	// match the inclusion/exclusion list.
	//
	// This flag controls all `transaction_traces` elements on the Block structure and on
	// substructures if present.
	FilteringApplied bool `protobuf:"varint,40,opt,name=filtering_applied,json=filteringApplied,proto3" json:"filtering_applied,omitempty"`
	// The CEL filter expression used to include transaction in `transaction_traces` array, works
	// in combination with `filtering_exclude_filter_expr` value.
	FilteringIncludeFilterExpr string `` /* 144-byte string literal not displayed */
	// The CEL filter expression used to exclude transaction in `transaction_traces` array, works
	// in combination with `filtering_include_filter_expr` value.
	FilteringExcludeFilterExpr string `` /* 144-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Block) Analyze

func (block *Block) Analyze()

func (*Block) AsRef

func (b *Block) AsRef() bstream.BlockRef

func (*Block) Descriptor deprecated

func (*Block) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetBalanceChanges

func (x *Block) GetBalanceChanges() []*BalanceChange

func (*Block) GetCodeChanges

func (x *Block) GetCodeChanges() []*CodeChange

func (*Block) GetFilteringApplied

func (x *Block) GetFilteringApplied() bool

func (*Block) GetFilteringExcludeFilterExpr

func (x *Block) GetFilteringExcludeFilterExpr() string

func (*Block) GetFilteringIncludeFilterExpr

func (x *Block) GetFilteringIncludeFilterExpr() string

func (*Block) GetHash

func (x *Block) GetHash() []byte

func (*Block) GetHeader

func (x *Block) GetHeader() *BlockHeader

func (*Block) GetNumber

func (x *Block) GetNumber() uint64

func (*Block) GetSize

func (x *Block) GetSize() uint64

func (*Block) GetTransactionTraces

func (x *Block) GetTransactionTraces() []*TransactionTrace

func (*Block) GetUncles

func (x *Block) GetUncles() []*BlockHeader

func (*Block) GetVer

func (x *Block) GetVer() int32

func (*Block) ID

func (b *Block) ID() string

func (*Block) LIBNum

func (b *Block) LIBNum() uint64

FIXME: This logic at some point is hard-coded and will need to be re-visited in regard

of the fork logic.

func (*Block) MustTime

func (b *Block) MustTime() time.Time

func (*Block) Num

func (b *Block) Num() uint64

func (*Block) PopulateLogBlockIndices

func (block *Block) PopulateLogBlockIndices()

PopulateLogBlockIndices fixes the `TransactionReceipt.Logs[].BlockIndex` that is not properly populated by our deep mind instrumentation.

func (*Block) PreviousID

func (b *Block) PreviousID() string

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

func (*Block) Time

func (b *Block) Time() (time.Time, error)

type BlockHeader

type BlockHeader struct {
	ParentHash       []byte               `protobuf:"bytes,1,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`                   // geth: ParentHash + parentHash, parity: parentHash
	UncleHash        []byte               `protobuf:"bytes,2,opt,name=uncle_hash,json=uncleHash,proto3" json:"uncle_hash,omitempty"`                      // geth: sha3Uncles, but sha3 is badly worded, so we prefer `uncle_hash`, parity: uncleHash
	Coinbase         []byte               `protobuf:"bytes,3,opt,name=coinbase,proto3" json:"coinbase,omitempty"`                                         // geth: Coinbase + miner, parity: coinbase
	StateRoot        []byte               `protobuf:"bytes,4,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`                      // geth: Root + json=stateRoot, parity: stateRoot
	TransactionsRoot []byte               `protobuf:"bytes,5,opt,name=transactions_root,json=transactionsRoot,proto3" json:"transactions_root,omitempty"` // geth: TxHash + transactionsRoot, parity: transactionsTrie
	ReceiptRoot      []byte               `protobuf:"bytes,6,opt,name=receipt_root,json=receiptRoot,proto3" json:"receipt_root,omitempty"`                // geth: ReceiptHash + receiptRoot, parity: receiptTrie
	LogsBloom        []byte               `protobuf:"bytes,7,opt,name=logs_bloom,json=logsBloom,proto3" json:"logs_bloom,omitempty"`                      // internally called `Bloom`, parity uses `bloom`, geth's json uses `logsBloom`
	Difficulty       *BigInt              `protobuf:"bytes,8,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	Number           uint64               `protobuf:"varint,9,opt,name=number,proto3" json:"number,omitempty"`
	GasLimit         uint64               `protobuf:"varint,10,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	GasUsed          uint64               `protobuf:"varint,11,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	Timestamp        *timestamp.Timestamp `protobuf:"bytes,12,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	ExtraData        []byte               `protobuf:"bytes,13,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"` // geth: Extra []byte + extraData, parity: "0x"-prefixed extraData
	MixHash          []byte               `protobuf:"bytes,14,opt,name=mix_hash,json=mixHash,proto3" json:"mix_hash,omitempty"`       // geth: MixDigest + mixHash, parity: mixHash
	Nonce            uint64               `protobuf:"varint,15,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Hash             []byte               `protobuf:"bytes,16,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockHeader) Descriptor deprecated

func (*BlockHeader) Descriptor() ([]byte, []int)

Deprecated: Use BlockHeader.ProtoReflect.Descriptor instead.

func (*BlockHeader) GetCoinbase

func (x *BlockHeader) GetCoinbase() []byte

func (*BlockHeader) GetDifficulty

func (x *BlockHeader) GetDifficulty() *BigInt

func (*BlockHeader) GetExtraData

func (x *BlockHeader) GetExtraData() []byte

func (*BlockHeader) GetGasLimit

func (x *BlockHeader) GetGasLimit() uint64

func (*BlockHeader) GetGasUsed

func (x *BlockHeader) GetGasUsed() uint64

func (*BlockHeader) GetHash

func (x *BlockHeader) GetHash() []byte

func (*BlockHeader) GetLogsBloom

func (x *BlockHeader) GetLogsBloom() []byte

func (*BlockHeader) GetMixHash

func (x *BlockHeader) GetMixHash() []byte

func (*BlockHeader) GetNonce

func (x *BlockHeader) GetNonce() uint64

func (*BlockHeader) GetNumber

func (x *BlockHeader) GetNumber() uint64

func (*BlockHeader) GetParentHash

func (x *BlockHeader) GetParentHash() []byte

func (*BlockHeader) GetReceiptRoot

func (x *BlockHeader) GetReceiptRoot() []byte

func (*BlockHeader) GetStateRoot

func (x *BlockHeader) GetStateRoot() []byte

func (*BlockHeader) GetTimestamp

func (x *BlockHeader) GetTimestamp() *timestamp.Timestamp

func (*BlockHeader) GetTransactionsRoot

func (x *BlockHeader) GetTransactionsRoot() []byte

func (*BlockHeader) GetUncleHash

func (x *BlockHeader) GetUncleHash() []byte

func (*BlockHeader) ProtoMessage

func (*BlockHeader) ProtoMessage()

func (*BlockHeader) ProtoReflect

func (x *BlockHeader) ProtoReflect() protoreflect.Message

func (*BlockHeader) Reset

func (x *BlockHeader) Reset()

func (*BlockHeader) String

func (x *BlockHeader) String() string

type BlockRef

type BlockRef struct {
	Hash   []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Number uint64 `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func MustBlockRefAsProto

func MustBlockRefAsProto(ref bstream.BlockRef) *BlockRef

func (*BlockRef) AsBstreamBlockRef

func (b *BlockRef) AsBstreamBlockRef() bstream.BlockRef

func (*BlockRef) Descriptor deprecated

func (*BlockRef) Descriptor() ([]byte, []int)

Deprecated: Use BlockRef.ProtoReflect.Descriptor instead.

func (*BlockRef) GetHash

func (x *BlockRef) GetHash() []byte

func (*BlockRef) GetNumber

func (x *BlockRef) GetNumber() uint64

func (*BlockRef) ProtoMessage

func (*BlockRef) ProtoMessage()

func (*BlockRef) ProtoReflect

func (x *BlockRef) ProtoReflect() protoreflect.Message

func (*BlockRef) Reset

func (x *BlockRef) Reset()

func (*BlockRef) String

func (x *BlockRef) String() string

type BlockWithRefs

type BlockWithRefs struct {
	Id                   string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Block                *Block           `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	TransactionTraceRefs *TransactionRefs `protobuf:"bytes,3,opt,name=transaction_trace_refs,json=transactionTraceRefs,proto3" json:"transaction_trace_refs,omitempty"`
	Irreversible         bool             `protobuf:"varint,4,opt,name=irreversible,proto3" json:"irreversible,omitempty"`
	// contains filtered or unexported fields
}

BlockWithRefs is a lightweight block, with traces and transactions purged from the `block` within, and only. It is used in transports to pass block data around.

func (*BlockWithRefs) Descriptor deprecated

func (*BlockWithRefs) Descriptor() ([]byte, []int)

Deprecated: Use BlockWithRefs.ProtoReflect.Descriptor instead.

func (*BlockWithRefs) GetBlock

func (x *BlockWithRefs) GetBlock() *Block

func (*BlockWithRefs) GetId

func (x *BlockWithRefs) GetId() string

func (*BlockWithRefs) GetIrreversible

func (x *BlockWithRefs) GetIrreversible() bool

func (*BlockWithRefs) GetTransactionTraceRefs

func (x *BlockWithRefs) GetTransactionTraceRefs() *TransactionRefs

func (*BlockWithRefs) ProtoMessage

func (*BlockWithRefs) ProtoMessage()

func (*BlockWithRefs) ProtoReflect

func (x *BlockWithRefs) ProtoReflect() protoreflect.Message

func (*BlockWithRefs) Reset

func (x *BlockWithRefs) Reset()

func (*BlockWithRefs) String

func (x *BlockWithRefs) String() string

type Call

type Call struct {
	Index        uint32   `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	ParentIndex  uint32   `protobuf:"varint,2,opt,name=parent_index,json=parentIndex,proto3" json:"parent_index,omitempty"`
	Depth        uint32   `protobuf:"varint,3,opt,name=depth,proto3" json:"depth,omitempty"`
	CallType     CallType `protobuf:"varint,4,opt,name=call_type,json=callType,proto3,enum=sf.ethereum.codec.v1.CallType" json:"call_type,omitempty"`
	Caller       []byte   `protobuf:"bytes,5,opt,name=caller,proto3" json:"caller,omitempty"`
	Address      []byte   `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"`
	Value        *BigInt  `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"`
	GasLimit     uint64   `protobuf:"varint,8,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	GasConsumed  uint64   `protobuf:"varint,9,opt,name=gas_consumed,json=gasConsumed,proto3" json:"gas_consumed,omitempty"`
	ReturnData   []byte   `protobuf:"bytes,13,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"`
	Input        []byte   `protobuf:"bytes,14,opt,name=input,proto3" json:"input,omitempty"`
	ExecutedCode bool     `protobuf:"varint,15,opt,name=executed_code,json=executedCode,proto3" json:"executed_code,omitempty"`
	Suicide      bool     `protobuf:"varint,16,opt,name=suicide,proto3" json:"suicide,omitempty"`
	// hex representation of the hash -> preimage
	KeccakPreimages map[string]string `` /* 195-byte string literal not displayed */
	StorageChanges  []*StorageChange  `protobuf:"bytes,21,rep,name=storage_changes,json=storageChanges,proto3" json:"storage_changes,omitempty"`
	BalanceChanges  []*BalanceChange  `protobuf:"bytes,22,rep,name=balance_changes,json=balanceChanges,proto3" json:"balance_changes,omitempty"`
	NonceChanges    []*NonceChange    `protobuf:"bytes,24,rep,name=nonce_changes,json=nonceChanges,proto3" json:"nonce_changes,omitempty"`
	Logs            []*Log            `protobuf:"bytes,25,rep,name=logs,proto3" json:"logs,omitempty"`
	CodeChanges     []*CodeChange     `protobuf:"bytes,26,rep,name=code_changes,json=codeChanges,proto3" json:"code_changes,omitempty"`
	CreatedAccounts [][]byte          `protobuf:"bytes,27,rep,name=created_accounts,json=createdAccounts,proto3" json:"created_accounts,omitempty"`
	GasChanges      []*GasChange      `protobuf:"bytes,28,rep,name=gas_changes,json=gasChanges,proto3" json:"gas_changes,omitempty"`
	GasEvents       []*GasEvent       `protobuf:"bytes,29,rep,name=gas_events,json=gasEvents,proto3" json:"gas_events,omitempty"`
	// In Ethereum, a call can be either:
	// - Successfull, execution passes without any problem encountered
	// - Failed, execution failed, and remaining gas should be consumed
	// - Reverted, execution failed, but only gas consumed so far is billed, remaining gas is refunded
	//
	// When a call is either `failed` or `reverted`, the `status_failed` field
	// below is set to `true`. If the status is `reverted`, then both `status_failed`
	// and `status_reverted` are going to be set to `true`.
	StatusFailed   bool `protobuf:"varint,10,opt,name=status_failed,json=statusFailed,proto3" json:"status_failed,omitempty"`
	StatusReverted bool `protobuf:"varint,12,opt,name=status_reverted,json=statusReverted,proto3" json:"status_reverted,omitempty"`
	// Populated when a call either failed or reverted, so when `status_failed == true`,
	// see above for details about those flags.
	FailureReason string `protobuf:"bytes,11,opt,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"`
	// This field represents wheter or not the state changes performed
	// by this call were correctly recorded by the blockchain.
	//
	// On Ethereum, a transaction can record state changes even if some
	// of its inner nested calls failed. This is problematic however since
	// a call will invalidate all its state changes as well as all state
	// changes performed by its child call. This means that even if a call
	// has a status of `SUCCESS`, the chain might have reverted all the state
	// changes it performed.
	//
	// “`text
	//   Trx 1
	//    Call #1 <Failed>
	//      Call #2 <Execution Success>
	//      Call #3 <Execution Success>
	//      |--- Failure here
	//    Call #4
	// “`
	//
	// In the transaction above, while Call #2 and Call #3 would have the
	// status `EXECUTED`
	StateReverted       bool                  `protobuf:"varint,30,opt,name=state_reverted,json=stateReverted,proto3" json:"state_reverted,omitempty"`
	Erc20BalanceChanges []*ERC20BalanceChange `protobuf:"bytes,50,rep,name=erc20_balance_changes,json=erc20BalanceChanges,proto3" json:"erc20_balance_changes,omitempty"`
	Erc20TransferEvents []*ERC20TransferEvent `protobuf:"bytes,51,rep,name=erc20_transfer_events,json=erc20TransferEvents,proto3" json:"erc20_transfer_events,omitempty"`
	// Whether this call trace was a successful match, present only when filtering was applied on block. This
	// will be `true` if the Block `filtering_applied` is `true`, if the include CEL filter matched and
	// if the exclude CEL filter did NOT match.
	FilteringMatched bool `protobuf:"varint,60,opt,name=filtering_matched,json=filteringMatched,proto3" json:"filtering_matched,omitempty"`
	// contains filtered or unexported fields
}

func (*Call) Descriptor deprecated

func (*Call) Descriptor() ([]byte, []int)

Deprecated: Use Call.ProtoReflect.Descriptor instead.

func (*Call) GetAddress

func (x *Call) GetAddress() []byte

func (*Call) GetBalanceChanges

func (x *Call) GetBalanceChanges() []*BalanceChange

func (*Call) GetCallType

func (x *Call) GetCallType() CallType

func (*Call) GetCaller

func (x *Call) GetCaller() []byte

func (*Call) GetCodeChanges

func (x *Call) GetCodeChanges() []*CodeChange

func (*Call) GetCreatedAccounts

func (x *Call) GetCreatedAccounts() [][]byte

func (*Call) GetDepth

func (x *Call) GetDepth() uint32

func (*Call) GetErc20BalanceChanges

func (x *Call) GetErc20BalanceChanges() []*ERC20BalanceChange

func (*Call) GetErc20TransferEvents

func (x *Call) GetErc20TransferEvents() []*ERC20TransferEvent

func (*Call) GetExecutedCode

func (x *Call) GetExecutedCode() bool

func (*Call) GetFailureReason

func (x *Call) GetFailureReason() string

func (*Call) GetFilteringMatched

func (x *Call) GetFilteringMatched() bool

func (*Call) GetGasChanges

func (x *Call) GetGasChanges() []*GasChange

func (*Call) GetGasConsumed

func (x *Call) GetGasConsumed() uint64

func (*Call) GetGasEvents

func (x *Call) GetGasEvents() []*GasEvent

func (*Call) GetGasLimit

func (x *Call) GetGasLimit() uint64

func (*Call) GetIndex

func (x *Call) GetIndex() uint32

func (*Call) GetInput

func (x *Call) GetInput() []byte

func (*Call) GetKeccakPreimages

func (x *Call) GetKeccakPreimages() map[string]string

func (*Call) GetLogs

func (x *Call) GetLogs() []*Log

func (*Call) GetNonceChanges

func (x *Call) GetNonceChanges() []*NonceChange

func (*Call) GetParentIndex

func (x *Call) GetParentIndex() uint32

func (*Call) GetReturnData

func (x *Call) GetReturnData() []byte

func (*Call) GetStateReverted

func (x *Call) GetStateReverted() bool

func (*Call) GetStatusFailed

func (x *Call) GetStatusFailed() bool

func (*Call) GetStatusReverted

func (x *Call) GetStatusReverted() bool

func (*Call) GetStorageChanges

func (x *Call) GetStorageChanges() []*StorageChange

func (*Call) GetSuicide

func (x *Call) GetSuicide() bool

func (*Call) GetValue

func (x *Call) GetValue() *BigInt

func (*Call) ProtoMessage

func (*Call) ProtoMessage()

func (*Call) ProtoReflect

func (x *Call) ProtoReflect() protoreflect.Message

func (*Call) Reset

func (x *Call) Reset()

func (*Call) String

func (x *Call) String() string

type CallType

type CallType int32
const (
	CallType_UNSPECIFIED CallType = 0
	CallType_CALL        CallType = 1 // direct? what's the name for `Call` alone?
	CallType_CALLCODE    CallType = 2
	CallType_DELEGATE    CallType = 3
	CallType_STATIC      CallType = 4
	CallType_CREATE      CallType = 5 // create2 ? any other form of calls?
)

func (CallType) Descriptor

func (CallType) Descriptor() protoreflect.EnumDescriptor

func (CallType) Enum

func (x CallType) Enum() *CallType

func (CallType) EnumDescriptor deprecated

func (CallType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CallType.Descriptor instead.

func (CallType) Number

func (x CallType) Number() protoreflect.EnumNumber

func (CallType) String

func (x CallType) String() string

func (CallType) Type

type CodeChange

type CodeChange struct {
	Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	OldHash []byte `protobuf:"bytes,2,opt,name=old_hash,json=oldHash,proto3" json:"old_hash,omitempty"`
	OldCode []byte `protobuf:"bytes,3,opt,name=old_code,json=oldCode,proto3" json:"old_code,omitempty"`
	NewHash []byte `protobuf:"bytes,4,opt,name=new_hash,json=newHash,proto3" json:"new_hash,omitempty"`
	NewCode []byte `protobuf:"bytes,5,opt,name=new_code,json=newCode,proto3" json:"new_code,omitempty"`
	// contains filtered or unexported fields
}

func (*CodeChange) Descriptor deprecated

func (*CodeChange) Descriptor() ([]byte, []int)

Deprecated: Use CodeChange.ProtoReflect.Descriptor instead.

func (*CodeChange) GetAddress

func (x *CodeChange) GetAddress() []byte

func (*CodeChange) GetNewCode

func (x *CodeChange) GetNewCode() []byte

func (*CodeChange) GetNewHash

func (x *CodeChange) GetNewHash() []byte

func (*CodeChange) GetOldCode

func (x *CodeChange) GetOldCode() []byte

func (*CodeChange) GetOldHash

func (x *CodeChange) GetOldHash() []byte

func (*CodeChange) ProtoMessage

func (*CodeChange) ProtoMessage()

func (*CodeChange) ProtoReflect

func (x *CodeChange) ProtoReflect() protoreflect.Message

func (*CodeChange) Reset

func (x *CodeChange) Reset()

func (*CodeChange) String

func (x *CodeChange) String() string

type ERC20BalanceChange

type ERC20BalanceChange struct {
	HolderAddress []byte  `protobuf:"bytes,1,opt,name=holder_address,json=holderAddress,proto3" json:"holder_address,omitempty"`
	OldBalance    *BigInt `protobuf:"bytes,2,opt,name=old_balance,json=oldBalance,proto3" json:"old_balance,omitempty"`
	NewBalance    *BigInt `protobuf:"bytes,3,opt,name=new_balance,json=newBalance,proto3" json:"new_balance,omitempty"`
	// contains filtered or unexported fields
}

func (*ERC20BalanceChange) Descriptor deprecated

func (*ERC20BalanceChange) Descriptor() ([]byte, []int)

Deprecated: Use ERC20BalanceChange.ProtoReflect.Descriptor instead.

func (*ERC20BalanceChange) GetHolderAddress

func (x *ERC20BalanceChange) GetHolderAddress() []byte

func (*ERC20BalanceChange) GetNewBalance

func (x *ERC20BalanceChange) GetNewBalance() *BigInt

func (*ERC20BalanceChange) GetOldBalance

func (x *ERC20BalanceChange) GetOldBalance() *BigInt

func (*ERC20BalanceChange) ProtoMessage

func (*ERC20BalanceChange) ProtoMessage()

func (*ERC20BalanceChange) ProtoReflect

func (x *ERC20BalanceChange) ProtoReflect() protoreflect.Message

func (*ERC20BalanceChange) Reset

func (x *ERC20BalanceChange) Reset()

func (*ERC20BalanceChange) String

func (x *ERC20BalanceChange) String() string

type ERC20TransferEvent

type ERC20TransferEvent struct {
	From   []byte  `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To     []byte  `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Amount *BigInt `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*ERC20TransferEvent) Descriptor deprecated

func (*ERC20TransferEvent) Descriptor() ([]byte, []int)

Deprecated: Use ERC20TransferEvent.ProtoReflect.Descriptor instead.

func (*ERC20TransferEvent) GetAmount

func (x *ERC20TransferEvent) GetAmount() *BigInt

func (*ERC20TransferEvent) GetFrom

func (x *ERC20TransferEvent) GetFrom() []byte

func (*ERC20TransferEvent) GetTo

func (x *ERC20TransferEvent) GetTo() []byte

func (*ERC20TransferEvent) ProtoMessage

func (*ERC20TransferEvent) ProtoMessage()

func (*ERC20TransferEvent) ProtoReflect

func (x *ERC20TransferEvent) ProtoReflect() protoreflect.Message

func (*ERC20TransferEvent) Reset

func (x *ERC20TransferEvent) Reset()

func (*ERC20TransferEvent) String

func (x *ERC20TransferEvent) String() string

type GasChange

type GasChange struct {
	OldValue uint64           `protobuf:"varint,1,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"`
	NewValue uint64           `protobuf:"varint,2,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"`
	Reason   GasChange_Reason `protobuf:"varint,3,opt,name=reason,proto3,enum=sf.ethereum.codec.v1.GasChange_Reason" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

The gas change model represents the reason why some gas cost has occurred. The gas is computed per actual op codes. Doing them completely might prove overwhelming in most cases.

Hence, we only index some of them, those that are costy like all the calls one, log events, return data, etc.

func (*GasChange) Descriptor deprecated

func (*GasChange) Descriptor() ([]byte, []int)

Deprecated: Use GasChange.ProtoReflect.Descriptor instead.

func (*GasChange) GetNewValue

func (x *GasChange) GetNewValue() uint64

func (*GasChange) GetOldValue

func (x *GasChange) GetOldValue() uint64

func (*GasChange) GetReason

func (x *GasChange) GetReason() GasChange_Reason

func (*GasChange) ProtoMessage

func (*GasChange) ProtoMessage()

func (*GasChange) ProtoReflect

func (x *GasChange) ProtoReflect() protoreflect.Message

func (*GasChange) Reset

func (x *GasChange) Reset()

func (*GasChange) String

func (x *GasChange) String() string

type GasChange_Reason

type GasChange_Reason int32

Obtain all gas change reasons under deep mind repository:

```shell ack -ho 'GasChangeReason\(".*"\)' | grep -Eo '".*"' | sort | uniq ```

const (
	GasChange_REASON_UNKNOWN                GasChange_Reason = 0
	GasChange_REASON_CALL                   GasChange_Reason = 1
	GasChange_REASON_CALL_CODE              GasChange_Reason = 2
	GasChange_REASON_CALL_DATA_COPY         GasChange_Reason = 3
	GasChange_REASON_CODE_COPY              GasChange_Reason = 4
	GasChange_REASON_CODE_STORAGE           GasChange_Reason = 5
	GasChange_REASON_CONTRACT_CREATION      GasChange_Reason = 6
	GasChange_REASON_CONTRACT_CREATION2     GasChange_Reason = 7
	GasChange_REASON_DELEGATE_CALL          GasChange_Reason = 8
	GasChange_REASON_EVENT_LOG              GasChange_Reason = 9
	GasChange_REASON_EXT_CODE_COPY          GasChange_Reason = 10
	GasChange_REASON_FAILED_EXECUTION       GasChange_Reason = 11
	GasChange_REASON_INTRINSIC_GAS          GasChange_Reason = 12
	GasChange_REASON_PRECOMPILED_CONTRACT   GasChange_Reason = 13
	GasChange_REASON_REFUND_AFTER_EXECUTION GasChange_Reason = 14
	GasChange_REASON_RETURN                 GasChange_Reason = 15
	GasChange_REASON_RETURN_DATA_COPY       GasChange_Reason = 16
	GasChange_REASON_REVERT                 GasChange_Reason = 17
	GasChange_REASON_SELF_DESTRUCT          GasChange_Reason = 18
	GasChange_REASON_STATIC_CALL            GasChange_Reason = 19
	// Added in Berlin fork (Geth 1.10+)
	GasChange_REASON_STATE_COLD_ACCESS GasChange_Reason = 20
)

func (GasChange_Reason) Descriptor

func (GasChange_Reason) Enum

func (GasChange_Reason) EnumDescriptor deprecated

func (GasChange_Reason) EnumDescriptor() ([]byte, []int)

Deprecated: Use GasChange_Reason.Descriptor instead.

func (GasChange_Reason) Number

func (GasChange_Reason) String

func (x GasChange_Reason) String() string

func (GasChange_Reason) Type

type GasEvent

type GasEvent struct {
	Id              GasEvent_Id `protobuf:"varint,1,opt,name=id,proto3,enum=sf.ethereum.codec.v1.GasEvent_Id" json:"id,omitempty"`
	Gas             uint64      `protobuf:"varint,2,opt,name=gas,proto3" json:"gas,omitempty"`
	LinkedCallIndex uint64      `protobuf:"varint,3,opt,name=linked_call_index,json=linkedCallIndex,proto3" json:"linked_call_index,omitempty"`
	// contains filtered or unexported fields
}

Gas events are emitted to faciliate gas tracking avoid the execution call stack that happens while processing a transaction on the chain.

We currently have events for tracing of gas amount before and after each child call.

func (*GasEvent) Descriptor deprecated

func (*GasEvent) Descriptor() ([]byte, []int)

Deprecated: Use GasEvent.ProtoReflect.Descriptor instead.

func (*GasEvent) GetGas

func (x *GasEvent) GetGas() uint64

func (*GasEvent) GetId

func (x *GasEvent) GetId() GasEvent_Id

func (*GasEvent) GetLinkedCallIndex

func (x *GasEvent) GetLinkedCallIndex() uint64

func (*GasEvent) ProtoMessage

func (*GasEvent) ProtoMessage()

func (*GasEvent) ProtoReflect

func (x *GasEvent) ProtoReflect() protoreflect.Message

func (*GasEvent) Reset

func (x *GasEvent) Reset()

func (*GasEvent) String

func (x *GasEvent) String() string

type GasEvent_Id

type GasEvent_Id int32

Obtain all gas change reasons under deep mind repository:

```shell ack -ho 'GasEventID\(".*"\)' | grep -Eo '".*"' | sort | uniq ```

const (
	GasEvent_ID_UNKNOWN     GasEvent_Id = 0
	GasEvent_ID_AFTER_CALL  GasEvent_Id = 1
	GasEvent_ID_BEFORE_CALL GasEvent_Id = 2
)

func (GasEvent_Id) Descriptor

func (GasEvent_Id) Enum

func (x GasEvent_Id) Enum() *GasEvent_Id

func (GasEvent_Id) EnumDescriptor deprecated

func (GasEvent_Id) EnumDescriptor() ([]byte, []int)

Deprecated: Use GasEvent_Id.Descriptor instead.

func (GasEvent_Id) Number

func (x GasEvent_Id) Number() protoreflect.EnumNumber

func (GasEvent_Id) String

func (x GasEvent_Id) String() string

func (GasEvent_Id) Type

type HeaderOnlyBlock

type HeaderOnlyBlock struct {
	Header *BlockHeader `protobuf:"bytes,5,opt,name=header,proto3" json:"header,omitempty"`
	// contains filtered or unexported fields
}

HeaderOnlyBlock is a standard Block structure where all other fields are removed so that hydrating that object from a Block bytes payload will drastically reduced allocated memory required to hold the full block.

This can be used to unpack a Block when only the BlockHeader information is required and greatly reduced required memory.

func (*HeaderOnlyBlock) Descriptor deprecated

func (*HeaderOnlyBlock) Descriptor() ([]byte, []int)

Deprecated: Use HeaderOnlyBlock.ProtoReflect.Descriptor instead.

func (*HeaderOnlyBlock) GetHeader

func (x *HeaderOnlyBlock) GetHeader() *BlockHeader

func (*HeaderOnlyBlock) ProtoMessage

func (*HeaderOnlyBlock) ProtoMessage()

func (*HeaderOnlyBlock) ProtoReflect

func (x *HeaderOnlyBlock) ProtoReflect() protoreflect.Message

func (*HeaderOnlyBlock) Reset

func (x *HeaderOnlyBlock) Reset()

func (*HeaderOnlyBlock) String

func (x *HeaderOnlyBlock) String() string

type Log

type Log struct {
	Address []byte   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Topics  [][]byte `protobuf:"bytes,2,rep,name=topics,proto3" json:"topics,omitempty"`
	Data    []byte   `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// Index is the index of the log relative to the transaction. This index
	// is always populated regardless of the state revertion of the the call
	// that emitted this log.
	Index uint32 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	// BlockIndex represents the index of the log relative to the Block.
	//
	// An **important** notice is that this field will be 0 when the call
	// that emitted the log has been reverted by the chain.
	//
	// Currently, there is two locations where a Log can be obtained:
	// - block.transaction_traces[].receipt.logs[]
	// - block.transaction_traces[].calls[].logs[]
	//
	// In the `receipt` case, the logs will be populated only when the call
	// that emitted them has not been reverted by the chain and when in this
	// position, the `blockIndex` is always populated correctly.
	//
	// In the case of `calls` case, for `call` where `stateReverted == true`,
	// the `blockIndex` value will always be 0.
	BlockIndex uint32 `protobuf:"varint,6,opt,name=blockIndex,proto3" json:"blockIndex,omitempty"`
	// contains filtered or unexported fields
}

func (*Log) Descriptor deprecated

func (*Log) Descriptor() ([]byte, []int)

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetAddress

func (x *Log) GetAddress() []byte

func (*Log) GetBlockIndex

func (x *Log) GetBlockIndex() uint32

func (*Log) GetData

func (x *Log) GetData() []byte

func (*Log) GetIndex

func (x *Log) GetIndex() uint32

func (*Log) GetTopics

func (x *Log) GetTopics() [][]byte

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

func (x *Log) ProtoReflect() protoreflect.Message

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type NonceChange

type NonceChange struct {
	Address  []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	OldValue uint64 `protobuf:"varint,2,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"`
	NewValue uint64 `protobuf:"varint,3,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"`
	// contains filtered or unexported fields
}

func (*NonceChange) Descriptor deprecated

func (*NonceChange) Descriptor() ([]byte, []int)

Deprecated: Use NonceChange.ProtoReflect.Descriptor instead.

func (*NonceChange) GetAddress

func (x *NonceChange) GetAddress() []byte

func (*NonceChange) GetNewValue

func (x *NonceChange) GetNewValue() uint64

func (*NonceChange) GetOldValue

func (x *NonceChange) GetOldValue() uint64

func (*NonceChange) ProtoMessage

func (*NonceChange) ProtoMessage()

func (*NonceChange) ProtoReflect

func (x *NonceChange) ProtoReflect() protoreflect.Message

func (*NonceChange) Reset

func (x *NonceChange) Reset()

func (*NonceChange) String

func (x *NonceChange) String() string

type StorageChange

type StorageChange struct {
	Address  []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Key      []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	OldValue []byte `protobuf:"bytes,3,opt,name=old_value,json=oldValue,proto3" json:"old_value,omitempty"`
	NewValue []byte `protobuf:"bytes,4,opt,name=new_value,json=newValue,proto3" json:"new_value,omitempty"`
	// contains filtered or unexported fields
}

func (*StorageChange) Descriptor deprecated

func (*StorageChange) Descriptor() ([]byte, []int)

Deprecated: Use StorageChange.ProtoReflect.Descriptor instead.

func (*StorageChange) GetAddress

func (x *StorageChange) GetAddress() []byte

func (*StorageChange) GetKey

func (x *StorageChange) GetKey() []byte

func (*StorageChange) GetNewValue

func (x *StorageChange) GetNewValue() []byte

func (*StorageChange) GetOldValue

func (x *StorageChange) GetOldValue() []byte

func (*StorageChange) ProtoMessage

func (*StorageChange) ProtoMessage()

func (*StorageChange) ProtoReflect

func (x *StorageChange) ProtoReflect() protoreflect.Message

func (*StorageChange) Reset

func (x *StorageChange) Reset()

func (*StorageChange) String

func (x *StorageChange) String() string

type Transaction

type Transaction struct {

	// consensus
	To       []byte  `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	Nonce    uint64  `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	GasPrice *BigInt `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	GasLimit uint64  `protobuf:"varint,4,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	Value    *BigInt `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` // amount of ETH transfered, in addition to used_gas * gas_price, sometimes referred to as `Amount`
	Input    []byte  `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"`
	V        []byte  `protobuf:"bytes,7,opt,name=v,proto3" json:"v,omitempty"` // signature values
	R        []byte  `protobuf:"bytes,8,opt,name=r,proto3" json:"r,omitempty"`
	S        []byte  `protobuf:"bytes,9,opt,name=s,proto3" json:"s,omitempty"`
	// meta
	Hash []byte `protobuf:"bytes,21,opt,name=hash,proto3" json:"hash,omitempty"`
	From []byte `protobuf:"bytes,22,opt,name=from,proto3" json:"from,omitempty"`
	// contains filtered or unexported fields
}

A Transaction not yet in block

func (*Transaction) Descriptor deprecated

func (*Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetFrom

func (x *Transaction) GetFrom() []byte

func (*Transaction) GetGasLimit

func (x *Transaction) GetGasLimit() uint64

func (*Transaction) GetGasPrice

func (x *Transaction) GetGasPrice() *BigInt

func (*Transaction) GetHash

func (x *Transaction) GetHash() []byte

func (*Transaction) GetInput

func (x *Transaction) GetInput() []byte

func (*Transaction) GetNonce

func (x *Transaction) GetNonce() uint64

func (*Transaction) GetR

func (x *Transaction) GetR() []byte

func (*Transaction) GetS

func (x *Transaction) GetS() []byte

func (*Transaction) GetTo

func (x *Transaction) GetTo() []byte

func (*Transaction) GetV

func (x *Transaction) GetV() []byte

func (*Transaction) GetValue

func (x *Transaction) GetValue() *BigInt

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

type TransactionReceipt

type TransactionReceipt struct {

	// consensus
	StateRoot         []byte `protobuf:"bytes,1,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
	CumulativeGasUsed uint64 `protobuf:"varint,2,opt,name=cumulative_gas_used,json=cumulativeGasUsed,proto3" json:"cumulative_gas_used,omitempty"`
	LogsBloom         []byte `protobuf:"bytes,3,opt,name=logs_bloom,json=logsBloom,proto3" json:"logs_bloom,omitempty"`
	Logs              []*Log `protobuf:"bytes,4,rep,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionReceipt) Descriptor deprecated

func (*TransactionReceipt) Descriptor() ([]byte, []int)

Deprecated: Use TransactionReceipt.ProtoReflect.Descriptor instead.

func (*TransactionReceipt) GetCumulativeGasUsed

func (x *TransactionReceipt) GetCumulativeGasUsed() uint64

func (*TransactionReceipt) GetLogs

func (x *TransactionReceipt) GetLogs() []*Log

func (*TransactionReceipt) GetLogsBloom

func (x *TransactionReceipt) GetLogsBloom() []byte

func (*TransactionReceipt) GetStateRoot

func (x *TransactionReceipt) GetStateRoot() []byte

func (*TransactionReceipt) ProtoMessage

func (*TransactionReceipt) ProtoMessage()

func (*TransactionReceipt) ProtoReflect

func (x *TransactionReceipt) ProtoReflect() protoreflect.Message

func (*TransactionReceipt) Reset

func (x *TransactionReceipt) Reset()

func (*TransactionReceipt) String

func (x *TransactionReceipt) String() string

type TransactionRefs

type TransactionRefs struct {
	Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionRefs) Descriptor deprecated

func (*TransactionRefs) Descriptor() ([]byte, []int)

Deprecated: Use TransactionRefs.ProtoReflect.Descriptor instead.

func (*TransactionRefs) GetHashes

func (x *TransactionRefs) GetHashes() [][]byte

func (*TransactionRefs) ProtoMessage

func (*TransactionRefs) ProtoMessage()

func (*TransactionRefs) ProtoReflect

func (x *TransactionRefs) ProtoReflect() protoreflect.Message

func (*TransactionRefs) Reset

func (x *TransactionRefs) Reset()

func (*TransactionRefs) String

func (x *TransactionRefs) String() string

type TransactionState

type TransactionState struct {
	PreviousState     TransactionState_State      `` /* 150-byte string literal not displayed */
	CurrentState      TransactionState_State      `` /* 147-byte string literal not displayed */
	Transition        TransactionState_Transition `` /* 129-byte string literal not displayed */
	Hash              []byte                      `protobuf:"bytes,11,opt,name=hash,proto3" json:"hash,omitempty"`
	Trx               *Transaction                `protobuf:"bytes,3,opt,name=trx,proto3" json:"trx,omitempty"`
	BlockHeader       *BlockHeader                `protobuf:"bytes,4,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"`
	TransactionTraces *TransactionTrace           `protobuf:"bytes,5,opt,name=transaction_traces,json=transactionTraces,proto3" json:"transaction_traces,omitempty"`
	Confirmation      uint64                      `protobuf:"varint,6,opt,name=confirmation,proto3" json:"confirmation,omitempty"`
	HeadBlockHeader   *BlockHeader                `protobuf:"bytes,7,opt,name=head_block_header,json=headBlockHeader,proto3" json:"head_block_header,omitempty"`
	ReplacedByHash    []byte                      `protobuf:"bytes,8,opt,name=replaced_by_hash,json=replacedByHash,proto3" json:"replaced_by_hash,omitempty"`
	PendingFirstSeen  *timestamp.Timestamp        `protobuf:"bytes,12,opt,name=pending_first_seen,json=pendingFirstSeen,proto3" json:"pending_first_seen,omitempty"`
	PendingLastSeen   *timestamp.Timestamp        `protobuf:"bytes,13,opt,name=pending_last_seen,json=pendingLastSeen,proto3" json:"pending_last_seen,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionState) Descriptor deprecated

func (*TransactionState) Descriptor() ([]byte, []int)

Deprecated: Use TransactionState.ProtoReflect.Descriptor instead.

func (*TransactionState) GetBlockHeader

func (x *TransactionState) GetBlockHeader() *BlockHeader

func (*TransactionState) GetConfirmation

func (x *TransactionState) GetConfirmation() uint64

func (*TransactionState) GetCurrentState

func (x *TransactionState) GetCurrentState() TransactionState_State

func (*TransactionState) GetHash

func (x *TransactionState) GetHash() []byte

func (*TransactionState) GetHeadBlockHeader

func (x *TransactionState) GetHeadBlockHeader() *BlockHeader

func (*TransactionState) GetPendingFirstSeen

func (x *TransactionState) GetPendingFirstSeen() *timestamp.Timestamp

func (*TransactionState) GetPendingLastSeen

func (x *TransactionState) GetPendingLastSeen() *timestamp.Timestamp

func (*TransactionState) GetPreviousState

func (x *TransactionState) GetPreviousState() TransactionState_State

func (*TransactionState) GetReplacedByHash

func (x *TransactionState) GetReplacedByHash() []byte

func (*TransactionState) GetTransactionTraces

func (x *TransactionState) GetTransactionTraces() *TransactionTrace

func (*TransactionState) GetTransition

func (x *TransactionState) GetTransition() TransactionState_Transition

func (*TransactionState) GetTrx

func (x *TransactionState) GetTrx() *Transaction

func (*TransactionState) ProtoMessage

func (*TransactionState) ProtoMessage()

func (*TransactionState) ProtoReflect

func (x *TransactionState) ProtoReflect() protoreflect.Message

func (*TransactionState) Reset

func (x *TransactionState) Reset()

func (*TransactionState) String

func (x *TransactionState) String() string

type TransactionState_State

type TransactionState_State int32
const (
	TransactionState_STATE_UNKNOWN  TransactionState_State = 0
	TransactionState_STATE_PENDING  TransactionState_State = 1
	TransactionState_STATE_IN_BLOCK TransactionState_State = 2
	TransactionState_STATE_REPLACED TransactionState_State = 3
)

func (TransactionState_State) Descriptor

func (TransactionState_State) Enum

func (TransactionState_State) EnumDescriptor deprecated

func (TransactionState_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use TransactionState_State.Descriptor instead.

func (TransactionState_State) Number

func (TransactionState_State) String

func (x TransactionState_State) String() string

func (TransactionState_State) Type

type TransactionState_Transition

type TransactionState_Transition int32
const (
	TransactionState_TRANS_INIT                   TransactionState_Transition = 0
	TransactionState_TRANS_POOLED                 TransactionState_Transition = 1
	TransactionState_TRANS_MINED                  TransactionState_Transition = 2
	TransactionState_TRANS_FORKED                 TransactionState_Transition = 3
	TransactionState_TRANS_CONFIRMED              TransactionState_Transition = 4
	TransactionState_TRANS_REPLACED               TransactionState_Transition = 5
	TransactionState_TRANS_SPECULATIVELY_EXECUTED TransactionState_Transition = 6 // makes speculative traces available on a PENDING transaction. May not be emitted if the transaction is seen a block before
)

func (TransactionState_Transition) Descriptor

func (TransactionState_Transition) Enum

func (TransactionState_Transition) EnumDescriptor deprecated

func (TransactionState_Transition) EnumDescriptor() ([]byte, []int)

Deprecated: Use TransactionState_Transition.Descriptor instead.

func (TransactionState_Transition) Number

func (TransactionState_Transition) String

func (TransactionState_Transition) Type

type TransactionTrace

type TransactionTrace struct {

	// consensus
	To       []byte  `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	Nonce    uint64  `protobuf:"varint,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	GasPrice *BigInt `protobuf:"bytes,3,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	GasLimit uint64  `protobuf:"varint,4,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	Value    *BigInt `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` // amount of ETH transfered, in addition to used_gas * gas_price, sometimes referred to as `Amount`
	Input    []byte  `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"`
	V        []byte  `protobuf:"bytes,7,opt,name=v,proto3" json:"v,omitempty"` // signature values
	R        []byte  `protobuf:"bytes,8,opt,name=r,proto3" json:"r,omitempty"`
	S        []byte  `protobuf:"bytes,9,opt,name=s,proto3" json:"s,omitempty"`
	GasUsed  uint64  `protobuf:"varint,10,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	// meta
	Index      uint32                 `protobuf:"varint,20,opt,name=index,proto3" json:"index,omitempty"`
	Hash       []byte                 `protobuf:"bytes,21,opt,name=hash,proto3" json:"hash,omitempty"`
	From       []byte                 `protobuf:"bytes,22,opt,name=from,proto3" json:"from,omitempty"`
	ReturnData []byte                 `protobuf:"bytes,23,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"`
	PublicKey  []byte                 `protobuf:"bytes,24,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	Status     TransactionTraceStatus `protobuf:"varint,30,opt,name=status,proto3,enum=sf.ethereum.codec.v1.TransactionTraceStatus" json:"status,omitempty"`
	Receipt    *TransactionReceipt    `protobuf:"bytes,31,opt,name=receipt,proto3" json:"receipt,omitempty"`
	Calls      []*Call                `protobuf:"bytes,32,rep,name=calls,proto3" json:"calls,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionTrace) Descriptor deprecated

func (*TransactionTrace) Descriptor() ([]byte, []int)

Deprecated: Use TransactionTrace.ProtoReflect.Descriptor instead.

func (*TransactionTrace) GetCalls

func (x *TransactionTrace) GetCalls() []*Call

func (*TransactionTrace) GetFrom

func (x *TransactionTrace) GetFrom() []byte

func (*TransactionTrace) GetGasLimit

func (x *TransactionTrace) GetGasLimit() uint64

func (*TransactionTrace) GetGasPrice

func (x *TransactionTrace) GetGasPrice() *BigInt

func (*TransactionTrace) GetGasUsed

func (x *TransactionTrace) GetGasUsed() uint64

func (*TransactionTrace) GetHash

func (x *TransactionTrace) GetHash() []byte

func (*TransactionTrace) GetIndex

func (x *TransactionTrace) GetIndex() uint32

func (*TransactionTrace) GetInput

func (x *TransactionTrace) GetInput() []byte

func (*TransactionTrace) GetNonce

func (x *TransactionTrace) GetNonce() uint64

func (*TransactionTrace) GetPublicKey

func (x *TransactionTrace) GetPublicKey() []byte

func (*TransactionTrace) GetR

func (x *TransactionTrace) GetR() []byte

func (*TransactionTrace) GetReceipt

func (x *TransactionTrace) GetReceipt() *TransactionReceipt

func (*TransactionTrace) GetReturnData

func (x *TransactionTrace) GetReturnData() []byte

func (*TransactionTrace) GetS

func (x *TransactionTrace) GetS() []byte

func (*TransactionTrace) GetStatus

func (*TransactionTrace) GetTo

func (x *TransactionTrace) GetTo() []byte

func (*TransactionTrace) GetV

func (x *TransactionTrace) GetV() []byte

func (*TransactionTrace) GetValue

func (x *TransactionTrace) GetValue() *BigInt

func (*TransactionTrace) PopulateStateReverted

func (trace *TransactionTrace) PopulateStateReverted()

func (*TransactionTrace) PopulateTrxStatus

func (trace *TransactionTrace) PopulateTrxStatus()

func (*TransactionTrace) ProtoMessage

func (*TransactionTrace) ProtoMessage()

func (*TransactionTrace) ProtoReflect

func (x *TransactionTrace) ProtoReflect() protoreflect.Message

func (*TransactionTrace) Reset

func (x *TransactionTrace) Reset()

func (*TransactionTrace) String

func (x *TransactionTrace) String() string

func (*TransactionTrace) ToTransaction

func (t *TransactionTrace) ToTransaction() *Transaction

type TransactionTraceStatus

type TransactionTraceStatus int32
const (
	TransactionTraceStatus_UNKNOWN   TransactionTraceStatus = 0
	TransactionTraceStatus_SUCCEEDED TransactionTraceStatus = 1
	TransactionTraceStatus_FAILED    TransactionTraceStatus = 2
	TransactionTraceStatus_REVERTED  TransactionTraceStatus = 3
)

func (TransactionTraceStatus) Descriptor

func (TransactionTraceStatus) Enum

func (TransactionTraceStatus) EnumDescriptor deprecated

func (TransactionTraceStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use TransactionTraceStatus.Descriptor instead.

func (TransactionTraceStatus) Number

func (TransactionTraceStatus) String

func (x TransactionTraceStatus) String() string

func (TransactionTraceStatus) Type

type TransactionTraceWithBlockRef

type TransactionTraceWithBlockRef struct {
	Trace    *TransactionTrace `protobuf:"bytes,1,opt,name=trace,proto3" json:"trace,omitempty"`
	BlockRef *BlockRef         `protobuf:"bytes,2,opt,name=block_ref,json=blockRef,proto3" json:"block_ref,omitempty"`
	// contains filtered or unexported fields
}

TransactionTraceWithBlockRef

func (*TransactionTraceWithBlockRef) Descriptor deprecated

func (*TransactionTraceWithBlockRef) Descriptor() ([]byte, []int)

Deprecated: Use TransactionTraceWithBlockRef.ProtoReflect.Descriptor instead.

func (*TransactionTraceWithBlockRef) GetBlockRef

func (x *TransactionTraceWithBlockRef) GetBlockRef() *BlockRef

func (*TransactionTraceWithBlockRef) GetTrace

func (*TransactionTraceWithBlockRef) ProtoMessage

func (*TransactionTraceWithBlockRef) ProtoMessage()

func (*TransactionTraceWithBlockRef) ProtoReflect

func (*TransactionTraceWithBlockRef) Reset

func (x *TransactionTraceWithBlockRef) Reset()

func (*TransactionTraceWithBlockRef) String

type UnclesHeaders

type UnclesHeaders struct {
	Uncles []*BlockHeader `protobuf:"bytes,1,rep,name=uncles,proto3" json:"uncles,omitempty"`
	// contains filtered or unexported fields
}

func (*UnclesHeaders) Descriptor deprecated

func (*UnclesHeaders) Descriptor() ([]byte, []int)

Deprecated: Use UnclesHeaders.ProtoReflect.Descriptor instead.

func (*UnclesHeaders) GetUncles

func (x *UnclesHeaders) GetUncles() []*BlockHeader

func (*UnclesHeaders) ProtoMessage

func (*UnclesHeaders) ProtoMessage()

func (*UnclesHeaders) ProtoReflect

func (x *UnclesHeaders) ProtoReflect() protoreflect.Message

func (*UnclesHeaders) Reset

func (x *UnclesHeaders) Reset()

func (*UnclesHeaders) String

func (x *UnclesHeaders) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL