types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Overview

nolint

Index

Constants

View Source
const (
	ModuleName   = "deposit"
	StoreKey     = ModuleName
	RouterKey    = ModuleName
	QuerierRoute = ModuleName
)
View Source
const (
	QueryDepositOfAddress = "deposit_of_address"
	QueryAllDeposits      = "all_deposits"
)
View Source
const (
	Codespace = sdk.CodespaceType("deposit")
)

Variables

View Source
var (
	TestPrivKey1 = ed25519.GenPrivKey()
	TestPrivKey2 = ed25519.GenPrivKey()
	TestPubKey1  = TestPrivKey1.PubKey()
	TestPubKey2  = TestPrivKey2.PubKey()
	TestAddress1 = sdk.AccAddress(TestPubKey1.Address())
	TestAddress2 = sdk.AccAddress(TestPubKey2.Address())
)
View Source
var (
	DepositKeyPrefix = []byte{0x01}
)
View Source
var (
	ModuleCdc *codec.Codec
)

Functions

func DepositKey

func DepositKey(address sdk.AccAddress) []byte

func ErrorInsufficientDepositFunds

func ErrorInsufficientDepositFunds(x, y sdk.Coins) sdk.Error

func ErrorInvalidQueryType

func ErrorInvalidQueryType(queryType string) sdk.Error

func ErrorMarshal

func ErrorMarshal() sdk.Error

func ErrorUnmarshal

func ErrorUnmarshal() sdk.Error

Types

type Deposit

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

func (Deposit) IsValid

func (d Deposit) IsValid() error

func (Deposit) String

func (d Deposit) String() string

type GenesisState

type GenesisState []Deposit

func DefaultGenesisState

func DefaultGenesisState() GenesisState

func NewGenesisState

func NewGenesisState(deposits []Deposit) GenesisState

type QueryDepositOfAddressPrams added in v0.2.0

type QueryDepositOfAddressPrams struct {
	Address sdk.AccAddress
}

func NewQueryDepositOfAddressParams added in v0.2.0

func NewQueryDepositOfAddressParams(address sdk.AccAddress) QueryDepositOfAddressPrams

Jump to

Keyboard shortcuts

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