Documentation ¶
Index ¶
- Constants
- Variables
- func DepositKey(address sdk.AccAddress) []byte
- func ErrorDepositDoesNotExist() sdk.Error
- func ErrorInsufficientDepositFunds() sdk.Error
- func ErrorMarshal() sdk.Error
- func ErrorUnknownQueryType(v string) sdk.Error
- func ErrorUnmarshal() sdk.Error
- func RegisterCodec(_ *codec.Codec)
- type Deposit
- type Deposits
- type GenesisState
- type QueryDepositParams
- type QueryDepositsParams
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 ( EventModuleName = sdk.NewEvent( sdk.EventTypeMessage, sdk.NewAttribute(sdk.AttributeKeyModule, ModuleName), ) )
View Source
var (
ModuleCdc *codec.Codec
)
Functions ¶
func DepositKey ¶
func DepositKey(address sdk.AccAddress) []byte
func ErrorDepositDoesNotExist ¶ added in v0.3.0
func ErrorMarshal ¶
func ErrorUnknownQueryType ¶ added in v0.3.0
func ErrorUnmarshal ¶
func RegisterCodec ¶ added in v0.3.0
Types ¶
type Deposit ¶
type Deposit struct { Address sdk.AccAddress `json:"address"` Coins sdk.Coins `json:"coins"` }
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
QueryDepositsParams is the request parameters for querying the deposits.
func NewQueryDepositsParams ¶ added in v0.3.0
func NewQueryDepositsParams(page, limit int) QueryDepositsParams
Click to show internal directories.
Click to hide internal directories.