pbcodec

package
v0.0.0-...-a7069a1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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",
	9:  "REASON_GAS_REFUND",
	10: "REASON_TOUCH_ACCOUNT",
	11: "REASON_SUICIDE_REFUND",
	13: "REASON_SUICIDE_WITHDRAW",
	12: "REASON_CALL_BALANCE_OVERRIDE",
}
View Source
var 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_GAS_REFUND":             9,
	"REASON_TOUCH_ACCOUNT":          10,
	"REASON_SUICIDE_REFUND":         11,
	"REASON_SUICIDE_WITHDRAW":       13,
	"REASON_CALL_BALANCE_OVERRIDE":  12,
}
View Source
var CallType_name = map[int32]string{
	0: "UNSPECIFIED",
	1: "CALL",
	2: "CALLCODE",
	3: "DELEGATE",
	4: "STATIC",
	5: "CREATE",
}
View Source
var CallType_value = map[string]int32{
	"UNSPECIFIED": 0,
	"CALL":        1,
	"CALLCODE":    2,
	"DELEGATE":    3,
	"STATIC":      4,
	"CREATE":      5,
}
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",
}
View Source
var 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,
}
View Source
var GasEvent_Id_name = map[int32]string{
	0: "ID_UNKNOWN",
	1: "ID_AFTER_CALL",
	2: "ID_BEFORE_CALL",
}
View Source
var GasEvent_Id_value = map[string]int32{
	"ID_UNKNOWN":     0,
	"ID_AFTER_CALL":  1,
	"ID_BEFORE_CALL": 2,
}
View Source
var TransactionState_State_name = map[int32]string{
	0: "STATE_UNKNOWN",
	1: "STATE_PENDING",
	2: "STATE_IN_BLOCK",
	3: "STATE_REPLACED",
}
View Source
var TransactionState_State_value = map[string]int32{
	"STATE_UNKNOWN":  0,
	"STATE_PENDING":  1,
	"STATE_IN_BLOCK": 2,
	"STATE_REPLACED": 3,
}
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",
}
View Source
var 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,
}
View Source
var TransactionTraceStatus_name = map[int32]string{
	0: "UNKNOWN",
	1: "SUCCEEDED",
	2: "FAILED",
	3: "REVERTED",
}
View Source
var TransactionTraceStatus_value = map[string]int32{
	"UNKNOWN":   0,
	"SUCCEEDED": 1,
	"FAILED":    2,
	"REVERTED":  3,
}

Functions

This section is empty.

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=dfuse.ethereum.codec.v1.BalanceChange_Reason" json:"reason,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*BalanceChange) Descriptor

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

func (*BalanceChange) GetAddress

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

func (*BalanceChange) GetNewValue

func (m *BalanceChange) GetNewValue() *BigInt

func (*BalanceChange) GetOldValue

func (m *BalanceChange) GetOldValue() *BigInt

func (*BalanceChange) GetReason

func (m *BalanceChange) GetReason() BalanceChange_Reason

func (*BalanceChange) ProtoMessage

func (*BalanceChange) ProtoMessage()

func (*BalanceChange) Reset

func (m *BalanceChange) Reset()

func (*BalanceChange) String

func (m *BalanceChange) String() string

func (*BalanceChange) XXX_DiscardUnknown

func (m *BalanceChange) XXX_DiscardUnknown()

func (*BalanceChange) XXX_Marshal

func (m *BalanceChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BalanceChange) XXX_Merge

func (m *BalanceChange) XXX_Merge(src proto.Message)

func (*BalanceChange) XXX_Size

func (m *BalanceChange) XXX_Size() int

func (*BalanceChange) XXX_Unmarshal

func (m *BalanceChange) XXX_Unmarshal(b []byte) error

type BalanceChange_Reason

type BalanceChange_Reason int32

Obtain all balanche change reasons under deep mind repository:

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_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
)

func (BalanceChange_Reason) EnumDescriptor

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

func (BalanceChange_Reason) String

func (x BalanceChange_Reason) String() string

type BigInt

