@wormhole-labs/cctp-executor-route 1.1.0-beta.0 → 2.0.0-beta.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.
Files changed (136) hide show
  1. package/dist/esm/layouts/relayInstruction.d.ts +6 -6
  2. package/dist/esm/routes/cctpV1.d.ts +3 -3
  3. package/dist/esm/routes/cctpV2Base.d.ts +2 -2
  4. package/dist/esm/routes/cctpV2Fast.d.ts +5 -5
  5. package/dist/esm/routes/cctpV2Standard.d.ts +5 -5
  6. package/dist/esm/routes/helpers.d.ts +2 -2
  7. package/dist/esm/routes/helpers.d.ts.map +1 -1
  8. package/dist/esm/sui/executor.d.ts +4 -4
  9. package/dist/esm/sui/executor.d.ts.map +1 -1
  10. package/dist/esm/sui/executor.js.map +1 -1
  11. package/dist/esm/svm/executor.js +1 -1
  12. package/dist/esm/svm/executor.js.map +1 -1
  13. package/dist/esm/svm/executorV2.d.ts.map +1 -1
  14. package/dist/esm/svm/executorV2.js +2 -2
  15. package/dist/esm/svm/executorV2.js.map +1 -1
  16. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  17. package/package.json +28 -29
  18. package/dist/cjs/aptos/executor.d.ts +0 -18
  19. package/dist/cjs/aptos/executor.d.ts.map +0 -1
  20. package/dist/cjs/aptos/executor.js +0 -73
  21. package/dist/cjs/aptos/executor.js.map +0 -1
  22. package/dist/cjs/aptos/index.d.ts +0 -4
  23. package/dist/cjs/aptos/index.d.ts.map +0 -1
  24. package/dist/cjs/aptos/index.js +0 -28
  25. package/dist/cjs/aptos/index.js.map +0 -1
  26. package/dist/cjs/consts.d.ts +0 -34
  27. package/dist/cjs/consts.d.ts.map +0 -1
  28. package/dist/cjs/consts.js +0 -347
  29. package/dist/cjs/consts.js.map +0 -1
  30. package/dist/cjs/evm/executor.d.ts +0 -19
  31. package/dist/cjs/evm/executor.d.ts.map +0 -1
  32. package/dist/cjs/evm/executor.js +0 -71
  33. package/dist/cjs/evm/executor.js.map +0 -1
  34. package/dist/cjs/evm/executorV2.d.ts +0 -25
  35. package/dist/cjs/evm/executorV2.d.ts.map +0 -1
  36. package/dist/cjs/evm/executorV2.js +0 -102
  37. package/dist/cjs/evm/executorV2.js.map +0 -1
  38. package/dist/cjs/evm/index.d.ts +0 -5
  39. package/dist/cjs/evm/index.d.ts.map +0 -1
  40. package/dist/cjs/evm/index.js +0 -33
  41. package/dist/cjs/evm/index.js.map +0 -1
  42. package/dist/cjs/index.d.ts +0 -4
  43. package/dist/cjs/index.d.ts.map +0 -1
  44. package/dist/cjs/index.js +0 -31
  45. package/dist/cjs/index.js.map +0 -1
  46. package/dist/cjs/layouts/circle.d.ts +0 -161
  47. package/dist/cjs/layouts/circle.d.ts.map +0 -1
  48. package/dist/cjs/layouts/circle.js +0 -48
  49. package/dist/cjs/layouts/circle.js.map +0 -1
  50. package/dist/cjs/layouts/conversions.d.ts +0 -5
  51. package/dist/cjs/layouts/conversions.d.ts.map +0 -1
  52. package/dist/cjs/layouts/conversions.js +0 -8
  53. package/dist/cjs/layouts/conversions.js.map +0 -1
  54. package/dist/cjs/layouts/index.d.ts +0 -4
  55. package/dist/cjs/layouts/index.d.ts.map +0 -1
  56. package/dist/cjs/layouts/index.js +0 -20
  57. package/dist/cjs/layouts/index.js.map +0 -1
  58. package/dist/cjs/layouts/relayInstruction.d.ts +0 -86
  59. package/dist/cjs/layouts/relayInstruction.d.ts.map +0 -1
  60. package/dist/cjs/layouts/relayInstruction.js +0 -32
  61. package/dist/cjs/layouts/relayInstruction.js.map +0 -1
  62. package/dist/cjs/layouts/signedQuote.d.ts +0 -102
  63. package/dist/cjs/layouts/signedQuote.d.ts.map +0 -1
  64. package/dist/cjs/layouts/signedQuote.js +0 -46
  65. package/dist/cjs/layouts/signedQuote.js.map +0 -1
  66. package/dist/cjs/routes/cctpV1.d.ts +0 -101
  67. package/dist/cjs/routes/cctpV1.d.ts.map +0 -1
  68. package/dist/cjs/routes/cctpV1.js +0 -228
  69. package/dist/cjs/routes/cctpV1.js.map +0 -1
  70. package/dist/cjs/routes/cctpV2Base.d.ts +0 -68
  71. package/dist/cjs/routes/cctpV2Base.d.ts.map +0 -1
  72. package/dist/cjs/routes/cctpV2Base.js +0 -231
  73. package/dist/cjs/routes/cctpV2Base.js.map +0 -1
  74. package/dist/cjs/routes/cctpV2Fast.d.ts +0 -45
  75. package/dist/cjs/routes/cctpV2Fast.d.ts.map +0 -1
  76. package/dist/cjs/routes/cctpV2Fast.js +0 -124
  77. package/dist/cjs/routes/cctpV2Fast.js.map +0 -1
  78. package/dist/cjs/routes/cctpV2Standard.d.ts +0 -45
  79. package/dist/cjs/routes/cctpV2Standard.d.ts.map +0 -1
  80. package/dist/cjs/routes/cctpV2Standard.js +0 -114
  81. package/dist/cjs/routes/cctpV2Standard.js.map +0 -1
  82. package/dist/cjs/routes/helpers.d.ts +0 -29
  83. package/dist/cjs/routes/helpers.d.ts.map +0 -1
  84. package/dist/cjs/routes/helpers.js +0 -232
  85. package/dist/cjs/routes/helpers.js.map +0 -1
  86. package/dist/cjs/routes/index.d.ts +0 -5
  87. package/dist/cjs/routes/index.d.ts.map +0 -1
  88. package/dist/cjs/routes/index.js +0 -21
  89. package/dist/cjs/routes/index.js.map +0 -1
  90. package/dist/cjs/sui/executor.d.ts +0 -24
  91. package/dist/cjs/sui/executor.d.ts.map +0 -1
  92. package/dist/cjs/sui/executor.js +0 -135
  93. package/dist/cjs/sui/executor.js.map +0 -1
  94. package/dist/cjs/sui/index.d.ts +0 -4
  95. package/dist/cjs/sui/index.d.ts.map +0 -1
  96. package/dist/cjs/sui/index.js +0 -28
  97. package/dist/cjs/sui/index.js.map +0 -1
  98. package/dist/cjs/svm/executor.d.ts +0 -21
  99. package/dist/cjs/svm/executor.d.ts.map +0 -1
  100. package/dist/cjs/svm/executor.js +0 -98
  101. package/dist/cjs/svm/executor.js.map +0 -1
  102. package/dist/cjs/svm/executorV2.d.ts +0 -28
  103. package/dist/cjs/svm/executorV2.d.ts.map +0 -1
  104. package/dist/cjs/svm/executorV2.js +0 -351
  105. package/dist/cjs/svm/executorV2.js.map +0 -1
  106. package/dist/cjs/svm/idl/CCTPV2Sm4AdWt5296sk4P66VBZ7bEhcARwFaaS9YPbeC-idl.d.ts +0 -1316
  107. package/dist/cjs/svm/idl/CCTPV2Sm4AdWt5296sk4P66VBZ7bEhcARwFaaS9YPbeC-idl.d.ts.map +0 -1
  108. package/dist/cjs/svm/idl/CCTPV2Sm4AdWt5296sk4P66VBZ7bEhcARwFaaS9YPbeC-idl.js +0 -3
  109. package/dist/cjs/svm/idl/CCTPV2Sm4AdWt5296sk4P66VBZ7bEhcARwFaaS9YPbeC-idl.js.map +0 -1
  110. package/dist/cjs/svm/idl/CCTPV2Sm4AdWt5296sk4P66VBZ7bEhcARwFaaS9YPbeC-idl.json +0 -1315
  111. package/dist/cjs/svm/idl/CCTPV2vPZJS2u2BBsUoscuikbYjnpFmbFsvVuJdgUMQe-id.d.ts +0 -2198
  112. package/dist/cjs/svm/idl/CCTPV2vPZJS2u2BBsUoscuikbYjnpFmbFsvVuJdgUMQe-id.d.ts.map +0 -1
  113. package/dist/cjs/svm/idl/CCTPV2vPZJS2u2BBsUoscuikbYjnpFmbFsvVuJdgUMQe-id.js +0 -3
  114. package/dist/cjs/svm/idl/CCTPV2vPZJS2u2BBsUoscuikbYjnpFmbFsvVuJdgUMQe-id.js.map +0 -1
  115. package/dist/cjs/svm/idl/CCTPV2vPZJS2u2BBsUoscuikbYjnpFmbFsvVuJdgUMQe-id.json +0 -2197
  116. package/dist/cjs/svm/idl/example_cctp_with_executor.d.ts +0 -72
  117. package/dist/cjs/svm/idl/example_cctp_with_executor.d.ts.map +0 -1
  118. package/dist/cjs/svm/idl/example_cctp_with_executor.js +0 -74
  119. package/dist/cjs/svm/idl/example_cctp_with_executor.js.map +0 -1
  120. package/dist/cjs/svm/idl/executor.d.ts +0 -103
  121. package/dist/cjs/svm/idl/executor.d.ts.map +0 -1
  122. package/dist/cjs/svm/idl/executor.js +0 -105
  123. package/dist/cjs/svm/idl/executor.js.map +0 -1
  124. package/dist/cjs/svm/index.d.ts +0 -5
  125. package/dist/cjs/svm/index.d.ts.map +0 -1
  126. package/dist/cjs/svm/index.js +0 -33
  127. package/dist/cjs/svm/index.js.map +0 -1
  128. package/dist/cjs/types.d.ts +0 -13
  129. package/dist/cjs/types.d.ts.map +0 -1
  130. package/dist/cjs/types.js +0 -3
  131. package/dist/cjs/types.js.map +0 -1
  132. package/dist/cjs/utils.d.ts +0 -30
  133. package/dist/cjs/utils.d.ts.map +0 -1
  134. package/dist/cjs/utils.js +0 -166
  135. package/dist/cjs/utils.js.map +0 -1
  136. package/dist/tsconfig.cjs.tsbuildinfo +0 -1
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./circle.js"), exports);
18
- __exportStar(require("./relayInstruction.js"), exports);
19
- __exportStar(require("./signedQuote.js"), exports);
20
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/layouts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,wDAAsC;AACtC,mDAAiC"}
@@ -1,86 +0,0 @@
1
- import { DeriveType } from "binary-layout";
2
- export declare const gasInstructionLayout: readonly [{
3
- readonly name: "gasLimit";
4
- readonly binary: "uint";
5
- readonly size: 16;
6
- }, {
7
- readonly name: "msgValue";
8
- readonly binary: "uint";
9
- readonly size: 16;
10
- }];
11
- export type GasInstruction = DeriveType<typeof gasInstructionLayout>;
12
- export declare const gasDropOffInstructionLayout: readonly [{
13
- readonly name: "dropOff";
14
- readonly binary: "uint";
15
- readonly size: 16;
16
- }, {
17
- readonly binary: "bytes";
18
- readonly size: 32;
19
- readonly custom: {
20
- to: (val: Uint8Array) => import("@wormhole-foundation/sdk-connect").UniversalAddress;
21
- from: (val: import("@wormhole-foundation/sdk-connect").UniversalAddress) => Uint8Array;
22
- };
23
- readonly name: "recipient";
24
- }];
25
- export type GasDropOffInstruction = DeriveType<typeof gasDropOffInstructionLayout>;
26
- export declare const relayInstructionLayout: readonly [{
27
- readonly name: "request";
28
- readonly binary: "switch";
29
- readonly idSize: 1;
30
- readonly idTag: "type";
31
- readonly layouts: readonly [readonly [readonly [1, "GasInstruction"], readonly [{
32
- readonly name: "gasLimit";
33
- readonly binary: "uint";
34
- readonly size: 16;
35
- }, {
36
- readonly name: "msgValue";
37
- readonly binary: "uint";
38
- readonly size: 16;
39
- }]], readonly [readonly [2, "GasDropOffInstruction"], readonly [{
40
- readonly name: "dropOff";
41
- readonly binary: "uint";
42
- readonly size: 16;
43
- }, {
44
- readonly binary: "bytes";
45
- readonly size: 32;
46
- readonly custom: {
47
- to: (val: Uint8Array) => import("@wormhole-foundation/sdk-connect").UniversalAddress;
48
- from: (val: import("@wormhole-foundation/sdk-connect").UniversalAddress) => Uint8Array;
49
- };
50
- readonly name: "recipient";
51
- }]]];
52
- }];
53
- export type RelayInstruction = DeriveType<typeof relayInstructionLayout>;
54
- export declare const relayInstructionsLayout: readonly [{
55
- readonly name: "requests";
56
- readonly binary: "array";
57
- readonly layout: readonly [{
58
- readonly name: "request";
59
- readonly binary: "switch";
60
- readonly idSize: 1;
61
- readonly idTag: "type";
62
- readonly layouts: readonly [readonly [readonly [1, "GasInstruction"], readonly [{
63
- readonly name: "gasLimit";
64
- readonly binary: "uint";
65
- readonly size: 16;
66
- }, {
67
- readonly name: "msgValue";
68
- readonly binary: "uint";
69
- readonly size: 16;
70
- }]], readonly [readonly [2, "GasDropOffInstruction"], readonly [{
71
- readonly name: "dropOff";
72
- readonly binary: "uint";
73
- readonly size: 16;
74
- }, {
75
- readonly binary: "bytes";
76
- readonly size: 32;
77
- readonly custom: {
78
- to: (val: Uint8Array) => import("@wormhole-foundation/sdk-connect").UniversalAddress;
79
- from: (val: import("@wormhole-foundation/sdk-connect").UniversalAddress) => Uint8Array;
80
- };
81
- readonly name: "recipient";
82
- }]]];
83
- }];
84
- }];
85
- export type RelayInstructions = DeriveType<typeof relayInstructionsLayout>;
86
- //# sourceMappingURL=relayInstruction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"relayInstruction.d.ts","sourceRoot":"","sources":["../../../src/layouts/relayInstruction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAU,MAAM,eAAe,CAAC;AAEnD,eAAO,MAAM,oBAAoB;;;;;;;;EAGN,CAAC;AAE5B,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAErE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;EAGb,CAAC;AAE5B,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAC5C,OAAO,2BAA2B,CACnC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;EAWR,CAAC;AAE5B,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEzE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMT,CAAC;AAE5B,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.relayInstructionsLayout = exports.relayInstructionLayout = exports.gasDropOffInstructionLayout = exports.gasInstructionLayout = void 0;
4
- const sdk_connect_1 = require("@wormhole-foundation/sdk-connect");
5
- exports.gasInstructionLayout = [
6
- { name: "gasLimit", binary: "uint", size: 16 },
7
- { name: "msgValue", binary: "uint", size: 16 },
8
- ];
9
- exports.gasDropOffInstructionLayout = [
10
- { name: "dropOff", binary: "uint", size: 16 },
11
- { name: "recipient", ...sdk_connect_1.layoutItems.universalAddressItem },
12
- ];
13
- exports.relayInstructionLayout = [
14
- {
15
- name: "request",
16
- binary: "switch",
17
- idSize: 1,
18
- idTag: "type",
19
- layouts: [
20
- [[1, "GasInstruction"], exports.gasInstructionLayout],
21
- [[2, "GasDropOffInstruction"], exports.gasDropOffInstructionLayout],
22
- ],
23
- },
24
- ];
25
- exports.relayInstructionsLayout = [
26
- {
27
- name: "requests",
28
- binary: "array",
29
- layout: exports.relayInstructionLayout,
30
- },
31
- ];
32
- //# sourceMappingURL=relayInstruction.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"relayInstruction.js","sourceRoot":"","sources":["../../../src/layouts/relayInstruction.ts"],"names":[],"mappings":";;;AAAA,kEAA+D;AAGlD,QAAA,oBAAoB,GAAG;IAClC,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;IAC9C,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;CACrB,CAAC;AAIf,QAAA,2BAA2B,GAAG;IACzC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7C,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,yBAAW,CAAC,oBAAoB,EAAE;CACjC,CAAC;AAMf,QAAA,sBAAsB,GAAG;IACpC;QACE,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,MAAM;QACb,OAAO,EAAE;YACP,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,EAAE,4BAAoB,CAAC;YAC7C,CAAC,CAAC,CAAC,EAAE,uBAAuB,CAAC,EAAE,mCAA2B,CAAC;SAC5D;KACF;CACwB,CAAC;AAIf,QAAA,uBAAuB,GAAG;IACrC;QACE,IAAI,EAAE,UAAU;QAChB,MAAM,EAAE,OAAO;QACf,MAAM,EAAE,8BAAsB;KAC/B;CACwB,CAAC"}
@@ -1,102 +0,0 @@
1
- import { DeriveType } from "binary-layout";
2
- export declare const quoteLayout: readonly [{
3
- readonly name: "quote";
4
- readonly binary: "switch";
5
- readonly idSize: 4;
6
- readonly idTag: "prefix";
7
- readonly layouts: readonly [readonly [readonly [1162948657, "EQ01"], readonly [{
8
- readonly name: "quoterAddress";
9
- readonly binary: "bytes";
10
- readonly size: 20;
11
- }, {
12
- readonly name: "payeeAddress";
13
- readonly binary: "bytes";
14
- readonly size: 32;
15
- }, {
16
- readonly name: "srcChain";
17
- readonly binary: "uint";
18
- readonly size: 2;
19
- }, {
20
- readonly name: "dstChain";
21
- readonly binary: "uint";
22
- readonly size: 2;
23
- }, {
24
- readonly name: "expiryTime";
25
- readonly binary: "uint";
26
- readonly size: 8;
27
- readonly custom: {
28
- readonly to: (encoded: bigint) => Date;
29
- readonly from: (decoded: Date) => bigint;
30
- };
31
- }, {
32
- readonly name: "baseFee";
33
- readonly binary: "uint";
34
- readonly size: 8;
35
- }, {
36
- readonly name: "dstGasPrice";
37
- readonly binary: "uint";
38
- readonly size: 8;
39
- }, {
40
- readonly name: "srcPrice";
41
- readonly binary: "uint";
42
- readonly size: 8;
43
- }, {
44
- readonly name: "dstPrice";
45
- readonly binary: "uint";
46
- readonly size: 8;
47
- }]]];
48
- }];
49
- export type Quote = DeriveType<typeof quoteLayout>;
50
- export declare const signedQuoteLayout: readonly [{
51
- readonly name: "quote";
52
- readonly binary: "switch";
53
- readonly idSize: 4;
54
- readonly idTag: "prefix";
55
- readonly layouts: readonly [readonly [readonly [1162948657, "EQ01"], readonly [{
56
- readonly name: "quoterAddress";
57
- readonly binary: "bytes";
58
- readonly size: 20;
59
- }, {
60
- readonly name: "payeeAddress";
61
- readonly binary: "bytes";
62
- readonly size: 32;
63
- }, {
64
- readonly name: "srcChain";
65
- readonly binary: "uint";
66
- readonly size: 2;
67
- }, {
68
- readonly name: "dstChain";
69
- readonly binary: "uint";
70
- readonly size: 2;
71
- }, {
72
- readonly name: "expiryTime";
73
- readonly binary: "uint";
74
- readonly size: 8;
75
- readonly custom: {
76
- readonly to: (encoded: bigint) => Date;
77
- readonly from: (decoded: Date) => bigint;
78
- };
79
- }, {
80
- readonly name: "baseFee";
81
- readonly binary: "uint";
82
- readonly size: 8;
83
- }, {
84
- readonly name: "dstGasPrice";
85
- readonly binary: "uint";
86
- readonly size: 8;
87
- }, {
88
- readonly name: "srcPrice";
89
- readonly binary: "uint";
90
- readonly size: 8;
91
- }, {
92
- readonly name: "dstPrice";
93
- readonly binary: "uint";
94
- readonly size: 8;
95
- }]]];
96
- }, {
97
- readonly name: "signature";
98
- readonly binary: "bytes";
99
- readonly size: 65;
100
- }];
101
- export type SignedQuote = DeriveType<typeof signedQuoteLayout>;
102
- //# sourceMappingURL=signedQuote.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signedQuote.d.ts","sourceRoot":"","sources":["../../../src/layouts/signedQuote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAU,MAAM,eAAe,CAAC;AAInD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCG,CAAC;AAE5B,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAEnD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGH,CAAC;AAE5B,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.signedQuoteLayout = exports.quoteLayout = void 0;
4
- const conversions_js_1 = require("./conversions.js");
5
- exports.quoteLayout = [
6
- {
7
- name: "quote",
8
- binary: "switch",
9
- idSize: 4,
10
- idTag: "prefix",
11
- layouts: [
12
- [
13
- [0x45513031, "EQ01"],
14
- [
15
- {
16
- name: "quoterAddress",
17
- binary: "bytes",
18
- size: 20,
19
- },
20
- {
21
- name: "payeeAddress",
22
- binary: "bytes",
23
- size: 32,
24
- },
25
- { name: "srcChain", binary: "uint", size: 2 },
26
- { name: "dstChain", binary: "uint", size: 2 },
27
- {
28
- name: "expiryTime",
29
- binary: "uint",
30
- size: 8,
31
- custom: conversions_js_1.dateConversion,
32
- },
33
- { name: "baseFee", binary: "uint", size: 8 },
34
- { name: "dstGasPrice", binary: "uint", size: 8 },
35
- { name: "srcPrice", binary: "uint", size: 8 },
36
- { name: "dstPrice", binary: "uint", size: 8 },
37
- ],
38
- ],
39
- ],
40
- },
41
- ];
42
- exports.signedQuoteLayout = [
43
- ...exports.quoteLayout,
44
- { name: "signature", binary: "bytes", size: 65 },
45
- ];
46
- //# sourceMappingURL=signedQuote.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signedQuote.js","sourceRoot":"","sources":["../../../src/layouts/signedQuote.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAErC,QAAA,WAAW,GAAG;IACzB;QACE,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,CAAC;QACT,KAAK,EAAE,QAAQ;QACf,OAAO,EAAE;YACP;gBACE,CAAC,UAAU,EAAE,MAAM,CAAC;gBACpB;oBACE;wBACE,IAAI,EAAE,eAAe;wBACrB,MAAM,EAAE,OAAO;wBACf,IAAI,EAAE,EAAE;qBACT;oBACD;wBACE,IAAI,EAAE,cAAc;wBACpB,MAAM,EAAE,OAAO;wBACf,IAAI,EAAE,EAAE;qBACT;oBACD,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;oBAC7C,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;oBAC7C;wBACE,IAAI,EAAE,YAAY;wBAClB,MAAM,EAAE,MAAM;wBACd,IAAI,EAAE,CAAC;wBACP,MAAM,EAAE,+BAAc;qBACvB;oBACD,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;oBAC5C,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;oBAChD,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;oBAC7C,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE;iBAC9C;aACF;SACF;KACF;CACwB,CAAC;AAIf,QAAA,iBAAiB,GAAG;IAC/B,GAAG,mBAAW;IACd,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;CACvB,CAAC"}
@@ -1,101 +0,0 @@
1
- import type { Chain, Network } from "@wormhole-foundation/sdk-base";
2
- import { amount } from "@wormhole-foundation/sdk-base";
3
- import { EmptyPlatformMap, type ChainAddress, type ChainContext, type Signer, type TokenId, type UnsignedTransaction } from "@wormhole-foundation/sdk-definitions";
4
- import * as routes from "@wormhole-foundation/sdk-connect/routes";
5
- import type { CapabilitiesResponse } from "@wormhole-foundation/sdk-definitions";
6
- import { CCTPExecutor } from "../types";
7
- export declare namespace CCTPExecutorRoute {
8
- type Options = {
9
- nativeGas?: number;
10
- };
11
- type NormalizedParams = {
12
- amount: amount.Amount;
13
- };
14
- interface ValidatedParams extends routes.ValidatedTransferParams<Options> {
15
- normalizedParams: NormalizedParams;
16
- }
17
- type Config = {
18
- transferTokenFee?: bigint | ((amount: bigint, sourceChain: Chain) => bigint);
19
- nativeTokenFee?: bigint | ((amount: bigint, sourceChain: Chain) => bigint);
20
- referrerAddresses?: Partial<Record<Network, Partial<Record<Chain, string>>>>;
21
- executor?: {
22
- /** Override the default capabilities fetcher (e.g. to cache or use a custom endpoint). */
23
- getCapabilities?: (network: Network) => Promise<CapabilitiesResponse>;
24
- };
25
- };
26
- }
27
- type Op = CCTPExecutorRoute.Options;
28
- type Vp = CCTPExecutorRoute.ValidatedParams;
29
- type Tp = routes.TransferParams<Op>;
30
- type Vr = routes.ValidationResult<Op>;
31
- export type QuoteDetails = {
32
- signedQuote: Uint8Array;
33
- relayInstructions: Uint8Array;
34
- estimatedCost: bigint;
35
- referrer?: ChainAddress;
36
- transferTokenFee: bigint;
37
- nativeTokenFee: bigint;
38
- remainingAmount: bigint;
39
- expiryTime: Date;
40
- gasDropOff: bigint;
41
- };
42
- type Q = routes.Quote<Op, Vp, QuoteDetails>;
43
- type QR = routes.QuoteResult<Op, Vp>;
44
- type AT = {
45
- id: string;
46
- attestation: {};
47
- };
48
- type R = routes.Receipt<AT>;
49
- export declare function cctpExecutorRoute(config?: CCTPExecutorRoute.Config): {
50
- new <N extends Network>(wh: import("@wormhole-foundation/sdk-connect").Wormhole<N>): {
51
- readonly staticConfig: any;
52
- getDefaultOptions(): Op;
53
- validate(request: routes.RouteTransferRequest<N>, params: Tp): Promise<Vr>;
54
- quote(request: routes.RouteTransferRequest<N>, params: Vp): Promise<QR>;
55
- initiate(request: routes.RouteTransferRequest<N>, signer: Signer, quote: Q, to: ChainAddress): Promise<R>;
56
- buildInitiateTransactions(request: routes.RouteTransferRequest<N>, sender: ChainAddress, recipient: ChainAddress, quote: Q): Promise<UnsignedTransaction<N, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">[]>;
57
- track(receipt: R, timeout?: number): AsyncGenerator<import("@wormhole-foundation/sdk-connect").SourceInitiatedTransferReceipt<"Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore", "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore"> | import("@wormhole-foundation/sdk-connect").FailedTransferReceipt<AT, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore", "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore"> | import("@wormhole-foundation/sdk-connect").SourceFinalizedTransferReceipt<AT, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore", "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore"> | import("@wormhole-foundation/sdk-connect").AttestedTransferReceipt<AT, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore", "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore"> | import("@wormhole-foundation/sdk-connect").CompletedTransferReceipt<AT, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore", "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">, R, unknown>;
58
- wh: import("@wormhole-foundation/sdk-connect").Wormhole<N>;
59
- transferUrl(txid: string): string;
60
- };
61
- config: CCTPExecutorRoute.Config;
62
- NATIVE_GAS_DROPOFF_SUPPORTED: boolean;
63
- meta: {
64
- name: string;
65
- provider: string;
66
- };
67
- supportedNetworks(): Network[];
68
- supportedChains(network: Network): Chain[];
69
- supportedDestinationTokens<N extends Network>(sourceToken: TokenId, fromChain: ChainContext<N>, toChain: ChainContext<N>): Promise<TokenId[]>;
70
- IS_AUTOMATIC: boolean;
71
- };
72
- export declare class CCTPExecutorRoute<N extends Network> extends routes.AutomaticRoute<N, Op, Vp, R> implements routes.StaticRouteMethods<typeof CCTPExecutorRoute> {
73
- static NATIVE_GAS_DROPOFF_SUPPORTED: boolean;
74
- readonly staticConfig: any;
75
- static config: CCTPExecutorRoute.Config;
76
- static meta: {
77
- name: string;
78
- provider: string;
79
- };
80
- static supportedNetworks(): Network[];
81
- static supportedChains(network: Network): Chain[];
82
- static supportedDestinationTokens<N extends Network>(sourceToken: TokenId, fromChain: ChainContext<N>, toChain: ChainContext<N>): Promise<TokenId[]>;
83
- getDefaultOptions(): Op;
84
- validate(request: routes.RouteTransferRequest<N>, params: Tp): Promise<Vr>;
85
- quote(request: routes.RouteTransferRequest<N>, params: Vp): Promise<QR>;
86
- initiate(request: routes.RouteTransferRequest<N>, signer: Signer, quote: Q, to: ChainAddress): Promise<R>;
87
- buildInitiateTransactions(request: routes.RouteTransferRequest<N>, sender: ChainAddress, recipient: ChainAddress, quote: Q): Promise<UnsignedTransaction<N, Chain>[]>;
88
- track(receipt: R, timeout?: number): AsyncGenerator<import("@wormhole-foundation/sdk-connect").SourceInitiatedTransferReceipt<"Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore", "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore"> | import("@wormhole-foundation/sdk-connect").FailedTransferReceipt<AT, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore", "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore"> | import("@wormhole-foundation/sdk-connect").SourceFinalizedTransferReceipt<AT, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore", "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore"> | import("@wormhole-foundation/sdk-connect").AttestedTransferReceipt<AT, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore", "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore"> | import("@wormhole-foundation/sdk-connect").CompletedTransferReceipt<AT, "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore", "Solana" | "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Pythnet" | "Btc" | "Base" | "Sei" | "Scroll" | "Mantle" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Unichain" | "Worldchain" | "Ink" | "HyperEVM" | "Monad" | "Mezo" | "Fogo" | "Sonic" | "Converge" | "Plume" | "XRPLEVM" | "Plasma" | "CreditCoin" | "Stacks" | "Moca" | "MegaETH" | "Xrpl" | "ZeroGravity" | "Tempo" | "Nexus" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Noble" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia" | "MonadTestnet" | "HyperCore">, R, unknown>;
89
- }
90
- declare module "@wormhole-foundation/sdk-definitions" {
91
- namespace WormholeRegistry {
92
- interface ProtocolToInterfaceMapping<N, C> {
93
- CCTPExecutor: CCTPExecutor<N, C>;
94
- }
95
- interface ProtocolToPlatformMapping {
96
- CCTPExecutor: EmptyPlatformMap<"CCTPExecutor">;
97
- }
98
- }
99
- }
100
- export {};
101
- //# sourceMappingURL=cctpV1.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cctpV1.d.ts","sourceRoot":"","sources":["../../../src/routes/cctpV1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAY,MAAM,+BAA+B,CAAC;AACjE,OAAO,EACL,gBAAgB,EAEhB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,MAAM,EACX,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACzB,MAAM,sCAAsC,CAAC;AAS9C,OAAO,KAAK,MAAM,MAAM,yCAAyC,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAMjF,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AASxC,yBAAiB,iBAAiB,CAAC;IACjC,KAAY,OAAO,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