snapshot

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

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

func (*Snapshot) Call

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