type BigInt struct {
	Bytes                []byte   `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BigInt) Descriptor

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

func (*BigInt) GetBytes

func (m *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) Reset

func (m *BigInt) Reset()

func (*BigInt) String

func (m *BigInt) String() string

func (*BigInt) XXX_DiscardUnknown

func (m *BigInt) XXX_DiscardUnknown()

func (*BigInt) XXX_Marshal

func (m *BigInt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BigInt) XXX_Merge

func (m *BigInt) XXX_Merge(src proto.Message)

func (*BigInt) XXX_Size

func (m *BigInt) XXX_Size() int

func (*BigInt) XXX_Unmarshal

func (m *BigInt) XXX_Unmarshal(b []byte) 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"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*Block) AsRef

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

func (*Block) Descriptor

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

func (*Block) GetBalanceChanges

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

func (*Block) GetHash

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

func (*Block) GetHeader

func (m *Block) GetHeader() *BlockHeader

func (*Block) GetNumber

func (m *Block) GetNumber() uint64

func (*Block) GetSize

func (m *Block) GetSize() uint64

func (*Block) GetTransactionTraces

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

func (*Block) GetUncles

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

func (*Block) GetVer

func (m *Block) GetVer() int32

func (*Block) ID

func (b *Block) ID() string

func (*Block) PreviousID

func (b *Block) PreviousID() string

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) String

func (m *Block) String() string

func (*Block) XXX_DiscardUnknown

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal

func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Block) XXX_Merge

func (m *Block) XXX_Merge(src proto.Message)

func (*Block) XXX_Size

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal

func (m *Block) XXX_Unmarshal(b []byte) error

type BlockHeader

type BlockHeader struct {
	ParentHash           []byte               `protobuf:"bytes,1,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`
	UncleHash            []byte               `protobuf:"bytes,2,opt,name=uncle_hash,json=uncleHash,proto3" json:"uncle_hash,omitempty"`
	Coinbase             []byte               `protobuf:"bytes,3,opt,name=coinbase,proto3" json:"coinbase,omitempty"`
	StateRoot            []byte               `protobuf:"bytes,4,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
	TransactionsRoot     []byte               `protobuf:"bytes,5,opt,name=transactions_root,json=transactionsRoot,proto3" json:"transactions_root,omitempty"`
	ReceiptRoot          []byte               `protobuf:"bytes,6,opt,name=receipt_root,json=receiptRoot,proto3" json:"receipt_root,omitempty"`
	LogsBloom            []byte               `protobuf:"bytes,7,opt,name=logs_bloom,json=logsBloom,proto3" json:"logs_bloom,omitempty"`
	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"`
	MixHash              []byte               `protobuf:"bytes,14,opt,name=mix_hash,json=mixHash,proto3" json:"mix_hash,omitempty"`
	Nonce                uint64               `protobuf:"varint,15,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Hash                 []byte               `protobuf:"bytes,16,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*BlockHeader) Descriptor

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

func (*BlockHeader) GetCoinbase

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

func (*BlockHeader) GetDifficulty

func (m *BlockHeader) GetDifficulty() *BigInt

func (*BlockHeader) GetExtraData

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

func (*BlockHeader) GetGasLimit

func (m *BlockHeader) GetGasLimit() uint64

func (*BlockHeader) GetGasUsed

func (m *BlockHeader) GetGasUsed() uint64

func (*BlockHeader) GetHash

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

func (*BlockHeader) GetLogsBloom

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

func (*BlockHeader) GetMixHash

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

func (*BlockHeader) GetNonce

func (m *BlockHeader) GetNonce() uint64

func (*BlockHeader) GetNumber

func (m *BlockHeader) GetNumber() uint64

func (*BlockHeader) GetParentHash

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

func (*BlockHeader) GetReceiptRoot

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

func (*BlockHeader) GetStateRoot

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

func (*BlockHeader) GetTimestamp

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

func (*BlockHeader) GetTransactionsRoot

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

func (*BlockHeader) GetUncleHash

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

func (*BlockHeader) ProtoMessage

func (*BlockHeader) ProtoMessage()

func (*BlockHeader) Reset

func (m *BlockHeader) Reset()

func (*BlockHeader) String

func (m *BlockHeader) String() string

func (*BlockHeader) XXX_DiscardUnknown

func (m *BlockHeader) XXX_DiscardUnknown()

func (*BlockHeader) XXX_Marshal

func (m *BlockHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockHeader) XXX_Merge

func (m *BlockHeader) XXX_Merge(src proto.Message)

func (*BlockHeader) XXX_Size

func (m *BlockHeader) XXX_Size() int

func (*BlockHeader) XXX_Unmarshal

func (m *BlockHeader) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlockRef) Descriptor

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

