evm_legacy

package
v0.0.0-...-aaa40be Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CheckError = evm.CheckError
View Source
var DefaultMaxTipCapGwei uint64 = 5
View Source
var NewAddressBuilder = evm.NewAddressBuilder
View Source
var NewSigner = evm.NewSigner

Functions

func NewTxBuilder

func NewTxBuilder(asset xc.ITask) (xc.TxBuilder, error)

NewTxBuilder creates a new EVM TxBuilder

Types

type AddressBuilder

type AddressBuilder = evm.AddressBuilder

type Client

type Client struct {
	EvmClient *evm.Client
}

func NewClient

func NewClient(cfgI xc.ITask) (*Client, error)

func (*Client) FetchBalance

func (client *Client) FetchBalance(ctx context.Context, address xc.Address) (xc.AmountBlockchain, error)

func (*Client) FetchLegacyTxInfo

func (client *Client) FetchLegacyTxInfo(ctx context.Context, txHash xc.TxHash) (xc.LegacyTxInfo, error)

func (*Client) FetchNativeBalance

func (client *Client) FetchNativeBalance(ctx context.Context, address xc.Address) (xc.AmountBlockchain, error)

func (*Client) FetchTxInfo

func (client *Client) FetchTxInfo(ctx context.Context, txHash xc.TxHash) (xclient.TxInfo, error)

func (*Client) FetchTxInput

func (client *Client) FetchTxInput(ctx context.Context, from xc.Address, to xc.Address) (xc.TxInput, error)

func (*Client) SubmitTx

func (client *Client) SubmitTx(ctx context.Context, txInput xc.Tx) error

type LegacyEvmTxBuilder

type LegacyEvmTxBuilder struct {
}

supports evm before london merge

func (*LegacyEvmTxBuilder) BuildTxWithPayload

func (*LegacyEvmTxBuilder) BuildTxWithPayload(chain *xc.ChainConfig, to xc.Address, value xc.AmountBlockchain, data []byte, inputRaw xc.TxInput) (xc.Tx, error)

type Tx

type Tx = evm.Tx

Tx for EVM

type TxBuilder

type TxBuilder = evm.TxBuilder

TxBuilder for EVM

type TxInput

type TxInput = evm.TxInput

func NewTxInput

func NewTxInput() *TxInput

Jump to

Keyboard shortcuts

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