client

package
v0.0.0-...-0d3bf12 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockResult

type BlockResult struct {
	Number        hexutil.Big        `json:"number"`
	Hash          common.Hash        `json:"hash"`
	Txs           []BlockTransaction `json:"transactions"`
	BaseFeePerGas hexutil.Big        `json:"baseFeePerGas"`
	Timestamp     hexutil.Big        `json:"timestamp"`
	TimestampNano hexutil.Big        `json:"timestampNano"`
}

type BlockTransaction

type BlockTransaction struct {
	Hash     common.Hash     `json:"hash"`
	TxIndex  hexutil.Big     `json:"transactionIndex"`
	From     common.Address  `json:"from"`
	To       *common.Address `json:"to"` // null for contract creation
	Value    hexutil.Big     `json:"value"`
	GasLimit hexutil.Big     `json:"gas"`
	GasPrice hexutil.Big     `json:"gasPrice"`
	Nonce    hexutil.Big     `json:"nonce"`
}

type Call

type Call struct {
	Type         string          `json:"type"`
	From         *common.Address `json:"from"`
	To           *common.Address `json:"to"`
	Value        *hexutil.Big    `json:"value"`
	GasUsed      *hexutil.Big    `json:"gasUsed"`
	ErrorMessage string          `json:"error,omitempty"`
	Calls        []Call          `json:"calls,omitempty"`
}

Call represents one call operation in a TxTrace.

func (*Call) InternalTxs

func (data *Call) InternalTxs() (txs []rpctypes.InternalTx)

type FtmBridge

type FtmBridge struct {
	// contains filtered or unexported fields
}

func NewFtmBridge

func NewFtmBridge(rpcUrl string) *FtmBridge

func (*FtmBridge) Close

func (ftm *FtmBridge) Close()

func (*FtmBridge) GetBalance

func (ftm *FtmBridge) GetBalance(address common.Address, block *big.Int) (*big.Int, error)

func (*FtmBridge) GetBlockTxs

func (ftm *FtmBridge) GetBlockTxs(blockNum *big.Int) (etxs []rpctypes.ExternalTx, err error)

type TxTrace

type TxTrace struct {
	Result Call   `json:"result,omitempty"`
	Error  string `json:"error,omitempty"`
}

TxTrace represents output of debug_trace for one transaction.

Jump to

Keyboard shortcuts

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