func (*BlockRef) GetHash

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

func (*BlockRef) GetNumber

func (m *BlockRef) GetNumber() uint64

func (*BlockRef) ProtoMessage

func (*BlockRef) ProtoMessage()

func (*BlockRef) Reset

func (m *BlockRef) Reset()

func (*BlockRef) String

func (m *BlockRef) String() string

func (*BlockRef) XXX_DiscardUnknown

func (m *BlockRef) XXX_DiscardUnknown()

func (*BlockRef) XXX_Marshal

func (m *BlockRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockRef) XXX_Merge

func (m *BlockRef) XXX_Merge(src proto.Message)

func (*BlockRef) XXX_Size

func (m *BlockRef) XXX_Size() int

func (*BlockRef) XXX_Unmarshal

func (m *BlockRef) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

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

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

func (*BlockWithRefs) GetBlock

func (m *BlockWithRefs) GetBlock() *Block

func (*BlockWithRefs) GetId

func (m *BlockWithRefs) GetId() string

func (*BlockWithRefs) GetIrreversible

func (m *BlockWithRefs) GetIrreversible() bool

func (*BlockWithRefs) GetTransactionTraceRefs

func (m *BlockWithRefs) GetTransactionTraceRefs() *TransactionRefs

func (*BlockWithRefs) ProtoMessage

func (*BlockWithRefs) ProtoMessage()

func (*BlockWithRefs) Reset

func (m *BlockWithRefs) Reset()

func (*BlockWithRefs) String

func (m *BlockWithRefs) String() string

func (*BlockWithRefs) XXX_DiscardUnknown

func (m *BlockWithRefs) XXX_DiscardUnknown()

func (*BlockWithRefs) XXX_Marshal

func (m *BlockWithRefs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockWithRefs) XXX_Merge

func (m *BlockWithRefs) XXX_Merge(src proto.Message)

func (*BlockWithRefs) XXX_Size

func (m *BlockWithRefs) XXX_Size() int

func (*BlockWithRefs) XXX_Unmarshal

func (m *BlockWithRefs) XXX_Unmarshal(b []byte) error

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=dfuse.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.
	//
	// “`
	//   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"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*Call) Descriptor

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

func (*Call) GetAddress

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

func (*Call) GetBalanceChanges

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

func (*Call) GetCallType

func (m *Call) GetCallType() CallType

func (*Call) GetCaller

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

func (*Call) GetCodeChanges

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

func (*Call) GetCreatedAccounts

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

func (*Call) GetDepth

func (m *Call) GetDepth() uint32

func (*Call) GetErc20BalanceChanges

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

func (*Call) GetErc20TransferEvents

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

func (*Call) GetExecutedCode

func (m *Call) GetExecutedCode() bool

func (*Call) GetFailureReason

func (m *Call) GetFailureReason() string

func (*Call) GetGasChanges

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

func (*Call) GetGasConsumed

func (m *Call) GetGasConsumed() uint64

func (*Call) GetGasEvents

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

func (*Call) GetGasLimit

func (m *Call) GetGasLimit() uint64

func (*Call) GetIndex

func (m *Call) GetIndex() uint32

func (*Call) GetInput

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

func (*Call) GetKeccakPreimages

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

func (*Call) GetLogs

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

func (*Call) GetNonceChanges

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

func (*Call) GetParentIndex

func (m *Call) GetParentIndex() uint32

func (*Call) GetReturnData

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

func (*Call) GetStateReverted

func (m *Call) GetStateReverted() bool

func (*Call) GetStatusFailed

func (m *Call) GetStatusFailed() bool

