types

package
v0.0.0-...-753e747 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_GAS_LIMIT = 30000000

Variables

This section is empty.

Functions

This section is empty.

Types

type Bigs

type Bigs []*hexutil.Big

func (Bigs) Len

func (s Bigs) Len() int

func (Bigs) Less

func (s Bigs) Less(i, j int) bool

func (Bigs) Swap

func (s Bigs) Swap(i, j int)

type CallMsg

type CallMsg struct {
	From     common.Address `json:"from,omitempty"`
	To       common.Address `json:"to"`
	Data     CallMsgData    `json:"data"`
	Gas      *CallMsgBigInt `json:"gas,omitempty"`
	GasPrice *CallMsgBigInt `json:"gasPrice,omitempty"`
	Value    *CallMsgBigInt `json:"value,omitempty"`
}

type CallMsgBigInt

type CallMsgBigInt big.Int

func NewCallMsgBigInt

func NewCallMsgBigInt(v *big.Int) *CallMsgBigInt

func (CallMsgBigInt) MarshalText

func (a CallMsgBigInt) MarshalText() ([]byte, error)

type CallMsgData

type CallMsgData []byte

func (CallMsgData) MarshalText

func (a CallMsgData) MarshalText() ([]byte, error)

type Event

type Event struct {
	Address         common.Address `json:"address"`
	BlockHash       common.Hash    `json:"blockHash"`
	BlockNumber     string         `json:"blockNumber"`
	Topics          []string       `json:"topics,omitempty"`
	TransactionHash common.Hash    `json:"transactionHash"`
	Data            string         `json:"data,omitempty"`
}

type EventData

type EventData struct {
	Address         common.Address `json:"address"`
	BlockHash       common.Hash    `json:"blockHash"`
	BlockNumber     string         `json:"blockNumber"`
	Topics          [][]byte       `json:"topics,omitempty"`
	TransactionHash common.Hash    `json:"transactionHash"`
	Data            []byte         `json:"data,omitempty"`
}

type FeeHistory

type FeeHistory struct {
	BaseFeePerGas []*hexutil.Big   `json:"baseFeePerGas"`
	GasUsedRatio  []float64        `json:"gasUsedRatio"`
	OldestBlock   *hexutil.Big     `json:"oldestBlock"`
	Reward        [][]*hexutil.Big `json:"reward"`
}

type Fliter

type Fliter struct {
	Address   common.Address `json:"address,omitempty"`
	FromBlock string         `json:"fromBlock,omitempty"`
	ToBlock   string         `json:"toBlock,omitempty"`
	Topics    []string       `json:"topics,omitempty"`
}

type ZeroValueCallMsg

type ZeroValueCallMsg struct {
	From common.Address `json:"from,omitempty"`
	To   common.Address `json:"to"`
	Data CallMsgData    `json:"data"`
}

Jump to

Keyboard shortcuts

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