Documentation ¶
Overview ¶
Package types provides Simple types that allow for a layer of abstraction over the internal types. This makes exporting easier.
Index ¶
- Constants
- Variables
- func AsSliceOfMaps[T MappedType](apps []SimpleAppearance, reversed bool) ([]map[SimpleAppearance]*T, int, error)
- type Ledgerer
- type MappedType
- type Model
- type Modeler
- type RawAppearance
- type RawBlock
- type RawChain
- type RawChunkRecord
- type RawData
- type RawFunction
- type RawLog
- type RawLogFilter
- type RawManifest
- type RawModeler
- type RawMonitor
- type RawName
- type RawNamedBlock
- type RawParameter
- type RawReceipt
- type RawResult
- type RawSlurp
- type RawState
- type RawStatement
- type RawToken
- type RawTrace
- type RawTraceAction
- type RawTraceFilter
- type RawTraceResult
- type RawTransaction
- type RawWithdrawal
- type ReconType
- type Rewards
- type SimpleAppearance
- func (s *SimpleAppearance) Date() string
- func (s *SimpleAppearance) GetKey() string
- func (s *SimpleAppearance) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleAppearance) Orig() string
- func (s *SimpleAppearance) Raw() *RawAppearance
- func (s *SimpleAppearance) SetRaw(raw *RawAppearance)
- type SimpleBlock
- func (s *SimpleBlock[Tx]) CacheId() string
- func (s *SimpleBlock[Tx]) CacheLocation() (directory string, extension string)
- func (s *SimpleBlock[Tx]) CacheName() string
- func (s *SimpleBlock[Tx]) Date() string
- func (s *SimpleBlock[string]) Dup(target *SimpleBlock[SimpleTransaction])
- func (s *SimpleBlock[Tx]) FinishUnmarshal()
- func (s *SimpleBlock[Tx]) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleBlock[Tx]) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleBlock[Tx]) Raw() *RawBlock
- func (s *SimpleBlock[Tx]) SetRaw(raw *RawBlock)
- func (s *SimpleBlock[string]) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleChain
- type SimpleChunkRecord
- type SimpleFunction
- func (s *SimpleFunction) AbiEventFromFunction() (ethMethod *abi.Event, err error)
- func (s *SimpleFunction) AbiMethodFromFunction() (ethMethod *abi.Method, err error)
- func (s *SimpleFunction) Clone() *SimpleFunction
- func (s *SimpleFunction) FinishUnmarshal()
- func (s *SimpleFunction) GetAbiEvent() (abiEvent *abi.Event, err error)
- func (s *SimpleFunction) GetAbiMethod() (abiMethod *abi.Method, err error)
- func (s *SimpleFunction) IsMethod() bool
- func (s *SimpleFunction) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleFunction) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleFunction) Normalize()
- func (s *SimpleFunction) Pack(callArguments []any) (packed []byte, err error)
- func (s *SimpleFunction) Raw() *RawFunction
- func (s *SimpleFunction) SetAbiEvent(event *abi.Event)
- func (s *SimpleFunction) SetAbiMethod(method *abi.Method)
- func (s *SimpleFunction) SetRaw(raw *RawFunction)
- func (s *SimpleFunction) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleLog
- func (s *SimpleLog) Date() string
- func (s *SimpleLog) FinishUnmarshal()
- func (s *SimpleLog) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleLog) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleLog) Raw() *RawLog
- func (s *SimpleLog) SetRaw(raw *RawLog)
- func (s *SimpleLog) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleLogFilter
- type SimpleLogGroup
- func (s *SimpleLogGroup) CacheId() string
- func (s *SimpleLogGroup) CacheLocation() (directory string, extension string)
- func (s *SimpleLogGroup) CacheName() string
- func (s *SimpleLogGroup) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleLogGroup) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleManifest
- type SimpleMessage
- type SimpleMonitor
- type SimpleName
- type SimpleNamedBlock
- type SimpleParameter
- func (s *SimpleParameter) DisplayName(index int) string
- func (s *SimpleParameter) FinishUnmarshal()
- func (s *SimpleParameter) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleParameter) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleParameter) Raw() *RawParameter
- func (s *SimpleParameter) SetRaw(raw *RawParameter)
- func (s *SimpleParameter) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleReceipt
- func (s *SimpleReceipt) FinishUnmarshal()
- func (s *SimpleReceipt) IsDefault() bool
- func (s *SimpleReceipt) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleReceipt) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleReceipt) Raw() *RawReceipt
- func (s *SimpleReceipt) SetRaw(raw *RawReceipt)
- func (s *SimpleReceipt) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleReceiptGroup
- func (s *SimpleReceiptGroup) CacheId() string
- func (s *SimpleReceiptGroup) CacheLocation() (directory string, extension string)
- func (s *SimpleReceiptGroup) CacheName() string
- func (s *SimpleReceiptGroup) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleReceiptGroup) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleResult
- func (s *SimpleResult) CacheId() string
- func (s *SimpleResult) CacheLocation() (directory string, extension string)
- func (s *SimpleResult) CacheName() string
- func (s *SimpleResult) Date() string
- func (s *SimpleResult) FinishUnmarshal()
- func (s *SimpleResult) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleResult) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleResult) Raw() *RawResult
- func (s *SimpleResult) SetRaw(raw *RawResult)
- func (s *SimpleResult) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleSlurp
- func (s *SimpleSlurp) Date() string
- func (s *SimpleSlurp) FinishUnmarshal()
- func (s *SimpleSlurp) GasCost() base.Gas
- func (s *SimpleSlurp) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleSlurp) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleSlurp) Raw() *RawSlurp
- func (s *SimpleSlurp) SetRaw(raw *RawSlurp)
- func (s *SimpleSlurp) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleSlurpGroup
- func (s *SimpleSlurpGroup) CacheId() string
- func (s *SimpleSlurpGroup) CacheLocation() (directory string, extension string)
- func (s *SimpleSlurpGroup) CacheName() string
- func (s *SimpleSlurpGroup) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleSlurpGroup) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleState
- func (s *SimpleState) CacheId() string
- func (s *SimpleState) CacheLocation() (directory string, extension string)
- func (s *SimpleState) CacheName() string
- func (s *SimpleState) Date() string
- func (s *SimpleState) FinishUnmarshal()
- func (s *SimpleState) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleState) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleState) Raw() *RawState
- func (s *SimpleState) SetRaw(raw *RawState)
- func (s *SimpleState) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleStatement
- func (s *SimpleStatement) AmountNet() *big.Int
- func (s *SimpleStatement) BegBalDiff() *big.Int
- func (s *SimpleStatement) CorrectForNullTransfer(tx *SimpleTransaction) bool
- func (s *SimpleStatement) CorrectForSomethingElse(tx *SimpleTransaction) bool
- func (s *SimpleStatement) Date() string
- func (s *SimpleStatement) DebugStatement(ctx Ledgerer)
- func (s *SimpleStatement) EndBalCalc() *big.Int
- func (s *SimpleStatement) EndBalDiff() *big.Int
- func (s *SimpleStatement) FinishUnmarshal()
- func (s *SimpleStatement) IsEth() bool
- func (s *SimpleStatement) IsMaterial() bool
- func (s *SimpleStatement) IsStableCoin() bool
- func (s *SimpleStatement) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleStatement) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleStatement) Raw() *RawStatement
- func (s *SimpleStatement) Reconciled() bool
- func (s *SimpleStatement) SetRaw(raw *RawStatement)
- func (s *SimpleStatement) TotalIn() *big.Int
- func (s *SimpleStatement) TotalOut() *big.Int
- func (s *SimpleStatement) TotalOutLessGas() *big.Int
- func (s *SimpleStatement) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleStatementGroup
- func (s *SimpleStatementGroup) CacheId() string
- func (s *SimpleStatementGroup) CacheLocation() (directory string, extension string)
- func (s *SimpleStatementGroup) CacheName() string
- func (s *SimpleStatementGroup) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleStatementGroup) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleToken
- type SimpleTrace
- func (s *SimpleTrace) Date() string
- func (s *SimpleTrace) FinishUnmarshal()
- func (s *SimpleTrace) GetSortString() string
- func (s *SimpleTrace) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleTrace) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleTrace) Raw() *RawTrace
- func (s *SimpleTrace) SetRaw(raw *RawTrace)
- func (s *SimpleTrace) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleTraceAction
- func (s *SimpleTraceAction) FinishUnmarshal()
- func (s *SimpleTraceAction) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleTraceAction) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleTraceAction) Raw() *RawTraceAction
- func (s *SimpleTraceAction) SetRaw(raw *RawTraceAction)
- func (s *SimpleTraceAction) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleTraceFilter
- func (s *SimpleTraceFilter) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleTraceFilter) ParseBangString(chain, filter string) (ret map[string]interface{}, br base.BlockRange)
- func (s *SimpleTraceFilter) PassesBasic(trace *SimpleTrace, nTested uint64, nPassed uint64) (bool, string)
- func (s *SimpleTraceFilter) Raw() *RawTraceFilter
- func (s *SimpleTraceFilter) SetRaw(raw *RawTraceFilter)
- type SimpleTraceGroup
- func (s *SimpleTraceGroup) CacheId() string
- func (s *SimpleTraceGroup) CacheLocation() (directory string, extension string)
- func (s *SimpleTraceGroup) CacheName() string
- func (s *SimpleTraceGroup) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleTraceGroup) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleTraceResult
- func (s *SimpleTraceResult) FinishUnmarshal()
- func (s *SimpleTraceResult) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleTraceResult) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleTraceResult) Raw() *RawTraceResult
- func (s *SimpleTraceResult) SetRaw(raw *RawTraceResult)
- func (s *SimpleTraceResult) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleTransaction
- func (s *SimpleTransaction) CacheId() string
- func (s *SimpleTransaction) CacheLocation() (directory string, extension string)
- func (s *SimpleTransaction) CacheName() string
- func (s *SimpleTransaction) Date() string
- func (s *SimpleTransaction) FinishUnmarshal()
- func (s *SimpleTransaction) GasCost() base.Gas
- func (s *SimpleTransaction) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleTransaction) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleTransaction) Raw() *RawTransaction
- func (s *SimpleTransaction) SetRaw(raw *RawTransaction)
- func (s *SimpleTransaction) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleWithdrawal
- func (s *SimpleWithdrawal) Date() string
- func (s *SimpleWithdrawal) FinishUnmarshal()
- func (s *SimpleWithdrawal) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleWithdrawal) Model(chain, format string, verbose bool, extraOptions map[string]any) Model
- func (s *SimpleWithdrawal) Raw() *RawWithdrawal
- func (s *SimpleWithdrawal) SetRaw(raw *RawWithdrawal)
- func (s *SimpleWithdrawal) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type SimpleWithdrawalGroup
- func (s *SimpleWithdrawalGroup) CacheId() string
- func (s *SimpleWithdrawalGroup) CacheLocation() (directory string, extension string)
- func (s *SimpleWithdrawalGroup) CacheName() string
- func (s *SimpleWithdrawalGroup) MarshalCache(writer io.Writer) (err error)
- func (s *SimpleWithdrawalGroup) UnmarshalCache(version uint64, reader io.Reader) (err error)
- type StorageSlot
- type TokenType
Constants ¶
const ( // below are stored in cache, do not change BlockReward base.Txnum = 99999 // the largest five-digit decimal number UncleReward base.Txnum = 99998 MisconfigReward base.Txnum = 99997 ExternalReward base.Txnum = 99996 Withdrawal base.Txnum = 99995 // above are stored in cache, do not change NephewReward base.Txnum = 99994 TxFeeReward base.Txnum = 99993 )
Variables ¶
var AppMapSize int = 20
TODO: Do we want this to be configurable? Maybe, maybe not
Functions ¶
func AsSliceOfMaps ¶
func AsSliceOfMaps[T MappedType](apps []SimpleAppearance, reversed bool) ([]map[SimpleAppearance]*T, int, error)
Types ¶
type MappedType ¶
type MappedType interface { SimpleTransaction | SimpleBlock[string] | SimpleBlock[SimpleTransaction] | SimpleAppearance | SimpleWithdrawal | SimpleResult | SimpleToken | bool }
type RawAppearance ¶
type RawBlock ¶
type RawBlock struct { Author string `json:"author"` BaseFeePerGas string `json:"baseFeePerGas"` BlockNumber string `json:"number"` Difficulty string `json:"difficulty"` ExtraData string `json:"extraData"` GasLimit string `json:"gasLimit"` GasUsed string `json:"gasUsed"` Hash string `json:"hash"` LogsBloom string `json:"logsBloom"` Miner string `json:"miner"` MixHash string `json:"mixHash"` Nonce string `json:"nonce"` ParentHash string `json:"parentHash"` ReceiptsRoot string `json:"receiptsRoot"` Sha3Uncles string `json:"sha3Uncles"` Size string `json:"size"` StateRoot string `json:"stateRoot"` Timestamp string `json:"timestamp"` TotalDifficulty string `json:"totalDifficulty"` Transactions []any `json:"transactions"` TransactionsRoot string `json:"transactionsRoot"` Uncles []string `json:"uncles"` Withdrawals []RawWithdrawal `json:"withdrawals"` }
type RawChunkRecord ¶
type RawData ¶
type RawData interface { RawBlock | RawTransaction | RawReceipt | RawLog | RawTrace | RawTraceAction | RawTraceResult | RawFunction | RawParameter | RawAppearance | RawModeler }
type RawFunction ¶
type RawFunction struct { Anonymous string `json:"anonymous"` Constant string `json:"constant"` Encoding string `json:"encoding"` Inputs string `json:"inputs"` Message string `json:"message"` Name string `json:"name"` Outputs string `json:"outputs"` Signature string `json:"signature"` StateMutability string `json:"stateMutability"` FunctionType string `json:"type"` }
type RawLog ¶
type RawLog struct { Address string `json:"address"` BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` Data string `json:"data"` LogIndex string `json:"logIndex"` Topics []string `json:"topics"` TransactionHash string `json:"transactionHash"` TransactionIndex string `json:"transactionIndex"` }
type RawLogFilter ¶
type RawManifest ¶
type RawModeler ¶
type RawModeler interface{}
type RawMonitor ¶
type RawMonitor interface { }
type RawName ¶
type RawName struct { Address string `json:"address"` Decimals string `json:"decimals"` Deleted string `json:"deleted"` IsContract string `json:"isContract"` IsCustom string `json:"isCustom"` IsErc20 string `json:"isErc20"` IsErc721 string `json:"isErc721"` IsPrefund string `json:"isPrefund"` Name string `json:"name"` Petname string `json:"petname"` Source string `json:"source"` Symbol string `json:"symbol"` Tags string `json:"tags"` }
type RawNamedBlock ¶
type RawParameter ¶
type RawReceipt ¶
type RawReceipt struct { BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` ContractAddress string `json:"contractAddress"` CumulativeGasUsed string `json:"cumulativeGasUsed"` EffectiveGasPrice string `json:"effectiveGasPrice"` From string `json:"from"` GasUsed string `json:"gasUsed"` Logs []RawLog `json:"logs"` LogsBloom string `json:"logsBloom"` Status string `json:"status"` To string `json:"to"` TransactionHash string `json:"transactionHash"` TransactionIndex string `json:"transactionIndex"` }
func (*RawReceipt) RawToSimple ¶
func (r *RawReceipt) RawToSimple(vals map[string]any) (SimpleReceipt, error)
type RawSlurp ¶
type RawSlurp struct { BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` ContractAddress string `json:"contractAddress"` CumulativeGasUsed string `json:"cumulativeGasUsed"` Ether string `json:"ether"` From string `json:"from"` FunctionName string `json:"functionName"` Gas string `json:"gas"` GasPrice string `json:"gasPrice"` GasUsed string `json:"gasUsed"` HasToken string `json:"hasToken"` Hash string `json:"hash"` Input string `json:"input"` MethodId string `json:"methodId"` Nonce string `json:"nonce"` Timestamp string `json:"timestamp"` To string `json:"to"` TransactionIndex string `json:"transactionIndex"` TxReceiptStatus string `json:"txReceiptStatus"` ValidatorIndex string `json:"validatorIndex"` Value string `json:"value"` WithdrawalIndex string `json:"withdrawalIndex"` // EXISTING_CODE Address string `json:"address"` Amount string `json:"amount"` }
type RawState ¶
type RawState struct { AccountType string `json:"accountType"` Address string `json:"address"` Balance string `json:"balance"` BlockNumber string `json:"blockNumber"` Code string `json:"code"` Deployed string `json:"deployed"` Nonce string `json:"nonce"` Proxy string `json:"proxy"` Timestamp string `json:"timestamp"` }
type RawStatement ¶
type RawStatement struct { AccountedFor string `json:"accountedFor"` AmountIn string `json:"amountIn"` AmountOut string `json:"amountOut"` AssetAddr string `json:"assetAddr"` AssetSymbol string `json:"assetSymbol"` BegBal string `json:"begBal"` BlockNumber string `json:"blockNumber"` CorrectingIn string `json:"correctingIn"` CorrectingOut string `json:"correctingOut"` CorrectingReason string `json:"correctingReason"` Decimals string `json:"decimals"` EndBal string `json:"endBal"` GasOut string `json:"gasOut"` InternalIn string `json:"internalIn"` InternalOut string `json:"internalOut"` LogIndex string `json:"logIndex"` MinerBaseRewardIn string `json:"minerBaseRewardIn"` MinerNephewRewardIn string `json:"minerNephewRewardIn"` MinerTxFeeIn string `json:"minerTxFeeIn"` MinerUncleRewardIn string `json:"minerUncleRewardIn"` PrefundIn string `json:"prefundIn"` PrevBal string `json:"prevBal"` PriceSource string `json:"priceSource"` Recipient string `json:"recipient"` SelfDestructIn string `json:"selfDestructIn"` SelfDestructOut string `json:"selfDestructOut"` Sender string `json:"sender"` SpotPrice string `json:"spotPrice"` Timestamp string `json:"timestamp"` TransactionHash string `json:"transactionHash"` TransactionIndex string `json:"transactionIndex"` }
type RawToken ¶
type RawToken struct { Address string `json:"address"` Balance string `json:"balance"` BlockNumber string `json:"blockNumber"` Decimals string `json:"decimals"` Diff string `json:"diff"` Holder string `json:"holder"` Name string `json:"name"` PriorBalance string `json:"priorBalance"` Symbol string `json:"symbol"` Timestamp string `json:"timestamp"` TotalSupply string `json:"totalSupply"` TransactionIndex string `json:"transactionIndex"` TokenType string `json:"type"` }
type RawTrace ¶
type RawTrace struct { Action RawTraceAction `json:"action"` BlockHash string `json:"blockHash"` BlockNumber base.Blknum `json:"blockNumber"` Error string `json:"error"` Result *RawTraceResult `json:"result"` Subtraces uint64 `json:"subtraces"` TraceAddress []uint64 `json:"traceAddress"` TransactionHash string `json:"transactionHash"` TransactionIndex uint64 `json:"transactionPosition"` TraceType string `json:"type"` }
type RawTraceAction ¶
type RawTraceAction struct { Address string `json:"address"` Author string `json:"author"` Balance string `json:"balance"` CallType string `json:"callType"` From string `json:"from"` Gas string `json:"gas"` Init string `json:"init"` Input string `json:"input"` RefundAddress string `json:"refundAddress"` RewardType string `json:"rewardType"` SelfDestructed string `json:"selfDestructed"` To string `json:"to"` Value string `json:"value"` }
type RawTraceFilter ¶
type RawTraceResult ¶
type RawTransaction ¶
type RawTransaction struct { AccessList []StorageSlot `json:"accessList"` BlockHash string `json:"blockHash"` BlockNumber string `json:"blockNumber"` ChainId string `json:"chainId"` From string `json:"from"` Gas string `json:"gas"` GasPrice string `json:"gasPrice"` Hash string `json:"hash"` Input string `json:"input"` MaxFeePerGas string `json:"maxFeePerGas"` MaxPriorityFeePerGas string `json:"maxPriorityFeePerGas"` Nonce string `json:"nonce"` To string `json:"to"` TransactionIndex string `json:"transactionIndex"` TransactionType string `json:"type"` Value string `json:"value"` }
func NewRawTransactionFromMap ¶
func NewRawTransactionFromMap(input map[string]any) (r *RawTransaction)
NewRawTransactionFromMap is useful when we get a map of transaction properties, e.g. from a call to eth_getBlockByHash [0x..., true]
type RawWithdrawal ¶
type Rewards ¶
type SimpleAppearance ¶
type SimpleAppearance struct { Address base.Address `json:"address"` BlockNumber uint32 `json:"blockNumber"` Reason string `json:"reason,omitempty"` Timestamp base.Timestamp `json:"timestamp"` TraceIndex uint32 `json:"traceIndex,omitempty"` TransactionIndex uint32 `json:"transactionIndex"` // contains filtered or unexported fields }
func (*SimpleAppearance) Date ¶
func (s *SimpleAppearance) Date() string
func (*SimpleAppearance) GetKey ¶
func (s *SimpleAppearance) GetKey() string
func (*SimpleAppearance) Orig ¶
func (s *SimpleAppearance) Orig() string
func (*SimpleAppearance) Raw ¶
func (s *SimpleAppearance) Raw() *RawAppearance
func (*SimpleAppearance) SetRaw ¶
func (s *SimpleAppearance) SetRaw(raw *RawAppearance)
type SimpleBlock ¶
type SimpleBlock[Tx string | SimpleTransaction] struct { BaseFeePerGas base.Wei `json:"baseFeePerGas"` BlockNumber base.Blknum `json:"blockNumber"` Difficulty uint64 `json:"difficulty"` GasLimit base.Gas `json:"gasLimit"` GasUsed base.Gas `json:"gasUsed"` Hash base.Hash `json:"hash"` Miner base.Address `json:"miner"` ParentHash base.Hash `json:"parentHash"` Timestamp base.Timestamp `json:"timestamp"` Transactions []Tx `json:"transactions"` Uncles []base.Hash `json:"uncles,omitempty"` Withdrawals []SimpleWithdrawal `json:"withdrawals,omitempty"` // contains filtered or unexported fields }
func (*SimpleBlock[Tx]) CacheId ¶
func (s *SimpleBlock[Tx]) CacheId() string
func (*SimpleBlock[Tx]) CacheLocation ¶
func (s *SimpleBlock[Tx]) CacheLocation() (directory string, extension string)
func (*SimpleBlock[Tx]) CacheName ¶
func (s *SimpleBlock[Tx]) CacheName() string
--> cacheable by block
func (*SimpleBlock[Tx]) Date ¶
func (s *SimpleBlock[Tx]) Date() string
func (*SimpleBlock[string]) Dup ¶
func (s *SimpleBlock[string]) Dup(target *SimpleBlock[SimpleTransaction])
Dup duplicates all fields but Transactions into target
func (*SimpleBlock[Tx]) FinishUnmarshal ¶
func (s *SimpleBlock[Tx]) FinishUnmarshal()
func (*SimpleBlock[Tx]) MarshalCache ¶
func (s *SimpleBlock[Tx]) MarshalCache(writer io.Writer) (err error)
func (*SimpleBlock[Tx]) Raw ¶
func (s *SimpleBlock[Tx]) Raw() *RawBlock
func (*SimpleBlock[Tx]) SetRaw ¶
func (s *SimpleBlock[Tx]) SetRaw(raw *RawBlock)
func (*SimpleBlock[string]) UnmarshalCache ¶
type SimpleChain ¶
type SimpleChain struct { Chain string `json:"chain"` ChainId uint64 `json:"chainId"` IpfsGateway string `json:"ipfsGateway"` LocalExplorer string `json:"localExplorer"` RemoteExplorer string `json:"remoteExplorer"` RpcProvider string `json:"rpcProvider"` Symbol string `json:"symbol"` // contains filtered or unexported fields }
func (*SimpleChain) Raw ¶
func (s *SimpleChain) Raw() *RawChain
func (*SimpleChain) SetRaw ¶
func (s *SimpleChain) SetRaw(raw *RawChain)
type SimpleChunkRecord ¶
type SimpleChunkRecord struct { BloomHash base.IpfsHash `json:"bloomHash"` BloomSize int64 `json:"bloomSize"` IndexHash base.IpfsHash `json:"indexHash"` IndexSize int64 `json:"indexSize"` Range string `json:"range"` // contains filtered or unexported fields }
func (*SimpleChunkRecord) Raw ¶
func (s *SimpleChunkRecord) Raw() *RawChunkRecord
func (*SimpleChunkRecord) SetRaw ¶
func (s *SimpleChunkRecord) SetRaw(raw *RawChunkRecord)
type SimpleFunction ¶
type SimpleFunction struct { Anonymous bool `json:"anonymous,omitempty"` Constant bool `json:"constant,omitempty"` Encoding string `json:"encoding"` Inputs []SimpleParameter `json:"inputs"` Message string `json:"message,omitempty"` Name string `json:"name"` Outputs []SimpleParameter `json:"outputs"` Signature string `json:"signature,omitempty"` StateMutability string `json:"stateMutability,omitempty"` FunctionType string `json:"type"` // contains filtered or unexported fields }
func FunctionFromAbiEvent ¶
func FunctionFromAbiEvent(ethEvent *abi.Event) *SimpleFunction
func FunctionFromAbiMethod ¶
func FunctionFromAbiMethod(ethMethod *abi.Method) *SimpleFunction
FunctionFromAbiMethod converts go-ethereum's abi.Method to our SimpleFunction
func (*SimpleFunction) AbiEventFromFunction ¶
func (s *SimpleFunction) AbiEventFromFunction() (ethMethod *abi.Event, err error)
func (*SimpleFunction) AbiMethodFromFunction ¶
func (s *SimpleFunction) AbiMethodFromFunction() (ethMethod *abi.Method, err error)
func (*SimpleFunction) Clone ¶
func (s *SimpleFunction) Clone() *SimpleFunction
func (*SimpleFunction) FinishUnmarshal ¶
func (s *SimpleFunction) FinishUnmarshal()
func (*SimpleFunction) GetAbiEvent ¶
func (s *SimpleFunction) GetAbiEvent() (abiEvent *abi.Event, err error)
func (*SimpleFunction) GetAbiMethod ¶
func (s *SimpleFunction) GetAbiMethod() (abiMethod *abi.Method, err error)
func (*SimpleFunction) IsMethod ¶
func (s *SimpleFunction) IsMethod() bool
func (*SimpleFunction) MarshalCache ¶
func (s *SimpleFunction) MarshalCache(writer io.Writer) (err error)
--> marshal_only
func (*SimpleFunction) Normalize ¶
func (s *SimpleFunction) Normalize()
Normalize sets StateMutability from `payable` field. It is only useful when reading ABIs generated before Solidity 0.5.0, which use `payable` field: https://docs.soliditylang.org/en/develop/050-breaking-changes.html#command-line-and-json-interfaces
func (*SimpleFunction) Pack ¶
func (s *SimpleFunction) Pack(callArguments []any) (packed []byte, err error)
Pack encodes function call
func (*SimpleFunction) Raw ¶
func (s *SimpleFunction) Raw() *RawFunction
func (*SimpleFunction) SetAbiEvent ¶
func (s *SimpleFunction) SetAbiEvent(event *abi.Event)
func (*SimpleFunction) SetAbiMethod ¶
func (s *SimpleFunction) SetAbiMethod(method *abi.Method)
func (*SimpleFunction) SetRaw ¶
func (s *SimpleFunction) SetRaw(raw *RawFunction)
func (*SimpleFunction) UnmarshalCache ¶
func (s *SimpleFunction) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleLog ¶
type SimpleLog struct { Address base.Address `json:"address"` ArticulatedLog *SimpleFunction `json:"articulatedLog,omitempty"` BlockHash base.Hash `json:"blockHash"` BlockNumber base.Blknum `json:"blockNumber"` CompressedLog string `json:"compressedLog,omitempty"` Data string `json:"data,omitempty"` LogIndex uint64 `json:"logIndex"` Timestamp base.Timestamp `json:"timestamp,omitempty"` Topics []base.Hash `json:"topics,omitempty"` TransactionHash base.Hash `json:"transactionHash"` TransactionIndex uint64 `json:"transactionIndex"` // contains filtered or unexported fields }
func (*SimpleLog) FinishUnmarshal ¶
func (s *SimpleLog) FinishUnmarshal()
type SimpleLogFilter ¶
type SimpleLogFilter struct { BlockHash base.Hash `json:"blockHash"` Emitters []base.Address `json:"emitters"` FromBlock base.Blknum `json:"fromBlock"` ToBlock base.Blknum `json:"toBlock"` Topics []base.Hash `json:"topics"` // contains filtered or unexported fields }
func NewLogFilter ¶
func NewLogFilter(emitters []string, topics []string) *SimpleLogFilter
EXISTING_CODE
func (*SimpleLogFilter) PassesFilter ¶
func (filter *SimpleLogFilter) PassesFilter(log *SimpleLog) bool
func (*SimpleLogFilter) Raw ¶
func (s *SimpleLogFilter) Raw() *RawLogFilter
func (*SimpleLogFilter) SetRaw ¶
func (s *SimpleLogFilter) SetRaw(raw *RawLogFilter)
type SimpleLogGroup ¶
--> cacheable by block as group
func (*SimpleLogGroup) CacheId ¶
func (s *SimpleLogGroup) CacheId() string
func (*SimpleLogGroup) CacheLocation ¶
func (s *SimpleLogGroup) CacheLocation() (directory string, extension string)
func (*SimpleLogGroup) CacheName ¶
func (s *SimpleLogGroup) CacheName() string
func (*SimpleLogGroup) MarshalCache ¶
func (s *SimpleLogGroup) MarshalCache(writer io.Writer) (err error)
func (*SimpleLogGroup) UnmarshalCache ¶
func (s *SimpleLogGroup) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleManifest ¶
type SimpleManifest struct { Chain string `json:"chain"` Chunks []SimpleChunkRecord `json:"chunks"` Specification base.IpfsHash `json:"specification"` Version string `json:"version"` // contains filtered or unexported fields }
func (*SimpleManifest) Raw ¶
func (s *SimpleManifest) Raw() *RawManifest
func (*SimpleManifest) SetRaw ¶
func (s *SimpleManifest) SetRaw(raw *RawManifest)
type SimpleMessage ¶
func (*SimpleMessage) Raw ¶
func (s *SimpleMessage) Raw() *RawModeler
type SimpleMonitor ¶
type SimpleMonitor struct { Address string `json:"address"` NRecords int `json:"nRecords"` FileSize int64 `json:"fileSize"` LastScanned uint32 `json:"lastScanned"` Deleted bool `json:"deleted"` // contains filtered or unexported fields }
func (*SimpleMonitor) Raw ¶
func (s *SimpleMonitor) Raw() *RawMonitor
func (*SimpleMonitor) SetRaw ¶
func (s *SimpleMonitor) SetRaw(raw *RawMonitor)
type SimpleName ¶
type SimpleName struct { Address base.Address `json:"address"` Decimals uint64 `json:"decimals"` Deleted bool `json:"deleted,omitempty"` IsContract bool `json:"isContract,omitempty"` IsCustom bool `json:"isCustom,omitempty"` IsErc20 bool `json:"isErc20,omitempty"` IsErc721 bool `json:"isErc721,omitempty"` IsPrefund bool `json:"isPrefund,omitempty"` Name string `json:"name"` Petname string `json:"petname"` Source string `json:"source"` Symbol string `json:"symbol"` Tags string `json:"tags"` // EXISTING_CODE Prefund big.Int `json:"prefund,omitempty"` // contains filtered or unexported fields }
func NewNameFromGrpc ¶
func NewNameFromGrpc(gRpcName *proto.Name) *SimpleName
func (*SimpleName) Raw ¶
func (s *SimpleName) Raw() *RawName
func (*SimpleName) Send ¶
func (s *SimpleName) Send(stream proto.Names_SearchStreamServer) error
func (*SimpleName) SetRaw ¶
func (s *SimpleName) SetRaw(raw *RawName)
func (*SimpleName) ToMessage ¶
func (s *SimpleName) ToMessage() *proto.Name
type SimpleNamedBlock ¶
type SimpleNamedBlock struct { BlockNumber base.Blknum `json:"blockNumber"` Component string `json:"component,omitempty"` Description string `json:"description,omitempty"` Name string `json:"name,omitempty"` Timestamp base.Timestamp `json:"timestamp"` // contains filtered or unexported fields }
func (*SimpleNamedBlock) Date ¶
func (s *SimpleNamedBlock) Date() string
func (*SimpleNamedBlock) Raw ¶
func (s *SimpleNamedBlock) Raw() *RawNamedBlock
func (*SimpleNamedBlock) SetRaw ¶
func (s *SimpleNamedBlock) SetRaw(raw *RawNamedBlock)
type SimpleParameter ¶
type SimpleParameter struct { Components []SimpleParameter `json:"components,omitempty"` Indexed bool `json:"indexed,omitempty"` InternalType string `json:"internalType,omitempty"` Name string `json:"name"` StrDefault string `json:"strDefault,omitempty"` ParameterType string `json:"type"` Value any `json:"value,omitempty"` // contains filtered or unexported fields }
func (*SimpleParameter) DisplayName ¶
func (s *SimpleParameter) DisplayName(index int) string
DisplayName returns parameter name if defined, or a default name "val_" + index
func (*SimpleParameter) FinishUnmarshal ¶
func (s *SimpleParameter) FinishUnmarshal()
func (*SimpleParameter) MarshalCache ¶
func (s *SimpleParameter) MarshalCache(writer io.Writer) (err error)
--> marshal_only
func (*SimpleParameter) Raw ¶
func (s *SimpleParameter) Raw() *RawParameter
func (*SimpleParameter) SetRaw ¶
func (s *SimpleParameter) SetRaw(raw *RawParameter)
func (*SimpleParameter) UnmarshalCache ¶
func (s *SimpleParameter) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleReceipt ¶
type SimpleReceipt struct { BlockHash base.Hash `json:"blockHash,omitempty"` BlockNumber base.Blknum `json:"blockNumber"` ContractAddress base.Address `json:"contractAddress,omitempty"` CumulativeGasUsed string `json:"cumulativeGasUsed,omitempty"` EffectiveGasPrice base.Gas `json:"effectiveGasPrice,omitempty"` From base.Address `json:"from,omitempty"` GasUsed base.Gas `json:"gasUsed"` IsError bool `json:"isError,omitempty"` Logs []SimpleLog `json:"logs"` Status uint32 `json:"status"` To base.Address `json:"to,omitempty"` TransactionHash base.Hash `json:"transactionHash"` TransactionIndex base.Blknum `json:"transactionIndex"` // contains filtered or unexported fields }
func (*SimpleReceipt) FinishUnmarshal ¶
func (s *SimpleReceipt) FinishUnmarshal()
func (*SimpleReceipt) IsDefault ¶
func (s *SimpleReceipt) IsDefault() bool
func (*SimpleReceipt) MarshalCache ¶
func (s *SimpleReceipt) MarshalCache(writer io.Writer) (err error)
func (*SimpleReceipt) Raw ¶
func (s *SimpleReceipt) Raw() *RawReceipt
func (*SimpleReceipt) SetRaw ¶
func (s *SimpleReceipt) SetRaw(raw *RawReceipt)
func (*SimpleReceipt) UnmarshalCache ¶
func (s *SimpleReceipt) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleReceiptGroup ¶
type SimpleReceiptGroup struct { BlockNumber base.Blknum TransactionIndex base.Txnum Receipts []SimpleReceipt }
--> cacheable by block as group
func (*SimpleReceiptGroup) CacheId ¶
func (s *SimpleReceiptGroup) CacheId() string
func (*SimpleReceiptGroup) CacheLocation ¶
func (s *SimpleReceiptGroup) CacheLocation() (directory string, extension string)
func (*SimpleReceiptGroup) CacheName ¶
func (s *SimpleReceiptGroup) CacheName() string
func (*SimpleReceiptGroup) MarshalCache ¶
func (s *SimpleReceiptGroup) MarshalCache(writer io.Writer) (err error)
func (*SimpleReceiptGroup) UnmarshalCache ¶
func (s *SimpleReceiptGroup) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleResult ¶
type SimpleResult struct { Address base.Address `json:"address"` ArticulatedOut *SimpleFunction `json:"articulatedOut"` BlockNumber base.Blknum `json:"blockNumber"` EncodedArguments string `json:"encodedArguments"` Encoding string `json:"encoding"` Name string `json:"name"` Signature string `json:"signature"` Timestamp base.Timestamp `json:"timestamp"` // EXISTING_CODE Values map[string]string `json:"values"` ReturnedBytes string // contains filtered or unexported fields }
func (*SimpleResult) CacheId ¶
func (s *SimpleResult) CacheId() string
func (*SimpleResult) CacheLocation ¶
func (s *SimpleResult) CacheLocation() (directory string, extension string)
func (*SimpleResult) CacheName ¶
func (s *SimpleResult) CacheName() string
--> cacheable by address,block,fourbyte
func (*SimpleResult) Date ¶
func (s *SimpleResult) Date() string
func (*SimpleResult) FinishUnmarshal ¶
func (s *SimpleResult) FinishUnmarshal()
func (*SimpleResult) MarshalCache ¶
func (s *SimpleResult) MarshalCache(writer io.Writer) (err error)
func (*SimpleResult) Raw ¶
func (s *SimpleResult) Raw() *RawResult
func (*SimpleResult) SetRaw ¶
func (s *SimpleResult) SetRaw(raw *RawResult)
func (*SimpleResult) UnmarshalCache ¶
func (s *SimpleResult) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleSlurp ¶
type SimpleSlurp struct { ArticulatedTx *SimpleFunction `json:"articulatedTx"` BlockHash base.Hash `json:"blockHash"` BlockNumber base.Blknum `json:"blockNumber"` CompressedTx string `json:"compressedTx"` ContractAddress base.Address `json:"contractAddress"` CumulativeGasUsed string `json:"cumulativeGasUsed"` Ether string `json:"ether"` From base.Address `json:"from"` FunctionName string `json:"functionName"` Gas base.Gas `json:"gas"` GasPrice base.Gas `json:"gasPrice"` GasUsed base.Gas `json:"gasUsed"` HasToken bool `json:"hasToken"` Hash base.Hash `json:"hash"` Input string `json:"input"` IsError bool `json:"isError"` MethodId string `json:"methodId"` Nonce uint64 `json:"nonce"` Timestamp base.Timestamp `json:"timestamp"` To base.Address `json:"to"` TransactionIndex base.Blknum `json:"transactionIndex"` TxReceiptStatus string `json:"txReceiptStatus"` ValidatorIndex uint64 `json:"validatorIndex"` Value base.Wei `json:"value"` WithdrawalIndex uint64 `json:"withdrawalIndex"` // contains filtered or unexported fields }
func (*SimpleSlurp) Date ¶
func (s *SimpleSlurp) Date() string
func (*SimpleSlurp) FinishUnmarshal ¶
func (s *SimpleSlurp) FinishUnmarshal()
func (*SimpleSlurp) GasCost ¶
func (s *SimpleSlurp) GasCost() base.Gas
func (*SimpleSlurp) MarshalCache ¶
func (s *SimpleSlurp) MarshalCache(writer io.Writer) (err error)
func (*SimpleSlurp) Raw ¶
func (s *SimpleSlurp) Raw() *RawSlurp
func (*SimpleSlurp) SetRaw ¶
func (s *SimpleSlurp) SetRaw(raw *RawSlurp)
func (*SimpleSlurp) UnmarshalCache ¶
func (s *SimpleSlurp) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleSlurpGroup ¶
type SimpleSlurpGroup struct { BlockNumber base.Blknum TransactionIndex base.Txnum Address base.Address Slurps []SimpleSlurp }
--> cacheable by address,tx as group
func (*SimpleSlurpGroup) CacheId ¶
func (s *SimpleSlurpGroup) CacheId() string
func (*SimpleSlurpGroup) CacheLocation ¶
func (s *SimpleSlurpGroup) CacheLocation() (directory string, extension string)
func (*SimpleSlurpGroup) CacheName ¶
func (s *SimpleSlurpGroup) CacheName() string
func (*SimpleSlurpGroup) MarshalCache ¶
func (s *SimpleSlurpGroup) MarshalCache(writer io.Writer) (err error)
func (*SimpleSlurpGroup) UnmarshalCache ¶
func (s *SimpleSlurpGroup) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleState ¶
type SimpleState struct { AccountType string `json:"accountType"` Address base.Address `json:"address"` Balance base.Wei `json:"balance"` BlockNumber base.Blknum `json:"blockNumber"` Code string `json:"code"` Deployed base.Blknum `json:"deployed"` Nonce uint64 `json:"nonce"` Proxy base.Address `json:"proxy"` Timestamp base.Timestamp `json:"timestamp"` // contains filtered or unexported fields }
func (*SimpleState) CacheId ¶
func (s *SimpleState) CacheId() string
func (*SimpleState) CacheLocation ¶
func (s *SimpleState) CacheLocation() (directory string, extension string)
func (*SimpleState) CacheName ¶
func (s *SimpleState) CacheName() string
--> cacheable by address,block
func (*SimpleState) Date ¶
func (s *SimpleState) Date() string
func (*SimpleState) FinishUnmarshal ¶
func (s *SimpleState) FinishUnmarshal()
func (*SimpleState) MarshalCache ¶
func (s *SimpleState) MarshalCache(writer io.Writer) (err error)
func (*SimpleState) Raw ¶
func (s *SimpleState) Raw() *RawState
func (*SimpleState) SetRaw ¶
func (s *SimpleState) SetRaw(raw *RawState)
func (*SimpleState) UnmarshalCache ¶
func (s *SimpleState) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleStatement ¶
type SimpleStatement struct { AccountedFor base.Address `json:"accountedFor"` AmountIn big.Int `json:"amountIn,omitempty"` AmountOut big.Int `json:"amountOut,omitempty"` AssetAddr base.Address `json:"assetAddr"` AssetSymbol string `json:"assetSymbol"` BegBal big.Int `json:"begBal"` BlockNumber base.Blknum `json:"blockNumber"` CorrectingIn big.Int `json:"correctingIn,omitempty"` CorrectingOut big.Int `json:"correctingOut,omitempty"` CorrectingReason string `json:"correctingReason,omitempty"` Decimals uint64 `json:"decimals"` EndBal big.Int `json:"endBal"` GasOut big.Int `json:"gasOut,omitempty"` InternalIn big.Int `json:"internalIn,omitempty"` InternalOut big.Int `json:"internalOut,omitempty"` LogIndex base.Blknum `json:"logIndex"` MinerBaseRewardIn big.Int `json:"minerBaseRewardIn,omitempty"` MinerNephewRewardIn big.Int `json:"minerNephewRewardIn,omitempty"` MinerTxFeeIn big.Int `json:"minerTxFeeIn,omitempty"` MinerUncleRewardIn big.Int `json:"minerUncleRewardIn,omitempty"` PrefundIn big.Int `json:"prefundIn,omitempty"` PrevBal big.Int `json:"prevBal,omitempty"` PriceSource string `json:"priceSource"` Recipient base.Address `json:"recipient"` SelfDestructIn big.Int `json:"selfDestructIn,omitempty"` SelfDestructOut big.Int `json:"selfDestructOut,omitempty"` Sender base.Address `json:"sender"` SpotPrice float64 `json:"spotPrice"` Timestamp base.Timestamp `json:"timestamp"` TransactionHash base.Hash `json:"transactionHash"` TransactionIndex base.Blknum `json:"transactionIndex"` // EXISTING_CODE ReconType ReconType `json:"-"` AssetType string `json:"-"` // contains filtered or unexported fields }
func (*SimpleStatement) AmountNet ¶
func (s *SimpleStatement) AmountNet() *big.Int
func (*SimpleStatement) BegBalDiff ¶
func (s *SimpleStatement) BegBalDiff() *big.Int
func (*SimpleStatement) CorrectForNullTransfer ¶
func (s *SimpleStatement) CorrectForNullTransfer(tx *SimpleTransaction) bool
func (*SimpleStatement) CorrectForSomethingElse ¶
func (s *SimpleStatement) CorrectForSomethingElse(tx *SimpleTransaction) bool
func (*SimpleStatement) Date ¶
func (s *SimpleStatement) Date() string
func (*SimpleStatement) DebugStatement ¶
func (s *SimpleStatement) DebugStatement(ctx Ledgerer)
func (*SimpleStatement) EndBalCalc ¶
func (s *SimpleStatement) EndBalCalc() *big.Int
func (*SimpleStatement) EndBalDiff ¶
func (s *SimpleStatement) EndBalDiff() *big.Int
func (*SimpleStatement) FinishUnmarshal ¶
func (s *SimpleStatement) FinishUnmarshal()
func (*SimpleStatement) IsEth ¶
func (s *SimpleStatement) IsEth() bool
func (*SimpleStatement) IsMaterial ¶
func (s *SimpleStatement) IsMaterial() bool
func (*SimpleStatement) IsStableCoin ¶
func (s *SimpleStatement) IsStableCoin() bool
func (*SimpleStatement) MarshalCache ¶
func (s *SimpleStatement) MarshalCache(writer io.Writer) (err error)
func (*SimpleStatement) Raw ¶
func (s *SimpleStatement) Raw() *RawStatement
func (*SimpleStatement) Reconciled ¶
func (s *SimpleStatement) Reconciled() bool
func (*SimpleStatement) SetRaw ¶
func (s *SimpleStatement) SetRaw(raw *RawStatement)
func (*SimpleStatement) TotalIn ¶
func (s *SimpleStatement) TotalIn() *big.Int
func (*SimpleStatement) TotalOut ¶
func (s *SimpleStatement) TotalOut() *big.Int
func (*SimpleStatement) TotalOutLessGas ¶
func (s *SimpleStatement) TotalOutLessGas() *big.Int
func (*SimpleStatement) UnmarshalCache ¶
func (s *SimpleStatement) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleStatementGroup ¶
type SimpleStatementGroup struct { BlockNumber base.Blknum TransactionIndex base.Txnum Address base.Address Statements []SimpleStatement }
--> cacheable by address,tx as group
func (*SimpleStatementGroup) CacheId ¶
func (s *SimpleStatementGroup) CacheId() string
func (*SimpleStatementGroup) CacheLocation ¶
func (s *SimpleStatementGroup) CacheLocation() (directory string, extension string)
func (*SimpleStatementGroup) CacheName ¶
func (s *SimpleStatementGroup) CacheName() string
func (*SimpleStatementGroup) MarshalCache ¶
func (s *SimpleStatementGroup) MarshalCache(writer io.Writer) (err error)
func (*SimpleStatementGroup) UnmarshalCache ¶
func (s *SimpleStatementGroup) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleToken ¶
type SimpleToken struct { Address base.Address `json:"address"` Balance big.Int `json:"balance"` BlockNumber base.Blknum `json:"blockNumber"` Decimals uint64 `json:"decimals"` Diff big.Int `json:"diff,omitempty"` Holder base.Address `json:"holder"` Name string `json:"name"` PriorBalance big.Int `json:"priorBalance,omitempty"` Symbol string `json:"symbol"` Timestamp base.Timestamp `json:"timestamp"` TotalSupply big.Int `json:"totalSupply"` TransactionIndex base.Blknum `json:"transactionIndex,omitempty"` TokenType TokenType `json:"type"` // contains filtered or unexported fields }
func (*SimpleToken) Date ¶
func (s *SimpleToken) Date() string
func (*SimpleToken) IsErc20 ¶
func (s *SimpleToken) IsErc20() bool
func (*SimpleToken) IsErc721 ¶
func (s *SimpleToken) IsErc721() bool
func (*SimpleToken) Raw ¶
func (s *SimpleToken) Raw() *RawToken
func (*SimpleToken) SetRaw ¶
func (s *SimpleToken) SetRaw(raw *RawToken)
type SimpleTrace ¶
type SimpleTrace struct { Action *SimpleTraceAction `json:"action"` ArticulatedTrace *SimpleFunction `json:"articulatedTrace,omitempty"` BlockHash base.Hash `json:"blockHash"` BlockNumber base.Blknum `json:"blockNumber"` CompressedTrace string `json:"compressedTrace,omitempty"` Error string `json:"error,omitempty"` Result *SimpleTraceResult `json:"result"` Subtraces uint64 `json:"subtraces"` Timestamp base.Timestamp `json:"timestamp"` TraceAddress []uint64 `json:"traceAddress"` TransactionHash base.Hash `json:"transactionHash"` TransactionIndex uint64 `json:"transactionIndex"` TraceType string `json:"type,omitempty"` // EXISTING_CODE TraceIndex base.Blknum `json:"-"` // contains filtered or unexported fields }
func (*SimpleTrace) Date ¶
func (s *SimpleTrace) Date() string
func (*SimpleTrace) FinishUnmarshal ¶
func (s *SimpleTrace) FinishUnmarshal()
func (*SimpleTrace) GetSortString ¶
func (s *SimpleTrace) GetSortString() string
func (*SimpleTrace) MarshalCache ¶
func (s *SimpleTrace) MarshalCache(writer io.Writer) (err error)
func (*SimpleTrace) Raw ¶
func (s *SimpleTrace) Raw() *RawTrace
func (*SimpleTrace) SetRaw ¶
func (s *SimpleTrace) SetRaw(raw *RawTrace)
func (*SimpleTrace) UnmarshalCache ¶
func (s *SimpleTrace) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleTraceAction ¶
type SimpleTraceAction struct { Address base.Address `json:"address,omitempty"` Author base.Address `json:"author,omitempty"` Balance base.Wei `json:"balance,omitempty"` CallType string `json:"callType"` From base.Address `json:"from"` Gas base.Gas `json:"gas"` Init string `json:"init,omitempty"` Input string `json:"input,omitempty"` RefundAddress base.Address `json:"refundAddress,omitempty"` RewardType string `json:"rewardType,omitempty"` SelfDestructed base.Address `json:"selfDestructed,omitempty"` To base.Address `json:"to"` Value base.Wei `json:"value"` // contains filtered or unexported fields }
func (*SimpleTraceAction) FinishUnmarshal ¶
func (s *SimpleTraceAction) FinishUnmarshal()
func (*SimpleTraceAction) MarshalCache ¶
func (s *SimpleTraceAction) MarshalCache(writer io.Writer) (err error)
--> marshal_only
func (*SimpleTraceAction) Raw ¶
func (s *SimpleTraceAction) Raw() *RawTraceAction
func (*SimpleTraceAction) SetRaw ¶
func (s *SimpleTraceAction) SetRaw(raw *RawTraceAction)
func (*SimpleTraceAction) UnmarshalCache ¶
func (s *SimpleTraceAction) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleTraceFilter ¶
type SimpleTraceFilter struct { After uint64 `json:"after,omitempty"` Count uint64 `json:"count,omitempty"` FromAddress base.Address `json:"fromAddress,omitempty"` FromBlock base.Blknum `json:"fromBlock,omitempty"` ToAddress base.Address `json:"toAddress,omitempty"` ToBlock base.Blknum `json:"toBlock,omitempty"` // contains filtered or unexported fields }
func (*SimpleTraceFilter) ParseBangString ¶
func (s *SimpleTraceFilter) ParseBangString(chain, filter string) (ret map[string]interface{}, br base.BlockRange)
func (*SimpleTraceFilter) PassesBasic ¶
func (s *SimpleTraceFilter) PassesBasic(trace *SimpleTrace, nTested uint64, nPassed uint64) (bool, string)
func (*SimpleTraceFilter) Raw ¶
func (s *SimpleTraceFilter) Raw() *RawTraceFilter
func (*SimpleTraceFilter) SetRaw ¶
func (s *SimpleTraceFilter) SetRaw(raw *RawTraceFilter)
type SimpleTraceGroup ¶
type SimpleTraceGroup struct { BlockNumber base.Blknum TransactionIndex base.Txnum Traces []SimpleTrace }
--> cacheable by tx as group
func (*SimpleTraceGroup) CacheId ¶
func (s *SimpleTraceGroup) CacheId() string
func (*SimpleTraceGroup) CacheLocation ¶
func (s *SimpleTraceGroup) CacheLocation() (directory string, extension string)
func (*SimpleTraceGroup) CacheName ¶
func (s *SimpleTraceGroup) CacheName() string
func (*SimpleTraceGroup) MarshalCache ¶
func (s *SimpleTraceGroup) MarshalCache(writer io.Writer) (err error)
func (*SimpleTraceGroup) UnmarshalCache ¶
func (s *SimpleTraceGroup) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleTraceResult ¶
type SimpleTraceResult struct { Address base.Address `json:"address,omitempty"` Code string `json:"code,omitempty"` GasUsed base.Gas `json:"gasUsed,omitempty"` Output string `json:"output,omitempty"` // contains filtered or unexported fields }
func (*SimpleTraceResult) FinishUnmarshal ¶
func (s *SimpleTraceResult) FinishUnmarshal()
func (*SimpleTraceResult) MarshalCache ¶
func (s *SimpleTraceResult) MarshalCache(writer io.Writer) (err error)
--> marshal_only
func (*SimpleTraceResult) Raw ¶
func (s *SimpleTraceResult) Raw() *RawTraceResult
func (*SimpleTraceResult) SetRaw ¶
func (s *SimpleTraceResult) SetRaw(raw *RawTraceResult)
func (*SimpleTraceResult) UnmarshalCache ¶
func (s *SimpleTraceResult) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleTransaction ¶
type SimpleTransaction struct { ArticulatedTx *SimpleFunction `json:"articulatedTx"` BlockHash base.Hash `json:"blockHash"` BlockNumber base.Blknum `json:"blockNumber"` CompressedTx string `json:"compressedTx"` From base.Address `json:"from"` Gas base.Gas `json:"gas"` GasPrice base.Gas `json:"gasPrice"` GasUsed base.Gas `json:"gasUsed"` HasToken bool `json:"hasToken"` Hash base.Hash `json:"hash"` Input string `json:"input"` IsError bool `json:"isError"` MaxFeePerGas base.Gas `json:"maxFeePerGas"` MaxPriorityFeePerGas base.Gas `json:"maxPriorityFeePerGas"` Nonce uint64 `json:"nonce"` Receipt *SimpleReceipt `json:"receipt"` Timestamp base.Timestamp `json:"timestamp"` To base.Address `json:"to"` Traces []SimpleTrace `json:"traces"` TransactionIndex base.Blknum `json:"transactionIndex"` TransactionType string `json:"type"` Value base.Wei `json:"value"` // EXISTING_CODE Message string `json:"-"` Rewards *Rewards `json:"-"` Statements *[]SimpleStatement `json:"statements"` // contains filtered or unexported fields }
func NewSimpleTransaction ¶
func NewSimpleTransaction(raw *RawTransaction, receipt *SimpleReceipt, timestamp base.Timestamp) (s *SimpleTransaction)
NewSimpleTransaction builds SimpleTransaction using data from raw and receipt. Receipt can be nil. Transaction timestamp and HasToken flag will be set to timestamp and hasToken.
func (*SimpleTransaction) CacheId ¶
func (s *SimpleTransaction) CacheId() string
func (*SimpleTransaction) CacheLocation ¶
func (s *SimpleTransaction) CacheLocation() (directory string, extension string)
func (*SimpleTransaction) CacheName ¶
func (s *SimpleTransaction) CacheName() string
--> cacheable by tx
func (*SimpleTransaction) Date ¶
func (s *SimpleTransaction) Date() string
func (*SimpleTransaction) FinishUnmarshal ¶
func (s *SimpleTransaction) FinishUnmarshal()
func (*SimpleTransaction) GasCost ¶
func (s *SimpleTransaction) GasCost() base.Gas
func (*SimpleTransaction) MarshalCache ¶
func (s *SimpleTransaction) MarshalCache(writer io.Writer) (err error)
func (*SimpleTransaction) Raw ¶
func (s *SimpleTransaction) Raw() *RawTransaction
func (*SimpleTransaction) SetRaw ¶
func (s *SimpleTransaction) SetRaw(raw *RawTransaction)
func (*SimpleTransaction) UnmarshalCache ¶
func (s *SimpleTransaction) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleWithdrawal ¶
type SimpleWithdrawal struct { Address base.Address `json:"address"` Amount base.Wei `json:"amount"` BlockNumber base.Blknum `json:"blockNumber"` Index uint64 `json:"index"` Timestamp base.Timestamp `json:"timestamp"` ValidatorIndex uint64 `json:"validatorIndex"` // contains filtered or unexported fields }
func (*SimpleWithdrawal) Date ¶
func (s *SimpleWithdrawal) Date() string
func (*SimpleWithdrawal) FinishUnmarshal ¶
func (s *SimpleWithdrawal) FinishUnmarshal()
func (*SimpleWithdrawal) MarshalCache ¶
func (s *SimpleWithdrawal) MarshalCache(writer io.Writer) (err error)
func (*SimpleWithdrawal) Raw ¶
func (s *SimpleWithdrawal) Raw() *RawWithdrawal
func (*SimpleWithdrawal) SetRaw ¶
func (s *SimpleWithdrawal) SetRaw(raw *RawWithdrawal)
func (*SimpleWithdrawal) UnmarshalCache ¶
func (s *SimpleWithdrawal) UnmarshalCache(version uint64, reader io.Reader) (err error)
type SimpleWithdrawalGroup ¶
type SimpleWithdrawalGroup struct { BlockNumber base.Blknum TransactionIndex base.Txnum Withdrawals []SimpleWithdrawal }
--> cacheable by block as group
func (*SimpleWithdrawalGroup) CacheId ¶
func (s *SimpleWithdrawalGroup) CacheId() string
func (*SimpleWithdrawalGroup) CacheLocation ¶
func (s *SimpleWithdrawalGroup) CacheLocation() (directory string, extension string)
func (*SimpleWithdrawalGroup) CacheName ¶
func (s *SimpleWithdrawalGroup) CacheName() string
func (*SimpleWithdrawalGroup) MarshalCache ¶
func (s *SimpleWithdrawalGroup) MarshalCache(writer io.Writer) (err error)
func (*SimpleWithdrawalGroup) UnmarshalCache ¶
func (s *SimpleWithdrawalGroup) UnmarshalCache(version uint64, reader io.Reader) (err error)
type StorageSlot ¶
Source Files ¶
- compressed.go
- doc.go
- modeler.go
- types_appearance.go
- types_block.go
- types_chain.go
- types_chunkrecord.go
- types_function.go
- types_log.go
- types_logfilter.go
- types_manifest.go
- types_message.go
- types_monitor.go
- types_name.go
- types_namedblock.go
- types_parameter.go
- types_receipt.go
- types_reconType.go
- types_result.go
- types_slurp.go
- types_state.go
- types_statement.go
- types_token.go
- types_trace.go
- types_traceaction.go
- types_tracefilter.go
- types_traceresult.go
- types_transaction.go
- types_withdrawal.go