func (*Call) GetStatusReverted

func (m *Call) GetStatusReverted() bool

func (*Call) GetStorageChanges

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

func (*Call) GetSuicide

func (m *Call) GetSuicide() bool

func (*Call) GetValue

func (m *Call) GetValue() *BigInt

func (*Call) ProtoMessage

func (*Call) ProtoMessage()

func (*Call) Reset

func (m *Call) Reset()

func (*Call) String

func (m *Call) String() string

func (*Call) XXX_DiscardUnknown

func (m *Call) XXX_DiscardUnknown()

func (*Call) XXX_Marshal

func (m *Call) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Call) XXX_Merge

func (m *Call) XXX_Merge(src proto.Message)

func (*Call) XXX_Size

func (m *Call) XXX_Size() int

func (*Call) XXX_Unmarshal

func (m *Call) XXX_Unmarshal(b []byte) error

type CallType

type CallType int32
const (
	CallType_UNSPECIFIED CallType = 0
	CallType_CALL        CallType = 1
	CallType_CALLCODE    CallType = 2
	CallType_DELEGATE    CallType = 3
	CallType_STATIC      CallType = 4
	CallType_CREATE      CallType = 5
)

func (CallType) EnumDescriptor

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

func (CallType) String

func (x CallType) String() string

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CodeChange) Descriptor

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

func (*CodeChange) GetAddress

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

func (*CodeChange) GetNewCode

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

func (*CodeChange) GetNewHash

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

func (*CodeChange) GetOldCode

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

func (*CodeChange) GetOldHash

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

func (*CodeChange) ProtoMessage

func (*CodeChange) ProtoMessage()

func (*CodeChange) Reset

func (m *CodeChange) Reset()

func (*CodeChange) String

func (m *CodeChange) String() string

func (*CodeChange) XXX_DiscardUnknown

func (m *CodeChange) XXX_DiscardUnknown()

func (*CodeChange) XXX_Marshal

func (m *CodeChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CodeChange) XXX_Merge

func (m *CodeChange) XXX_Merge(src proto.Message)

func (*CodeChange) XXX_Size

func (m *CodeChange) XXX_Size() int

func (*CodeChange) XXX_Unmarshal

func (m *CodeChange) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ERC20BalanceChange) Descriptor

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

func (*ERC20BalanceChange) GetHolderAddress

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

func (*ERC20BalanceChange) GetNewBalance

func (m *ERC20BalanceChange) GetNewBalance() *BigInt

func (*ERC20BalanceChange) GetOldBalance

func (m *ERC20BalanceChange) GetOldBalance() *BigInt

func (*ERC20BalanceChange) ProtoMessage

func (*ERC20BalanceChange) ProtoMessage()

func (*ERC20BalanceChange) Reset

func (m *ERC20BalanceChange) Reset()

func (*ERC20BalanceChange) String

func (m *ERC20BalanceChange) String() string

func (*ERC20BalanceChange) XXX_DiscardUnknown

func (m *ERC20BalanceChange) XXX_DiscardUnknown()

func (*ERC20BalanceChange) XXX_Marshal

func (m *ERC20BalanceChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ERC20BalanceChange) XXX_Merge

func (m *ERC20BalanceChange) XXX_Merge(src proto.Message)

func (*ERC20BalanceChange) XXX_Size

func (m *ERC20BalanceChange) XXX_Size() int

func (*ERC20BalanceChange) XXX_Unmarshal

func (m *ERC20BalanceChange) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ERC20TransferEvent) Descriptor

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

func (*ERC20TransferEvent) GetAmount

func (m *ERC20TransferEvent) GetAmount() *BigInt

func (*ERC20TransferEvent) GetFrom

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

func (*ERC20TransferEvent) GetTo

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

func (*ERC20TransferEvent) ProtoMessage

func (*ERC20TransferEvent) ProtoMessage()

func (*ERC20TransferEvent) Reset

func (m *ERC20TransferEvent) Reset()

func (*ERC20TransferEvent) String

func (m *ERC20TransferEvent) String() string

func (*ERC20TransferEvent) XXX_DiscardUnknown

