Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModuleName = "deposit" QuerierRoute = ModuleName )
View Source
const ( QueryDeposit = "deposit" QueryDeposits = "deposits" )
Variables ¶
View Source
var ( ErrorMarshal = errors.Register(ModuleName, 101, "error occurred while marshalling") ErrorUnmarshal = errors.Register(ModuleName, 102, "error occurred while unmarshalling") ErrorUnknownMsgType = errors.Register(ModuleName, 103, "unknown message type") ErrorUnknownQueryType = errors.Register(ModuleName, 104, "unknown query type") ErrorInvalidField = errors.Register(ModuleName, 105, "invalid field") ErrorInsufficientDepositFunds = errors.Register(ModuleName, 106, "insufficient deposit funds") ErrorDepositDoesNotExist = errors.Register(ModuleName, 107, "deposit does not exist") )
View Source
var ( RouterKey = ModuleName StoreKey = ModuleName )
View Source
var (
DepositKeyPrefix = []byte{0x10}
)
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 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(skip, limit int) QueryDepositsParams
Click to show internal directories.
Click to hide internal directories.