Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractInfo ¶
type ContractInfo struct {
Address string
}
type DepositMsg ¶
type Env ¶
type Env struct {
Block BlockInfo
Contract ContractInfo
}
basic, standard struct (with embedded structs)
type ExecuteMsg ¶
type ExecuteMsg struct {
Deposit *DepositMsg `json:",omitempty"`
Withdraw *WithdrawMsg `json:",omitempty"`
}
emulate Rust enum, only one should ever be set
type MessageInfo ¶
type MessageInfo struct {
Signer string
// Note: added custom tag "emptyslice" to never encode to nil, but rather []
Funds []Coin `json:",emptyslice"`
}
another important struct that includes a slice of structs (which caused issues with another parser)
type WithdrawMsg ¶
type WithdrawMsg struct {
// use a different field here to ensure we have proper types (json must not overlap)
FromAccount string
}
withdraws all funds
Click to show internal directories.
Click to hide internal directories.