@anywalletkit/protocol-swap2-stargate 0.0.0-stage → 0.1.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/LICENSE +202 -0
- package/README.md +502 -2
- package/dist/abi.cjs +91 -0
- package/dist/abi.cjs.map +1 -0
- package/dist/abi.d.cts +810 -0
- package/dist/abi.d.ts +810 -0
- package/dist/abi.js +13 -0
- package/dist/abi.js.map +1 -0
- package/dist/amounts.cjs +73 -0
- package/dist/amounts.cjs.map +1 -0
- package/dist/amounts.d.cts +21 -0
- package/dist/amounts.d.ts +21 -0
- package/dist/amounts.js +15 -0
- package/dist/amounts.js.map +1 -0
- package/dist/bus-Cdw8iwOv.d.cts +59 -0
- package/dist/bus-vAWqTAkq.d.ts +59 -0
- package/dist/bus.cjs +237 -0
- package/dist/bus.cjs.map +1 -0
- package/dist/bus.d.cts +4 -0
- package/dist/bus.d.ts +4 -0
- package/dist/bus.js +22 -0
- package/dist/bus.js.map +1 -0
- package/dist/chunk-3NTMZUAU.js +128 -0
- package/dist/chunk-3NTMZUAU.js.map +1 -0
- package/dist/chunk-4HU46QF2.js +256 -0
- package/dist/chunk-4HU46QF2.js.map +1 -0
- package/dist/chunk-4IDDRIE2.js +125 -0
- package/dist/chunk-4IDDRIE2.js.map +1 -0
- package/dist/chunk-EANM3EI3.js +71 -0
- package/dist/chunk-EANM3EI3.js.map +1 -0
- package/dist/chunk-ERC6LKMN.js +87 -0
- package/dist/chunk-ERC6LKMN.js.map +1 -0
- package/dist/chunk-FLAXDJPE.js +24 -0
- package/dist/chunk-FLAXDJPE.js.map +1 -0
- package/dist/chunk-N54YIG6T.js +33 -0
- package/dist/chunk-N54YIG6T.js.map +1 -0
- package/dist/chunk-OUGUX3JK.js +53 -0
- package/dist/chunk-OUGUX3JK.js.map +1 -0
- package/dist/chunk-PJXDMVW3.js +909 -0
- package/dist/chunk-PJXDMVW3.js.map +1 -0
- package/dist/chunk-QNVTQEOV.js +72 -0
- package/dist/chunk-QNVTQEOV.js.map +1 -0
- package/dist/chunk-UDJL7BUP.js +249 -0
- package/dist/chunk-UDJL7BUP.js.map +1 -0
- package/dist/chunk-YHHV3XHY.js +139 -0
- package/dist/chunk-YHHV3XHY.js.map +1 -0
- package/dist/compose-dex.cjs +148 -0
- package/dist/compose-dex.cjs.map +1 -0
- package/dist/compose-dex.d.cts +113 -0
- package/dist/compose-dex.d.ts +113 -0
- package/dist/compose-dex.js +25 -0
- package/dist/compose-dex.js.map +1 -0
- package/dist/compose-route.cjs +1019 -0
- package/dist/compose-route.cjs.map +1 -0
- package/dist/compose-route.d.cts +93 -0
- package/dist/compose-route.d.ts +93 -0
- package/dist/compose-route.js +45 -0
- package/dist/compose-route.js.map +1 -0
- package/dist/compose.cjs +287 -0
- package/dist/compose.cjs.map +1 -0
- package/dist/compose.d.cts +293 -0
- package/dist/compose.d.ts +293 -0
- package/dist/compose.js +30 -0
- package/dist/compose.js.map +1 -0
- package/dist/deployments.cjs +350 -0
- package/dist/deployments.cjs.map +1 -0
- package/dist/deployments.d.cts +12 -0
- package/dist/deployments.d.ts +12 -0
- package/dist/deployments.js +11 -0
- package/dist/deployments.js.map +1 -0
- package/dist/index.cjs +1862 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -0
- package/dist/native-drop.cjs +117 -0
- package/dist/native-drop.cjs.map +1 -0
- package/dist/native-drop.d.cts +13 -0
- package/dist/native-drop.d.ts +13 -0
- package/dist/native-drop.js +11 -0
- package/dist/native-drop.js.map +1 -0
- package/dist/pins.cjs +1618 -0
- package/dist/pins.cjs.map +1 -0
- package/dist/pins.d.cts +39 -0
- package/dist/pins.d.ts +39 -0
- package/dist/pins.js +21 -0
- package/dist/pins.js.map +1 -0
- package/dist/protocol.cjs +1851 -0
- package/dist/protocol.cjs.map +1 -0
- package/dist/protocol.d.cts +24 -0
- package/dist/protocol.d.ts +24 -0
- package/dist/protocol.js +18 -0
- package/dist/protocol.js.map +1 -0
- package/dist/provider.cjs +1833 -0
- package/dist/provider.cjs.map +1 -0
- package/dist/provider.d.cts +30 -0
- package/dist/provider.d.ts +30 -0
- package/dist/provider.js +17 -0
- package/dist/provider.js.map +1 -0
- package/dist/quote-r1bA8XbO.d.cts +102 -0
- package/dist/quote-t7UJSxbU.d.ts +102 -0
- package/dist/quote.cjs +618 -0
- package/dist/quote.cjs.map +1 -0
- package/dist/quote.d.cts +3 -0
- package/dist/quote.d.ts +3 -0
- package/dist/quote.js +16 -0
- package/dist/quote.js.map +1 -0
- package/dist/registry.cjs +100 -0
- package/dist/registry.cjs.map +1 -0
- package/dist/registry.d.cts +42 -0
- package/dist/registry.d.ts +42 -0
- package/dist/registry.js +8 -0
- package/dist/registry.js.map +1 -0
- package/dist/tracking.cjs +1143 -0
- package/dist/tracking.cjs.map +1 -0
- package/dist/tracking.d.cts +57 -0
- package/dist/tracking.d.ts +57 -0
- package/dist/tracking.js +23 -0
- package/dist/tracking.js.map +1 -0
- package/package.json +134 -3
package/dist/abi.d.ts
ADDED
|
@@ -0,0 +1,810 @@
|
|
|
1
|
+
declare const EXECUTOR_ABI: readonly [{
|
|
2
|
+
readonly name: "endpoint";
|
|
3
|
+
readonly type: "function";
|
|
4
|
+
readonly stateMutability: "view";
|
|
5
|
+
readonly inputs: readonly [];
|
|
6
|
+
readonly outputs: readonly [{
|
|
7
|
+
readonly type: "address";
|
|
8
|
+
}];
|
|
9
|
+
}, {
|
|
10
|
+
readonly name: "localEid";
|
|
11
|
+
readonly type: "function";
|
|
12
|
+
readonly stateMutability: "view";
|
|
13
|
+
readonly inputs: readonly [];
|
|
14
|
+
readonly outputs: readonly [{
|
|
15
|
+
readonly type: "uint32";
|
|
16
|
+
}];
|
|
17
|
+
}, {
|
|
18
|
+
readonly name: "NativeDropApplied";
|
|
19
|
+
readonly type: "event";
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly type: "tuple";
|
|
22
|
+
readonly components: readonly [{
|
|
23
|
+
readonly type: "uint32";
|
|
24
|
+
readonly name: "srcEid";
|
|
25
|
+
}, {
|
|
26
|
+
readonly type: "bytes32";
|
|
27
|
+
readonly name: "sender";
|
|
28
|
+
}, {
|
|
29
|
+
readonly type: "uint64";
|
|
30
|
+
readonly name: "nonce";
|
|
31
|
+
}];
|
|
32
|
+
readonly name: "origin";
|
|
33
|
+
}, {
|
|
34
|
+
readonly type: "uint32";
|
|
35
|
+
readonly name: "dstEid";
|
|
36
|
+
}, {
|
|
37
|
+
readonly type: "address";
|
|
38
|
+
readonly name: "oapp";
|
|
39
|
+
}, {
|
|
40
|
+
readonly type: "tuple[]";
|
|
41
|
+
readonly components: readonly [{
|
|
42
|
+
readonly type: "address";
|
|
43
|
+
readonly name: "receiver";
|
|
44
|
+
}, {
|
|
45
|
+
readonly type: "uint256";
|
|
46
|
+
readonly name: "amount";
|
|
47
|
+
}];
|
|
48
|
+
readonly name: "params";
|
|
49
|
+
}, {
|
|
50
|
+
readonly type: "bool[]";
|
|
51
|
+
readonly name: "success";
|
|
52
|
+
}];
|
|
53
|
+
}];
|
|
54
|
+
declare const ENDPOINT_ABI: readonly [{
|
|
55
|
+
readonly name: "inboundPayloadHash";
|
|
56
|
+
readonly type: "function";
|
|
57
|
+
readonly stateMutability: "view";
|
|
58
|
+
readonly inputs: readonly [{
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
readonly name: "receiver";
|
|
61
|
+
}, {
|
|
62
|
+
readonly type: "uint32";
|
|
63
|
+
readonly name: "srcEid";
|
|
64
|
+
}, {
|
|
65
|
+
readonly type: "bytes32";
|
|
66
|
+
readonly name: "sender";
|
|
67
|
+
}, {
|
|
68
|
+
readonly type: "uint64";
|
|
69
|
+
readonly name: "nonce";
|
|
70
|
+
}];
|
|
71
|
+
readonly outputs: readonly [{
|
|
72
|
+
readonly type: "bytes32";
|
|
73
|
+
}];
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "lzReceive";
|
|
76
|
+
readonly type: "function";
|
|
77
|
+
readonly stateMutability: "payable";
|
|
78
|
+
readonly inputs: readonly [{
|
|
79
|
+
readonly type: "tuple";
|
|
80
|
+
readonly components: readonly [{
|
|
81
|
+
readonly type: "uint32";
|
|
82
|
+
readonly name: "srcEid";
|
|
83
|
+
}, {
|
|
84
|
+
readonly type: "bytes32";
|
|
85
|
+
readonly name: "sender";
|
|
86
|
+
}, {
|
|
87
|
+
readonly type: "uint64";
|
|
88
|
+
readonly name: "nonce";
|
|
89
|
+
}];
|
|
90
|
+
readonly name: "origin";
|
|
91
|
+
}, {
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
readonly name: "receiver";
|
|
94
|
+
}, {
|
|
95
|
+
readonly type: "bytes32";
|
|
96
|
+
readonly name: "guid";
|
|
97
|
+
}, {
|
|
98
|
+
readonly type: "bytes";
|
|
99
|
+
readonly name: "message";
|
|
100
|
+
}, {
|
|
101
|
+
readonly type: "bytes";
|
|
102
|
+
readonly name: "extraData";
|
|
103
|
+
}];
|
|
104
|
+
readonly outputs: readonly [];
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "PacketSent";
|
|
107
|
+
readonly type: "event";
|
|
108
|
+
readonly inputs: readonly [{
|
|
109
|
+
readonly type: "bytes";
|
|
110
|
+
readonly name: "encodedPayload";
|
|
111
|
+
}, {
|
|
112
|
+
readonly type: "bytes";
|
|
113
|
+
readonly name: "options";
|
|
114
|
+
}, {
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
readonly name: "sendLibrary";
|
|
117
|
+
}];
|
|
118
|
+
}, {
|
|
119
|
+
readonly name: "PacketDelivered";
|
|
120
|
+
readonly type: "event";
|
|
121
|
+
readonly inputs: readonly [{
|
|
122
|
+
readonly type: "tuple";
|
|
123
|
+
readonly components: readonly [{
|
|
124
|
+
readonly type: "uint32";
|
|
125
|
+
readonly name: "srcEid";
|
|
126
|
+
}, {
|
|
127
|
+
readonly type: "bytes32";
|
|
128
|
+
readonly name: "sender";
|
|
129
|
+
}, {
|
|
130
|
+
readonly type: "uint64";
|
|
131
|
+
readonly name: "nonce";
|
|
132
|
+
}];
|
|
133
|
+
readonly name: "origin";
|
|
134
|
+
}, {
|
|
135
|
+
readonly type: "address";
|
|
136
|
+
readonly name: "receiver";
|
|
137
|
+
}];
|
|
138
|
+
}];
|
|
139
|
+
declare const STARGATE_ABI: readonly [{
|
|
140
|
+
readonly name: "token";
|
|
141
|
+
readonly type: "function";
|
|
142
|
+
readonly stateMutability: "view";
|
|
143
|
+
readonly inputs: readonly [];
|
|
144
|
+
readonly outputs: readonly [{
|
|
145
|
+
readonly type: "address";
|
|
146
|
+
}];
|
|
147
|
+
}, {
|
|
148
|
+
readonly name: "sharedDecimals";
|
|
149
|
+
readonly type: "function";
|
|
150
|
+
readonly stateMutability: "view";
|
|
151
|
+
readonly inputs: readonly [];
|
|
152
|
+
readonly outputs: readonly [{
|
|
153
|
+
readonly type: "uint8";
|
|
154
|
+
}];
|
|
155
|
+
}, {
|
|
156
|
+
readonly name: "approvalRequired";
|
|
157
|
+
readonly type: "function";
|
|
158
|
+
readonly stateMutability: "pure";
|
|
159
|
+
readonly inputs: readonly [];
|
|
160
|
+
readonly outputs: readonly [{
|
|
161
|
+
readonly type: "bool";
|
|
162
|
+
}];
|
|
163
|
+
}, {
|
|
164
|
+
readonly name: "localEid";
|
|
165
|
+
readonly type: "function";
|
|
166
|
+
readonly stateMutability: "view";
|
|
167
|
+
readonly inputs: readonly [];
|
|
168
|
+
readonly outputs: readonly [{
|
|
169
|
+
readonly type: "uint32";
|
|
170
|
+
}];
|
|
171
|
+
}, {
|
|
172
|
+
readonly name: "endpoint";
|
|
173
|
+
readonly type: "function";
|
|
174
|
+
readonly stateMutability: "view";
|
|
175
|
+
readonly inputs: readonly [];
|
|
176
|
+
readonly outputs: readonly [{
|
|
177
|
+
readonly type: "address";
|
|
178
|
+
}];
|
|
179
|
+
}, {
|
|
180
|
+
readonly name: "status";
|
|
181
|
+
readonly type: "function";
|
|
182
|
+
readonly stateMutability: "view";
|
|
183
|
+
readonly inputs: readonly [];
|
|
184
|
+
readonly outputs: readonly [{
|
|
185
|
+
readonly type: "uint8";
|
|
186
|
+
}];
|
|
187
|
+
}, {
|
|
188
|
+
readonly name: "stargateType";
|
|
189
|
+
readonly type: "function";
|
|
190
|
+
readonly stateMutability: "pure";
|
|
191
|
+
readonly inputs: readonly [];
|
|
192
|
+
readonly outputs: readonly [{
|
|
193
|
+
readonly type: "uint8";
|
|
194
|
+
}];
|
|
195
|
+
}, {
|
|
196
|
+
readonly name: "paths";
|
|
197
|
+
readonly type: "function";
|
|
198
|
+
readonly stateMutability: "view";
|
|
199
|
+
readonly inputs: readonly [{
|
|
200
|
+
readonly type: "uint32";
|
|
201
|
+
readonly name: "eid";
|
|
202
|
+
}];
|
|
203
|
+
readonly outputs: readonly [{
|
|
204
|
+
readonly type: "uint64";
|
|
205
|
+
readonly name: "credit";
|
|
206
|
+
}];
|
|
207
|
+
}, {
|
|
208
|
+
readonly name: "getAddressConfig";
|
|
209
|
+
readonly type: "function";
|
|
210
|
+
readonly stateMutability: "view";
|
|
211
|
+
readonly inputs: readonly [];
|
|
212
|
+
readonly outputs: readonly [{
|
|
213
|
+
readonly type: "tuple";
|
|
214
|
+
readonly components: readonly [{
|
|
215
|
+
readonly type: "address";
|
|
216
|
+
readonly name: "feeLib";
|
|
217
|
+
}, {
|
|
218
|
+
readonly type: "address";
|
|
219
|
+
readonly name: "planner";
|
|
220
|
+
}, {
|
|
221
|
+
readonly type: "address";
|
|
222
|
+
readonly name: "treasurer";
|
|
223
|
+
}, {
|
|
224
|
+
readonly type: "address";
|
|
225
|
+
readonly name: "tokenMessaging";
|
|
226
|
+
}, {
|
|
227
|
+
readonly type: "address";
|
|
228
|
+
readonly name: "creditMessaging";
|
|
229
|
+
}, {
|
|
230
|
+
readonly type: "address";
|
|
231
|
+
readonly name: "lzToken";
|
|
232
|
+
}];
|
|
233
|
+
}];
|
|
234
|
+
}, {
|
|
235
|
+
readonly name: "quoteOFT";
|
|
236
|
+
readonly type: "function";
|
|
237
|
+
readonly stateMutability: "view";
|
|
238
|
+
readonly inputs: readonly [{
|
|
239
|
+
readonly type: "tuple";
|
|
240
|
+
readonly components: readonly [{
|
|
241
|
+
readonly type: "uint32";
|
|
242
|
+
readonly name: "dstEid";
|
|
243
|
+
}, {
|
|
244
|
+
readonly type: "bytes32";
|
|
245
|
+
readonly name: "to";
|
|
246
|
+
}, {
|
|
247
|
+
readonly type: "uint256";
|
|
248
|
+
readonly name: "amountLD";
|
|
249
|
+
}, {
|
|
250
|
+
readonly type: "uint256";
|
|
251
|
+
readonly name: "minAmountLD";
|
|
252
|
+
}, {
|
|
253
|
+
readonly type: "bytes";
|
|
254
|
+
readonly name: "extraOptions";
|
|
255
|
+
}, {
|
|
256
|
+
readonly type: "bytes";
|
|
257
|
+
readonly name: "composeMsg";
|
|
258
|
+
}, {
|
|
259
|
+
readonly type: "bytes";
|
|
260
|
+
readonly name: "oftCmd";
|
|
261
|
+
}];
|
|
262
|
+
readonly name: "s";
|
|
263
|
+
}];
|
|
264
|
+
readonly outputs: readonly [{
|
|
265
|
+
readonly type: "tuple";
|
|
266
|
+
readonly components: readonly [{
|
|
267
|
+
readonly type: "uint256";
|
|
268
|
+
readonly name: "minAmountLD";
|
|
269
|
+
}, {
|
|
270
|
+
readonly type: "uint256";
|
|
271
|
+
readonly name: "maxAmountLD";
|
|
272
|
+
}];
|
|
273
|
+
readonly name: "limit";
|
|
274
|
+
}, {
|
|
275
|
+
readonly type: "tuple[]";
|
|
276
|
+
readonly components: readonly [{
|
|
277
|
+
readonly type: "int256";
|
|
278
|
+
readonly name: "feeAmountLD";
|
|
279
|
+
}, {
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
readonly name: "description";
|
|
282
|
+
}];
|
|
283
|
+
readonly name: "oftFeeDetails";
|
|
284
|
+
}, {
|
|
285
|
+
readonly type: "tuple";
|
|
286
|
+
readonly components: readonly [{
|
|
287
|
+
readonly type: "uint256";
|
|
288
|
+
readonly name: "amountSentLD";
|
|
289
|
+
}, {
|
|
290
|
+
readonly type: "uint256";
|
|
291
|
+
readonly name: "amountReceivedLD";
|
|
292
|
+
}];
|
|
293
|
+
readonly name: "receipt";
|
|
294
|
+
}];
|
|
295
|
+
}, {
|
|
296
|
+
readonly name: "quoteSend";
|
|
297
|
+
readonly type: "function";
|
|
298
|
+
readonly stateMutability: "view";
|
|
299
|
+
readonly inputs: readonly [{
|
|
300
|
+
readonly type: "tuple";
|
|
301
|
+
readonly components: readonly [{
|
|
302
|
+
readonly type: "uint32";
|
|
303
|
+
readonly name: "dstEid";
|
|
304
|
+
}, {
|
|
305
|
+
readonly type: "bytes32";
|
|
306
|
+
readonly name: "to";
|
|
307
|
+
}, {
|
|
308
|
+
readonly type: "uint256";
|
|
309
|
+
readonly name: "amountLD";
|
|
310
|
+
}, {
|
|
311
|
+
readonly type: "uint256";
|
|
312
|
+
readonly name: "minAmountLD";
|
|
313
|
+
}, {
|
|
314
|
+
readonly type: "bytes";
|
|
315
|
+
readonly name: "extraOptions";
|
|
316
|
+
}, {
|
|
317
|
+
readonly type: "bytes";
|
|
318
|
+
readonly name: "composeMsg";
|
|
319
|
+
}, {
|
|
320
|
+
readonly type: "bytes";
|
|
321
|
+
readonly name: "oftCmd";
|
|
322
|
+
}];
|
|
323
|
+
readonly name: "s";
|
|
324
|
+
}, {
|
|
325
|
+
readonly type: "bool";
|
|
326
|
+
readonly name: "payInLzToken";
|
|
327
|
+
}];
|
|
328
|
+
readonly outputs: readonly [{
|
|
329
|
+
readonly type: "tuple";
|
|
330
|
+
readonly components: readonly [{
|
|
331
|
+
readonly type: "uint256";
|
|
332
|
+
readonly name: "nativeFee";
|
|
333
|
+
}, {
|
|
334
|
+
readonly type: "uint256";
|
|
335
|
+
readonly name: "lzTokenFee";
|
|
336
|
+
}];
|
|
337
|
+
readonly name: "fee";
|
|
338
|
+
}];
|
|
339
|
+
}, {
|
|
340
|
+
readonly name: "send";
|
|
341
|
+
readonly type: "function";
|
|
342
|
+
readonly stateMutability: "payable";
|
|
343
|
+
readonly inputs: readonly [{
|
|
344
|
+
readonly type: "tuple";
|
|
345
|
+
readonly components: readonly [{
|
|
346
|
+
readonly type: "uint32";
|
|
347
|
+
readonly name: "dstEid";
|
|
348
|
+
}, {
|
|
349
|
+
readonly type: "bytes32";
|
|
350
|
+
readonly name: "to";
|
|
351
|
+
}, {
|
|
352
|
+
readonly type: "uint256";
|
|
353
|
+
readonly name: "amountLD";
|
|
354
|
+
}, {
|
|
355
|
+
readonly type: "uint256";
|
|
356
|
+
readonly name: "minAmountLD";
|
|
357
|
+
}, {
|
|
358
|
+
readonly type: "bytes";
|
|
359
|
+
readonly name: "extraOptions";
|
|
360
|
+
}, {
|
|
361
|
+
readonly type: "bytes";
|
|
362
|
+
readonly name: "composeMsg";
|
|
363
|
+
}, {
|
|
364
|
+
readonly type: "bytes";
|
|
365
|
+
readonly name: "oftCmd";
|
|
366
|
+
}];
|
|
367
|
+
readonly name: "s";
|
|
368
|
+
}, {
|
|
369
|
+
readonly type: "tuple";
|
|
370
|
+
readonly components: readonly [{
|
|
371
|
+
readonly type: "uint256";
|
|
372
|
+
readonly name: "nativeFee";
|
|
373
|
+
}, {
|
|
374
|
+
readonly type: "uint256";
|
|
375
|
+
readonly name: "lzTokenFee";
|
|
376
|
+
}];
|
|
377
|
+
readonly name: "fee";
|
|
378
|
+
}, {
|
|
379
|
+
readonly type: "address";
|
|
380
|
+
readonly name: "refundAddress";
|
|
381
|
+
}];
|
|
382
|
+
readonly outputs: readonly [{
|
|
383
|
+
readonly type: "tuple";
|
|
384
|
+
readonly components: readonly [{
|
|
385
|
+
readonly type: "bytes32";
|
|
386
|
+
readonly name: "guid";
|
|
387
|
+
}, {
|
|
388
|
+
readonly type: "uint64";
|
|
389
|
+
readonly name: "nonce";
|
|
390
|
+
}, {
|
|
391
|
+
readonly name: "fee";
|
|
392
|
+
readonly type: "tuple";
|
|
393
|
+
readonly components: readonly [{
|
|
394
|
+
readonly type: "uint256";
|
|
395
|
+
readonly name: "nativeFee";
|
|
396
|
+
}, {
|
|
397
|
+
readonly type: "uint256";
|
|
398
|
+
readonly name: "lzTokenFee";
|
|
399
|
+
}];
|
|
400
|
+
}];
|
|
401
|
+
readonly name: "msgReceipt";
|
|
402
|
+
}, {
|
|
403
|
+
readonly type: "tuple";
|
|
404
|
+
readonly components: readonly [{
|
|
405
|
+
readonly type: "uint256";
|
|
406
|
+
readonly name: "amountSentLD";
|
|
407
|
+
}, {
|
|
408
|
+
readonly type: "uint256";
|
|
409
|
+
readonly name: "amountReceivedLD";
|
|
410
|
+
}];
|
|
411
|
+
readonly name: "oftReceipt";
|
|
412
|
+
}];
|
|
413
|
+
}, {
|
|
414
|
+
readonly name: "sendToken";
|
|
415
|
+
readonly type: "function";
|
|
416
|
+
readonly stateMutability: "payable";
|
|
417
|
+
readonly inputs: readonly [{
|
|
418
|
+
readonly type: "tuple";
|
|
419
|
+
readonly components: readonly [{
|
|
420
|
+
readonly type: "uint32";
|
|
421
|
+
readonly name: "dstEid";
|
|
422
|
+
}, {
|
|
423
|
+
readonly type: "bytes32";
|
|
424
|
+
readonly name: "to";
|
|
425
|
+
}, {
|
|
426
|
+
readonly type: "uint256";
|
|
427
|
+
readonly name: "amountLD";
|
|
428
|
+
}, {
|
|
429
|
+
readonly type: "uint256";
|
|
430
|
+
readonly name: "minAmountLD";
|
|
431
|
+
}, {
|
|
432
|
+
readonly type: "bytes";
|
|
433
|
+
readonly name: "extraOptions";
|
|
434
|
+
}, {
|
|
435
|
+
readonly type: "bytes";
|
|
436
|
+
readonly name: "composeMsg";
|
|
437
|
+
}, {
|
|
438
|
+
readonly type: "bytes";
|
|
439
|
+
readonly name: "oftCmd";
|
|
440
|
+
}];
|
|
441
|
+
readonly name: "s";
|
|
442
|
+
}, {
|
|
443
|
+
readonly type: "tuple";
|
|
444
|
+
readonly components: readonly [{
|
|
445
|
+
readonly type: "uint256";
|
|
446
|
+
readonly name: "nativeFee";
|
|
447
|
+
}, {
|
|
448
|
+
readonly type: "uint256";
|
|
449
|
+
readonly name: "lzTokenFee";
|
|
450
|
+
}];
|
|
451
|
+
readonly name: "fee";
|
|
452
|
+
}, {
|
|
453
|
+
readonly type: "address";
|
|
454
|
+
readonly name: "refundAddress";
|
|
455
|
+
}];
|
|
456
|
+
readonly outputs: readonly [{
|
|
457
|
+
readonly type: "tuple";
|
|
458
|
+
readonly components: readonly [{
|
|
459
|
+
readonly type: "bytes32";
|
|
460
|
+
readonly name: "guid";
|
|
461
|
+
}, {
|
|
462
|
+
readonly type: "uint64";
|
|
463
|
+
readonly name: "nonce";
|
|
464
|
+
}, {
|
|
465
|
+
readonly name: "fee";
|
|
466
|
+
readonly type: "tuple";
|
|
467
|
+
readonly components: readonly [{
|
|
468
|
+
readonly type: "uint256";
|
|
469
|
+
readonly name: "nativeFee";
|
|
470
|
+
}, {
|
|
471
|
+
readonly type: "uint256";
|
|
472
|
+
readonly name: "lzTokenFee";
|
|
473
|
+
}];
|
|
474
|
+
}];
|
|
475
|
+
readonly name: "msgReceipt";
|
|
476
|
+
}, {
|
|
477
|
+
readonly type: "tuple";
|
|
478
|
+
readonly components: readonly [{
|
|
479
|
+
readonly type: "uint256";
|
|
480
|
+
readonly name: "amountSentLD";
|
|
481
|
+
}, {
|
|
482
|
+
readonly type: "uint256";
|
|
483
|
+
readonly name: "amountReceivedLD";
|
|
484
|
+
}];
|
|
485
|
+
readonly name: "oftReceipt";
|
|
486
|
+
}, {
|
|
487
|
+
readonly type: "tuple";
|
|
488
|
+
readonly components: readonly [{
|
|
489
|
+
readonly type: "uint72";
|
|
490
|
+
readonly name: "ticketId";
|
|
491
|
+
}, {
|
|
492
|
+
readonly type: "bytes";
|
|
493
|
+
readonly name: "passengerBytes";
|
|
494
|
+
}];
|
|
495
|
+
readonly name: "ticket";
|
|
496
|
+
}];
|
|
497
|
+
}, {
|
|
498
|
+
readonly name: "unreceivedTokens";
|
|
499
|
+
readonly type: "function";
|
|
500
|
+
readonly stateMutability: "view";
|
|
501
|
+
readonly inputs: readonly [{
|
|
502
|
+
readonly type: "bytes32";
|
|
503
|
+
readonly name: "guid";
|
|
504
|
+
}, {
|
|
505
|
+
readonly type: "uint8";
|
|
506
|
+
readonly name: "index";
|
|
507
|
+
}];
|
|
508
|
+
readonly outputs: readonly [{
|
|
509
|
+
readonly type: "bytes32";
|
|
510
|
+
}];
|
|
511
|
+
}, {
|
|
512
|
+
readonly name: "retryReceiveToken";
|
|
513
|
+
readonly type: "function";
|
|
514
|
+
readonly stateMutability: "nonpayable";
|
|
515
|
+
readonly inputs: readonly [{
|
|
516
|
+
readonly type: "bytes32";
|
|
517
|
+
readonly name: "guid";
|
|
518
|
+
}, {
|
|
519
|
+
readonly type: "uint8";
|
|
520
|
+
readonly name: "index";
|
|
521
|
+
}, {
|
|
522
|
+
readonly type: "uint32";
|
|
523
|
+
readonly name: "srcEid";
|
|
524
|
+
}, {
|
|
525
|
+
readonly type: "address";
|
|
526
|
+
readonly name: "receiver";
|
|
527
|
+
}, {
|
|
528
|
+
readonly type: "uint256";
|
|
529
|
+
readonly name: "amountLD";
|
|
530
|
+
}, {
|
|
531
|
+
readonly type: "bytes";
|
|
532
|
+
readonly name: "composeMsg";
|
|
533
|
+
}];
|
|
534
|
+
readonly outputs: readonly [];
|
|
535
|
+
}, {
|
|
536
|
+
readonly name: "OFTSent";
|
|
537
|
+
readonly type: "event";
|
|
538
|
+
readonly inputs: readonly [{
|
|
539
|
+
readonly type: "bytes32";
|
|
540
|
+
readonly name: "guid";
|
|
541
|
+
readonly indexed: true;
|
|
542
|
+
}, {
|
|
543
|
+
readonly type: "uint32";
|
|
544
|
+
readonly name: "dstEid";
|
|
545
|
+
}, {
|
|
546
|
+
readonly type: "address";
|
|
547
|
+
readonly name: "fromAddress";
|
|
548
|
+
readonly indexed: true;
|
|
549
|
+
}, {
|
|
550
|
+
readonly type: "uint256";
|
|
551
|
+
readonly name: "amountSentLD";
|
|
552
|
+
}, {
|
|
553
|
+
readonly type: "uint256";
|
|
554
|
+
readonly name: "amountReceivedLD";
|
|
555
|
+
}];
|
|
556
|
+
}, {
|
|
557
|
+
readonly name: "OFTReceived";
|
|
558
|
+
readonly type: "event";
|
|
559
|
+
readonly inputs: readonly [{
|
|
560
|
+
readonly type: "bytes32";
|
|
561
|
+
readonly name: "guid";
|
|
562
|
+
readonly indexed: true;
|
|
563
|
+
}, {
|
|
564
|
+
readonly type: "uint32";
|
|
565
|
+
readonly name: "srcEid";
|
|
566
|
+
}, {
|
|
567
|
+
readonly type: "address";
|
|
568
|
+
readonly name: "toAddress";
|
|
569
|
+
readonly indexed: true;
|
|
570
|
+
}, {
|
|
571
|
+
readonly type: "uint256";
|
|
572
|
+
readonly name: "amountReceivedLD";
|
|
573
|
+
}];
|
|
574
|
+
}, {
|
|
575
|
+
readonly name: "UnreceivedTokenCached";
|
|
576
|
+
readonly type: "event";
|
|
577
|
+
readonly inputs: readonly [{
|
|
578
|
+
readonly type: "bytes32";
|
|
579
|
+
readonly name: "guid";
|
|
580
|
+
}, {
|
|
581
|
+
readonly type: "uint8";
|
|
582
|
+
readonly name: "index";
|
|
583
|
+
}, {
|
|
584
|
+
readonly type: "uint32";
|
|
585
|
+
readonly name: "srcEid";
|
|
586
|
+
}, {
|
|
587
|
+
readonly type: "address";
|
|
588
|
+
readonly name: "receiver";
|
|
589
|
+
}, {
|
|
590
|
+
readonly type: "uint256";
|
|
591
|
+
readonly name: "amountLD";
|
|
592
|
+
}, {
|
|
593
|
+
readonly type: "bytes";
|
|
594
|
+
readonly name: "composeMsg";
|
|
595
|
+
}];
|
|
596
|
+
}];
|
|
597
|
+
declare const TOKEN_MESSAGING_ABI: readonly [{
|
|
598
|
+
readonly name: "Bus_InvalidFare";
|
|
599
|
+
readonly type: "error";
|
|
600
|
+
readonly inputs: readonly [{
|
|
601
|
+
readonly type: "bool";
|
|
602
|
+
readonly name: "nativeDrop";
|
|
603
|
+
}];
|
|
604
|
+
}, {
|
|
605
|
+
readonly name: "assetIds";
|
|
606
|
+
readonly type: "function";
|
|
607
|
+
readonly stateMutability: "view";
|
|
608
|
+
readonly inputs: readonly [{
|
|
609
|
+
readonly type: "address";
|
|
610
|
+
readonly name: "stargateImpl";
|
|
611
|
+
}];
|
|
612
|
+
readonly outputs: readonly [{
|
|
613
|
+
readonly type: "uint16";
|
|
614
|
+
}];
|
|
615
|
+
}, {
|
|
616
|
+
readonly name: "stargateImpls";
|
|
617
|
+
readonly type: "function";
|
|
618
|
+
readonly stateMutability: "view";
|
|
619
|
+
readonly inputs: readonly [{
|
|
620
|
+
readonly type: "uint16";
|
|
621
|
+
readonly name: "assetId";
|
|
622
|
+
}];
|
|
623
|
+
readonly outputs: readonly [{
|
|
624
|
+
readonly type: "address";
|
|
625
|
+
}];
|
|
626
|
+
}, {
|
|
627
|
+
readonly name: "peers";
|
|
628
|
+
readonly type: "function";
|
|
629
|
+
readonly stateMutability: "view";
|
|
630
|
+
readonly inputs: readonly [{
|
|
631
|
+
readonly type: "uint32";
|
|
632
|
+
readonly name: "eid";
|
|
633
|
+
}];
|
|
634
|
+
readonly outputs: readonly [{
|
|
635
|
+
readonly type: "bytes32";
|
|
636
|
+
}];
|
|
637
|
+
}, {
|
|
638
|
+
readonly name: "endpoint";
|
|
639
|
+
readonly type: "function";
|
|
640
|
+
readonly stateMutability: "view";
|
|
641
|
+
readonly inputs: readonly [];
|
|
642
|
+
readonly outputs: readonly [{
|
|
643
|
+
readonly type: "address";
|
|
644
|
+
}];
|
|
645
|
+
}, {
|
|
646
|
+
readonly name: "nativeDropAmounts";
|
|
647
|
+
readonly type: "function";
|
|
648
|
+
readonly stateMutability: "view";
|
|
649
|
+
readonly inputs: readonly [{
|
|
650
|
+
readonly type: "uint32";
|
|
651
|
+
readonly name: "eid";
|
|
652
|
+
}];
|
|
653
|
+
readonly outputs: readonly [{
|
|
654
|
+
readonly type: "uint128";
|
|
655
|
+
}];
|
|
656
|
+
}, {
|
|
657
|
+
readonly name: "queueCapacity";
|
|
658
|
+
readonly type: "function";
|
|
659
|
+
readonly stateMutability: "view";
|
|
660
|
+
readonly inputs: readonly [];
|
|
661
|
+
readonly outputs: readonly [{
|
|
662
|
+
readonly type: "uint16";
|
|
663
|
+
}];
|
|
664
|
+
}, {
|
|
665
|
+
readonly name: "busQueues";
|
|
666
|
+
readonly type: "function";
|
|
667
|
+
readonly stateMutability: "view";
|
|
668
|
+
readonly inputs: readonly [{
|
|
669
|
+
readonly type: "uint32";
|
|
670
|
+
readonly name: "eid";
|
|
671
|
+
}];
|
|
672
|
+
readonly outputs: readonly [{
|
|
673
|
+
readonly type: "uint8";
|
|
674
|
+
readonly name: "maxNumPassengers";
|
|
675
|
+
}, {
|
|
676
|
+
readonly type: "uint80";
|
|
677
|
+
readonly name: "busFare";
|
|
678
|
+
}, {
|
|
679
|
+
readonly type: "uint80";
|
|
680
|
+
readonly name: "busAndNativeDropFare";
|
|
681
|
+
}, {
|
|
682
|
+
readonly type: "uint16";
|
|
683
|
+
readonly name: "qLength";
|
|
684
|
+
}, {
|
|
685
|
+
readonly type: "uint72";
|
|
686
|
+
readonly name: "nextTicketId";
|
|
687
|
+
}];
|
|
688
|
+
}, {
|
|
689
|
+
readonly name: "getPassengerHash";
|
|
690
|
+
readonly type: "function";
|
|
691
|
+
readonly stateMutability: "view";
|
|
692
|
+
readonly inputs: readonly [{
|
|
693
|
+
readonly type: "uint32";
|
|
694
|
+
readonly name: "eid";
|
|
695
|
+
}, {
|
|
696
|
+
readonly type: "uint16";
|
|
697
|
+
readonly name: "index";
|
|
698
|
+
}];
|
|
699
|
+
readonly outputs: readonly [{
|
|
700
|
+
readonly type: "bytes32";
|
|
701
|
+
}];
|
|
702
|
+
}, {
|
|
703
|
+
readonly name: "quoteDriveBus";
|
|
704
|
+
readonly type: "function";
|
|
705
|
+
readonly stateMutability: "view";
|
|
706
|
+
readonly inputs: readonly [{
|
|
707
|
+
readonly type: "uint32";
|
|
708
|
+
readonly name: "dstEid";
|
|
709
|
+
}, {
|
|
710
|
+
readonly type: "bytes";
|
|
711
|
+
readonly name: "passengers";
|
|
712
|
+
}];
|
|
713
|
+
readonly outputs: readonly [{
|
|
714
|
+
readonly type: "tuple";
|
|
715
|
+
readonly components: readonly [{
|
|
716
|
+
readonly type: "uint256";
|
|
717
|
+
readonly name: "nativeFee";
|
|
718
|
+
}, {
|
|
719
|
+
readonly type: "uint256";
|
|
720
|
+
readonly name: "lzTokenFee";
|
|
721
|
+
}];
|
|
722
|
+
readonly name: "fee";
|
|
723
|
+
}];
|
|
724
|
+
}, {
|
|
725
|
+
readonly name: "driveBus";
|
|
726
|
+
readonly type: "function";
|
|
727
|
+
readonly stateMutability: "payable";
|
|
728
|
+
readonly inputs: readonly [{
|
|
729
|
+
readonly type: "uint32";
|
|
730
|
+
readonly name: "dstEid";
|
|
731
|
+
}, {
|
|
732
|
+
readonly type: "bytes";
|
|
733
|
+
readonly name: "passengers";
|
|
734
|
+
}];
|
|
735
|
+
readonly outputs: readonly [{
|
|
736
|
+
readonly type: "tuple";
|
|
737
|
+
readonly components: readonly [{
|
|
738
|
+
readonly type: "bytes32";
|
|
739
|
+
readonly name: "guid";
|
|
740
|
+
}, {
|
|
741
|
+
readonly type: "uint64";
|
|
742
|
+
readonly name: "nonce";
|
|
743
|
+
}, {
|
|
744
|
+
readonly name: "fee";
|
|
745
|
+
readonly type: "tuple";
|
|
746
|
+
readonly components: readonly [{
|
|
747
|
+
readonly type: "uint256";
|
|
748
|
+
readonly name: "nativeFee";
|
|
749
|
+
}, {
|
|
750
|
+
readonly type: "uint256";
|
|
751
|
+
readonly name: "lzTokenFee";
|
|
752
|
+
}];
|
|
753
|
+
}];
|
|
754
|
+
readonly name: "receipt";
|
|
755
|
+
}];
|
|
756
|
+
}, {
|
|
757
|
+
readonly name: "BusRode";
|
|
758
|
+
readonly type: "event";
|
|
759
|
+
readonly inputs: readonly [{
|
|
760
|
+
readonly type: "uint32";
|
|
761
|
+
readonly name: "dstEid";
|
|
762
|
+
}, {
|
|
763
|
+
readonly type: "uint72";
|
|
764
|
+
readonly name: "ticketId";
|
|
765
|
+
}, {
|
|
766
|
+
readonly type: "uint80";
|
|
767
|
+
readonly name: "fare";
|
|
768
|
+
}, {
|
|
769
|
+
readonly type: "bytes";
|
|
770
|
+
readonly name: "passenger";
|
|
771
|
+
}];
|
|
772
|
+
}, {
|
|
773
|
+
readonly name: "BusDriven";
|
|
774
|
+
readonly type: "event";
|
|
775
|
+
readonly inputs: readonly [{
|
|
776
|
+
readonly type: "uint32";
|
|
777
|
+
readonly name: "dstEid";
|
|
778
|
+
}, {
|
|
779
|
+
readonly type: "uint72";
|
|
780
|
+
readonly name: "startTicketId";
|
|
781
|
+
}, {
|
|
782
|
+
readonly type: "uint8";
|
|
783
|
+
readonly name: "numPassengers";
|
|
784
|
+
}, {
|
|
785
|
+
readonly type: "bytes32";
|
|
786
|
+
readonly name: "guid";
|
|
787
|
+
}];
|
|
788
|
+
}, {
|
|
789
|
+
readonly name: "NativeDropApplied";
|
|
790
|
+
readonly type: "event";
|
|
791
|
+
readonly inputs: readonly [{
|
|
792
|
+
readonly type: "address";
|
|
793
|
+
readonly name: "receiver";
|
|
794
|
+
}, {
|
|
795
|
+
readonly type: "uint128";
|
|
796
|
+
readonly name: "amount";
|
|
797
|
+
}];
|
|
798
|
+
}, {
|
|
799
|
+
readonly name: "NativeDropFailed";
|
|
800
|
+
readonly type: "event";
|
|
801
|
+
readonly inputs: readonly [{
|
|
802
|
+
readonly type: "address";
|
|
803
|
+
readonly name: "receiver";
|
|
804
|
+
}, {
|
|
805
|
+
readonly type: "uint128";
|
|
806
|
+
readonly name: "amount";
|
|
807
|
+
}];
|
|
808
|
+
}];
|
|
809
|
+
|
|
810
|
+
export { ENDPOINT_ABI, EXECUTOR_ABI, STARGATE_ABI, TOKEN_MESSAGING_ABI };
|