fevm

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FEVMActorStats

type FEVMActorStats struct {

	// Height message was executed at.
	Height int64 `pg:",pk,notnull,use_zero"`

	// Balance of EVM actor in attoFIL.
	ContractBalance string `pg:",notnull"`
	// Balance of Eth account actor in attoFIL.
	EthAccountBalance string `pg:",notnull"`
	// Balance of Placeholder Actor in attoFIL.
	PlaceholderBalance string `pg:",notnull"`

	// number of contracts
	ContractCount uint64 `pg:",use_zero"`
	// number of unique contracts
	UniqueContractCount uint64 `pg:",use_zero"`
	// number of Eth account actors
	EthAccountCount uint64 `pg:",use_zero"`
	// number of placeholder actors
	PlaceholderCount uint64 `pg:",use_zero"`
	// contains filtered or unexported fields
}

func (*FEVMActorStats) Persist

type FEVMActorStatsList

type FEVMActorStatsList []*FEVMActorStats

func (FEVMActorStatsList) Persist

type FEVMBlockHeader added in v0.17.0

type FEVMBlockHeader struct {

	// Height message was executed at.
	Height int64 `pg:",pk,notnull,use_zero"`
	// ETH Hash
	Hash string `pg:",notnull"`
	// Parent Block ETH Hash
	ParentHash string `pg:",notnull"`
	// ETH Address of the miner who mined this block.
	Miner string `pg:",notnull"`
	// Block state root ETH hash.
	StateRoot string `pg:",notnull"`
	// Set to a hardcoded value which is used by some clients to determine if has no transactions.
	TransactionsRoot string `pg:",notnull"`
	// Hash of the transaction receipts trie.
	ReceiptsRoot string `pg:",notnull"`
	// ETH mining difficulty.
	Difficulty uint64 `pg:",use_zero"`
	// The number of the current block.
	Number uint64 `pg:",use_zero"`
	// Maximum gas allowed in this block.
	GasLimit uint64 `pg:",use_zero"`
	// The actual amount of gas used in this block.
	GasUsed uint64 `pg:",use_zero"`
	// The block time.
	Timestamp uint64 `pg:",use_zero"`
	// Arbitrary additional data as raw bytes.
	ExtraData string `pg:",notnull"`
	MixHash   string `pg:",notnull"`
	Nonce     string `pg:",notnull"`
	// The base fee value.
	BaseFeePerGas string `pg:",notnull"`
	// Block size.
	Size       uint64 `pg:",use_zero"`
	Sha3Uncles string `pg:",notnull"`
	// contains filtered or unexported fields
}

func (*FEVMBlockHeader) Persist added in v0.17.0

type FEVMBlockHeaderList added in v0.17.0

type FEVMBlockHeaderList []*FEVMBlockHeader

func (FEVMBlockHeaderList) Persist added in v0.17.0

type FEVMContract added in v0.17.0

type FEVMContract struct {

	// Height message was executed at.
	Height int64 `pg:",pk,notnull,use_zero"`
	// Actor address.
	ActorID string `pg:",pk,notnull"`
	// Actor Address in ETH.
	EthAddress string `pg:",notnull"`
	// Contract Bytecode.
	ByteCode string `pg:",notnull"`
	// Contract Bytecode is encoded in hash by Keccak256.
	ByteCodeHash string `pg:",notnull"`
	// Balance of EVM actor in attoFIL.
	Balance string `pg:"type:numeric,notnull"`
	// The next actor nonce that is expected to appear on chain.
	Nonce uint64 `pg:",pk,use_zero"`
	// contains filtered or unexported fields
}

func (*FEVMContract) Persist added in v0.17.0

type FEVMContractList added in v0.17.0

type FEVMContractList []*FEVMContract

func (FEVMContractList) Persist added in v0.17.0

type FEVMReceipt added in v0.17.0

type FEVMReceipt struct {

	// Height message was executed at.
	Height int64 `pg:",pk,notnull,use_zero"`
	// Message CID
	Message string `pg:",use_zero"`
	// Hash of transaction.
	TransactionHash string `pg:",pk,notnull"`
	// Integer of the transactions index position in the block.
	TransactionIndex uint64 `pg:",use_zero"`
	// Hash of the block where this transaction was in.
	BlockHash string `pg:",notnull"`
	// Block number where this transaction was in.
	BlockNumber uint64 `pg:",use_zero"`
	// ETH Address of the sender.
	From string `pg:",notnull"`
	// ETH Address of the receiver.
	To string `pg:",notnull"`
	// The contract address created, if the transaction was a contract creation, otherwise null.
	ContractAddress string `pg:",notnull"`
	// 0 indicates transaction failure , 1 indicates transaction succeeded.
	Status uint64 `pg:",use_zero"`
	// The total amount of gas used when this transaction was executed in the block.
	CumulativeGasUsed uint64 `pg:",use_zero"`
	// The actual amount of gas used in this block.
	GasUsed uint64 `pg:",use_zero"`
	// The actual value per gas deducted from the senders account.
	EffectiveGasPrice int64 `pg:",use_zero"`
	// Includes the bloom filter representation of the logs
	LogsBloom string `pg:",notnull"`
	// Array of log objects, which this transaction generated.
	Logs string `pg:",type:jsonb"`
	// contains filtered or unexported fields
}

