Documentation ¶
Index ¶
- Variables
- func FeeAllowanceKey(granter sdk.AccAddress, grantee sdk.AccAddress) []byte
- func FeeAllowancePrefixByGrantee(grantee sdk.AccAddress) []byte
- func FeeAllowancePrefixQueue(exp *time.Time, granterAddrBz []byte) []byte
- func MigrateStore(ctx types.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ModuleName = "feegrant" // FeeAllowanceKeyPrefix is the set of the kvstore for fee allowance data // - 0x00<allowance_key_bytes>: allowance FeeAllowanceKeyPrefix = []byte{0x00} // FeeAllowanceQueueKeyPrefix is the set of the kvstore for fee allowance keys data // - 0x01<allowance_prefix_queue_key_bytes>: <empty value> FeeAllowanceQueueKeyPrefix = []byte{0x01} )
Functions ¶
func FeeAllowanceKey ¶
func FeeAllowanceKey(granter sdk.AccAddress, grantee sdk.AccAddress) []byte
FeeAllowanceKey is the canonical key to store a grant from granter to grantee We store by grantee first to allow searching by everyone who granted to you
Key format: - <0x00><len(grantee_address_bytes)><grantee_address_bytes><len(granter_address_bytes)><granter_address_bytes>
func FeeAllowancePrefixByGrantee ¶
func FeeAllowancePrefixByGrantee(grantee sdk.AccAddress) []byte
FeeAllowancePrefixByGrantee returns a prefix to scan for all grants to this given address.
Key format: - <0x00><len(grantee_address_bytes)><grantee_address_bytes>
func FeeAllowancePrefixQueue ¶
FeeAllowancePrefixQueue is the canonical key to store grant key.
Key format: - <0x01><exp_bytes><len(grantee_address_bytes)><grantee_address_bytes><len(granter_address_bytes)><granter_address_bytes>
func MigrateStore ¶
func MigrateStore(ctx types.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.