types

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

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

func (m CancelTx) ValidateBasic() error

type ERC20ToDenom

type ERC20ToDenom struct {
	Erc20            string `json:"erc20,omitempty"`
	Denom            string `json:"denom,omitempty"`
	ChainReferenceId string `json:"chainReferenceId,omitempty"`
}

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

func (m SendTx) ValidateBasic() error

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

Jump to

Keyboard shortcuts

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