package
0.0.0-20220620005849-a315113d9162
Repository: https://github.com/mycodeku/transtionhelper.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
AllowanceByExpTimeKey returns a key with `FeeAllowanceQueueKeyPrefix`, expiry
Key format: - <0x01><exp_bytes>.
DefaultGenesisState returns default state for feegrant module.
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>.
FeeAllowancePrefixByGrantee returns a prefix to scan for all grants to this given address.
FeeAllowancePrefixQueue is the canonical key to store grant key.
NewAllowedMsgFeeAllowance creates new filtered fee allowance.
NewGenesisState creates new GenesisState object.
NewGrant creates a new FeeAllowanceGrant.nolint:interfacer.
No description provided by the author
NewMsgGrantAllowance creates a new MsgGrantAllowance.nolint:interfacer.
NewMsgRevokeAllowance returns a message to revoke a fee allowance for a given granter and granteenolint:interfacer.
No description provided by the author
ParseAddressesFromFeeAllowanceKey exrtacts and returns the granter, grantee from the given key.
RegisterInterfaces registers the interfaces types with the interface registry.
RegisterLegacyAminoCodec registers the necessary x/feegrant interfaces and concrete types on the provided LegacyAmino codec.
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author
ValidateGenesis ensures all grants in the genesis state are valid.
# Constants
evidence module events.
evidence module events.
evidence module events.
Codes for governance errors.
evidence module events.
evidence module events.
evidence module events.
evidence module events.
ModuleName is the module name constant used in many places.
QuerierRoute is the querier route for supply.
RouterKey is the message route for supply.
StoreKey is the store key string for supply.
# Variables
ErrFeeLimitExceeded error if there are not enough allowance to cover the fees.
ErrFeeLimitExpired error if the allowance has expired.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrInvalidDuration error if the Duration is invalid or doesn't match the expiration.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrMessageNotAllowed error if message is not allowed.
ErrNoAllowance error if there is no allowance for that pair.
ErrNoMessages error if there is no message.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FeeAllowanceKeyPrefix is the set of the kvstore for fee allowance data - 0x00<allowance_key_bytes>: allowance.
FeeAllowanceQueueKeyPrefix is the set of the kvstore for fee allowance keys data - 0x01<allowance_prefix_queue_key_bytes>: <empty value>.
ModuleCdc references the global x/feegrant module codec.
# Structs
AllowedMsgAllowance creates allowance only for specified message types.
BasicAllowance implements Allowance with a one-time grant of tokens that optionally expires.
GenesisState contains a set of fee allowances, persisted from the store.
Grant is stored in the KVStore to record a grant with full context.
MsgGrantAllowance adds permission for Grantee to spend up to Allowance of fees from the account of Granter.
MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type.
MsgRevokeAllowance removes any existing Allowance from Granter to Grantee.
MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type.
PeriodicAllowance extends Allowance to allow for both a maximum cap, as well as a limit per time period.
QueryAllowanceRequest is the request type for the Query/Allowance RPC method.
QueryAllowanceResponse is the response type for the Query/Allowance RPC method.
QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method.
QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method.
QueryAllowancesRequest is the request type for the Query/Allowances RPC method.
QueryAllowancesResponse is the response type for the Query/Allowances RPC method.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.
# Interfaces
AccountKeeper defines the expected auth Account Keeper (noalias).
BankKeeper defines the expected supply Keeper (noalias).
FeeAllowance implementations are tied to a given fee delegator and delegatee, and are used to enforce fee grant limits.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.