func (m *ERC20TransferEvent) XXX_DiscardUnknown()

func (*ERC20TransferEvent) XXX_Marshal

func (m *ERC20TransferEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ERC20TransferEvent) XXX_Merge

func (m *ERC20TransferEvent) XXX_Merge(src proto.Message)

func (*ERC20TransferEvent) XXX_Size

func (m *ERC20TransferEvent) XXX_Size() int

func (*ERC20TransferEvent) XXX_Unmarshal

func (m *ERC20TransferEvent) XXX_Unmarshal(b []byte) error

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=dfuse.ethereum.codec.v1.GasChange_Reason" json:"reason,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

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

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

func (*GasChange) GetNewValue

func (m *GasChange) GetNewValue() uint64

func (*GasChange) GetOldValue

func (m *GasChange) GetOldValue() uint64

func (*GasChange) GetReason

func (m *GasChange) GetReason() GasChange_Reason

func (*GasChange) ProtoMessage

func (*GasChange) ProtoMessage()

func (*GasChange) Reset

func (m *GasChange) Reset()

func (*GasChange) String

func (m *GasChange) String() string

func (*GasChange) XXX_DiscardUnknown

func (m *GasChange) XXX_DiscardUnknown()

func (*GasChange) XXX_Marshal

func (m *GasChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GasChange) XXX_Merge

func (m *GasChange) XXX_Merge(src proto.Message)

func (*GasChange) XXX_Size

func (m *GasChange) XXX_Size() int

func (*GasChange) XXX_Unmarshal

func (m *GasChange) XXX_Unmarshal(b []byte) error

type GasChange_Reason

type GasChange_Reason int32

Obtain all gas change reasons under deep mind repository:

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
)

func (GasChange_Reason) EnumDescriptor

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

func (GasChange_Reason) String

func (x GasChange_Reason) String() string

type GasEvent

type GasEvent struct {
	Id                   GasEvent_Id `protobuf:"varint,1,opt,name=id,proto3,enum=dfuse.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"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

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

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

func (*GasEvent) GetGas

func (m *GasEvent) GetGas() uint64

func (*GasEvent) GetId

func (m *GasEvent) GetId() GasEvent_Id

func (*GasEvent) GetLinkedCallIndex

func (m *GasEvent) GetLinkedCallIndex() uint64

func (*GasEvent) ProtoMessage

func (*GasEvent) ProtoMessage()

func (*GasEvent) Reset

func (m *GasEvent) Reset()

func (*GasEvent) String

func (m *GasEvent) String() string

func (*GasEvent) XXX_DiscardUnknown

func (m *GasEvent) XXX_DiscardUnknown()

func (*GasEvent) XXX_Marshal

func (m *GasEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GasEvent) XXX_Merge

func (m *GasEvent) XXX_Merge(src proto.Message)

func (*GasEvent) XXX_Size

func (m *GasEvent) XXX_Size() int

func (*GasEvent) XXX_Unmarshal

func (m *GasEvent) XXX_Unmarshal(b []byte) error

type GasEvent_Id

type GasEvent_Id int32

Obtain all gas change reasons under deep mind repository:

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) EnumDescriptor

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

func (GasEvent_Id) String

func (x GasEvent_Id) String() string

type Log

type Log struct {
	// consensus
	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"`
	// supplement
	Index                uint32   `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	BlockIndex           uint32   `protobuf:"varint,6,opt,name=blockIndex,proto3" json:"blockIndex,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Log) Descriptor

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

func (*Log) GetAddress

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

func (*Log) GetBlockIndex

func (m *Log) GetBlockIndex() uint32

func (*Log) GetData

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

func (*Log) GetIndex

func (m *Log) GetIndex() uint32

func (*Log) GetTopics

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

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) Reset

func (m *Log) Reset()

func (*Log) String

func (m *Log) String() string

func (*Log) XXX_DiscardUnknown

func (m *Log) XXX_DiscardUnknown()

func (*Log) XXX_Marshal

func (m *Log) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Log) XXX_Merge

func (m *Log) XXX_Merge(src proto.Message)

func (*Log) XXX_Size

func (m *Log) XXX_Size() int

