Documentation ¶
Overview ¶
nolint
Index ¶
- Constants
- Variables
- func DepositKey(address sdk.AccAddress) []byte
- func ErrorInsufficientDepositFunds(x, y sdk.Coins) sdk.Error
- func ErrorInvalidQueryType(queryType string) sdk.Error
- func ErrorMarshal() sdk.Error
- func ErrorUnmarshal() sdk.Error
- type Deposit
- type GenesisState
- type QueryDepositOfAddressPrams
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 ErrorInvalidQueryType ¶
func ErrorMarshal ¶
func ErrorUnmarshal ¶
Types ¶
type Deposit ¶
type Deposit struct { Address sdk.AccAddress `json:"address"` Coins sdk.Coins `json:"coins"` }
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
Click to show internal directories.
Click to hide internal directories.