keeper

package
v0.10.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 (k Keeper) CreateBindRequest(ctx sdk.Context, req types.BindRequest) sdk.Error

func (Keeper) DeleteBindRequest

func (k Keeper) DeleteBindRequest(ctx sdk.Context, symbol string)

func (Keeper) GetBindRequest

func (k Keeper) GetBindRequest(ctx sdk.Context, symbol string) (types.BindRequest, sdk.Error)

func (Keeper) GetContractDecimals

func (k Keeper) GetContractDecimals(ctx sdk.Context, contractAddr sdk.SmartChainAddress) int8

func (Keeper) RefundTransferIn

func (k Keeper) RefundTransferIn(decimals int8, transferInClaim *types.TransferInSynPackage, refundReason types.RefundReason) ([]byte, sdk.Error)

func (Keeper) SetContractDecimals

func (k Keeper) SetContractDecimals(ctx sdk.Context, contractAddr sdk.SmartChainAddress, decimals int8)

func (*Keeper) SetPbsbServer

func (k *Keeper) SetPbsbServer(server *pubsub.Server)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL