Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelTx ¶
type CancelTx struct {
TransactionId uint64 `json:"transaction_id"`
}
Removes an entry from the transaction pool, preventing your tokens from going to the remote chain and refunding the send. TransactionId: ID of the transaction to cancel
func (CancelTx) ValidateBasic ¶
type ERC20ToDenom ¶
type Erc20ToDenoms ¶
type Erc20ToDenoms struct{}
type Erc20ToDenomsResponse ¶
type Erc20ToDenomsResponse struct {
Denoms []ERC20ToDenom `json:"denoms"`
}
type Message ¶
type Message struct { // Adds a new entry to the transaction pool to withdraw an amount // from the remote chain bridge contract. This will not execute // until a batch is requested and then actually relayed. Your // funds can be reclaimed using cancel-tx so long as they // remain in the pool. SendTx *SendTx `json:"send_tx,omitempty"` // Removes an entry from the transaction pool, preventing your // tokens from going to the remote chain and refunding the send. CancelTx *CancelTx `json:"cancel_tx,omitempty"` // Creates or updates the ERC20 tracking address mapping // for the given denom. Must have admin authority to do so. SetErc20ToDenom *SetErc20ToDenom `json:"set_erc_20_to_denom,omitempty"` }
type Query ¶
type Query struct {
Erc20ToDenoms *Erc20ToDenoms `json:"erc20_to_denoms,omitempty"`
}
type SendTx ¶
type SendTx struct { RemoteChainDestinationAddress string `json:"remote_chain_destination_address"` Amount string `json:"amount"` ChainReferenceId string `json:"chain_reference_id"` }
Adds a new entry to the transaction pool to withdraw an amount from the remote chain bridge contract. This will not execute until a batch is requested and then actually relayed. Your funds can be reclaimed using cancel-tx so long as they remain in the pool. RemoteChainDestinationAddress:address on the remote chain to send the tokens to, e.g. 0x1234...5678 Amount: amount of tokens to send, e.g. 1000000000ugrain ChainReferenceId: reference ID of the target chain, e.g. eth-main
func (SendTx) ValidateBasic ¶
type SetErc20ToDenom ¶
type SetErc20ToDenom struct { Erc20Address string `json:"erc20_address"` TokenDenom string `json:"token_denom"` ChainReferenceId string `json:"chain_reference_id"` }
Creates or updates the ERC20 tracking address mapping for the given denom. Must have admin authority to do so. Erc20Address: address of the ERC20 contract to track TokenDenom: denom of the token to map to, e.g. ugrain ChainReferenceId: reference ID of the target chain, e.g. eth-main
func (SetErc20ToDenom) ValidateBasic ¶
func (m SetErc20ToDenom) ValidateBasic() error