Documentation ¶
Index ¶
- type Snapshot
- func (s *Snapshot) AddMessage(msg message.Message, sender common.Address, targetHash common.Hash) (*evm.TxResult, error)
- func (s *Snapshot) AdvanceTime(time inbox.ChainTime)
- func (s *Snapshot) BasicCall(data []byte, dest common.Address) (*evm.TxResult, error)
- func (s *Snapshot) Call(msg message.ContractTransaction, sender common.Address) (*evm.TxResult, error)
- func (s *Snapshot) Clone() *Snapshot
- func (s *Snapshot) GetBalance(account common.Address) (*big.Int, error)
- func (s *Snapshot) GetCode(account common.Address) ([]byte, error)
- func (s *Snapshot) GetStorageAt(account common.Address, index *big.Int) (*big.Int, error)
- func (s *Snapshot) GetTransactionCount(account common.Address) (*big.Int, error)
- func (s *Snapshot) Height() *common.TimeBlocks
- func (s *Snapshot) TryTx(msg message.Message, sender common.Address, targetHash common.Hash) (*evm.TxResult, error)
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 (*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 ¶
AdvanceTime can only be called if the snapshot is uniquely owned
func (*Snapshot) GetBalance ¶
func (*Snapshot) GetStorageAt ¶
func (*Snapshot) GetTransactionCount ¶
func (*Snapshot) Height ¶
func (s *Snapshot) Height() *common.TimeBlocks
Click to show internal directories.
Click to hide internal directories.