mock

package
v0.0.0-...-ffc3f76 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB() store.ReaderMap

Types

type Tx

type Tx struct {
	Sender   []byte
	Msg      transaction.Msg
	GasLimit uint64
}

func (Tx) Bytes

func (t Tx) Bytes() []byte

func (*Tx) Decode

func (t *Tx) Decode(b []byte)

func (*Tx) DecodeJSON

func (t *Tx) DecodeJSON(b []byte)

func (Tx) GetGasLimit

func (t Tx) GetGasLimit() (uint64, error)

func (Tx) GetMessages

func (t Tx) GetMessages() ([]transaction.Msg, error)

func (Tx) GetSenders

func (t Tx) GetSenders() ([]transaction.Identity, error)

func (Tx) Hash

func (t Tx) Hash() [32]byte

type TxCodec

type TxCodec struct{}

func (TxCodec) Decode

func (TxCodec) Decode(bytes []byte) (Tx, error)

func (TxCodec) DecodeJSON

func (TxCodec) DecodeJSON(bytes []byte) (Tx, error)

Jump to

Keyboard shortcuts

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