Versions in this module Expand all Collapse all v0 v0.9.3 Nov 20, 2020 v0.9.0 Oct 19, 2020 Changes in this version + const CategoryTypeDeposit + const CategoryTypeKeyGen + const CategoryTypeTransfer + const CategoryTypeWithdrawal + const DefaultParamspace + const ModuleName + const QuerierRoute + const RouterKey + const StoreKey + const TStoreKey + var HeightHashKeyPrefix = []byte("HeightHashKey") + var ModuleCdc = codec.New() + var ReceiptStoreKeyPrefix = []byte + var TagKeyReceipt = "receipt" + func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState) + func RegisterCodec(cdc *codec.Codec) + func ValidateGenesis(data GenesisState) error + type AppModule struct + func NewAppModule(keeper Keeper) AppModule + func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock) + func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate + func (AppModule) Name() string + func (AppModule) QuerierRoute() string + func (AppModule) Route() string + func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage + func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate + func (am AppModule) NewHandler() sdk.Handler + func (am AppModule) NewQuerierHandler() sdk.Querier + func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) + type AppModuleBasic struct + func (AppModuleBasic) DefaultGenesis() json.RawMessage + func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command + func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command + func (AppModuleBasic) Name() string + func (AppModuleBasic) RegisterCodec(cdc *codec.Codec) + func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router) + func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error + type BalanceFlow = sdk.BalanceFlow + type CUAddress = sdk.CUAddress + type CategoryType = sdk.CategoryType + type DepositFlow = sdk.DepositFlow + type Flow = sdk.Flow + type GenesisState struct + func DefaultGenesisState() GenesisState + func ExportGenesis(ctx sdk.Context, keeper Keeper) GenesisState + func NewGenesisState() GenesisState + type Int = sdk.Int + type Keeper struct + func NewKeeper(cdc *codec.Codec) *Keeper + func (r *Keeper) GetReceiptFromResult(result *Result) (*sdk.Receipt, error) + func (r *Keeper) NewBalanceFlow(cuAddress sdk.CUAddress, symbol Symbol, orderID string, ...) BalanceFlow + func (r *Keeper) NewCollectFinishFlow(orderIDs []string, costFee Int) sdk.CollectFinishFlow + func (r *Keeper) NewCollectSignFinishFlow(orderIDs []string, signedTx []byte, txHash string) sdk.CollectSignFinishFlow + func (r *Keeper) NewCollectWaitSignFlow(orderIDs []string, rawData []byte) sdk.CollectWaitSignFlow + func (r *Keeper) NewDepositConfirmedFlow(validOrderIds, invalidOrderIds []string) sdk.DepositConfirmedFlow + func (r *Keeper) NewDepositFlow(CuAddress, multisignedadress, symbol, txhash, orderID, memo string, ...) DepositFlow + func (r *Keeper) NewOpcuAssetTransferFinishFlow(orderID string, costFee Int) sdk.OpcuAssetTransferFinishFlow + func (r *Keeper) NewOpcuAssetTransferFlow(orderID, opcu, fromAddr, toaddr, symbol string, items []sdk.TransferItem) sdk.OpcuAssetTransferFlow + func (r *Keeper) NewOpcuAssetTransferSignFinishFlow(orderID string, signedTx []byte, txHash string) sdk.OpcuAssetTransferSignFinishFlow + func (r *Keeper) NewOpcuAssetTransferWaitSignFlow(orderID string, rawData []byte) sdk.OpcuAssetTransferWaitSignFlow + func (r *Keeper) NewOrderFlow(symbol sdk.Symbol, cuAddress sdk.CUAddress, orderID string, ...) OrderFlow + func (r *Keeper) NewOrderRetryFlow(orderIDs []string) sdk.OrderRetryFlow + func (r *Keeper) NewReceipt(category CategoryType, flows []Flow) *sdk.Receipt + func (r *Keeper) NewSysTransferFinishFlow(orderID string, costFee Int) sdk.SysTransferFinishFlow + func (r *Keeper) NewSysTransferFlow(orderID, fromcu, tocu, fromAddr, toaddr, symbol string, amount Int) sdk.SysTransferFlow + func (r *Keeper) NewSysTransferSignFinishFlow(orderID string, signedTx []byte, txHash string) sdk.SysTransferSignFinishFlow + func (r *Keeper) NewSysTransferWaitSignFlow(orderID string, rawData []byte) sdk.SysTransferWaitSignFlow + func (r *Keeper) NewWithdrawalConfirmFlow(orderID string, status sdk.WithdrawStatus) sdk.WithdrawalConfirmFlow + func (r *Keeper) NewWithdrawalFinishFlow(orderIDs []string, costFee sdk.Int, valid bool) sdk.WithdrawalFinishFlow + func (r *Keeper) NewWithdrawalFlow(orderID, fromcu, toaddr, symbol string, amount, gasFee sdk.Int, ...) sdk.WithdrawalFlow + func (r *Keeper) NewWithdrawalSignFinishFlow(orderIDs []string, signedTx []byte, txHash string) sdk.WithdrawalSignFinishFlow + func (r *Keeper) NewWithdrawalWaitSignFlow(orderIDs []string, opcu, fromAddr string, rawData []byte) sdk.WithdrawalWaitSignFlow + func (r *Keeper) SaveReceiptToResult(receipt *sdk.Receipt, result *Result) *Result + type MappingBalanceFlow = sdk.MappingBalanceFlow + type OrderFlow = sdk.OrderFlow + type OrderRetryFlow = sdk.OrderRetryFlow + type ReceiptKeeperI interface + GetReceiptFromResult func(result *Result) (*sdk.Receipt, error) + NewBalanceFlow func(cuAddress CUAddress, symbol Symbol, orderID string, ...) BalanceFlow + NewDepositFlow func(CuAddress, multisignedadress, symbol, txhash, orderID, memo string, ...) DepositFlow + NewOrderFlow func(symbol sdk.Symbol, cuAddress CUAddress, orderID string, ...) OrderFlow + NewReceipt func(category CategoryType, flows []Flow) *sdk.Receipt + SaveReceiptToResult func(receipt *sdk.Receipt, result *Result) *Result + type Result = sdk.Result + type Symbol = sdk.Symbol