v05

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

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 GenesisState struct {
	Swaps  Swaps  `json:"_"`
	Params Params `json:"params"`
}

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"`
}

type Swaps

type Swaps []Swap

Jump to

Keyboard shortcuts

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