Documentation ¶
Index ¶
Constants ¶
View Source
const (
EthereumHashLength = 32
)
View Source
const (
ModuleName = "swap"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthereumHash ¶
type EthereumHash [EthereumHashLength]byte
func BytesToHash ¶
func BytesToHash(b []byte) EthereumHash
func (EthereumHash) Bytes ¶
func (e EthereumHash) Bytes() []byte
func (EthereumHash) Hex ¶
func (e EthereumHash) Hex() string
func (EthereumHash) MarshalJSON ¶
func (e EthereumHash) MarshalJSON() ([]byte, error)
func (*EthereumHash) SetBytes ¶
func (e *EthereumHash) SetBytes(b []byte)
func (EthereumHash) String ¶
func (e EthereumHash) String() string
func (*EthereumHash) UnmarshalJSON ¶
func (e *EthereumHash) UnmarshalJSON(data []byte) error
type GenesisState ¶
type Params ¶
type Params struct { SwapEnabled bool `json:"swap_enabled"` SwapDenom string `json:"swap_denom"` ApproveBy sdk.AccAddress `json:"approve_by"` }
type Swap ¶
type Swap struct { TxHash EthereumHash `json:"tx_hash"` Receiver sdk.AccAddress `json:"receiver"` Amount sdk.Coin `json:"amount"` }
Click to show internal directories.
Click to hide internal directories.