@wormhole-labs/cctp-executor-route 0.27.0-beta.1 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/aptos/index.d.ts +2 -0
- package/dist/cjs/aptos/index.d.ts.map +1 -1
- package/dist/cjs/aptos/index.js +13 -1
- package/dist/cjs/aptos/index.js.map +1 -1
- package/dist/cjs/evm/index.d.ts +2 -0
- package/dist/cjs/evm/index.d.ts.map +1 -1
- package/dist/cjs/evm/index.js +16 -2
- package/dist/cjs/evm/index.js.map +1 -1
- package/dist/cjs/index.d.ts +2 -4
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +18 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/sui/index.d.ts +2 -0
- package/dist/cjs/sui/index.d.ts.map +1 -1
- package/dist/cjs/sui/index.js +13 -1
- package/dist/cjs/sui/index.js.map +1 -1
- package/dist/cjs/svm/index.d.ts +2 -0
- package/dist/cjs/svm/index.d.ts.map +1 -1
- package/dist/cjs/svm/index.js +16 -2
- package/dist/cjs/svm/index.js.map +1 -1
- package/dist/esm/aptos/index.d.ts +2 -0
- package/dist/esm/aptos/index.d.ts.map +1 -1
- package/dist/esm/aptos/index.js +13 -2
- package/dist/esm/aptos/index.js.map +1 -1
- package/dist/esm/evm/index.d.ts +2 -0
- package/dist/esm/evm/index.d.ts.map +1 -1
- package/dist/esm/evm/index.js +16 -3
- package/dist/esm/evm/index.js.map +1 -1
- package/dist/esm/index.d.ts +2 -4
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +17 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/sui/index.d.ts +2 -0
- package/dist/esm/sui/index.d.ts.map +1 -1
- package/dist/esm/sui/index.js +13 -2
- package/dist/esm/sui/index.js.map +1 -1
- package/dist/esm/svm/index.d.ts +2 -0
- package/dist/esm/svm/index.d.ts.map +1 -1
- package/dist/esm/svm/index.js +16 -3
- package/dist/esm/svm/index.js.map +1 -1
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/aptos/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/aptos/index.ts"],"names":[],"mappings":"AAOA,cAAc,YAAY,CAAC;AAE3B,oEAAoE;AACpE,wBAAgB,QAAQ,CAAC,QAAQ,UAAQ,GAAG,IAAI,CAS/C"}
|
package/dist/cjs/aptos/index.js
CHANGED
|
@@ -14,9 +14,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.register = register;
|
|
17
18
|
const sdk_definitions_1 = require("@wormhole-foundation/sdk-definitions");
|
|
18
19
|
const sdk_aptos_1 = require("@wormhole-foundation/sdk-aptos");
|
|
19
20
|
const executor_1 = require("./executor");
|
|
20
21
|
__exportStar(require("./executor"), exports);
|
|
21
|
-
|
|
22
|
+
/** Explicitly register Aptos CCTP executor protocol. Idempotent. */
|
|
23
|
+
function register(topLevel = false) {
|
|
24
|
+
if (topLevel) {
|
|
25
|
+
console.warn("@wormhole-labs/cctp-executor-route/aptos: auto-registration on import is deprecated. Import { register } and call it explicitly.");
|
|
26
|
+
}
|
|
27
|
+
if (!(0, sdk_definitions_1.protocolIsRegistered)(sdk_aptos_1._platform, "CCTPExecutor")) {
|
|
28
|
+
(0, sdk_definitions_1.registerProtocol)(sdk_aptos_1._platform, "CCTPExecutor", executor_1.AptosCCTPExecutor);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
// Backward-compatible: auto-register on import
|
|
32
|
+
// TODO: remove this next time we are cool with a major version bump and are OK requiring integrators to make code changes
|
|
33
|
+
register(true);
|
|
22
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/aptos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/aptos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAUA,4BASC;AAnBD,0EAG8C;AAC9C,8DAA2D;AAC3D,yCAA+C;AAE/C,6CAA2B;AAE3B,oEAAoE;AACpE,SAAgB,QAAQ,CAAC,QAAQ,GAAG,KAAK;IACvC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CACV,kIAAkI,CACnI,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,IAAA,sCAAoB,EAAC,qBAAS,EAAE,cAAc,CAAC,EAAE,CAAC;QACrD,IAAA,kCAAgB,EAAC,qBAAS,EAAE,cAAc,EAAE,4BAAiB,CAAC,CAAC;IACjE,CAAC;AACH,CAAC;AAED,+CAA+C;AAC/C,0HAA0H;AAC1H,QAAQ,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/cjs/evm/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/evm/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/evm/index.ts"],"names":[],"mappings":"AAQA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAE7B,mEAAmE;AACnE,wBAAgB,QAAQ,CAAC,QAAQ,UAAQ,GAAG,IAAI,CAY/C"}
|
package/dist/cjs/evm/index.js
CHANGED
|
@@ -14,12 +14,26 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.register = register;
|
|
17
18
|
const sdk_definitions_1 = require("@wormhole-foundation/sdk-definitions");
|
|
18
19
|
const sdk_evm_1 = require("@wormhole-foundation/sdk-evm");
|
|
19
20
|
const executor_1 = require("./executor");
|
|
20
21
|
const executorV2_1 = require("./executorV2");
|
|
21
22
|
__exportStar(require("./executor"), exports);
|
|
22
23
|
__exportStar(require("./executorV2"), exports);
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
/** Explicitly register EVM CCTP executor protocols. Idempotent. */
|
|
25
|
+
function register(topLevel = false) {
|
|
26
|
+
if (topLevel) {
|
|
27
|
+
console.warn("@wormhole-labs/cctp-executor-route/evm: auto-registration on import is deprecated. Import { register } and call it explicitly.");
|
|
28
|
+
}
|
|
29
|
+
if (!(0, sdk_definitions_1.protocolIsRegistered)(sdk_evm_1._platform, "CCTPExecutor")) {
|
|
30
|
+
(0, sdk_definitions_1.registerProtocol)(sdk_evm_1._platform, "CCTPExecutor", executor_1.EvmCCTPExecutor);
|
|
31
|
+
}
|
|
32
|
+
if (!(0, sdk_definitions_1.protocolIsRegistered)(sdk_evm_1._platform, "CCTPv2Executor")) {
|
|
33
|
+
(0, sdk_definitions_1.registerProtocol)(sdk_evm_1._platform, "CCTPv2Executor", executorV2_1.EvmCCTPv2Executor);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
// Backward-compatible: auto-register on import
|
|
37
|
+
// TODO: remove this next time we are cool with a major version bump and are OK requiring integrators to make code changes
|
|
38
|
+
register(true);
|
|
25
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/evm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/evm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAYA,4BAYC;AAxBD,0EAG8C;AAC9C,0DAAyD;AACzD,yCAA6C;AAC7C,6CAAiD;AAEjD,6CAA2B;AAC3B,+CAA6B;AAE7B,mEAAmE;AACnE,SAAgB,QAAQ,CAAC,QAAQ,GAAG,KAAK;IACvC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CACV,gIAAgI,CACjI,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,IAAA,sCAAoB,EAAC,mBAAS,EAAE,cAAc,CAAC,EAAE,CAAC;QACrD,IAAA,kCAAgB,EAAC,mBAAS,EAAE,cAAc,EAAE,0BAAe,CAAC,CAAC;IAC/D,CAAC;IACD,IAAI,CAAC,IAAA,sCAAoB,EAAC,mBAAS,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACvD,IAAA,kCAAgB,EAAC,mBAAS,EAAE,gBAAgB,EAAE,8BAAiB,CAAC,CAAC;IACnE,CAAC;AACH,CAAC;AAED,+CAA+C;AAC/C,0HAA0H;AAC1H,QAAQ,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import "./sui/index.js";
|
|
4
|
-
import "./svm/index.js";
|
|
1
|
+
/** Register all CCTP executor platform protocols. Idempotent. */
|
|
2
|
+
export declare function register(topLevel?: boolean): void;
|
|
5
3
|
export * from "./routes";
|
|
6
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAMA,iEAAiE;AACjE,wBAAgB,QAAQ,CAAC,QAAQ,UAAQ,GAAG,IAAI,CAU/C;AAMD,cAAc,UAAU,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -14,10 +14,24 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.register = register;
|
|
17
18
|
// IMPORTANT: register the platform specific implementations of the protocol
|
|
18
|
-
require("./aptos/index.js");
|
|
19
|
-
require("./evm/index.js");
|
|
20
|
-
require("./sui/index.js");
|
|
21
|
-
require("./svm/index.js");
|
|
19
|
+
const index_js_1 = require("./aptos/index.js");
|
|
20
|
+
const index_js_2 = require("./evm/index.js");
|
|
21
|
+
const index_js_3 = require("./sui/index.js");
|
|
22
|
+
const index_js_4 = require("./svm/index.js");
|
|
23
|
+
/** Register all CCTP executor platform protocols. Idempotent. */
|
|
24
|
+
function register(topLevel = false) {
|
|
25
|
+
if (topLevel) {
|
|
26
|
+
console.warn("@wormhole-labs/cctp-executor-route: auto-registration on import is deprecated. Import { register } and call it explicitly.");
|
|
27
|
+
}
|
|
28
|
+
(0, index_js_1.register)();
|
|
29
|
+
(0, index_js_2.register)();
|
|
30
|
+
(0, index_js_3.register)();
|
|
31
|
+
(0, index_js_4.register)();
|
|
32
|
+
}
|
|
33
|
+
// Backward-compatible: auto-register on import
|
|
34
|
+
// TODO: remove this next time we are cool with a major version bump and are OK requiring integrators to make code changes
|
|
35
|
+
register(true);
|
|
22
36
|
__exportStar(require("./routes"), exports);
|
|
23
37
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAOA,4BAUC;AAjBD,4EAA4E;AAC5E,+CAA6D;AAC7D,6CAAyD;AACzD,6CAAyD;AACzD,6CAAyD;AAEzD,iEAAiE;AACjE,SAAgB,QAAQ,CAAC,QAAQ,GAAG,KAAK;IACvC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CACV,4HAA4H,CAC7H,CAAC;IACJ,CAAC;IACD,IAAA,mBAAa,GAAE,CAAC;IAChB,IAAA,mBAAW,GAAE,CAAC;IACd,IAAA,mBAAW,GAAE,CAAC;IACd,IAAA,mBAAW,GAAE,CAAC;AAChB,CAAC;AAED,+CAA+C;AAC/C,0HAA0H;AAC1H,QAAQ,CAAC,IAAI,CAAC,CAAC;AAEf,2CAAyB"}
|
package/dist/cjs/sui/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sui/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sui/index.ts"],"names":[],"mappings":"AAOA,cAAc,YAAY,CAAC;AAE3B,kEAAkE;AAClE,wBAAgB,QAAQ,CAAC,QAAQ,UAAQ,GAAG,IAAI,CAS/C"}
|
package/dist/cjs/sui/index.js
CHANGED
|
@@ -14,9 +14,21 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.register = register;
|
|
17
18
|
const sdk_definitions_1 = require("@wormhole-foundation/sdk-definitions");
|
|
18
19
|
const sdk_sui_1 = require("@wormhole-foundation/sdk-sui");
|
|
19
20
|
const executor_1 = require("./executor");
|
|
20
21
|
__exportStar(require("./executor"), exports);
|
|
21
|
-
|
|
22
|
+
/** Explicitly register Sui CCTP executor protocol. Idempotent. */
|
|
23
|
+
function register(topLevel = false) {
|
|
24
|
+
if (topLevel) {
|
|
25
|
+
console.warn("@wormhole-labs/cctp-executor-route/sui: auto-registration on import is deprecated. Import { register } and call it explicitly.");
|
|
26
|
+
}
|
|
27
|
+
if (!(0, sdk_definitions_1.protocolIsRegistered)(sdk_sui_1._platform, "CCTPExecutor")) {
|
|
28
|
+
(0, sdk_definitions_1.registerProtocol)(sdk_sui_1._platform, "CCTPExecutor", executor_1.SuiCCTPExecutor);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
// Backward-compatible: auto-register on import
|
|
32
|
+
// TODO: remove this next time we are cool with a major version bump and are OK requiring integrators to make code changes
|
|
33
|
+
register(true);
|
|
22
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sui/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sui/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAUA,4BASC;AAnBD,0EAG8C;AAC9C,0DAAyD;AACzD,yCAA6C;AAE7C,6CAA2B;AAE3B,kEAAkE;AAClE,SAAgB,QAAQ,CAAC,QAAQ,GAAG,KAAK;IACvC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CACV,gIAAgI,CACjI,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,IAAA,sCAAoB,EAAC,mBAAS,EAAE,cAAc,CAAC,EAAE,CAAC;QACrD,IAAA,kCAAgB,EAAC,mBAAS,EAAE,cAAc,EAAE,0BAAe,CAAC,CAAC;IAC/D,CAAC;AACH,CAAC;AAED,+CAA+C;AAC/C,0HAA0H;AAC1H,QAAQ,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/cjs/svm/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/svm/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/svm/index.ts"],"names":[],"mappings":"AAQA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAE7B,mEAAmE;AACnE,wBAAgB,QAAQ,CAAC,QAAQ,UAAQ,GAAG,IAAI,CAY/C"}
|
package/dist/cjs/svm/index.js
CHANGED
|
@@ -14,12 +14,26 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.register = register;
|
|
17
18
|
const sdk_definitions_1 = require("@wormhole-foundation/sdk-definitions");
|
|
18
19
|
const sdk_solana_1 = require("@wormhole-foundation/sdk-solana");
|
|
19
20
|
const executor_1 = require("./executor");
|
|
20
21
|
const executorV2_1 = require("./executorV2");
|
|
21
22
|
__exportStar(require("./executor"), exports);
|
|
22
23
|
__exportStar(require("./executorV2"), exports);
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
/** Explicitly register SVM CCTP executor protocols. Idempotent. */
|
|
25
|
+
function register(topLevel = false) {
|
|
26
|
+
if (topLevel) {
|
|
27
|
+
console.warn("@wormhole-labs/cctp-executor-route/svm: auto-registration on import is deprecated. Import { register } and call it explicitly.");
|
|
28
|
+
}
|
|
29
|
+
if (!(0, sdk_definitions_1.protocolIsRegistered)(sdk_solana_1._platform, "CCTPExecutor")) {
|
|
30
|
+
(0, sdk_definitions_1.registerProtocol)(sdk_solana_1._platform, "CCTPExecutor", executor_1.SvmCCTPExecutor);
|
|
31
|
+
}
|
|
32
|
+
if (!(0, sdk_definitions_1.protocolIsRegistered)(sdk_solana_1._platform, "CCTPv2Executor")) {
|
|
33
|
+
(0, sdk_definitions_1.registerProtocol)(sdk_solana_1._platform, "CCTPv2Executor", executorV2_1.SvmCCTPv2Executor);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
// Backward-compatible: auto-register on import
|
|
37
|
+
// TODO: remove this next time we are cool with a major version bump and are OK requiring integrators to make code changes
|
|
38
|
+
register(true);
|
|
25
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/svm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/svm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAYA,4BAYC;AAxBD,0EAG8C;AAC9C,gEAA4D;AAC5D,yCAA6C;AAC7C,6CAAiD;AAEjD,6CAA2B;AAC3B,+CAA6B;AAE7B,mEAAmE;AACnE,SAAgB,QAAQ,CAAC,QAAQ,GAAG,KAAK;IACvC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CACV,gIAAgI,CACjI,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,IAAA,sCAAoB,EAAC,sBAAS,EAAE,cAAc,CAAC,EAAE,CAAC;QACrD,IAAA,kCAAgB,EAAC,sBAAS,EAAE,cAAc,EAAE,0BAAe,CAAC,CAAC;IAC/D,CAAC;IACD,IAAI,CAAC,IAAA,sCAAoB,EAAC,sBAAS,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACvD,IAAA,kCAAgB,EAAC,sBAAS,EAAE,gBAAgB,EAAE,8BAAiB,CAAC,CAAC;IACnE,CAAC;AACH,CAAC;AAED,+CAA+C;AAC/C,0HAA0H;AAC1H,QAAQ,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/aptos/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/aptos/index.ts"],"names":[],"mappings":"AAOA,cAAc,YAAY,CAAC;AAE3B,oEAAoE;AACpE,wBAAgB,QAAQ,CAAC,QAAQ,UAAQ,GAAG,IAAI,CAS/C"}
|
package/dist/esm/aptos/index.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import { registerProtocol } from "@wormhole-foundation/sdk-definitions";
|
|
1
|
+
import { registerProtocol, protocolIsRegistered, } from "@wormhole-foundation/sdk-definitions";
|
|
2
2
|
import { _platform } from "@wormhole-foundation/sdk-aptos";
|
|
3
3
|
import { AptosCCTPExecutor } from "./executor";
|
|
4
4
|
export * from "./executor";
|
|
5
|
-
|
|
5
|
+
/** Explicitly register Aptos CCTP executor protocol. Idempotent. */
|
|
6
|
+
export function register(topLevel = false) {
|
|
7
|
+
if (topLevel) {
|
|
8
|
+
console.warn("@wormhole-labs/cctp-executor-route/aptos: auto-registration on import is deprecated. Import { register } and call it explicitly.");
|
|
9
|
+
}
|
|
10
|
+
if (!protocolIsRegistered(_platform, "CCTPExecutor")) {
|
|
11
|
+
registerProtocol(_platform, "CCTPExecutor", AptosCCTPExecutor);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
// Backward-compatible: auto-register on import
|
|
15
|
+
// TODO: remove this next time we are cool with a major version bump and are OK requiring integrators to make code changes
|
|
16
|
+
register(true);
|
|
6
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/aptos/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/aptos/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,cAAc,YAAY,CAAC;AAE3B,oEAAoE;AACpE,MAAM,UAAU,QAAQ,CAAC,QAAQ,GAAG,KAAK;IACvC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CACV,kIAAkI,CACnI,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,cAAc,CAAC,EAAE,CAAC;QACrD,gBAAgB,CAAC,SAAS,EAAE,cAAc,EAAE,iBAAiB,CAAC,CAAC;IACjE,CAAC;AACH,CAAC;AAED,+CAA+C;AAC/C,0HAA0H;AAC1H,QAAQ,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/esm/evm/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/evm/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/evm/index.ts"],"names":[],"mappings":"AAQA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAE7B,mEAAmE;AACnE,wBAAgB,QAAQ,CAAC,QAAQ,UAAQ,GAAG,IAAI,CAY/C"}
|
package/dist/esm/evm/index.js
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import { registerProtocol } from "@wormhole-foundation/sdk-definitions";
|
|
1
|
+
import { registerProtocol, protocolIsRegistered, } from "@wormhole-foundation/sdk-definitions";
|
|
2
2
|
import { _platform } from "@wormhole-foundation/sdk-evm";
|
|
3
3
|
import { EvmCCTPExecutor } from "./executor";
|
|
4
4
|
import { EvmCCTPv2Executor } from "./executorV2";
|
|
5
5
|
export * from "./executor";
|
|
6
6
|
export * from "./executorV2";
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/** Explicitly register EVM CCTP executor protocols. Idempotent. */
|
|
8
|
+
export function register(topLevel = false) {
|
|
9
|
+
if (topLevel) {
|
|
10
|
+
console.warn("@wormhole-labs/cctp-executor-route/evm: auto-registration on import is deprecated. Import { register } and call it explicitly.");
|
|
11
|
+
}
|
|
12
|
+
if (!protocolIsRegistered(_platform, "CCTPExecutor")) {
|
|
13
|
+
registerProtocol(_platform, "CCTPExecutor", EvmCCTPExecutor);
|
|
14
|
+
}
|
|
15
|
+
if (!protocolIsRegistered(_platform, "CCTPv2Executor")) {
|
|
16
|
+
registerProtocol(_platform, "CCTPv2Executor", EvmCCTPv2Executor);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
// Backward-compatible: auto-register on import
|
|
20
|
+
// TODO: remove this next time we are cool with a major version bump and are OK requiring integrators to make code changes
|
|
21
|
+
register(true);
|
|
9
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/evm/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/evm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAE7B,mEAAmE;AACnE,MAAM,UAAU,QAAQ,CAAC,QAAQ,GAAG,KAAK;IACvC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CACV,gIAAgI,CACjI,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,cAAc,CAAC,EAAE,CAAC;QACrD,gBAAgB,CAAC,SAAS,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC;IAC/D,CAAC;IACD,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACvD,gBAAgB,CAAC,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IACnE,CAAC;AACH,CAAC;AAED,+CAA+C;AAC/C,0HAA0H;AAC1H,QAAQ,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import "./sui/index.js";
|
|
4
|
-
import "./svm/index.js";
|
|
1
|
+
/** Register all CCTP executor platform protocols. Idempotent. */
|
|
2
|
+
export declare function register(topLevel?: boolean): void;
|
|
5
3
|
export * from "./routes";
|
|
6
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAMA,iEAAiE;AACjE,wBAAgB,QAAQ,CAAC,QAAQ,UAAQ,GAAG,IAAI,CAU/C;AAMD,cAAc,UAAU,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
// IMPORTANT: register the platform specific implementations of the protocol
|
|
2
|
-
import "./aptos/index.js";
|
|
3
|
-
import "./evm/index.js";
|
|
4
|
-
import "./sui/index.js";
|
|
5
|
-
import "./svm/index.js";
|
|
2
|
+
import { register as registerAptos } from "./aptos/index.js";
|
|
3
|
+
import { register as registerEvm } from "./evm/index.js";
|
|
4
|
+
import { register as registerSui } from "./sui/index.js";
|
|
5
|
+
import { register as registerSvm } from "./svm/index.js";
|
|
6
|
+
/** Register all CCTP executor platform protocols. Idempotent. */
|
|
7
|
+
export function register(topLevel = false) {
|
|
8
|
+
if (topLevel) {
|
|
9
|
+
console.warn("@wormhole-labs/cctp-executor-route: auto-registration on import is deprecated. Import { register } and call it explicitly.");
|
|
10
|
+
}
|
|
11
|
+
registerAptos();
|
|
12
|
+
registerEvm();
|
|
13
|
+
registerSui();
|
|
14
|
+
registerSvm();
|
|
15
|
+
}
|
|
16
|
+
// Backward-compatible: auto-register on import
|
|
17
|
+
// TODO: remove this next time we are cool with a major version bump and are OK requiring integrators to make code changes
|
|
18
|
+
register(true);
|
|
6
19
|
export * from "./routes";
|
|
7
20
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,QAAQ,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,QAAQ,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,QAAQ,IAAI,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAEzD,iEAAiE;AACjE,MAAM,UAAU,QAAQ,CAAC,QAAQ,GAAG,KAAK;IACvC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CACV,4HAA4H,CAC7H,CAAC;IACJ,CAAC;IACD,aAAa,EAAE,CAAC;IAChB,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,CAAC;AAChB,CAAC;AAED,+CAA+C;AAC/C,0HAA0H;AAC1H,QAAQ,CAAC,IAAI,CAAC,CAAC;AAEf,cAAc,UAAU,CAAC"}
|
package/dist/esm/sui/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sui/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sui/index.ts"],"names":[],"mappings":"AAOA,cAAc,YAAY,CAAC;AAE3B,kEAAkE;AAClE,wBAAgB,QAAQ,CAAC,QAAQ,UAAQ,GAAG,IAAI,CAS/C"}
|
package/dist/esm/sui/index.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import { registerProtocol } from "@wormhole-foundation/sdk-definitions";
|
|
1
|
+
import { registerProtocol, protocolIsRegistered, } from "@wormhole-foundation/sdk-definitions";
|
|
2
2
|
import { _platform } from "@wormhole-foundation/sdk-sui";
|
|
3
3
|
import { SuiCCTPExecutor } from "./executor";
|
|
4
4
|
export * from "./executor";
|
|
5
|
-
|
|
5
|
+
/** Explicitly register Sui CCTP executor protocol. Idempotent. */
|
|
6
|
+
export function register(topLevel = false) {
|
|
7
|
+
if (topLevel) {
|
|
8
|
+
console.warn("@wormhole-labs/cctp-executor-route/sui: auto-registration on import is deprecated. Import { register } and call it explicitly.");
|
|
9
|
+
}
|
|
10
|
+
if (!protocolIsRegistered(_platform, "CCTPExecutor")) {
|
|
11
|
+
registerProtocol(_platform, "CCTPExecutor", SuiCCTPExecutor);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
// Backward-compatible: auto-register on import
|
|
15
|
+
// TODO: remove this next time we are cool with a major version bump and are OK requiring integrators to make code changes
|
|
16
|
+
register(true);
|
|
6
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sui/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,cAAc,YAAY,CAAC;AAE3B,kEAAkE;AAClE,MAAM,UAAU,QAAQ,CAAC,QAAQ,GAAG,KAAK;IACvC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CACV,gIAAgI,CACjI,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,cAAc,CAAC,EAAE,CAAC;QACrD,gBAAgB,CAAC,SAAS,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC;IAC/D,CAAC;AACH,CAAC;AAED,+CAA+C;AAC/C,0HAA0H;AAC1H,QAAQ,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/esm/svm/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/svm/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/svm/index.ts"],"names":[],"mappings":"AAQA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAE7B,mEAAmE;AACnE,wBAAgB,QAAQ,CAAC,QAAQ,UAAQ,GAAG,IAAI,CAY/C"}
|
package/dist/esm/svm/index.js
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import { registerProtocol } from "@wormhole-foundation/sdk-definitions";
|
|
1
|
+
import { registerProtocol, protocolIsRegistered, } from "@wormhole-foundation/sdk-definitions";
|
|
2
2
|
import { _platform } from "@wormhole-foundation/sdk-solana";
|
|
3
3
|
import { SvmCCTPExecutor } from "./executor";
|
|
4
4
|
import { SvmCCTPv2Executor } from "./executorV2";
|
|
5
5
|
export * from "./executor";
|
|
6
6
|
export * from "./executorV2";
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/** Explicitly register SVM CCTP executor protocols. Idempotent. */
|
|
8
|
+
export function register(topLevel = false) {
|
|
9
|
+
if (topLevel) {
|
|
10
|
+
console.warn("@wormhole-labs/cctp-executor-route/svm: auto-registration on import is deprecated. Import { register } and call it explicitly.");
|
|
11
|
+
}
|
|
12
|
+
if (!protocolIsRegistered(_platform, "CCTPExecutor")) {
|
|
13
|
+
registerProtocol(_platform, "CCTPExecutor", SvmCCTPExecutor);
|
|
14
|
+
}
|
|
15
|
+
if (!protocolIsRegistered(_platform, "CCTPv2Executor")) {
|
|
16
|
+
registerProtocol(_platform, "CCTPv2Executor", SvmCCTPv2Executor);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
// Backward-compatible: auto-register on import
|
|
20
|
+
// TODO: remove this next time we are cool with a major version bump and are OK requiring integrators to make code changes
|
|
21
|
+
register(true);
|
|
9
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/svm/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/svm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,oBAAoB,GACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAE7B,mEAAmE;AACnE,MAAM,UAAU,QAAQ,CAAC,QAAQ,GAAG,KAAK;IACvC,IAAI,QAAQ,EAAE,CAAC;QACb,OAAO,CAAC,IAAI,CACV,gIAAgI,CACjI,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,cAAc,CAAC,EAAE,CAAC;QACrD,gBAAgB,CAAC,SAAS,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC;IAC/D,CAAC;IACD,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,CAAC,EAAE,CAAC;QACvD,gBAAgB,CAAC,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;IACnE,CAAC;AACH,CAAC;AAED,+CAA+C;AAC/C,0HAA0H;AAC1H,QAAQ,CAAC,IAAI,CAAC,CAAC"}
|