types

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2020 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

View Source
const (
	ModuleName   = "deposit"
	QuerierRoute = ModuleName
)
View Source
const (
	QueryDeposit  = "deposit"
	QueryDeposits = "deposits"
)
View Source
const (
	Codespace = sdk.CodespaceType(ModuleName)
)

Variables

View Source
var (
	RouterKey = ModuleName
	StoreKey  = ModuleName
)
View Source
var (
	DepositKeyPrefix = []byte{0x00}
)
View Source
var (
	ModuleCdc *codec.Codec
)

Functions

func DepositKey

func DepositKey(address sdk.AccAddress) []byte

func ErrorDepositDoesNotExist added in v0.3.0

func ErrorDepositDoesNotExist() sdk.Error

func ErrorInsufficientDepositFunds

func ErrorInsufficientDepositFunds() sdk.Error

func ErrorMarshal

func ErrorMarshal() sdk.Error

func ErrorUnknownQueryType added in v0.3.0

func ErrorUnknownQueryType(v string) sdk.Error

func ErrorUnmarshal

func ErrorUnmarshal() sdk.Error

func RegisterCodec added in v0.3.0

func RegisterCodec(_ *codec.Codec)

Types

type Deposit

type Deposit struct {
	Address sdk.AccAddress `json:"address"`
	Coins   sdk.Coins      `json:"coins"`
}

func (Deposit) String

func (d Deposit) String() string

func (Deposit) Validate added in v0.3.0

func (d Deposit) Validate() error

type Deposits added in v0.3.0

type Deposits []Deposit

type GenesisState

type GenesisState = Deposits

func DefaultGenesisState

func DefaultGenesisState() GenesisState

func NewGenesisState

func NewGenesisState(deposits Deposits) GenesisState

type QueryDepositParams added in v0.3.0

type QueryDepositParams struct {
	Address sdk.AccAddress `json:"address"`
}

QueryDepositParams is the request parameters for querying a deposit.

func NewQueryDepositParams added in v0.3.0

func NewQueryDepositParams(address sdk.AccAddress) QueryDepositParams

type QueryDepositsParams added in v0.3.0

type QueryDepositsParams struct {
	Page  int `json:"page"`
	Limit int `json:"limit"`
}

QueryDepositsParams is the request parameters for querying the deposits.

func NewQueryDepositsParams added in v0.3.0

func NewQueryDepositsParams(page, limit int) QueryDepositsParams

Jump to

Keyboard shortcuts

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