Documentation
¶
Overview ¶
Package types provides types that allow for a layer of abstraction over the internal types. This makes exporting easier.
Index ¶
- Constants
- Variables
- func AbiBy(field AbiField, order SortOrder) func(p1, p2 Abi) bool
- func AbiCmp(slice []Abi, orders ...func(p1, p2 Abi) bool) func(i, j int) bool
- func AsSliceOfMaps[T MappedType](apps []Appearance, reversed bool) ([]map[Appearance]*T, int, error)
- func ChunkRecordBy(field ChunkRecordField, order SortOrder) func(p1, p2 ChunkRecord) bool
- func ChunkRecordCmp(slice []ChunkRecord, orders ...func(p1, p2 ChunkRecord) bool) func(i, j int) bool
- func ChunkStatsBy(field ChunkStatsField, order SortOrder) func(p1, p2 ChunkStats) bool
- func ChunkStatsCmp(slice []ChunkStats, orders ...func(p1, p2 ChunkStats) bool) func(i, j int) bool
- func FormattedTag(verbose bool, hash base.Hash) string
- func FunctionBy(field FunctionField, order SortOrder) func(p1, p2 Function) bool
- func FunctionCmp(slice []Function, orders ...func(p1, p2 Function) bool) func(i, j int) bool
- func IsTokenFunction(needle string) bool
- func IsValidAbiField(field string) bool
- func IsValidChunkRecordField(field string) bool
- func IsValidChunkStatsField(field string) bool
- func IsValidFunctionField(field string) bool
- func IsValidNameField(field string) bool
- func NameBy(field NameField, order SortOrder) func(p1, p2 Name) bool
- func NameCmp(slice []Name, orders ...func(p1, p2 Name) bool) func(i, j int) bool
- type Abi
- type AbiField
- type AddrRecord
- type AppRecord
- type Appearance
- type AppearanceTable
- type Block
- func (s *Block) CacheLocations() (string, string, string)
- func (s *Block) Date() string
- func (s *Block) FinishUnmarshal()
- func (s *Block) MarshalCache(writer io.Writer) (err error)
- func (s *Block) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s Block) String() string
- func (s *Block) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type BlockCount
- type Bounds
- type CacheItem
- type Chain
- type ChunkAddress
- type ChunkAppearance
- type ChunkBloom
- type ChunkIndex
- type ChunkManifest
- type ChunkPin
- type ChunkRecord
- type ChunkRecordField
- type ChunkStats
- type ChunkStatsField
- type Count
- type Function
- func (s *Function) AbiEventFromFunction() (ethMethod *abi.Event, err error)
- func (s *Function) AbiMethodFromFunction() (ethMethod *abi.Method, err error)
- func (s *Function) Clone() *Function
- func (s *Function) FinishUnmarshal()
- func (s *Function) GetAbiEvent() (abiEvent *abi.Event, err error)
- func (s *Function) GetAbiMethod() (abiMethod *abi.Method, err error)
- func (s *Function) IsMethod() bool
- func (s *Function) MarshalCache(writer io.Writer) (err error)
- func (s *Function) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s *Function) Normalize()
- func (s *Function) Pack(callArguments []any) (packed []byte, err error)
- func (s *Function) SetAbiEvent(event *abi.Event)
- func (s *Function) SetAbiMethod(method *abi.Method)
- func (s Function) String() string
- func (s *Function) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type FunctionField
- type IpfsPin
- type Ledgerer
- type LightBlock
- func (s *LightBlock) CacheLocations() (string, string, string)
- func (s *LightBlock) Date() string
- func (s *LightBlock) FinishUnmarshal()
- func (s *LightBlock) MarshalCache(writer io.Writer) (err error)
- func (s *LightBlock) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s LightBlock) String() string
- func (s *LightBlock) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type Log
- func (s *Log) Date() string
- func (s *Log) FinishUnmarshal()
- func (s *Log) MarshalCache(writer io.Writer) (err error)
- func (s *Log) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s Log) String() string
- func (s *Log) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type LogGroup
- type Manifest
- type MappedType
- type Message
- type MetaData
- type Model
- type Modeler
- type Monitor
- type MonitorClean
- type Name
- type NameField
- type NamedBlock
- type Parameter
- func (s *Parameter) DisplayName(index int) string
- func (s *Parameter) FinishUnmarshal()
- func (s *Parameter) MarshalCache(writer io.Writer) (err error)
- func (s *Parameter) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s Parameter) String() string
- func (s *Parameter) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type Parts
- type RangeDates
- type Receipt
- func (s *Receipt) FinishUnmarshal()
- func (s *Receipt) IsDefault() bool
- func (s *Receipt) MarshalCache(writer io.Writer) (err error)
- func (s *Receipt) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s Receipt) String() string
- func (s *Receipt) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type ReceiptGroup
- type ReconType
- type ReportCheck
- type Result
- func (s *Result) CacheLocations() (string, string, string)
- func (s *Result) Date() string
- func (s *Result) FinishUnmarshal()
- func (s *Result) MarshalCache(writer io.Writer) (err error)
- func (s *Result) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s Result) String() string
- func (s *Result) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type Rewards
- type Slurp
- func (s *Slurp) Date() string
- func (s *Slurp) FinishUnmarshal()
- func (s *Slurp) GasCost() base.Gas
- func (s *Slurp) MarshalCache(writer io.Writer) (err error)
- func (s *Slurp) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s Slurp) String() string
- func (s *Slurp) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type SlurpGroup
- type SortBy
- type SortOrder
- type State
- func (s *State) CacheLocations() (string, string, string)
- func (s *State) Date() string
- func (s *State) FinishUnmarshal()
- func (s *State) MarshalCache(writer io.Writer) (err error)
- func (s *State) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s State) String() string
- func (s *State) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type StatePart
- type Statement
- func (s *Statement) AmountNet() *base.Wei
- func (s *Statement) BegBalDiff() *base.Wei
- func (s *Statement) CorrectForNullTransfer(tx *Transaction) bool
- func (s *Statement) CorrectForSomethingElse(tx *Transaction) bool
- func (s *Statement) Date() string
- func (s *Statement) DebugStatement(ctx Ledgerer)
- func (s *Statement) EndBalCalc() *base.Wei
- func (s *Statement) EndBalDiff() *base.Wei
- func (s *Statement) FinishUnmarshal()
- func (s *Statement) IsEth() bool
- func (s *Statement) IsMaterial() bool
- func (s *Statement) IsStableCoin() bool
- func (s *Statement) MarshalCache(writer io.Writer) (err error)
- func (s *Statement) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s *Statement) Reconciled() bool
- func (s Statement) String() string
- func (s *Statement) TotalIn() *base.Wei
- func (s *Statement) TotalOut() *base.Wei
- func (s *Statement) TotalOutLessGas() *base.Wei
- func (s *Statement) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type StatementGroup
- type Status
- type StorageSlot
- type Timestamp
- type Token
- type TokenType
- type Trace
- func (s *Trace) Date() string
- func (s *Trace) FinishUnmarshal()
- func (s *Trace) GetSortString() string
- func (s *Trace) MarshalCache(writer io.Writer) (err error)
- func (s *Trace) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s Trace) String() string
- func (s *Trace) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type TraceAction
- func (s *TraceAction) FinishUnmarshal()
- func (s *TraceAction) MarshalCache(writer io.Writer) (err error)
- func (s *TraceAction) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s TraceAction) String() string
- func (s *TraceAction) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type TraceCount
- type TraceFilter
- func (s *TraceFilter) FinishUnmarshal()
- func (s *TraceFilter) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s *TraceFilter) ParseBangString(chain, filter string) (ret map[string]any, br base.BlockRange)
- func (s *TraceFilter) PassesBasic(trace *Trace, nTested uint64, nPassed uint64) (bool, string)
- func (s TraceFilter) String() string
- type TraceGroup
- type TraceResult
- func (s *TraceResult) FinishUnmarshal()
- func (s *TraceResult) MarshalCache(writer io.Writer) (err error)
- func (s *TraceResult) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s TraceResult) String() string
- func (s *TraceResult) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type Transaction
- func (s *Transaction) CacheLocations() (string, string, string)
- func (s *Transaction) Date() string
- func (s *Transaction) FinishUnmarshal()
- func (s *Transaction) GasCost() base.Gas
- func (s *Transaction) MarshalCache(writer io.Writer) (err error)
- func (s *Transaction) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s Transaction) String() string
- func (s *Transaction) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type Withdrawal
- func (s *Withdrawal) Date() string
- func (s *Withdrawal) FinishUnmarshal()
- func (s *Withdrawal) MarshalCache(writer io.Writer) (err error)
- func (s *Withdrawal) Model(chain, format string, verbose bool, extraOpts map[string]any) Model
- func (s Withdrawal) String() string
- func (s *Withdrawal) UnmarshalCache(vers uint64, reader io.Reader) (err error)
- type WithdrawalGroup
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 WithdrawalAmt 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 AbiBy ¶
AbiBy returns a comparison function for sorting Abi instances by the given field. These comparison functions may be strung together by the CmdAbis function.
func AbiCmp ¶
AbiCmp accepts a slice and variadic comparison functions and returns a functions that can be used to sort the slice.
func AsSliceOfMaps ¶
func AsSliceOfMaps[T MappedType](apps []Appearance, reversed bool) ([]map[Appearance]*T, int, error)
func ChunkRecordBy ¶
func ChunkRecordBy(field ChunkRecordField, order SortOrder) func(p1, p2 ChunkRecord) bool
ChunkRecordBy returns a comparison function for sorting ChunkRecord instances by the given field. These comparison functions may be strung together by the CmdChunkRecords function.
func ChunkRecordCmp ¶
func ChunkRecordCmp(slice []ChunkRecord, orders ...func(p1, p2 ChunkRecord) bool) func(i, j int) bool
ChunkRecordCmp accepts a slice and variadic comparison functions and returns a functions that can be used to sort the slice.
func ChunkStatsBy ¶
func ChunkStatsBy(field ChunkStatsField, order SortOrder) func(p1, p2 ChunkStats) bool
ChunkStatsBy returns a comparison function for sorting ChunkStats instances by the given field. These comparison functions may be strung together by the CmdChunkStats function.
func ChunkStatsCmp ¶
func ChunkStatsCmp(slice []ChunkStats, orders ...func(p1, p2 ChunkStats) bool) func(i, j int) bool
ChunkStatsCmp accepts a slice and variadic comparison functions and returns a functions that can be used to sort the slice.
func FunctionBy ¶
func FunctionBy(field FunctionField, order SortOrder) func(p1, p2 Function) bool
FunctionBy returns a comparison function for sorting Function instances by the given field. These comparison functions may be strung together by the CmdFunctions function.
func FunctionCmp ¶
FunctionCmp accepts a slice and variadic comparison functions and returns a functions that can be used to sort the slice.
func IsTokenFunction ¶
func IsValidAbiField ¶
IsValidAbiField returns true if the given field is a valid sortable Abi field.
func IsValidChunkRecordField ¶
IsValidChunkRecordField returns true if the given field is a valid sortable ChunkRecord field.
func IsValidChunkStatsField ¶
IsValidChunkStatsField returns true if the given field is a valid sortable ChunkStats field.
func IsValidFunctionField ¶
IsValidFunctionField returns true if the given field is a valid sortable Function field.
func IsValidNameField ¶
IsValidNameField returns true if the given field is a valid sortable Name field.
Types ¶
type Abi ¶
type Abi struct { Address base.Address `json:"address"` FileSize int64 `json:"fileSize"` Functions []Function `json:"functions"` HasConstructor bool `json:"hasConstructor"` HasFallback bool `json:"hasFallback"` IsEmpty bool `json:"isEmpty"` IsKnown bool `json:"isKnown"` LastModDate string `json:"lastModDate"` NEvents int64 `json:"nEvents"` NFunctions int64 `json:"nFunctions"` Name string `json:"name"` Path string `json:"path"` }
func (*Abi) FinishUnmarshal ¶
func (s *Abi) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type AbiField ¶
type AbiField string
const ( AbiAddress AbiField = "address" AbiFileSize AbiField = "fileSize" AbiHasConstructor AbiField = "hasConstructor" AbiHasFallback AbiField = "hasFallback" AbiIsEmpty AbiField = "isEmpty" AbiIsKnown AbiField = "isKnown" AbiLastModDate AbiField = "lastModDate" AbiNEvents AbiField = "nEvents" AbiNFunctions AbiField = "nFunctions" AbiName AbiField = "name" )
Fields in the Abi struct available for sorting.
type AddrRecord ¶
type Appearance ¶
type Appearance 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"` }
func (*Appearance) Date ¶
func (s *Appearance) Date() string
func (*Appearance) FinishUnmarshal ¶
func (s *Appearance) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (*Appearance) GetKey ¶
func (s *Appearance) GetKey() string
func (*Appearance) Orig ¶
func (s *Appearance) Orig() string
func (Appearance) String ¶
func (s Appearance) String() string
type AppearanceTable ¶
type AppearanceTable struct { AddressRecord AddrRecord `json:"AddressRecord"` Appearances []AppRecord `json:"Appearances"` }
func (*AppearanceTable) FinishUnmarshal ¶
func (s *AppearanceTable) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (AppearanceTable) String ¶
func (s AppearanceTable) String() string
type Block ¶
type Block struct { BaseFeePerGas base.Gas `json:"baseFeePerGas"` BlockNumber base.Blknum `json:"blockNumber"` Difficulty base.Value `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 []Transaction `json:"transactions"` Uncles []base.Hash `json:"uncles,omitempty"` Withdrawals []Withdrawal `json:"withdrawals,omitempty"` // EXISTING_CODE Number base.Blknum `json:"number"` }
func (*Block) FinishUnmarshal ¶
func (s *Block) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type BlockCount ¶
type BlockCount struct { AddressCnt uint64 `json:"addressCnt,omitempty"` BlockNumber base.Blknum `json:"blockNumber"` LogsCnt uint64 `json:"logsCnt,omitempty"` Timestamp base.Timestamp `json:"timestamp"` TracesCnt uint64 `json:"tracesCnt,omitempty"` TransactionsCnt uint64 `json:"transactionsCnt"` UnclesCnt uint64 `json:"unclesCnt,omitempty"` WithdrawalsCnt uint64 `json:"withdrawalsCnt,omitempty"` }
func (*BlockCount) Date ¶
func (s *BlockCount) Date() string
func (*BlockCount) FinishUnmarshal ¶
func (s *BlockCount) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (BlockCount) String ¶
func (s BlockCount) String() string
type Bounds ¶
type Bounds struct { Count uint64 `json:"count"` FirstApp Appearance `json:"firstApp"` FirstTs base.Timestamp `json:"firstTs"` LatestApp Appearance `json:"latestApp"` LatestTs base.Timestamp `json:"latestTs"` }
func (*Bounds) FinishUnmarshal ¶
func (s *Bounds) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type CacheItem ¶
type CacheItem struct { Items []any `json:"items"` LastCached string `json:"lastCached,omitempty"` NFiles uint64 `json:"nFiles"` NFolders uint64 `json:"nFolders"` Path string `json:"path"` SizeInBytes int64 `json:"sizeInBytes"` CacheItemType string `json:"type"` }
func (*CacheItem) FinishUnmarshal ¶
func (s *CacheItem) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type Chain ¶
type Chain 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"` }
func (*Chain) FinishUnmarshal ¶
func (s *Chain) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type ChunkAddress ¶
type ChunkAddress struct { Address base.Address `json:"address"` Count uint64 `json:"count"` Offset uint64 `json:"offset"` Range string `json:"range"` RangeDates RangeDates `json:"rangeDates"` }
func (*ChunkAddress) FinishUnmarshal ¶
func (s *ChunkAddress) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (ChunkAddress) String ¶
func (s ChunkAddress) String() string
type ChunkAppearance ¶
type ChunkAppearance = Appearance
type ChunkBloom ¶
type ChunkBloom struct { ByteWidth uint64 `json:"byteWidth"` Hash base.Hash `json:"hash"` Magic string `json:"magic"` NBlooms uint64 `json:"nBlooms"` NInserted uint64 `json:"nInserted"` Range string `json:"range"` RangeDates RangeDates `json:"rangeDates"` Size uint64 `json:"size"` }
func (*ChunkBloom) FinishUnmarshal ¶
func (s *ChunkBloom) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (ChunkBloom) String ¶
func (s ChunkBloom) String() string
type ChunkIndex ¶
type ChunkIndex struct { Hash base.Hash `json:"hash"` Magic string `json:"magic"` NAddresses uint64 `json:"nAddresses"` NAppearances uint64 `json:"nAppearances"` Range string `json:"range"` RangeDates RangeDates `json:"rangeDates"` Size uint64 `json:"size"` }
func (*ChunkIndex) FinishUnmarshal ¶
func (s *ChunkIndex) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (ChunkIndex) String ¶
func (s ChunkIndex) String() string
type ChunkManifest ¶
type ChunkManifest = Manifest
type ChunkPin ¶
type ChunkPin struct { Chain string `json:"chain"` ManifestHash base.IpfsHash `json:"manifestHash"` SpecHash base.IpfsHash `json:"specHash"` TimestampHash base.IpfsHash `json:"timestampHash"` Version string `json:"version"` }
func (*ChunkPin) FinishUnmarshal ¶
func (s *ChunkPin) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type ChunkRecord ¶
type ChunkRecord struct { BloomHash base.IpfsHash `json:"bloomHash"` BloomSize int64 `json:"bloomSize"` IndexHash base.IpfsHash `json:"indexHash"` IndexSize int64 `json:"indexSize"` Range string `json:"range"` RangeDates RangeDates `json:"rangeDates"` }
func (*ChunkRecord) FinishUnmarshal ¶
func (s *ChunkRecord) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (ChunkRecord) String ¶
func (s ChunkRecord) String() string
type ChunkRecordField ¶
type ChunkRecordField string
const ( ChunkRecordBloomSize ChunkRecordField = "bloomSize" ChunkRecordIndexSize ChunkRecordField = "indexSize" ChunkRecordRange ChunkRecordField = "range" ChunkRecordRangeDates ChunkRecordField = "rangeDates" )
Fields in the ChunkRecord struct available for sorting.
type ChunkStats ¶
type ChunkStats struct { AddrsPerBlock float64 `json:"addrsPerBlock"` AppsPerAddr float64 `json:"appsPerAddr"` AppsPerBlock float64 `json:"appsPerBlock"` BloomSz uint64 `json:"bloomSz"` ChunkSz uint64 `json:"chunkSz"` NAddrs uint64 `json:"nAddrs"` NApps uint64 `json:"nApps"` NBlocks uint64 `json:"nBlocks"` NBlooms uint64 `json:"nBlooms"` Range string `json:"range"` RangeDates RangeDates `json:"rangeDates"` Ratio float64 `json:"ratio"` RecWid uint64 `json:"recWid"` }
func (*ChunkStats) FinishUnmarshal ¶
func (s *ChunkStats) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (ChunkStats) String ¶
func (s ChunkStats) String() string
type ChunkStatsField ¶
type ChunkStatsField string
const ( ChunkStatsAddrsPerBlock ChunkStatsField = "addrsPerBlock" ChunkStatsAppsPerAddr ChunkStatsField = "appsPerAddr" ChunkStatsAppsPerBlock ChunkStatsField = "appsPerBlock" ChunkStatsBloomSz ChunkStatsField = "bloomSz" ChunkStatsChunkSz ChunkStatsField = "chunkSz" ChunkStatsNAddrs ChunkStatsField = "nAddrs" ChunkStatsNApps ChunkStatsField = "nApps" ChunkStatsNBlocks ChunkStatsField = "nBlocks" ChunkStatsNBlooms ChunkStatsField = "nBlooms" ChunkStatsRange ChunkStatsField = "range" ChunkStatsRangeDates ChunkStatsField = "rangeDates" ChunkStatsRatio ChunkStatsField = "ratio" )
Fields in the ChunkStats struct available for sorting.
type Count ¶
type Count struct {
Count uint64 `json:"count"`
}
func (*Count) FinishUnmarshal ¶
func (s *Count) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type Function ¶
type Function struct { Anonymous bool `json:"anonymous,omitempty"` Constant bool `json:"constant,omitempty"` Encoding string `json:"encoding"` Inputs []Parameter `json:"inputs"` Message string `json:"message,omitempty"` Name string `json:"name"` Outputs []Parameter `json:"outputs"` Signature string `json:"signature,omitempty"` StateMutability string `json:"stateMutability,omitempty"` FunctionType string `json:"type"` // contains filtered or unexported fields }
func FunctionFromAbiEvent ¶
func FunctionFromAbiMethod ¶
FunctionFromAbiMethod converts go-ethereum's abi.Method to our Function
func (*Function) AbiEventFromFunction ¶
func (*Function) AbiMethodFromFunction ¶
func (*Function) FinishUnmarshal ¶
func (s *Function) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (*Function) GetAbiMethod ¶
func (*Function) Normalize ¶
func (s *Function) 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 (*Function) SetAbiEvent ¶
func (*Function) SetAbiMethod ¶
type FunctionField ¶
type FunctionField string
const ( FunctionEncoding FunctionField = "encoding" FunctionName FunctionField = "name" FunctionSignature FunctionField = "signature" FunctionStateMutability FunctionField = "stateMutability" FunctionType FunctionField = "type" )
Fields in the Function struct available for sorting.
type IpfsPin ¶
type IpfsPin struct { Cid base.IpfsHash `json:"cid"` DatePinned string `json:"datePinned"` FileName string `json:"fileName"` Size int64 `json:"size"` Status string `json:"status"` }
func (*IpfsPin) FinishUnmarshal ¶
func (s *IpfsPin) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type LightBlock ¶
type LightBlock struct { BaseFeePerGas base.Gas `json:"baseFeePerGas"` BlockNumber base.Blknum `json:"blockNumber"` Difficulty base.Value `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 []string `json:"transactions"` Uncles []base.Hash `json:"uncles,omitempty"` Withdrawals []Withdrawal `json:"withdrawals,omitempty"` // EXISTING_CODE Number base.Blknum `json:"number"` }
func (*LightBlock) CacheLocations ¶
func (s *LightBlock) CacheLocations() (string, string, string)
func (*LightBlock) Date ¶
func (s *LightBlock) Date() string
func (*LightBlock) FinishUnmarshal ¶
func (s *LightBlock) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (*LightBlock) MarshalCache ¶
func (s *LightBlock) MarshalCache(writer io.Writer) (err error)
func (LightBlock) String ¶
func (s LightBlock) String() string
func (*LightBlock) UnmarshalCache ¶
func (s *LightBlock) UnmarshalCache(vers uint64, reader io.Reader) (err error)
type Log ¶
type Log struct { Address base.Address `json:"address"` ArticulatedLog *Function `json:"articulatedLog,omitempty"` BlockHash base.Hash `json:"blockHash"` BlockNumber base.Blknum `json:"blockNumber"` Data string `json:"data,omitempty"` LogIndex base.Lognum `json:"logIndex"` Timestamp base.Timestamp `json:"timestamp,omitempty"` Topics []base.Hash `json:"topics,omitempty"` TransactionHash base.Hash `json:"transactionHash"` TransactionIndex base.Txnum `json:"transactionIndex"` }
func (*Log) FinishUnmarshal ¶
func (s *Log) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type Manifest ¶
type Manifest struct { Chain string `json:"chain"` Chunks []ChunkRecord `json:"chunks"` Specification base.IpfsHash `json:"specification"` Version string `json:"version"` }
func (*Manifest) FinishUnmarshal ¶
func (s *Manifest) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type MappedType ¶
type MappedType interface { Transaction | Block | LightBlock | Appearance | Withdrawal | []Result | Token | bool }
type Message ¶
func (*Message) FinishUnmarshal ¶
func (s *Message) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type MetaData ¶
type MetaData struct { Latest base.Blknum `json:"client"` Finalized base.Blknum `json:"finalized"` Staging base.Blknum `json:"staging"` Ripe base.Blknum `json:"ripe"` Unripe base.Blknum `json:"unripe"` ChainId uint64 `json:"chainId,omitempty"` NetworkId uint64 `json:"networkId,omitempty"` Chain string `json:"chain,omitempty"` }
func (*MetaData) ChainHeight ¶
ChainHeight returns the block after the height of the index.
func (*MetaData) IndexHeight ¶
Highest returns the height of the index (i.e., max between the finalized, staging, and ripe indexes).
func (*MetaData) NextIndexHeight ¶
NextIndexHeight returns the block after the height of the index.
func (*MetaData) StageHeight ¶
StageHeight returns the highest block that's been staged
type Monitor ¶
type Monitor struct { Address base.Address `json:"address"` Deleted bool `json:"deleted"` FileSize int64 `json:"fileSize"` IsEmpty bool `json:"isEmpty"` IsStaged bool `json:"isStaged"` LastScanned uint32 `json:"lastScanned"` NRecords int64 `json:"nRecords"` Name string `json:"name"` }
func (*Monitor) FinishUnmarshal ¶
func (s *Monitor) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type MonitorClean ¶
type MonitorClean struct { Address base.Address `json:"address"` Dups int64 `json:"dups"` Removed bool `json:"removed"` SizeNow int64 `json:"sizeNow"` SizeThen int64 `json:"sizeThen"` Staged bool `json:"staged"` }
func (*MonitorClean) FinishUnmarshal ¶
func (s *MonitorClean) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (MonitorClean) String ¶
func (s MonitorClean) String() string
type Name ¶
type Name 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"` Source string `json:"source"` Symbol string `json:"symbol"` Tags string `json:"tags"` // EXISTING_CODE Prefund base.Wei `json:"prefund,omitempty"` Parts Parts `json:"parts,omitempty"` }
func (*Name) FinishUnmarshal ¶
func (s *Name) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type NameField ¶
type NameField string
const ( NameAddress NameField = "address" NameDecimals NameField = "decimals" NameDeleted NameField = "deleted" NameIsContract NameField = "isContract" NameIsCustom NameField = "isCustom" NameIsErc20 NameField = "isErc20" NameIsErc721 NameField = "isErc721" NameIsPrefund NameField = "isPrefund" NameName NameField = "name" NameSource NameField = "source" NameSymbol NameField = "symbol" NameTags NameField = "tags" )
Fields in the Name struct available for sorting.
type NamedBlock ¶
type NamedBlock 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"` }
func (*NamedBlock) Date ¶
func (s *NamedBlock) Date() string
func (*NamedBlock) FinishUnmarshal ¶
func (s *NamedBlock) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (NamedBlock) String ¶
func (s NamedBlock) String() string
type Parameter ¶
type Parameter struct { Components []Parameter `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"` }
func (*Parameter) DisplayName ¶
DisplayName returns parameter name if defined, or a default name "val_" + index
func (*Parameter) FinishUnmarshal ¶
func (s *Parameter) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type RangeDates ¶
type RangeDates struct { FirstDate string `json:"firstDate,omitempty"` FirstTs base.Timestamp `json:"firstTs,omitempty"` LastDate string `json:"lastDate,omitempty"` LastTs base.Timestamp `json:"lastTs,omitempty"` }
func (*RangeDates) FinishUnmarshal ¶
func (s *RangeDates) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (RangeDates) String ¶
func (s RangeDates) String() string
type Receipt ¶
type Receipt struct { BlockHash base.Hash `json:"blockHash,omitempty"` BlockNumber base.Blknum `json:"blockNumber"` ContractAddress base.Address `json:"contractAddress,omitempty"` CumulativeGasUsed base.Gas `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 []Log `json:"logs"` Status base.Value `json:"status"` To base.Address `json:"to,omitempty"` TransactionHash base.Hash `json:"transactionHash"` TransactionIndex base.Txnum `json:"transactionIndex"` }
func (*Receipt) FinishUnmarshal ¶
func (s *Receipt) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type ReceiptGroup ¶
func (*ReceiptGroup) CacheLocations ¶
func (s *ReceiptGroup) CacheLocations() (string, string, string)
func (*ReceiptGroup) MarshalCache ¶
func (s *ReceiptGroup) MarshalCache(writer io.Writer) (err error)
func (*ReceiptGroup) UnmarshalCache ¶
func (s *ReceiptGroup) UnmarshalCache(vers uint64, reader io.Reader) (err error)
type ReportCheck ¶
type ReportCheck struct { CheckedCnt uint64 `json:"checkedCnt"` FailedCnt uint64 `json:"failedCnt"` MsgStrings []string `json:"msgStrings"` PassedCnt uint64 `json:"passedCnt"` Reason string `json:"reason"` Result string `json:"result"` SkippedCnt uint64 `json:"skippedCnt"` VisitedCnt uint64 `json:"visitedCnt"` }
func (*ReportCheck) FinishUnmarshal ¶
func (s *ReportCheck) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (ReportCheck) String ¶
func (s ReportCheck) String() string
type Result ¶
type Result struct { Address base.Address `json:"address"` ArticulatedOut *Function `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 }
func (*Result) FinishUnmarshal ¶
func (s *Result) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type Rewards ¶
type Slurp ¶
type Slurp struct { ArticulatedTx *Function `json:"articulatedTx"` BlockHash base.Hash `json:"blockHash"` BlockNumber base.Blknum `json:"blockNumber"` ContractAddress base.Address `json:"contractAddress"` CumulativeGasUsed string `json:"cumulativeGasUsed"` 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:"-"` MethodId string `json:"methodId"` Nonce base.Value `json:"nonce"` Timestamp base.Timestamp `json:"timestamp"` To base.Address `json:"to"` TransactionIndex base.Txnum `json:"transactionIndex"` TxReceiptStatus string `json:"txReceiptStatus"` ValidatorIndex base.Value `json:"validatorIndex"` Value base.Wei `json:"value"` WithdrawalIndex base.Value `json:"withdrawalIndex"` // EXISTING_CODE Amount base.Wei `json:"amount"` }
func (*Slurp) FinishUnmarshal ¶
func (s *Slurp) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type SlurpGroup ¶
type SlurpGroup struct { BlockNumber base.Blknum TransactionIndex base.Txnum Address base.Address Slurps []Slurp }
func (*SlurpGroup) CacheLocations ¶
func (s *SlurpGroup) CacheLocations() (string, string, string)
func (*SlurpGroup) MarshalCache ¶
func (s *SlurpGroup) MarshalCache(writer io.Writer) (err error)
func (*SlurpGroup) UnmarshalCache ¶
func (s *SlurpGroup) UnmarshalCache(vers uint64, reader io.Reader) (err error)
type State ¶
type State 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 base.Value `json:"nonce"` Parts StatePart `json:"parts"` Proxy base.Address `json:"proxy"` Timestamp base.Timestamp `json:"timestamp"` }
func (*State) FinishUnmarshal ¶
func (s *State) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type StatePart ¶
type StatePart int
EXISTING_CODE StatePart is a bit mask for querying various parts an address's state
func SliceToStateParts ¶
SliceToStateParts converts a string array of part names to a bit mask of parts and returns the corresponding output field names or none if no valid parts are present
type Statement ¶
type Statement struct { AccountedFor base.Address `json:"accountedFor"` AmountIn base.Wei `json:"amountIn,omitempty"` AmountOut base.Wei `json:"amountOut,omitempty"` AssetAddr base.Address `json:"assetAddr"` AssetSymbol string `json:"assetSymbol"` BegBal base.Wei `json:"begBal"` BlockNumber base.Blknum `json:"blockNumber"` CorrectingIn base.Wei `json:"correctingIn,omitempty"` CorrectingOut base.Wei `json:"correctingOut,omitempty"` CorrectingReason string `json:"correctingReason,omitempty"` Decimals base.Value `json:"decimals"` EndBal base.Wei `json:"endBal"` GasOut base.Wei `json:"gasOut,omitempty"` InternalIn base.Wei `json:"internalIn,omitempty"` InternalOut base.Wei `json:"internalOut,omitempty"` LogIndex base.Lognum `json:"logIndex"` MinerBaseRewardIn base.Wei `json:"minerBaseRewardIn,omitempty"` MinerNephewRewardIn base.Wei `json:"minerNephewRewardIn,omitempty"` MinerTxFeeIn base.Wei `json:"minerTxFeeIn,omitempty"` MinerUncleRewardIn base.Wei `json:"minerUncleRewardIn,omitempty"` PrefundIn base.Wei `json:"prefundIn,omitempty"` PrevBal base.Wei `json:"prevBal,omitempty"` PriceSource string `json:"priceSource"` Recipient base.Address `json:"recipient"` SelfDestructIn base.Wei `json:"selfDestructIn,omitempty"` SelfDestructOut base.Wei `json:"selfDestructOut,omitempty"` Sender base.Address `json:"sender"` SpotPrice base.Float `json:"spotPrice"` Timestamp base.Timestamp `json:"timestamp"` TransactionHash base.Hash `json:"transactionHash"` TransactionIndex base.Txnum `json:"transactionIndex"` // EXISTING_CODE ReconType ReconType `json:"-"` AssetType string `json:"-"` }
func (*Statement) BegBalDiff ¶
func (*Statement) CorrectForNullTransfer ¶
func (s *Statement) CorrectForNullTransfer(tx *Transaction) bool
func (*Statement) CorrectForSomethingElse ¶
func (s *Statement) CorrectForSomethingElse(tx *Transaction) bool
func (*Statement) DebugStatement ¶
func (*Statement) EndBalCalc ¶
func (*Statement) EndBalDiff ¶
func (*Statement) FinishUnmarshal ¶
func (s *Statement) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (*Statement) IsMaterial ¶
func (*Statement) IsStableCoin ¶
func (*Statement) Reconciled ¶
func (*Statement) TotalOutLessGas ¶
type StatementGroup ¶
type StatementGroup struct { BlockNumber base.Blknum TransactionIndex base.Txnum Address base.Address Statements []Statement }
func (*StatementGroup) CacheLocations ¶
func (s *StatementGroup) CacheLocations() (string, string, string)
func (*StatementGroup) MarshalCache ¶
func (s *StatementGroup) MarshalCache(writer io.Writer) (err error)
func (*StatementGroup) UnmarshalCache ¶
func (s *StatementGroup) UnmarshalCache(vers uint64, reader io.Reader) (err error)
type Status ¶
type Status struct { CachePath string `json:"cachePath,omitempty"` Caches []CacheItem `json:"caches"` Chain string `json:"chain,omitempty"` ChainConfig string `json:"chainConfig,omitempty"` ChainId string `json:"chainId,omitempty"` Chains []Chain `json:"chains"` ClientVersion string `json:"clientVersion,omitempty"` HasEsKey bool `json:"hasEsKey,omitempty"` HasPinKey bool `json:"hasPinKey,omitempty"` IndexPath string `json:"indexPath,omitempty"` IsApi bool `json:"isApi,omitempty"` IsArchive bool `json:"isArchive,omitempty"` IsScraping bool `json:"isScraping,omitempty"` IsTesting bool `json:"isTesting,omitempty"` IsTracing bool `json:"isTracing,omitempty"` NetworkId string `json:"networkId,omitempty"` Progress string `json:"progress,omitempty"` RootConfig string `json:"rootConfig,omitempty"` RpcProvider string `json:"rpcProvider,omitempty"` Version string `json:"version,omitempty"` // EXISTING_CODE Meta *MetaData `json:"meta,omitempty"` Diffs *MetaData `json:"diffs,omitempty"` }
func (*Status) FinishUnmarshal ¶
func (s *Status) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type StorageSlot ¶
type Timestamp ¶
type Timestamp struct { BlockNumber base.Blknum `json:"blockNumber"` Diff int64 `json:"diff"` Timestamp base.Timestamp `json:"timestamp"` }
func (*Timestamp) FinishUnmarshal ¶
func (s *Timestamp) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type Token ¶
type Token struct { Address base.Address `json:"address"` Balance base.Wei `json:"balance"` BlockNumber base.Blknum `json:"blockNumber"` Decimals uint64 `json:"decimals"` Holder base.Address `json:"holder"` Name string `json:"name"` PriorBalance base.Wei `json:"priorBalance,omitempty"` Symbol string `json:"symbol"` Timestamp base.Timestamp `json:"timestamp"` TotalSupply base.Wei `json:"totalSupply"` TransactionIndex base.Txnum `json:"transactionIndex,omitempty"` TokenType TokenType `json:"type"` }
func (*Token) FinishUnmarshal ¶
func (s *Token) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
type Trace ¶
type Trace struct { Action *TraceAction `json:"action"` ArticulatedTrace *Function `json:"articulatedTrace,omitempty"` BlockHash base.Hash `json:"blockHash"` BlockNumber base.Blknum `json:"blockNumber"` Error string `json:"error,omitempty"` Result *TraceResult `json:"result"` Subtraces uint64 `json:"subtraces"` Timestamp base.Timestamp `json:"timestamp"` TraceAddress []uint64 `json:"traceAddress"` TransactionHash base.Hash `json:"transactionHash"` TransactionIndex base.Txnum `json:"transactionIndex"` TraceType string `json:"type,omitempty"` // EXISTING_CODE TraceIndex base.Tracenum `json:"-"` TransactionPosition base.Txnum `json:"transactionPosition,omitempty"` // contains filtered or unexported fields }
func (*Trace) FinishUnmarshal ¶
func (s *Trace) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (*Trace) GetSortString ¶
type TraceAction ¶
type TraceAction 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"` }
func (*TraceAction) FinishUnmarshal ¶
func (s *TraceAction) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (*TraceAction) MarshalCache ¶
func (s *TraceAction) MarshalCache(writer io.Writer) (err error)
func (TraceAction) String ¶
func (s TraceAction) String() string
func (*TraceAction) UnmarshalCache ¶
func (s *TraceAction) UnmarshalCache(vers uint64, reader io.Reader) (err error)
type TraceCount ¶
type TraceCount struct { BlockNumber base.Blknum `json:"blockNumber"` Timestamp base.Timestamp `json:"timestamp"` TracesCnt uint64 `json:"tracesCnt"` TransactionHash base.Hash `json:"transactionHash"` TransactionIndex base.Txnum `json:"transactionIndex"` }
func (*TraceCount) Date ¶
func (s *TraceCount) Date() string
func (*TraceCount) FinishUnmarshal ¶
func (s *TraceCount) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (TraceCount) String ¶
func (s TraceCount) String() string
type TraceFilter ¶
type TraceFilter 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"` }
func (*TraceFilter) FinishUnmarshal ¶
func (s *TraceFilter) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (*TraceFilter) ParseBangString ¶
func (s *TraceFilter) ParseBangString(chain, filter string) (ret map[string]any, br base.BlockRange)
func (*TraceFilter) PassesBasic ¶
func (TraceFilter) String ¶
func (s TraceFilter) String() string
type TraceGroup ¶
func (*TraceGroup) CacheLocations ¶
func (s *TraceGroup) CacheLocations() (string, string, string)
func (*TraceGroup) MarshalCache ¶
func (s *TraceGroup) MarshalCache(writer io.Writer) (err error)
func (*TraceGroup) UnmarshalCache ¶
func (s *TraceGroup) UnmarshalCache(vers uint64, reader io.Reader) (err error)
type TraceResult ¶
type TraceResult struct { Address base.Address `json:"address,omitempty"` Code string `json:"code,omitempty"` GasUsed base.Gas `json:"gasUsed,omitempty"` Output string `json:"output,omitempty"` }
func (*TraceResult) FinishUnmarshal ¶
func (s *TraceResult) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (*TraceResult) MarshalCache ¶
func (s *TraceResult) MarshalCache(writer io.Writer) (err error)
func (TraceResult) String ¶
func (s TraceResult) String() string
func (*TraceResult) UnmarshalCache ¶
func (s *TraceResult) UnmarshalCache(vers uint64, reader io.Reader) (err error)
type Transaction ¶
type Transaction struct { ArticulatedTx *Function `json:"articulatedTx"` BlockHash base.Hash `json:"blockHash"` BlockNumber base.Blknum `json:"blockNumber"` 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 base.Value `json:"nonce"` Receipt *Receipt `json:"receipt"` Timestamp base.Timestamp `json:"timestamp"` To base.Address `json:"to"` Traces []Trace `json:"traces"` TransactionIndex base.Txnum `json:"transactionIndex"` TransactionType string `json:"type"` Value base.Wei `json:"value"` // EXISTING_CODE Message string `json:"-"` Rewards *Rewards `json:"-"` Statements *[]Statement `json:"statements"` }
func (*Transaction) CacheLocations ¶
func (s *Transaction) CacheLocations() (string, string, string)
func (*Transaction) Date ¶
func (s *Transaction) Date() string
func (*Transaction) FinishUnmarshal ¶
func (s *Transaction) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (*Transaction) GasCost ¶
func (s *Transaction) GasCost() base.Gas
func (*Transaction) MarshalCache ¶
func (s *Transaction) MarshalCache(writer io.Writer) (err error)
func (Transaction) String ¶
func (s Transaction) String() string
func (*Transaction) UnmarshalCache ¶
func (s *Transaction) UnmarshalCache(vers uint64, reader io.Reader) (err error)
type Withdrawal ¶
type Withdrawal struct { Address base.Address `json:"address"` Amount base.Wei `json:"amount"` BlockNumber base.Blknum `json:"blockNumber"` Index base.Value `json:"index"` Timestamp base.Timestamp `json:"timestamp"` ValidatorIndex base.Value `json:"validatorIndex"` }
func (*Withdrawal) Date ¶
func (s *Withdrawal) Date() string
func (*Withdrawal) FinishUnmarshal ¶
func (s *Withdrawal) FinishUnmarshal()
FinishUnmarshal is used by the cache. It may be unused depending on auto-code-gen
func (*Withdrawal) MarshalCache ¶
func (s *Withdrawal) MarshalCache(writer io.Writer) (err error)
func (Withdrawal) String ¶
func (s Withdrawal) String() string
func (*Withdrawal) UnmarshalCache ¶
func (s *Withdrawal) UnmarshalCache(vers uint64, reader io.Reader) (err error)
type WithdrawalGroup ¶
type WithdrawalGroup struct { BlockNumber base.Blknum TransactionIndex base.Txnum Withdrawals []Withdrawal }
func (*WithdrawalGroup) CacheLocations ¶
func (s *WithdrawalGroup) CacheLocations() (string, string, string)
func (*WithdrawalGroup) MarshalCache ¶
func (s *WithdrawalGroup) MarshalCache(writer io.Writer) (err error)
func (*WithdrawalGroup) UnmarshalCache ¶
func (s *WithdrawalGroup) UnmarshalCache(vers uint64, reader io.Reader) (err error)
Source Files
¶
- compressed.go
- doc.go
- namer.go
- sort.go
- types_abi.go
- types_abi_sort.go
- types_appearance.go
- types_appearanceTable.go
- types_block.go
- types_blockcount.go
- types_bounds.go
- types_cacheitem.go
- types_chain.go
- types_chunkaddress.go
- types_chunkbloom.go
- types_chunkindex.go
- types_chunkpin.go
- types_chunkrecord.go
- types_chunkrecord_sort.go
- types_chunkstats.go
- types_chunkstats_sort.go
- types_count.go
- types_function.go
- types_function_sort.go
- types_ipfspin.go
- types_lightblock.go
- types_log.go
- types_manifest.go
- types_message.go
- types_metadata.go
- types_modeler.go
- types_monitor.go
- types_monitorclean.go
- types_name.go
- types_name_sort.go
- types_namedblock.go
- types_parameter.go
- types_rangedates.go
- types_receipt.go
- types_reconType.go
- types_reportcheck.go
- types_result.go
- types_slurp.go
- types_state.go
- types_statement.go
- types_status.go
- types_timestamp.go
- types_token.go
- types_trace.go
- types_traceaction.go
- types_tracecount.go
- types_tracefilter.go
- types_traceresult.go
- types_transaction.go
- types_withdrawal.go