snapshot

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressTableAddressExistsData added in v0.7.3

func AddressTableAddressExistsData(address common.Address) []byte

func AddressTableCompressData added in v0.7.3

func AddressTableCompressData(address common.Address) []byte

func AddressTableDecompressData added in v0.7.3

func AddressTableDecompressData(buf []byte, offset *big.Int) []byte

func AddressTableLookupData added in v0.7.3

func AddressTableLookupData(address common.Address) []byte

func AddressTableLookupIndexData added in v0.7.3

func AddressTableLookupIndexData(index *big.Int) []byte

func AddressTableRegisterData added in v0.7.3

func AddressTableRegisterData(address common.Address) []byte

func AddressTableSizeData added in v0.7.3

func AddressTableSizeData() []byte

func FunctionTableGetData added in v0.7.3

func FunctionTableGetData(address common.Address, index *big.Int) []byte

func FunctionTableSizeData added in v0.7.3

func FunctionTableSizeData(address common.Address) []byte

func GetBLSPublicKeyData added in v0.7.3

func GetBLSPublicKeyData(address common.Address) []byte

func ParseERC20WithdrawalEvent added in v0.7.3

func ParseERC20WithdrawalEvent(log evm.Log) (*arboscontracts.ArbSysERC20Withdrawal, error)

func ParseERC721WithdrawalEvent added in v0.7.3

func ParseERC721WithdrawalEvent(log evm.Log) (*arboscontracts.ArbSysERC721Withdrawal, error)

func ParseEthWithdrawalEvent added in v0.7.3

func ParseEthWithdrawalEvent(log evm.Log) (*arboscontracts.ArbSysEthWithdrawal, error)

func ParseFunctionTableGetDataResult added in v0.7.3

func ParseFunctionTableGetDataResult(data []byte) (message.FunctionTableEntry, error)

func RegisterBLSKeyData added in v0.7.3

func RegisterBLSKeyData(x0, x1, y0, y1 *big.Int) []byte

func StorageAtData added in v0.7.3

func StorageAtData(address common.Address, index *big.Int) []byte

func TransactionCountData added in v0.7.3

func TransactionCountData(address common.Address) []byte

func UploadFunctionTableData added in v0.7.3

func UploadFunctionTableData(buf []byte) []byte

func WithdrawERC20Data added in v0.7.3

func WithdrawERC20Data(address common.Address, amount *big.Int) []byte

func WithdrawERC721Data added in v0.7.3

func WithdrawERC721Data(address common.Address, id *big.Int) []byte

func WithdrawEthData added in v0.7.3

func WithdrawEthData(address common.Address) []byte

Types

type Snapshot

type Snapshot struct {
	// contains filtered or unexported fields
}

func NewSnapshot

func NewSnapshot(mach machine.Machine, time inbox.ChainTime, chainId *big.Int, lastInboxSeq *big.Int) *Snapshot

func (*Snapshot) AddMessage

func (s *Snapshot) AddMessage(msg message.Message, sender common.Address, targetHash common.Hash) (*evm.TxResult, error)

AddMessage can only be called if the snapshot is uniquely owned If an error is returned, s is unmodified

func (*Snapshot) AdvanceTime

func (s *Snapshot) AdvanceTime(time inbox.ChainTime)

AdvanceTime can only be called if the snapshot is uniquely owned

func (*Snapshot) BasicCall added in v0.7.2

func (s *Snapshot) BasicCall(data []byte, dest common.Address) (*evm.TxResult, error)

func (*Snapshot) Call

func (s *Snapshot) Call(msg message.Call, sender common.Address) (*evm.TxResult, error)

func (*Snapshot) Clone

func (s *Snapshot) Clone() *Snapshot

func (*Snapshot) GetBalance

func (s *Snapshot) GetBalance(account common.Address) (*big.Int, error)

func (*Snapshot) GetCode

func (s *Snapshot) GetCode(account common.Address) ([]byte, error)

func (*Snapshot) GetStorageAt

func (s *Snapshot) GetStorageAt(account common.Address, index *big.Int) (*big.Int, error)

func (*Snapshot) GetTransactionCount

func (s *Snapshot) GetTransactionCount(account common.Address) (*big.Int, error)

func (*Snapshot) Height

func (s *Snapshot) Height() *common.TimeBlocks

func (*Snapshot) TryTx

func (s *Snapshot) TryTx(msg message.Message, sender common.Address, targetHash common.Hash) (*evm.TxResult, error)

Jump to

Keyboard shortcuts

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