UNPKG

@swaptoshi/dex-module

Version:

Klayr decentralized exchange (dex) on-chain module

18 lines 799 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DexInteroperableMethod = void 0; const klayr_framework_1 = require("klayr-framework"); const hooks_1 = require("./hooks"); class DexInteroperableMethod extends klayr_framework_1.Modules.Interoperability.BaseCCMethod { addDependencies(interoperabilityMethod, tokenMethod, nftMethod) { this._interoperabilityMethod = interoperabilityMethod; this._tokenMethod = tokenMethod; this._nftMethod = nftMethod; } async afterCrossChainCommandExecute(ctx) { await hooks_1.verifyValidCrossTransfer.bind(this)(ctx); await hooks_1.executeSwapByCrossTransfer.bind(this)(ctx); } } exports.DexInteroperableMethod = DexInteroperableMethod; //# sourceMappingURL=cc_method.js.map