Module helpers

Source

Functions§

create_account_balances_prefix
Creates balances Cosmos-SDK storage prefix for account with addr https://github.com/cosmos/cosmos-sdk/blob/ad9e5620fb3445c716e9de45cfcdb56e8f1745bf/x/bank/types/key.go#L55
create_account_denom_balance_key
Creates denom balance Cosmos-SDK storage key for account with addr
create_balances_query_keys
Creates keys for an Interchain Query to get balance of account on remote chain for list of denoms
create_delegation_key
Creates Cosmos-SDK storage key for delegation between delegator with delegator_addr and validator with validator_addr https://github.com/cosmos/cosmos-sdk/blob/ad9e5620fb3445c716e9de45cfcdb56e8f1745bf/x/staking/types/keys.go#L176
create_delegations_key
Creates delegations Cosmos-SDK storage prefix for delegator with delegator_addr https://github.com/cosmos/cosmos-sdk/blob/ad9e5620fb3445c716e9de45cfcdb56e8f1745bf/x/staking/types/keys.go#L181
create_denom_balance_key
Creates denom balance Cosmos-SDK storage key for account with addr
create_fee_pool_key
Creates Cosmos-SDK distribution key for fee pool https://github.com/cosmos/cosmos-sdk/blob/35ae2c4c72d4aeb33447d5a7af23ca47f786606e/x/distribution/types/keys.go#L46
create_gov_proposal_key
Creates Cosmos-SDK governance key for proposal with specific id https://github.com/cosmos/cosmos-sdk/blob/35ae2c4c72d4aeb33447d5a7af23ca47f786606e/x/gov/types/keys.go#L41
create_gov_proposal_keys
Creates Cosmos-SDK storage keys for list of proposals
create_gov_proposal_voter_votes_key
Creates Cosmos-SDK storage key for specific voter on specific proposal https://github.com/cosmos/cosmos-sdk/blob/35ae2c4c72d4aeb33447d5a7af23ca47f786606e/x/gov/types/keys.go#L106
create_gov_proposal_votes_key
Creates Cosmos-SDK governance key for votes for proposal with specific id https://github.com/cosmos/cosmos-sdk/blob/35ae2c4c72d4aeb33447d5a7af23ca47f786606e/x/gov/types/keys.go#L48
create_gov_proposals_voters_votes_keys
Creates Cosmos-SDK storage keys for list of voters on list of proposals
create_params_store_key
Creates KV key to get module param by key
create_total_denom_key
Creates denom total Cosmos-SDK storage key for bank module
create_unbonding_delegation_key
Creates Cosmos-SDK storage key for unbonding delegation between delegator with delegator_addr and validator with validator_addr https://github.com/cosmos/cosmos-sdk/blob/ad9e5620fb3445c716e9de45cfcdb56e8f1745bf/x/staking/types/keys.go#L187
create_unbonding_delegations_key
Creates unbonding delegations Cosmos-SDK storage prefix for delegator with delegator_addr https://github.com/cosmos/cosmos-sdk/blob/ad9e5620fb3445c716e9de45cfcdb56e8f1745bf/x/staking/types/keys.go#L209
create_validator_key
Creates Cosmos-SDK storage key for validator with operator_address https://github.com/cosmos/cosmos-sdk/blob/f2d94445c0f5f52cf5ed999b81048b575de94964/x/staking/types/keys.go#L55
create_validator_signing_info_key
Creates Cosmos-SDK storage key for validator with valcons_addr https://github.com/cosmos/cosmos-sdk/blob/35ae2c4c72d4aeb33447d5a7af23ca47f786606e/x/slashing/types/keys.go#L34
create_wasm_contract_store_key
Creates Wasm key for contract state. This function is similar to https://github.com/CosmWasm/wasmd/blob/e6d451bf9dd96a555b10e72aa3c0f6b820d34684/x/wasm/types/keys.go#L59, but it also concatenates resulting contract store prefix with contract’s storage key, resulting in a complete storage key.
deconstruct_account_denom_balance_key
Deconstructs a storage key for an account balance of a particular denom. Returns two values: address of an account and denom
get_max_change_rate
Returns validator max change rate
get_max_rate
Returns validator max rate
get_rate
Returns current validator rate
get_total_supply_amount
Returns total supply amount from StorageValue key
get_total_supply_denom
Returns denom for total supply from StorageValue key
get_update_time
Returns current validator rate