func (*FEVMReceipt) Persist added in v0.17.0

type FEVMReceiptList added in v0.17.0

type FEVMReceiptList []*FEVMReceipt

func (FEVMReceiptList) Persist added in v0.17.0

type FEVMTrace added in v0.17.0

type FEVMTrace struct {

	// Height message was executed at.
	Height int64 `pg:",pk,notnull,use_zero"`
	// StateRoot message was applied to.
	MessageStateRoot string `pg:",notnull"`
	// On-chain message triggering the message.
	MessageCid string `pg:",pk,notnull"`
	// On-chain message ETH transaction hash
	TransactionHash string `pg:",notnull"`

	// Cid of the trace.
	TraceCid string `pg:",notnull"`
	// ETH Address of the sender.
	From string `pg:",notnull"`
	// ETH Address of the receiver.
	To string `pg:",notnull"`
	// Filecoin Address of the sender.
	FromFilecoinAddress string `pg:",notnull"`
	// Filecoin Address of the receiver.
	ToFilecoinAddress string `pg:",notnull"`

	// Value attoFIL contained in message.
	Value string `pg:"type:numeric,notnull"`
	// Method called on To (receiver).
	Method uint64 `pg:",notnull,use_zero"`
	// Method in readable name.
	ParsedMethod string `pg:",notnull"`
	// ActorCode of To (receiver) as a CID.
	ActorCode string `pg:",notnull"`
	// ExitCode of message execution.
	ExitCode int64 `pg:",notnull,use_zero"`
	// Params contained in message encode in eth bytes.
	Params string `pg:",notnull"`
	// Returns value of message receipt encode in eth bytes.
	Returns string `pg:",notnull"`
	// Index indicating the order of the messages execution.
	Index uint64 `pg:",pk,notnull,use_zero"`
	// Params contained in message.
	ParsedParams string `pg:",type:jsonb"`
	// Returns value of message receipt.
	ParsedReturns string `pg:",type:jsonb"`
	// Params codec.
	ParamsCodec uint64 `pg:",notnull,use_zero"`
	// Returns codec.
	ReturnsCodec uint64 `pg:",notnull,use_zero"`
	// Human-readable identifier of receiver (To).
	ToActorName string `pg:",notnull"`
	// Human-readable identifier of sender (From).
	FromActorName string `pg:",notnull"`
	// contains filtered or unexported fields
}

func (*FEVMTrace) Persist added in v0.17.0

func (f *FEVMTrace) Persist(ctx context.Context, s model.StorageBatch, _ model.Version) error

type FEVMTraceList added in v0.17.0

type FEVMTraceList []*FEVMTrace

func (FEVMTraceList) Persist added in v0.17.0

type FEVMTransaction added in v0.17.0

type FEVMTransaction struct {

	// Height message was executed at.
	Height int64 `pg:",pk,notnull,use_zero"`
	// Hash of transaction.
	Hash string `pg:",pk,notnull"`
	// EVM network id.
	ChainID uint64 `pg:",use_zero"`
	// A sequentially incrementing counter which indicates the transaction number from the account.
	Nonce uint64 `pg:",use_zero"`
	// Hash of the block where this transaction was in.
	BlockHash string `pg:",notnull"`
	// Block number where this transaction was in.
	BlockNumber uint64 `pg:",use_zero"`
	// Integer of the transactions index position in the block.
	TransactionIndex uint64 `pg:",use_zero"`
	// ETH Address of the sender.
	From string `pg:",notnull"`
	// ETH Address of the receiver.
	To string `pg:",notnull"`
	// Amount of FIL to transfer from sender to recipient.
	Value string `pg:",notnull"`
	// Type of transactions.
	Type uint64 `pg:",use_zero"`
	// The data sent along with the transaction.
	Input string `pg:",notnull"`
	// Gas provided by the sender.
	Gas uint64 `pg:",use_zero"`
	// The maximum fee per unit of gas willing to be paid for the transaction.
	MaxFeePerGas string `pg:"type:numeric,notnull"`
	// The maximum price of the consumed gas to be included as a tip to the validator.
	MaxPriorityFeePerGas string `pg:"type:numeric,notnull"`
	AccessList           string `pg:",type:jsonb"`
	// Transaction’s signature. Recovery Identifier.
	V string `pg:",notnull"`
	// Transaction’s signature. Outputs of an ECDSA signature.
	R string `pg:",notnull"`
	// Transaction’s signature. Outputs of an ECDSA signature.
	S string `pg:",notnull"`
	// Filecoin Address of the sender.
	FromFilecoinAddress string `pg:",notnull"`
	// Filecoin Address of the receiver.
	ToFilecoinAddress string `pg:",notnull"`
	// Human-readable identifier of sender (From).
	FromActorName string `pg:",notnull"`
	// Human-readable identifier of receiver (To).
	ToActorName string `pg:",notnull"`
	// On-chain message triggering the message.
	MessageCid string `pg:",notnull"`
	// contains filtered or unexported fields
}

func (*FEVMTransaction) Persist added in v0.17.0

type FEVMTransactionList added in v0.17.0

type FEVMTransactionList []*FEVMTransaction

func (FEVMTransactionList) Persist added in v0.17.0

Jump to

Keyboard shortcuts

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