Documentation ¶
Index ¶
- Constants
- Variables
- func GetBindAssetHashKey(lockProxyHash []byte, sourceAssetHash []byte, targetChainId uint64) []byte
- func GetBindProxyKey(proxyHash []byte, toChainId uint64) []byte
- func GetOperatorToLockProxyKey(operator sdk.AccAddress) []byte
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) BindAssetHash(ctx sdk.Context, operator sdk.AccAddress, sourceAssetDenom string, ...) error
- func (k Keeper) BindProxyHash(ctx sdk.Context, operator sdk.AccAddress, toChainId uint64, toProxyHash []byte) error
- func (k Keeper) ContainToContractAddr(ctx sdk.Context, toContractAddr []byte, fromChainId uint64) bool
- func (k Keeper) CreateCoinAndDelegateToProxy(ctx sdk.Context, creator sdk.AccAddress, coin sdk.Coin, lockproxyHash []byte) error
- func (k Keeper) CreateLockProxy(ctx sdk.Context, creator sdk.AccAddress) error
- func (k Keeper) EnsureAccountExist(ctx sdk.Context, addr sdk.AccAddress) error
- func (k Keeper) EnsureLockProxyExist(ctx sdk.Context, creator sdk.AccAddress) bool
- func (k Keeper) GetAssetHash(ctx sdk.Context, lockProxyHash []byte, sourceAssetDenom string, ...) []byte
- func (k Keeper) GetLockProxyByOperator(ctx sdk.Context, operator sdk.AccAddress) []byte
- func (k Keeper) GetModuleAccount(ctx sdk.Context) exported.ModuleAccountI
- func (k Keeper) GetProxyHash(ctx sdk.Context, operator sdk.AccAddress, toChainId uint64) []byte
- func (k Keeper) Lock(ctx sdk.Context, lockProxyHash []byte, fromAddress sdk.AccAddress, ...) error
- func (k Keeper) Unlock(ctx sdk.Context, fromChainId uint64, fromContractAddr sdk.AccAddress, ...) error
Constants ¶
View Source
const ( // default paramspace for params keeper DefaultParamspace = types.ModuleName )
Variables ¶
View Source
var ( OperatorToLockProxyKey = []byte{0x01} BindProxyPrefix = []byte{0x02} BindAssetPrefix = []byte{0x03} )
Functions ¶
func GetBindAssetHashKey ¶
func GetBindProxyKey ¶
func GetOperatorToLockProxyKey ¶
func GetOperatorToLockProxyKey(operator sdk.AccAddress) []byte
func NewQuerier ¶
NewQuerier returns a minting Querier handler.
Types ¶
type Keeper ¶
type Keeper struct { selfexported.UnlockKeeper // contains filtered or unexported fields }
Keeper of the mint store
func NewKeeper ¶
func NewKeeper( cdc *codec.Codec, key sdk.StoreKey, ak types.AccountKeeper, supplyKeeper types.SupplyKeeper, ccmKeeper types.CrossChainManager) Keeper
NewKeeper creates a new mint Keeper instance
func (Keeper) BindAssetHash ¶
func (Keeper) BindProxyHash ¶
func (Keeper) ContainToContractAddr ¶
func (Keeper) CreateCoinAndDelegateToProxy ¶
func (Keeper) CreateLockProxy ¶
func (Keeper) EnsureAccountExist ¶
func (Keeper) EnsureLockProxyExist ¶
func (Keeper) GetAssetHash ¶
func (Keeper) GetLockProxyByOperator ¶
func (Keeper) GetModuleAccount ¶
func (k Keeper) GetModuleAccount(ctx sdk.Context) exported.ModuleAccountI
func (Keeper) GetProxyHash ¶
Click to show internal directories.
Click to hide internal directories.