Versions in this module Expand all Collapse all v0 v0.10.1 Sep 20, 2018 Changes in this version + const AccountChangeCreate + const AccountChangeDecreaseBalance + const AccountChangeFull + const AccountChangeIncreaseBalance + const AccountChangeRemoved + const RequireAccount + const RequireAccountCode + const RequireAccountStorage + const RequireBlockhash + const RequireNone + func FromCAddress(v C.sputnikvm_address) common.Address + func FromCGas(v C.sputnikvm_gas) *big.Int + func FromCH256(v C.sputnikvm_h256) common.Hash + func FromCU256(v C.sputnikvm_u256) *big.Int + func PrintCU256(v C.sputnikvm_u256) + func SetCustomInitialNonce(nonce *big.Int) + func ToCAddress(v common.Address) C.sputnikvm_address + func ToCGas(v *big.Int) C.sputnikvm_gas + func ToCH256(v common.Hash) C.sputnikvm_h256 + func ToCHeaderParams(header *HeaderParams) *C.sputnikvm_header_params + func ToCU256(v *big.Int) C.sputnikvm_u256 + type AccountChange struct + func (change *AccountChange) Address() common.Address + func (change *AccountChange) Balance() *big.Int + func (change *AccountChange) ChangedAmount() *big.Int + func (change *AccountChange) ChangedStorage() []AccountChangeStorageItem + func (change *AccountChange) Code() []byte + func (change *AccountChange) Nonce() *big.Int + func (change *AccountChange) Storage() []AccountChangeStorageItem + func (change *AccountChange) Typ() AccountChangeType + type AccountChangeStorageItem struct + Key *big.Int + Value *big.Int + type AccountChangeType int + type HeaderParams struct + Beneficiary common.Address + Difficulty *big.Int + GasLimit *big.Int + Number *big.Int + Timestamp uint64 + type Log struct + Address common.Address + Data []byte + Topics []common.Hash + type Require struct + func (require *Require) Address() common.Address + func (require *Require) BlockNumber() *big.Int + func (require *Require) StorageKey() *big.Int + func (require *Require) Typ() RequireType + type RequireType int + type Transaction struct + Address *common.Address + Caller common.Address + GasLimit *big.Int + GasPrice *big.Int + Input []byte + Nonce *big.Int + Value *big.Int + type VM struct + func NewCustomEIP150(transaction *Transaction, header *HeaderParams) *VM + func NewCustomEIP160(transaction *Transaction, header *HeaderParams) *VM + func NewCustomFrontier(transaction *Transaction, header *HeaderParams) *VM + func NewCustomHomestead(transaction *Transaction, header *HeaderParams) *VM + func NewEIP150(transaction *Transaction, header *HeaderParams) *VM + func NewEIP160(transaction *Transaction, header *HeaderParams) *VM + func NewFrontier(transaction *Transaction, header *HeaderParams) *VM + func NewHomestead(transaction *Transaction, header *HeaderParams) *VM + func NewMordenEIP150(transaction *Transaction, header *HeaderParams) *VM + func NewMordenEIP160(transaction *Transaction, header *HeaderParams) *VM + func NewMordenFrontier(transaction *Transaction, header *HeaderParams) *VM + func NewMordenHomestead(transaction *Transaction, header *HeaderParams) *VM + func (vm *VM) AccountChanges() []AccountChange + func (vm *VM) CommitAccount(address common.Address, nonce *big.Int, balance *big.Int, code []byte) + func (vm *VM) CommitAccountCode(address common.Address, code []byte) + func (vm *VM) CommitAccountStorage(address common.Address, key *big.Int, value *big.Int) + func (vm *VM) CommitBlockhash(number *big.Int, hash common.Hash) + func (vm *VM) CommitNonexist(address common.Address) + func (vm *VM) Failed() bool + func (vm *VM) Fire() Require + func (vm *VM) Free() + func (vm *VM) Logs() []Log + func (vm *VM) OutLen() uint + func (vm *VM) Output() []uint8 + func (vm *VM) UsedGas() *big.Int