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) HandleApprove(ctx sdk.Context, owner types.ID, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)
- func (k Keeper) HandleBurn(ctx sdk.Context, id types.ID, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)
- func (k Keeper) HandleContractCall(goCtx context.Context, signers []authtypes.Account, ...) (*txtypes.ContractCallResult, error)
- func (k Keeper) HandleMint(ctx sdk.Context, id types.ID, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)
- func (k Keeper) HandleTransfer(ctx sdk.Context, sender types.ID, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)
- func (k Keeper) HandleTransferFrom(ctx sdk.Context, spender types.ID, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)
- func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
- func (k Keeper) SetAdmin(ctx sdk.Context, admin types.ID) error
- func (k Keeper) TotalSupply(ctx context.Context, req *emptypb.Empty) (*types.QueryTotalSupplyResponse, 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 bridge module's portID and denom trace info into its genesis state.
func (Keeper) HandleApprove ¶
func (k Keeper) HandleApprove(ctx sdk.Context, owner types.ID, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)
func (Keeper) HandleBurn ¶
func (k Keeper) HandleBurn(ctx sdk.Context, id types.ID, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)
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) HandleMint ¶
func (k Keeper) HandleMint(ctx sdk.Context, id types.ID, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)
func (Keeper) HandleTransfer ¶
func (k Keeper) HandleTransfer(ctx sdk.Context, sender types.ID, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)
func (Keeper) HandleTransferFrom ¶
func (k Keeper) HandleTransferFrom(ctx sdk.Context, spender types.ID, req types.ContractCallRequest) (*txtypes.ContractCallResult, error)
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, state types.GenesisState)
InitGenesis initializes the bridge module state and binds to PortID.
func (Keeper) TotalSupply ¶
Click to show internal directories.
Click to hide internal directories.