api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionResult

type TransactionResult struct {
	Output          []byte
	StateDiff       map[string]*TransactionStateDiff
	TransactionHash []byte
}

TransactionResult contains the result of a transaction.

func (*TransactionResult) MarshalJSON

func (t *TransactionResult) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*TransactionResult) MarshalYAML

func (t *TransactionResult) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*TransactionResult) String

func (t *TransactionResult) String() string

String returns a string version of the structure.

func (*TransactionResult) UnmarshalJSON

func (t *TransactionResult) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*TransactionResult) UnmarshalYAML

func (t *TransactionResult) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type TransactionStateChange

type TransactionStateChange struct {
	From *big.Int
	To   *big.Int
}

TransactionStateChange is a change to state, from one value to another.

func (*TransactionStateChange) MarshalJSON

func (t *TransactionStateChange) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*TransactionStateChange) MarshalYAML

func (t *TransactionStateChange) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*TransactionStateChange) String

func (t *TransactionStateChange) String() string

String returns a string version of the structure.

func (*TransactionStateChange) UnmarshalJSON

func (t *TransactionStateChange) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*TransactionStateChange) UnmarshalYAML

func (t *TransactionStateChange) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type TransactionStateDiff

type TransactionStateDiff struct {
	Balance *TransactionStateChange
	Nonce   *TransactionStateChange
	Storage map[string]*TransactionStorageChange
}

TransactionStateDiff contains the changes made to a balance as a result of a transaction.

func (*TransactionStateDiff) MarshalJSON

func (t *TransactionStateDiff) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*TransactionStateDiff) MarshalYAML

func (t *TransactionStateDiff) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*TransactionStateDiff) String

func (t *TransactionStateDiff) String() string

String returns a string version of the structure.

func (*TransactionStateDiff) UnmarshalJSON

func (t *TransactionStateDiff) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*TransactionStateDiff) UnmarshalYAML

func (t *TransactionStateDiff) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

type TransactionStorageChange

type TransactionStorageChange struct {
	From []byte
	To   []byte
}

TransactionStorageChange is a change to state, from one value to another.

func (*TransactionStorageChange) MarshalJSON

func (t *TransactionStorageChange) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler.

func (*TransactionStorageChange) MarshalYAML

func (t *TransactionStorageChange) MarshalYAML() ([]byte, error)

MarshalYAML implements yaml.Marshaler.

func (*TransactionStorageChange) String

func (t *TransactionStorageChange) String() string

String returns a string version of the structure.

func (*TransactionStorageChange) UnmarshalJSON

func (t *TransactionStorageChange) UnmarshalJSON(input []byte) error

UnmarshalJSON implements json.Unmarshaler.

func (*TransactionStorageChange) UnmarshalYAML

func (t *TransactionStorageChange) UnmarshalYAML(input []byte) error

UnmarshalYAML implements yaml.Unmarshaler.

Jump to

Keyboard shortcuts

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