Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) CreateBindRequest(ctx sdk.Context, req types.BindRequest) sdk.Error
- func (k Keeper) DeleteBindRequest(ctx sdk.Context, symbol string)
- func (k Keeper) GetBindRequest(ctx sdk.Context, symbol string) (types.BindRequest, sdk.Error)
- func (k Keeper) GetContractDecimals(ctx sdk.Context, contractAddr sdk.SmartChainAddress) int8
- func (k Keeper) RefundTransferIn(decimals int8, transferInClaim *types.TransferInSynPackage, ...) ([]byte, sdk.Error)
- func (k Keeper) SetContractDecimals(ctx sdk.Context, contractAddr sdk.SmartChainAddress, decimals int8)
- func (k *Keeper) SetPbsbServer(server *pubsub.Server)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct { Pool *sdk.Pool DestChainId sdk.ChainID DestChainName string ScKeeper sidechain.Keeper BankKeeper bank.Keeper TokenMapper store.Mapper AccountKeeper auth.AccountKeeper IbcKeeper ibc.Keeper PbsbServer *pubsub.Server // contains filtered or unexported fields }
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine
func NewKeeper ¶
func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, accountKeeper auth.AccountKeeper, tokenMapper store.Mapper, scKeeper sidechain.Keeper, bankKeeper bank.Keeper, ibcKeeper ibc.Keeper, pool *sdk.Pool, destChainId sdk.ChainID, destChainName string) Keeper
NewKeeper creates new instances of the bridge Keeper
func (Keeper) CreateBindRequest ¶
func (Keeper) GetBindRequest ¶
func (Keeper) GetContractDecimals ¶
func (Keeper) RefundTransferIn ¶
func (k Keeper) RefundTransferIn(decimals int8, transferInClaim *types.TransferInSynPackage, refundReason types.RefundReason) ([]byte, sdk.Error)
func (Keeper) SetContractDecimals ¶
func (*Keeper) SetPbsbServer ¶
Click to show internal directories.
Click to hide internal directories.