This macro generates the boilerplate required to call into the contract-specific logic from the entry-points to the Wasm module.
This macro is very similar to the
DelegationsResponse is data format returned from StakingRequest::AllDelegations query
An key value pair that is used in the context of event attributes in logs
Binary is a wrapper around Vec
BondedDenomResponse is data format returned from StakingRequest::BondedDenom query
A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0
Delegation is basic (cheap to query) data about a delegation
An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.
Holds all external dependencies of the contract. Designed to allow easy dependency injection at runtime. This cannot be copied or cloned since it would behave differently for mock storages and a bridge storage in the VM.
FullDelegation is all the info on the delegation, some (like accumulated_reward and can_redelegate) is expensive to query
MessageInfo is sent with
ValidatorsResponse is data format returned from StakingRequest::Validators query
This is the final result type that is created and serialized in a contract for every init/handle/migrate call. The VM then deserializes this type to distinguish between successful and failed executions.
Structured error type for init, handle and query.
SystemError is used for errors inside the VM and is API friendly (i.e. serializable).
This is the outer result type returned by a querier to the contract.
Api are callbacks to system functions implemented outside of the wasm modules. Currently it just supports address conversion but we could add eg. crypto functions here.
A trait that is required to avoid conflicts with other query types like BankQuery and WasmQuery in generic implementations. You need to implement it in your custom query type.
ReadonlyStorage is access to the contracts persistent data store
Creates a new Attribute.
has_coins returns true if the list of coins has at least the required amount
A short-hand alias for the two-level query result (1. accessing the contract, 2. executing query in the contract)
The return type for init, handle and query. Since the error type cannot be serialized to JSON, this is only available within the contract and its unit tests.