keeper

package
v0.0.0-...-1237470 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// default paramspace for params keeper
	DefaultParamspace = types.ModuleName
)

Variables

View Source
var (
	CrossChainTxDetailPrefix = []byte{0x01}
	CrossChainDoneTxPrefix   = []byte{0x02}
	DenomToCreatorPrefix     = []byte{0x03}

	CrossChainIdKey = []byte("crosschainid")
)

Functions

func GetCrossChainTxKey

func GetCrossChainTxKey(crossChainTxSum []byte) []byte

func GetDenomToCreatorKey

func GetDenomToCreatorKey(denom string) []byte

func GetDoneTxKey

func GetDoneTxKey(fromChainId uint64, crossChainid []byte) []byte

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

NewQuerier returns a minting Querier handler.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper of the mint store

func NewKeeper

func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, paramSpace params.Subspace, hsk types.HeaderSyncKeeper, supplyKeeper types.SupplyKeeper) Keeper

NewKeeper creates a new mint Keeper instance

func (Keeper) CreateCrossChainTx

func (k Keeper) CreateCrossChainTx(ctx sdk.Context, fromAddr sdk.AccAddress, toChainId uint64, fromContractHash, toContractHash []byte, method string, args []byte) error

func (Keeper) ExistDenom

func (k Keeper) ExistDenom(ctx sdk.Context, denom string) (string, bool)

func (Keeper) GetDenomCreator

func (k Keeper) GetDenomCreator(ctx sdk.Context, denom string) (addr sdk.AccAddress)

func (Keeper) GetModuleBalance

func (k Keeper) GetModuleBalance(ctx sdk.Context, moduleName string) (sdk.Coins, error)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)

GetParams returns the total set of ccm parameters.

func (Keeper) IfContainToContract

func (k Keeper) IfContainToContract(ctx sdk.Context, keystore string, toContractAddr []byte, fromChainId uint64) *types.QueryContainToContractRes

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (*Keeper) MountUnlockKeeperMap

func (k *Keeper) MountUnlockKeeperMap(ulKeeperMap map[string]types.UnlockKeeper)

func (Keeper) ProcessCrossChainTx

func (k Keeper) ProcessCrossChainTx(ctx sdk.Context, fromChainId uint64, proofStr string, headerStr, headerProofStr, curHeaderStr string) error

func (Keeper) SetDenomCreator

func (k Keeper) SetDenomCreator(ctx sdk.Context, denom string, creator sdk.AccAddress)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams sets the total set of ccm parameters.

func (Keeper) VerifyToCosmosTx

func (k Keeper) VerifyToCosmosTx(ctx sdk.Context, proof []byte, header *polytype.Header) (*ccmc.ToMerkleValue, error)

Jump to

Keyboard shortcuts

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