evm

package
v0.0.0-...-451b363 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Methods = map[abi.MethodNum]builtin.MethodMeta{
	1: {"Constructor", *new(func(*ConstructorParams) *abi.EmptyValue)},
	2: {"InvokeContract", *new(func(bytes *abi.CborBytes) *abi.CborBytes)},
	3: {"GetBytecode", *new(func(*abi.EmptyValue) *typegen.CborCid)},
	4: {"GetStorageAt", *new(func(*GetStorageAtParams) *big.Int)},
	5: {"InvokeContractDelegate", *new(func(params *DelegateCallParams) *abi.CborBytes)},
	6: {"GetBytecodeHash", *new(func(*abi.EmptyValue) *typegen.CborCid)},
}

Functions

This section is empty.

Types

type ConstructorParams

type ConstructorParams struct {
	Creator  []byte
	Initcode []byte
}

func (*ConstructorParams) MarshalCBOR

func (t *ConstructorParams) MarshalCBOR(w io.Writer) error

func (*ConstructorParams) UnmarshalCBOR

func (t *ConstructorParams) UnmarshalCBOR(r io.Reader) error

type DelegateCallParams

type DelegateCallParams struct {
	Code  cid.Cid
	Input []byte
}

func (*DelegateCallParams) MarshalCBOR

func (t *DelegateCallParams) MarshalCBOR(w io.Writer) error

func (*DelegateCallParams) UnmarshalCBOR

func (t *DelegateCallParams) UnmarshalCBOR(r io.Reader) error

type GetStorageAtParams

type GetStorageAtParams struct {
	StorageKey []byte
}

func (*GetStorageAtParams) MarshalCBOR

func (t *GetStorageAtParams) MarshalCBOR(w io.Writer) error

func (*GetStorageAtParams) UnmarshalCBOR

func (t *GetStorageAtParams) UnmarshalCBOR(r io.Reader) error

type State

type State struct {
	Bytecode      cid.Cid
	ContractState cid.Cid
	Nonce         uint64
}

func ConstructState

func ConstructState(store adt.Store, bytecode cid.Cid) (*State, error)

func (*State) MarshalCBOR

func (t *State) MarshalCBOR(w io.Writer) error

func (*State) UnmarshalCBOR

func (t *State) UnmarshalCBOR(r io.Reader) error

Jump to

Keyboard shortcuts

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