Documentation ¶
Index ¶
- Constants
- type TxBuilder
- func (txBuilder TxBuilder) BuildUnwrapEverythingTx(from xc.Address, to xc.Address, amount xc.AmountBlockchain, txInput *TxInput) (xc.Tx, error)
- func (txBuilder TxBuilder) BuildWrapTx(from xc.Address, to xc.Address, amount xc.AmountBlockchain, txInput *TxInput) (xc.Tx, error)
- func (txBuilder TxBuilder) NewNativeTransfer(from xc.Address, to xc.Address, amount xc.AmountBlockchain, txInput 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(args 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(args xcbuilder.StakeArgs, input xc.UnstakeTxInput) (xc.Tx, error)
- func (txBuilder TxBuilder) Withdraw(args xcbuilder.StakeArgs, input xc.WithdrawTxInput) (xc.Tx, error)
- type TxInput
Constants ¶
View Source
const MaxAccountUnstakes = 20
View Source
const MaxAccountWithdraws = 20
View Source
const MaxTokenTransfers = 20
Max number of token transfers we can fit in a solana transaction, when there's also a create ATA included.
View Source
const RentExemptLamportsThreshold = 3000000
View Source
const RentExemptLamportsThresholdHuman = "0.003"
View Source
const StakeAccountSize = 200
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxBuilder ¶
TxBuilder for Solana
func NewTxBuilder ¶
NewTxBuilder creates a new Solana TxBuilder
func (TxBuilder) BuildUnwrapEverythingTx ¶
func (TxBuilder) BuildWrapTx ¶
func (TxBuilder) NewNativeTransfer ¶
func (txBuilder TxBuilder) NewNativeTransfer(from xc.Address, to xc.Address, amount xc.AmountBlockchain, txInput 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 TxBuilder) NewTransfer(from xc.Address, to xc.Address, amount xc.AmountBlockchain, input xc.TxInput) (xc.Tx, error)
Old transfer interface
Click to show internal directories.
Click to hide internal directories.