Documentation ¶
Index ¶
- func NewQuerier(keeper Keeper) sdk.Querier
- type Hooks
- type Keeper
- func (k Keeper) AfterDepositPeriodPassed(_ sdk.Context, _ govTypes.Proposal)
- func (k Keeper) AfterSubmitProposalHandler(_ sdk.Context, _ govTypes.Proposal)
- func (k Keeper) CheckMsgSubmitProposal(ctx sdk.Context, msg govTypes.MsgSubmitProposal) sdk.Error
- func (k Keeper) DeleteDeployerMap(ctx sdk.Context, deployer sdk.AccAddress, contract common.Address)
- func (k Keeper) DeleteFeeSplit(ctx sdk.Context, feeSplit types.FeeSplit)
- func (k Keeper) DeleteWithdrawerMap(ctx sdk.Context, withdrawer sdk.AccAddress, contract common.Address)
- func (k Keeper) GetContractShare(ctx sdk.Context, contract common.Address) (sdk.Dec, bool)
- func (k Keeper) GetContractShareWithCache(ctx sdk.Context, contract common.Address) (share sdk.Dec, found bool)
- func (k Keeper) GetEthAccount(ctx sdk.Context, addr common.Address) (*ethermint.EthAccount, bool)
- func (k Keeper) GetFeeSplit(ctx sdk.Context, contract common.Address) (types.FeeSplit, bool)
- func (k Keeper) GetFeeSplitWithCache(ctx sdk.Context, contract common.Address) (feeSplit types.FeeSplit, found bool)
- func (k Keeper) GetFeeSplits(ctx sdk.Context) []types.FeeSplit
- func (k Keeper) GetMaxDepositPeriod(ctx sdk.Context, content sdkGov.Content) (maxDepositPeriod time.Duration)
- func (k Keeper) GetMinDeposit(ctx sdk.Context, content sdkGov.Content) (minDeposit sdk.SysCoins)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetParamsWithCache(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetVotingPeriod(ctx sdk.Context, content sdkGov.Content) (votingPeriod time.Duration)
- func (k Keeper) Hooks() Hooks
- func (k Keeper) IsDeployerMapSet(ctx sdk.Context, deployer sdk.AccAddress, contract common.Address) bool
- func (k Keeper) IsFeeSplitRegistered(ctx sdk.Context, contract common.Address) bool
- func (k Keeper) IsWithdrawerMapSet(ctx sdk.Context, withdrawer sdk.AccAddress, contract common.Address) bool
- func (k Keeper) IterateFeeSplits(ctx sdk.Context, handlerFn func(fee types.FeeSplit) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) PostTxProcessing(ctx sdk.Context, st *evmtypes.StateTransition, receipt *ethtypes.Receipt) error
- func (k Keeper) RejectedHandler(_ sdk.Context, _ govTypes.Content)
- func (k Keeper) SetContractShare(ctx sdk.Context, contract common.Address, share sdk.Dec)
- func (k Keeper) SetDeployerMap(ctx sdk.Context, deployer sdk.AccAddress, contract common.Address)
- func (k Keeper) SetFeeSplit(ctx sdk.Context, feeSplit types.FeeSplit)
- func (k *Keeper) SetGovKeeper(gk types.GovKeeper)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetWithdrawerMap(ctx sdk.Context, withdrawer sdk.AccAddress, contract common.Address)
- func (k Keeper) VoteHandler(_ sdk.Context, _ govTypes.Proposal, _ govTypes.Vote) (string, sdk.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier is the module level router for state queries
Types ¶
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
Hooks wrapper struct for fees keeper
func (Hooks) PostTxProcessing ¶
func (h Hooks) PostTxProcessing(ctx sdk.Context, st *evmtypes.StateTransition, receipt *ethtypes.Receipt) error
PostTxProcessing is a wrapper for calling the EVM PostTxProcessing hook on the module keeper
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of this module maintains collections of fee splits for contracts registered to receive transaction fees.
func NewKeeper ¶
func NewKeeper( storeKey sdk.StoreKey, cdc *codec.Codec, ps params.Subspace, ek types.EvmKeeper, sk types.SupplyKeeper, ak types.AccountKeeper, ) Keeper
NewKeeper creates new instances of the fees Keeper
func (Keeper) AfterDepositPeriodPassed ¶
func (Keeper) AfterSubmitProposalHandler ¶
nolint
func (Keeper) CheckMsgSubmitProposal ¶
CheckMsgSubmitProposal validates MsgSubmitProposal
func (Keeper) DeleteDeployerMap ¶
func (k Keeper) DeleteDeployerMap( ctx sdk.Context, deployer sdk.AccAddress, contract common.Address, )
DeleteDeployerMap deletes a contract-by-deployer mapping
func (Keeper) DeleteFeeSplit ¶
DeleteFeeSplit deletes a FeeSplit of a registered contract.
func (Keeper) DeleteWithdrawerMap ¶
func (k Keeper) DeleteWithdrawerMap( ctx sdk.Context, withdrawer sdk.AccAddress, contract common.Address, )
DeleteWithdrawerMap deletes a contract-by-withdrawer mapping
func (Keeper) GetContractShare ¶
GetContractShare returns the share for a registered contract
func (Keeper) GetContractShareWithCache ¶
func (k Keeper) GetContractShareWithCache( ctx sdk.Context, contract common.Address, ) (share sdk.Dec, found bool)
GetContractShareWithCache returns the share for a registered contract from cache
func (Keeper) GetEthAccount ¶
GetEthAccount returns an eth account.
func (Keeper) GetFeeSplit ¶
GetFeeSplit returns the FeeSplit for a registered contract
func (Keeper) GetFeeSplitWithCache ¶
func (k Keeper) GetFeeSplitWithCache( ctx sdk.Context, contract common.Address, ) (feeSplit types.FeeSplit, found bool)
GetFeeSplitWithCache returns the FeeSplit for a registered contract from cache
func (Keeper) GetFeeSplits ¶
GetFeeSplits returns all registered FeeSplits.
func (Keeper) GetMaxDepositPeriod ¶
func (k Keeper) GetMaxDepositPeriod(ctx sdk.Context, content sdkGov.Content) (maxDepositPeriod time.Duration)
GetMaxDepositPeriod returns max deposit period
func (Keeper) GetMinDeposit ¶
GetMinDeposit returns min deposit
func (Keeper) GetParamsWithCache ¶
GetParamsWithCache returns the total set of fees parameters from cache。
func (Keeper) GetVotingPeriod ¶
func (k Keeper) GetVotingPeriod(ctx sdk.Context, content sdkGov.Content) (votingPeriod time.Duration)
GetVotingPeriod returns voting period
func (Keeper) IsDeployerMapSet ¶
func (k Keeper) IsDeployerMapSet( ctx sdk.Context, deployer sdk.AccAddress, contract common.Address, ) bool
IsDeployerMapSet checks if a given contract-by-withdrawer mapping is set in store
func (Keeper) IsFeeSplitRegistered ¶
IsFeeSplitRegistered checks if a contract was registered for receiving transaction fees
func (Keeper) IsWithdrawerMapSet ¶
func (k Keeper) IsWithdrawerMapSet( ctx sdk.Context, withdrawer sdk.AccAddress, contract common.Address, ) bool
IsWithdrawerMapSet checks if a giveb contract-by-withdrawer mapping is set in store
func (Keeper) IterateFeeSplits ¶
func (k Keeper) IterateFeeSplits( ctx sdk.Context, handlerFn func(fee types.FeeSplit) (stop bool), )
IterateFeeSplits iterates over all registered contracts and performs a callback with the corresponding FeeSplit.
func (Keeper) PostTxProcessing ¶
func (k Keeper) PostTxProcessing( ctx sdk.Context, st *evmtypes.StateTransition, receipt *ethtypes.Receipt, ) error
PostTxProcessing implements EvmHooks.PostTxProcessing. After each successful interaction with a registered contract, the contract deployer (or, if set, the withdraw address) receives a share from the transaction fees paid by the transaction sender.
func (Keeper) SetContractShare ¶
SetContractShare stores the share for a registered contract.
func (Keeper) SetDeployerMap ¶
func (k Keeper) SetDeployerMap( ctx sdk.Context, deployer sdk.AccAddress, contract common.Address, )
SetDeployerMap stores a contract-by-deployer mapping
func (Keeper) SetFeeSplit ¶
SetFeeSplit stores the FeeSplit for a registered contract.
func (*Keeper) SetGovKeeper ¶
SetGovKeeper sets keeper of gov
func (Keeper) SetWithdrawerMap ¶
func (k Keeper) SetWithdrawerMap( ctx sdk.Context, withdrawer sdk.AccAddress, contract common.Address, )
SetWithdrawerMap stores a contract-by-withdrawer mapping