Documentation ¶
Index ¶
- Variables
- func BuildERC20Payload(to xc.Address, amount xc.AmountBlockchain) ([]byte, error)
- func GweiToWei(gwei uint64) xc.AmountBlockchain
- type EvmTxBuilder
- type GethTxBuilder
- type TxBuilder
- func (txBuilder TxBuilder) BuildProxyPayload(contract xc.ContractAddress, to xc.Address, amount xc.AmountBlockchain) ([]byte, error)
- func (txBuilder TxBuilder) BuildTaskPayload(taskFrom xc.Address, taskTo xc.Address, taskAmount xc.AmountBlockchain, ...) (string, xc.AmountBlockchain, []byte, error)
- func (txBuilder TxBuilder) BuildTaskTx(from xc.Address, to xc.Address, amount xc.AmountBlockchain, input xc.TxInput) (xc.Tx, error)
- func (txBuilder TxBuilder) BuildWormholePayload(taskFrom xc.Address, taskTo xc.Address, taskAmount xc.AmountBlockchain, ...) (string, xc.AmountBlockchain, []byte, error)
- func (txBuilder TxBuilder) BuildWormholeTransferTx(from xc.Address, to xc.Address, amount xc.AmountBlockchain, input xc.TxInput) (xc.Tx, error)
- func (txBuilder TxBuilder) NewNativeTransfer(from xc.Address, to xc.Address, amount xc.AmountBlockchain, input xc.TxInput) (xc.Tx, error)
- func (txBuilder TxBuilder) NewTask(from xc.Address, to xc.Address, amount xc.AmountBlockchain, input xc.TxInput) (xc.Tx, error)
- func (txBuilder TxBuilder) NewTokenTransfer(from xc.Address, to xc.Address, amount xc.AmountBlockchain, input xc.TxInput) (xc.Tx, error)
- func (txBuilder TxBuilder) NewTransfer(from xc.Address, to xc.Address, amount xc.AmountBlockchain, input xc.TxInput) (xc.Tx, error)
- func (txBuilder TxBuilder) Stake(stakeArgs xcbuilder.StakeArgs, input xc.StakeTxInput) (xc.Tx, error)
- func (txBuilder TxBuilder) Transfer(args xcbuilder.TransferArgs, input xc.TxInput) (xc.Tx, error)
- func (txBuilder TxBuilder) Unstake(stakeArgs xcbuilder.StakeArgs, input xc.UnstakeTxInput) (xc.Tx, error)
- func (txBuilder TxBuilder) WithTxBuilder(buider GethTxBuilder) TxBuilder
- func (txBuilder TxBuilder) Withdraw(stakeArgs xcbuilder.StakeArgs, input xc.WithdrawTxInput) (xc.Tx, error)
- type TxInputWithPricing
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMaxTipCapGwei uint64 = 5
Functions ¶
func BuildERC20Payload ¶
func GweiToWei ¶
func GweiToWei(gwei uint64) xc.AmountBlockchain
Types ¶
type EvmTxBuilder ¶
type EvmTxBuilder struct { }
supports evm after london merge
func NewEvmTxBuilder ¶
func NewEvmTxBuilder() *EvmTxBuilder
func (*EvmTxBuilder) BuildTxWithPayload ¶
func (*EvmTxBuilder) BuildTxWithPayload(chain *xc.ChainConfig, to xc.Address, value xc.AmountBlockchain, data []byte, inputRaw xc.TxInput) (xc.Tx, error)
type GethTxBuilder ¶
type TxBuilder ¶
TxBuilder for EVM
func NewTxBuilder ¶
NewTxBuilder creates a new EVM TxBuilder
func (TxBuilder) BuildProxyPayload ¶
func (txBuilder TxBuilder) BuildProxyPayload(contract xc.ContractAddress, to xc.Address, amount xc.AmountBlockchain) ([]byte, error)
func (TxBuilder) BuildTaskPayload ¶
func (TxBuilder) BuildTaskTx ¶
func (TxBuilder) BuildWormholePayload ¶
func (TxBuilder) BuildWormholeTransferTx ¶
func (TxBuilder) NewNativeTransfer ¶
func (txBuilder TxBuilder) NewNativeTransfer(from xc.Address, to xc.Address, amount xc.AmountBlockchain, input xc.TxInput) (xc.Tx, error)
NewNativeTransfer creates a new transfer for a native asset
func (TxBuilder) NewTokenTransfer ¶
func (txBuilder TxBuilder) NewTokenTransfer(from xc.Address, to xc.Address, amount xc.AmountBlockchain, input xc.TxInput) (xc.Tx, error)
NewTokenTransfer creates a new transfer for a token asset
func (TxBuilder) NewTransfer ¶
func (TxBuilder) WithTxBuilder ¶
func (txBuilder TxBuilder) WithTxBuilder(buider GethTxBuilder) TxBuilder
type TxInputWithPricing ¶
type TxInputWithPricing interface { SetUsdPrice(nativeAsset xc.NativeAsset, contract string, priceUsd xc.AmountHumanReadable) GetUsdPrice(nativeAsset xc.NativeAsset, contract string) (xc.AmountHumanReadable, bool) }
Legacy
Click to show internal directories.
Click to hide internal directories.