func (*Log) XXX_Unmarshal

func (m *Log) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NonceChange) Descriptor

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

func (*NonceChange) GetAddress

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

func (*NonceChange) GetNewValue

func (m *NonceChange) GetNewValue() uint64

func (*NonceChange) GetOldValue

func (m *NonceChange) GetOldValue() uint64

func (*NonceChange) ProtoMessage

func (*NonceChange) ProtoMessage()

func (*NonceChange) Reset

func (m *NonceChange) Reset()

func (*NonceChange) String

func (m *NonceChange) String() string

func (*NonceChange) XXX_DiscardUnknown

func (m *NonceChange) XXX_DiscardUnknown()

func (*NonceChange) XXX_Marshal

func (m *NonceChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NonceChange) XXX_Merge

func (m *NonceChange) XXX_Merge(src proto.Message)

func (*NonceChange) XXX_Size

func (m *NonceChange) XXX_Size() int

func (*NonceChange) XXX_Unmarshal

func (m *NonceChange) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StorageChange) Descriptor

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

func (*StorageChange) GetAddress

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

func (*StorageChange) GetKey

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

func (*StorageChange) GetNewValue

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

func (*StorageChange) GetOldValue

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

func (*StorageChange) ProtoMessage

func (*StorageChange) ProtoMessage()

func (*StorageChange) Reset

func (m *StorageChange) Reset()

func (*StorageChange) String

func (m *StorageChange) String() string

func (*StorageChange) XXX_DiscardUnknown

func (m *StorageChange) XXX_DiscardUnknown()

func (*StorageChange) XXX_Marshal

func (m *StorageChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StorageChange) XXX_Merge

func (m *StorageChange) XXX_Merge(src proto.Message)

func (*StorageChange) XXX_Size

func (m *StorageChange) XXX_Size() int

func (*StorageChange) XXX_Unmarshal

func (m *StorageChange) XXX_Unmarshal(b []byte) error

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"`
	Input    []byte  `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"`
	V        []byte  `protobuf:"bytes,7,opt,name=v,proto3" json:"v,omitempty"`
	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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Transaction not yet in block

func (*Transaction) Descriptor

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

func (*Transaction) GetFrom

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

func (*Transaction) GetGasLimit

func (m *Transaction) GetGasLimit() uint64

func (*Transaction) GetGasPrice

func (m *Transaction) GetGasPrice() *BigInt

func (*Transaction) GetHash

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

func (*Transaction) GetInput

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

func (*Transaction) GetNonce

func (m *Transaction) GetNonce() uint64

func (*Transaction) GetR

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

func (*Transaction) GetS

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

func (*Transaction) GetTo

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

func (*Transaction) GetV

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

func (*Transaction) GetValue

func (m *Transaction) GetValue() *BigInt

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) XXX_DiscardUnknown

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal

func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Transaction) XXX_Merge

func (m *Transaction) XXX_Merge(src proto.Message)

func (*Transaction) XXX_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

func (m *Transaction) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TransactionReceipt) Descriptor

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

func (*TransactionReceipt) GetCumulativeGasUsed

func (m *TransactionReceipt) GetCumulativeGasUsed() uint64

func (*TransactionReceipt) GetLogs

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

func (*TransactionReceipt) GetLogsBloom

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

func (*TransactionReceipt) GetStateRoot

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

func (*TransactionReceipt) ProtoMessage

func (*TransactionReceipt) ProtoMessage()

func (*TransactionReceipt) Reset

func (m *TransactionReceipt) Reset()

func (*TransactionReceipt) String

func (m *TransactionReceipt) String() string

func (*TransactionReceipt) XXX_DiscardUnknown

func (m *TransactionReceipt) XXX_DiscardUnknown()

func (*TransactionReceipt) XXX_Marshal

func (m *TransactionReceipt) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionReceipt) XXX_Merge

func (m *TransactionReceipt) XXX_Merge(src proto.Message)

func (*TransactionReceipt) XXX_Size

func (m *TransactionReceipt) XXX_Size() int

func (*TransactionReceipt) XXX_Unmarshal

