Documentation ¶
Index ¶
- type Hooks
- type Keeper
- func (k Keeper) BuildFeeInfo(ctx sdk.Context, contract common.Address, deployerAddress sdk.AccAddress) types.Fee
- func (k Keeper) CancelFee(goCtx context.Context, msg *types.MsgCancelFee) (*types.MsgCancelFeeResponse, error)
- func (k Keeper) DeleteDeployer(ctx sdk.Context, contract common.Address)
- func (k Keeper) DeleteDeployerFees(ctx sdk.Context, deployerAddress sdk.AccAddress, ...)
- func (k Keeper) DeleteFee(ctx sdk.Context, contract common.Address)
- func (k Keeper) DeleteWithdrawal(ctx sdk.Context, contract common.Address)
- func (k Keeper) DeployerFees(c context.Context, req *types.QueryDeployerFeesRequest) (*types.QueryDeployerFeesResponse, error)
- func (k Keeper) Fee(c context.Context, req *types.QueryFeeRequest) (*types.QueryFeeResponse, error)
- func (k Keeper) Fees(c context.Context, req *types.QueryFeesRequest) (*types.QueryFeesResponse, error)
- func (k Keeper) GetDeployer(ctx sdk.Context, contract common.Address) (sdk.AccAddress, bool)
- func (k Keeper) GetDeployerFees(ctx sdk.Context, deployerAddress sdk.AccAddress) []common.Address
- func (k Keeper) GetFee(ctx sdk.Context, contract common.Address) (types.Fee, bool)
- func (k Keeper) GetFees(ctx sdk.Context) []types.Fee
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetWithdrawal(ctx sdk.Context, contract common.Address) (sdk.AccAddress, bool)
- func (k Keeper) Hooks() Hooks
- func (k Keeper) IsDeployerFeesRegistered(ctx sdk.Context, deployerAddress sdk.AccAddress, ...) bool
- func (k Keeper) IsFeeRegistered(ctx sdk.Context, contract common.Address) bool
- func (k Keeper) IterateFees(ctx sdk.Context, handlerFn func(fee types.Fee) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RegisterFee(goCtx context.Context, msg *types.MsgRegisterFee) (*types.MsgRegisterFeeResponse, error)
- func (k Keeper) SetDeployer(ctx sdk.Context, contract common.Address, deployer sdk.AccAddress)
- func (k Keeper) SetDeployerFees(ctx sdk.Context, deployerAddress sdk.AccAddress, ...)
- func (k Keeper) SetFee(ctx sdk.Context, contract common.Address, deployer sdk.AccAddress, ...)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetWithdrawal(ctx sdk.Context, contract common.Address, withdrawal sdk.AccAddress)
- func (k Keeper) UpdateFee(goCtx context.Context, msg *types.MsgUpdateFee) (*types.MsgUpdateFeeResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
Hooks wrapper struct for fees keeper
func (Hooks) PostTxProcessing ¶
PostTxProcessing implements EvmHooks.PostTxProcessing. After each successful interaction with a registered contract, the contract deployer receives a share from the transaction fees paid by the user.
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of this module maintains collections of fee information for contracts registered to receive transaction fees.
func NewKeeper ¶
func NewKeeper( storeKey sdk.StoreKey, cdc codec.BinaryCodec, ps paramtypes.Subspace, bk types.BankKeeper, evmKeeper types.EVMKeeper, feeCollector string, ) Keeper
NewKeeper creates new instances of the fees Keeper
func (Keeper) BuildFeeInfo ¶
func (k Keeper) BuildFeeInfo(ctx sdk.Context, contract common.Address, deployerAddress sdk.AccAddress) types.Fee
BuildFeeInfo returns Fee given the contract and deployer addresses
func (Keeper) CancelFee ¶
func (k Keeper) CancelFee( goCtx context.Context, msg *types.MsgCancelFee, ) (*types.MsgCancelFeeResponse, error)
CancelFee deletes the Fee of a given contract
func (Keeper) DeleteDeployer ¶
DeleteDeployer deletes the deployer address for a registered contract
func (Keeper) DeleteDeployerFees ¶
func (k Keeper) DeleteDeployerFees(ctx sdk.Context, deployerAddress sdk.AccAddress, contractAddress common.Address)
DeleteDeployerFees removes a registered contract from a deployer's KVStore of registered contracts
func (Keeper) DeleteWithdrawal ¶
DeleteWithdrawal deletes the withdrawal address for a registered contract
func (Keeper) DeployerFees ¶
func (k Keeper) DeployerFees( c context.Context, req *types.QueryDeployerFeesRequest, ) (*types.QueryDeployerFeesResponse, error)
DeployerFees returns all Fees that have been registered for fee distribution by a given deployer
func (Keeper) Fee ¶
func (k Keeper) Fee( c context.Context, req *types.QueryFeeRequest, ) (*types.QueryFeeResponse, error)
Fee returns the Fee that has been registered for fee distribution for a given contract
func (Keeper) Fees ¶
func (k Keeper) Fees( c context.Context, req *types.QueryFeesRequest, ) (*types.QueryFeesResponse, error)
Fees returns all Fees that have been registered for fee distribution
func (Keeper) GetDeployer ¶
GetDeployer returns the deployer address for a registered contract
func (Keeper) GetDeployerFees ¶
GetDeployerFees returns all contracts registered by a deployer as []common.Address
func (Keeper) GetWithdrawal ¶
GetWithdrawal returns the withdrawal address for a registered contract
func (Keeper) IsDeployerFeesRegistered ¶
func (k Keeper) IsDeployerFeesRegistered( ctx sdk.Context, deployerAddress sdk.AccAddress, contractAddress common.Address, ) bool
IsDeployerFeesRegistered checks if a contract exists in a deployer's KVStore of registered contracts
func (Keeper) IsFeeRegistered ¶
IsFeeRegistered checks if a contract was registered for receiving fees
func (Keeper) IterateFees ¶
IterateFees iterates over all registered contracts and performs a callback with the corresponding Fee.
func (Keeper) Params ¶
func (k Keeper) Params( c context.Context, _ *types.QueryParamsRequest, ) (*types.QueryParamsResponse, error)
Params returns the fees module params
func (Keeper) RegisterFee ¶
func (k Keeper) RegisterFee( goCtx context.Context, msg *types.MsgRegisterFee, ) (*types.MsgRegisterFeeResponse, error)
RegisterFee registers a contract to receive transaction fees
func (Keeper) SetDeployer ¶
SetDeployer stores the deployer address for a registered contract
func (Keeper) SetDeployerFees ¶
func (k Keeper) SetDeployerFees(ctx sdk.Context, deployerAddress sdk.AccAddress, contractAddress common.Address)
SetDeployerFees stores a registered contract inverse mapping
func (Keeper) SetFee ¶
func (k Keeper) SetFee(ctx sdk.Context, contract common.Address, deployer sdk.AccAddress, withdrawal sdk.AccAddress)
SetFee stores the developer fee information for a registered contract
func (Keeper) SetWithdrawal ¶
SetWithdrawal stores the withdrawal address for a registered contract
func (Keeper) UpdateFee ¶
func (k Keeper) UpdateFee( goCtx context.Context, msg *types.MsgUpdateFee, ) (*types.MsgUpdateFeeResponse, error)
UpdateFee updates the withdraw address of a given Fee