Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) Allowance(ctx context.Context, req *types.QueryAllowanceRequest) (*types.QueryAllowanceResponse, error)
- func (k Keeper) BalanceOf(ctx context.Context, req *types.QueryBalanceOfRequest) (*types.QueryBalanceOfResponse, error)
- func (k Keeper) Codec() codec.Codec
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) HandleContractCall(goCtx context.Context, signers []authtypes.Account, ...) (*txtypes.ContractCallResult, error)
- func (k Keeper) HandleTransferFrom(ctx sdk.Context, spender sdk.AccAddress, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)
- func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
- func (k Keeper) SetAdmin(ctx sdk.Context, admin sdk.AccAddress) error
- func (k Keeper) TotalSupply(ctx context.Context, req *emptypb.Empty) (*types.QueryTotalSupplyResponse, error)
- func (k Keeper) Transfer(ctx sdk.Context, sender, recipient sdk.AccAddress, amount int64) (*txtypes.ContractCallResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(m codec.Codec, erc20Keeper erc20keeper.Keeper, paramSpace paramtypes.Subspace) Keeper
NewKeeper creates a new keeper instance
func (Keeper) Allowance ¶
func (k Keeper) Allowance(ctx context.Context, req *types.QueryAllowanceRequest) (*types.QueryAllowanceResponse, error)
func (Keeper) BalanceOf ¶
func (k Keeper) BalanceOf(ctx context.Context, req *types.QueryBalanceOfRequest) (*types.QueryBalanceOfResponse, error)
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis exports empty genesis state.
func (Keeper) HandleContractCall ¶
func (k Keeper) HandleContractCall(goCtx context.Context, signers []authtypes.Account, callInfo txtypes.ContractCallInfo) (*txtypes.ContractCallResult, error)
HandleContractCall is called by ContractModule
func (Keeper) HandleTransferFrom ¶
func (k Keeper) HandleTransferFrom(ctx sdk.Context, spender sdk.AccAddress, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
InitGenesis initializes Params of genesis state.
func (Keeper) TotalSupply ¶
Click to show internal directories.
Click to hide internal directories.