func (m *TransactionReceipt) XXX_Unmarshal(b []byte) error

type TransactionRefs

type TransactionRefs struct {
	Hashes               [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TransactionRefs) Descriptor

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

func (*TransactionRefs) GetHashes

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

func (*TransactionRefs) ProtoMessage

func (*TransactionRefs) ProtoMessage()

func (*TransactionRefs) Reset

func (m *TransactionRefs) Reset()

func (*TransactionRefs) String

func (m *TransactionRefs) String() string

func (*TransactionRefs) XXX_DiscardUnknown

func (m *TransactionRefs) XXX_DiscardUnknown()

func (*TransactionRefs) XXX_Marshal

func (m *TransactionRefs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionRefs) XXX_Merge

func (m *TransactionRefs) XXX_Merge(src proto.Message)

func (*TransactionRefs) XXX_Size

func (m *TransactionRefs) XXX_Size() int

func (*TransactionRefs) XXX_Unmarshal

func (m *TransactionRefs) XXX_Unmarshal(b []byte) error

type TransactionState

type TransactionState struct {
	PreviousState        TransactionState_State      `` /* 153-byte string literal not displayed */
	CurrentState         TransactionState_State      `` /* 150-byte string literal not displayed */
	Transition           TransactionState_Transition `` /* 132-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"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

func (*TransactionState) Descriptor

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

func (*TransactionState) GetBlockHeader

func (m *TransactionState) GetBlockHeader() *BlockHeader

func (*TransactionState) GetConfirmation

func (m *TransactionState) GetConfirmation() uint64

func (*TransactionState) GetCurrentState

func (m *TransactionState) GetCurrentState() TransactionState_State

func (*TransactionState) GetHash

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

func (*TransactionState) GetHeadBlockHeader

func (m *TransactionState) GetHeadBlockHeader() *BlockHeader

func (*TransactionState) GetPendingFirstSeen

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

func (*TransactionState) GetPendingLastSeen

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

func (*TransactionState) GetPreviousState

func (m *TransactionState) GetPreviousState() TransactionState_State

func (*TransactionState) GetReplacedByHash

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

func (*TransactionState) GetTransactionTraces

func (m *TransactionState) GetTransactionTraces() *TransactionTrace

func (*TransactionState) GetTransition

func (m *TransactionState) GetTransition() TransactionState_Transition

func (*TransactionState) GetTrx

func (m *TransactionState) GetTrx() *Transaction

func (*TransactionState) ProtoMessage

func (*TransactionState) ProtoMessage()

func (*TransactionState) Reset

func (m *TransactionState) Reset()

func (*TransactionState) String

func (m *TransactionState) String() string

func (*TransactionState) XXX_DiscardUnknown

func (m *TransactionState) XXX_DiscardUnknown()

func (*TransactionState) XXX_Marshal

func (m *TransactionState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionState) XXX_Merge

func (m *TransactionState) XXX_Merge(src proto.Message)

func (*TransactionState) XXX_Size

func (m *TransactionState) XXX_Size() int

func (*TransactionState) XXX_Unmarshal

func (m *TransactionState) XXX_Unmarshal(b []byte) error

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) EnumDescriptor

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

func (TransactionState_State) String

func (x TransactionState_State) String() string

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
)

func (TransactionState_Transition) EnumDescriptor

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

func (TransactionState_Transition) String

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"`
	Input    []byte  `protobuf:"bytes,6,opt,name=input,proto3" json:"input,omitempty"`
	V        []byte  `protobuf:"bytes,7,opt,name=v,proto3" json:"v,omitempty"`
	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=dfuse.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"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*TransactionTrace) Descriptor

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

func (*TransactionTrace) GetCalls

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

func (*TransactionTrace) GetFrom

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

func (*TransactionTrace) GetGasLimit

func (m *TransactionTrace) GetGasLimit() uint64

func (*TransactionTrace) GetGasPrice

func (m *TransactionTrace) GetGasPrice() *BigInt

func (*TransactionTrace) GetGasUsed

func (m *TransactionTrace) GetGasUsed() uint64

func (*TransactionTrace) GetHash

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

func (*TransactionTrace) GetIndex

func (m *TransactionTrace) GetIndex() uint32

func (*TransactionTrace) GetInput

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

func (*TransactionTrace) GetNonce

func (m *TransactionTrace) GetNonce() uint64

func (*TransactionTrace) GetPublicKey

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

func (*TransactionTrace) GetR

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

func (*TransactionTrace) GetReceipt

func (m *TransactionTrace) GetReceipt() *TransactionReceipt

func (*TransactionTrace) GetReturnData

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

func (*TransactionTrace) GetS

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

func (*TransactionTrace) GetStatus

func (*TransactionTrace) GetTo

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

func (*TransactionTrace) GetV

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

func (*TransactionTrace) GetValue

func (m *TransactionTrace) GetValue() *BigInt

func (*TransactionTrace) ProtoMessage

func (*TransactionTrace) ProtoMessage()

func (*TransactionTrace) Reset

func (m *TransactionTrace) Reset()

func (*TransactionTrace) String

func (m *TransactionTrace) String() string

func (*TransactionTrace) XXX_DiscardUnknown

func (m *TransactionTrace) XXX_DiscardUnknown()

func (*TransactionTrace) XXX_Marshal

func (m *TransactionTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionTrace) XXX_Merge

func (m *TransactionTrace) XXX_Merge(src proto.Message)

func (*TransactionTrace) XXX_Size

func (m *TransactionTrace) XXX_Size() int

func (*TransactionTrace) XXX_Unmarshal

func (m *TransactionTrace) XXX_Unmarshal(b []byte) error

type TransactionTraceStatus

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

func (TransactionTraceStatus) EnumDescriptor

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

func (TransactionTraceStatus) String

func (x TransactionTraceStatus) String() string

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"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

TransactionTraceWithBlockRef

func (*TransactionTraceWithBlockRef) Descriptor

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

func (*TransactionTraceWithBlockRef) GetBlockRef

func (m *TransactionTraceWithBlockRef) GetBlockRef() *BlockRef

func (*TransactionTraceWithBlockRef) GetTrace

func (*TransactionTraceWithBlockRef) ProtoMessage

func (*TransactionTraceWithBlockRef) ProtoMessage()

func (*TransactionTraceWithBlockRef) Reset

func (m *TransactionTraceWithBlockRef) Reset()

func (*TransactionTraceWithBlockRef) String

func (*TransactionTraceWithBlockRef) XXX_DiscardUnknown

func (m *TransactionTraceWithBlockRef) XXX_DiscardUnknown()

func (*TransactionTraceWithBlockRef) XXX_Marshal

func (m *TransactionTraceWithBlockRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionTraceWithBlockRef) XXX_Merge

func (m *TransactionTraceWithBlockRef) XXX_Merge(src proto.Message)

func (*TransactionTraceWithBlockRef) XXX_Size

func (m *TransactionTraceWithBlockRef) XXX_Size() int

func (*TransactionTraceWithBlockRef) XXX_Unmarshal

func (m *TransactionTraceWithBlockRef) XXX_Unmarshal(b []byte) error

type UnclesHeaders

type UnclesHeaders struct {
	Uncles               []*BlockHeader `protobuf:"bytes,1,rep,name=uncles,proto3" json:"uncles,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*UnclesHeaders) Descriptor

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

func (*UnclesHeaders) GetUncles

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

func (*UnclesHeaders) ProtoMessage

func (*UnclesHeaders) ProtoMessage()

func (*UnclesHeaders) Reset

func (m *UnclesHeaders) Reset()

func (*UnclesHeaders) String

func (m *UnclesHeaders) String() string

func (*UnclesHeaders) XXX_DiscardUnknown

func (m *UnclesHeaders) XXX_DiscardUnknown()

func (*UnclesHeaders) XXX_Marshal

func (m *UnclesHeaders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UnclesHeaders) XXX_Merge

func (m *UnclesHeaders) XXX_Merge(src proto.Message)

func (*UnclesHeaders) XXX_Size

func (m *UnclesHeaders) XXX_Size() int

func (*UnclesHeaders) XXX_Unmarshal

func (m *UnclesHeaders) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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