Documentation ¶
Index ¶
- Constants
- Variables
- func GetBindAssetHashKey(sourceDenomHash []byte, chainId uint64) []byte
- func GetCreatorDenomToScriptHashKey(creator sdk.AccAddress, denom string) []byte
- func GetDenomToCreatorKey(denom string) []byte
- func GetDenomToRedeemScriptKey(denom string) []byte
- func GetScriptHashAndChainIdToAssetHashKey(scriptHash []byte, chainId uint64) []byte
- func GetScriptHashToRedeemScript(scriptHashKeyBs []byte) []byte
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) BindAssetHash(ctx sdk.Context, creator sdk.AccAddress, sourceAssetDenom string, ...) error
- func (k Keeper) BurnCoins(ctx sdk.Context, fromAcct sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) ContainToContractAddr(ctx sdk.Context, toContractAddr []byte, fromChainId uint64) bool
- func (k Keeper) CreateDenom(ctx sdk.Context, creator sdk.AccAddress, denom string, redeemScript string) error
- func (k Keeper) GetDenomCrossChainInfo(ctx sdk.Context, denom string, toChainId uint64) *types.DenomCrossChainInfo
- func (k Keeper) GetDenomInfo(ctx sdk.Context, denom string) *types.DenomInfo
- func (k Keeper) Lock(ctx sdk.Context, fromAddr sdk.AccAddress, sourceAssetDenom string, ...) error
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintCoins(ctx sdk.Context, toAcct sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) Unlock(ctx sdk.Context, fromChainId uint64, fromContractAddr sdk.AccAddress, ...) error
- func (k Keeper) ValidCreator(ctx sdk.Context, denom string, creator sdk.AccAddress) bool
Constants ¶
View Source
const ( // default paramspace for params keeper DefaultParamspace = types.ModuleName )
Variables ¶
Functions ¶
func GetBindAssetHashKey ¶
func GetCreatorDenomToScriptHashKey ¶
func GetCreatorDenomToScriptHashKey(creator sdk.AccAddress, denom string) []byte
func GetDenomToCreatorKey ¶
func GetScriptHashAndChainIdToAssetHashKey ¶
TODO: delete this method
func NewQuerier ¶
NewQuerier returns a minting Querier handler.
Types ¶
type Keeper ¶
type Keeper struct { exported.UnlockKeeper // contains filtered or unexported fields }
Keeper of the btcx store
func NewKeeper ¶
func NewKeeper( cdc *codec.Codec, key sdk.StoreKey, ak types.AccountKeeper, bk types.BankKeeper, supplyKeeper types.SupplyKeeper, ccmKeeper types.CCMKeeper) Keeper
NewKeeper creates a new btcx Keeper instance
func (Keeper) BindAssetHash ¶
func (Keeper) ContainToContractAddr ¶
func (Keeper) CreateDenom ¶
func (Keeper) GetDenomCrossChainInfo ¶
func (Keeper) GetDenomInfo ¶
func (Keeper) ValidCreator ¶
Click to show internal directories.
Click to hide internal directories.