@hyperbridge/sdk 1.0.0 → 1.2.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 (78) hide show
  1. package/README.md +45 -3
  2. package/dist/browser/index.d.ts +2190 -0
  3. package/dist/browser/index.js +11662 -0
  4. package/dist/browser/index.js.map +1 -0
  5. package/dist/browser/web_bg.wasm +0 -0
  6. package/dist/node/index.d.ts +2190 -0
  7. package/dist/node/index.js +11613 -0
  8. package/dist/node/index.js.map +1 -0
  9. package/dist/node/node_bg.wasm +0 -0
  10. package/package.json +46 -16
  11. package/plugins/vite.d.ts +11 -0
  12. package/plugins/vite.js +55 -0
  13. package/dist/abis/erc6160.d.ts +0 -370
  14. package/dist/abis/erc6160.js +0 -238
  15. package/dist/abis/erc6160.js.map +0 -1
  16. package/dist/abis/evmHost.d.ts +0 -1752
  17. package/dist/abis/evmHost.js +0 -2250
  18. package/dist/abis/evmHost.js.map +0 -1
  19. package/dist/abis/handler.d.ts +0 -580
  20. package/dist/abis/handler.js +0 -750
  21. package/dist/abis/handler.js.map +0 -1
  22. package/dist/abis/pingModule.d.ts +0 -594
  23. package/dist/abis/pingModule.js +0 -765
  24. package/dist/abis/pingModule.js.map +0 -1
  25. package/dist/abis/tokenGateway.d.ts +0 -839
  26. package/dist/abis/tokenGateway.js +0 -471
  27. package/dist/abis/tokenGateway.js.map +0 -1
  28. package/dist/chain.d.ts +0 -83
  29. package/dist/chain.js +0 -34
  30. package/dist/chain.js.map +0 -1
  31. package/dist/chains/evm.d.ts +0 -86
  32. package/dist/chains/evm.js +0 -249
  33. package/dist/chains/evm.js.map +0 -1
  34. package/dist/chains/substrate.d.ts +0 -88
  35. package/dist/chains/substrate.js +0 -287
  36. package/dist/chains/substrate.js.map +0 -1
  37. package/dist/client.d.ts +0 -216
  38. package/dist/client.js +0 -774
  39. package/dist/client.js.map +0 -1
  40. package/dist/index.d.ts +0 -6
  41. package/dist/index.js +0 -7
  42. package/dist/index.js.map +0 -1
  43. package/dist/queries.d.ts +0 -3
  44. package/dist/queries.js +0 -78
  45. package/dist/queries.js.map +0 -1
  46. package/dist/tests/hyperbridgeRequests.test.d.ts +0 -1
  47. package/dist/tests/hyperbridgeRequests.test.js +0 -415
  48. package/dist/tests/hyperbridgeRequests.test.js.map +0 -1
  49. package/dist/tests/postRequest.test.d.ts +0 -1
  50. package/dist/tests/postRequest.test.js +0 -293
  51. package/dist/tests/postRequest.test.js.map +0 -1
  52. package/dist/tests/setup.d.ts +0 -1
  53. package/dist/tests/setup.js +0 -6
  54. package/dist/tests/setup.js.map +0 -1
  55. package/dist/tests/tokenGateway.test.d.ts +0 -1
  56. package/dist/tests/tokenGateway.test.js +0 -85
  57. package/dist/tests/tokenGateway.test.js.map +0 -1
  58. package/dist/tests/xcmGateway.test.d.ts +0 -1
  59. package/dist/tests/xcmGateway.test.js +0 -71
  60. package/dist/tests/xcmGateway.test.js.map +0 -1
  61. package/dist/types/index.d.ts +0 -238
  62. package/dist/types/index.js +0 -30
  63. package/dist/types/index.js.map +0 -1
  64. package/dist/utils/mmr.d.ts +0 -13
  65. package/dist/utils/mmr.js +0 -153
  66. package/dist/utils/mmr.js.map +0 -1
  67. package/dist/utils/substrate.d.ts +0 -1913
  68. package/dist/utils/substrate.js +0 -361
  69. package/dist/utils/substrate.js.map +0 -1
  70. package/dist/utils/tokenGateway.d.ts +0 -68
  71. package/dist/utils/tokenGateway.js +0 -151
  72. package/dist/utils/tokenGateway.js.map +0 -1
  73. package/dist/utils/xcmGateway.d.ts +0 -81
  74. package/dist/utils/xcmGateway.js +0 -218
  75. package/dist/utils/xcmGateway.js.map +0 -1
  76. package/dist/utils.d.ts +0 -57
  77. package/dist/utils.js +0 -96
  78. package/dist/utils.js.map +0 -1
@@ -1,471 +0,0 @@
1
- const ABI = [
2
- {
3
- inputs: [{ internalType: "address", name: "admin", type: "address" }],
4
- stateMutability: "nonpayable",
5
- type: "constructor",
6
- },
7
- { inputs: [], name: "InconsistentState", type: "error" },
8
- { inputs: [], name: "InvalidAddressLength", type: "error" },
9
- { inputs: [], name: "InvalidAmount", type: "error" },
10
- { inputs: [], name: "UnauthorizedAction", type: "error" },
11
- { inputs: [], name: "UnauthorizedCall", type: "error" },
12
- { inputs: [], name: "UnexpectedCall", type: "error" },
13
- { inputs: [], name: "UnknownAsset", type: "error" },
14
- { inputs: [], name: "ZeroAddress", type: "error" },
15
- {
16
- anonymous: false,
17
- inputs: [
18
- { indexed: false, internalType: "address", name: "asset", type: "address" },
19
- { indexed: false, internalType: "address", name: "newAdmin", type: "address" },
20
- ],
21
- name: "AssetAdminChanged",
22
- type: "event",
23
- },
24
- {
25
- anonymous: false,
26
- inputs: [
27
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
28
- { indexed: false, internalType: "bytes32", name: "commitment", type: "bytes32" },
29
- { indexed: true, internalType: "bytes32", name: "from", type: "bytes32" },
30
- { indexed: true, internalType: "address", name: "beneficiary", type: "address" },
31
- { indexed: true, internalType: "bytes32", name: "assetId", type: "bytes32" },
32
- ],
33
- name: "AssetReceived",
34
- type: "event",
35
- },
36
- {
37
- anonymous: false,
38
- inputs: [
39
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
40
- { indexed: false, internalType: "bytes32", name: "commitment", type: "bytes32" },
41
- { indexed: true, internalType: "address", name: "beneficiary", type: "address" },
42
- { indexed: true, internalType: "bytes32", name: "assetId", type: "bytes32" },
43
- ],
44
- name: "AssetRefunded",
45
- type: "event",
46
- },
47
- {
48
- anonymous: false,
49
- inputs: [
50
- { indexed: false, internalType: "address", name: "erc20", type: "address" },
51
- { indexed: false, internalType: "address", name: "erc6160", type: "address" },
52
- { indexed: false, internalType: "string", name: "name", type: "string" },
53
- { indexed: false, internalType: "string", name: "symbol", type: "string" },
54
- { indexed: false, internalType: "bytes32", name: "assetId", type: "bytes32" },
55
- { indexed: false, internalType: "uint256", name: "initialSupply", type: "uint256" },
56
- { indexed: false, internalType: "address", name: "beneficiary", type: "address" },
57
- ],
58
- name: "AssetRegistered",
59
- type: "event",
60
- },
61
- {
62
- anonymous: false,
63
- inputs: [{ indexed: false, internalType: "bytes32", name: "assetId", type: "bytes32" }],
64
- name: "AssetRemoved",
65
- type: "event",
66
- },
67
- {
68
- anonymous: false,
69
- inputs: [
70
- { indexed: false, internalType: "bytes32", name: "to", type: "bytes32" },
71
- { indexed: false, internalType: "string", name: "dest", type: "string" },
72
- { indexed: false, internalType: "uint256", name: "amount", type: "uint256" },
73
- { indexed: false, internalType: "bytes32", name: "commitment", type: "bytes32" },
74
- { indexed: true, internalType: "address", name: "from", type: "address" },
75
- { indexed: true, internalType: "bytes32", name: "assetId", type: "bytes32" },
76
- { indexed: false, internalType: "bool", name: "redeem", type: "bool" },
77
- ],
78
- name: "AssetTeleported",
79
- type: "event",
80
- },
81
- {
82
- anonymous: false,
83
- inputs: [
84
- { indexed: false, internalType: "string", name: "chain", type: "string" },
85
- { indexed: false, internalType: "address", name: "moduleId", type: "address" },
86
- ],
87
- name: "NewContractInstance",
88
- type: "event",
89
- },
90
- {
91
- anonymous: false,
92
- inputs: [
93
- {
94
- components: [
95
- { internalType: "address", name: "host", type: "address" },
96
- { internalType: "address", name: "dispatcher", type: "address" },
97
- ],
98
- indexed: false,
99
- internalType: "struct TokenGatewayParams",
100
- name: "oldParams",
101
- type: "tuple",
102
- },
103
- {
104
- components: [
105
- { internalType: "address", name: "host", type: "address" },
106
- { internalType: "address", name: "dispatcher", type: "address" },
107
- ],
108
- indexed: false,
109
- internalType: "struct TokenGatewayParams",
110
- name: "newParams",
111
- type: "tuple",
112
- },
113
- ],
114
- name: "ParamsUpdated",
115
- type: "event",
116
- },
117
- {
118
- inputs: [{ internalType: "bytes32", name: "assetId", type: "bytes32" }],
119
- name: "erc20",
120
- outputs: [{ internalType: "address", name: "", type: "address" }],
121
- stateMutability: "view",
122
- type: "function",
123
- },
124
- {
125
- inputs: [{ internalType: "bytes32", name: "assetId", type: "bytes32" }],
126
- name: "erc6160",
127
- outputs: [{ internalType: "address", name: "", type: "address" }],
128
- stateMutability: "view",
129
- type: "function",
130
- },
131
- {
132
- inputs: [],
133
- name: "host",
134
- outputs: [{ internalType: "address", name: "h", type: "address" }],
135
- stateMutability: "view",
136
- type: "function",
137
- },
138
- {
139
- inputs: [
140
- {
141
- components: [
142
- {
143
- components: [
144
- { internalType: "address", name: "host", type: "address" },
145
- { internalType: "address", name: "dispatcher", type: "address" },
146
- ],
147
- internalType: "struct TokenGatewayParams",
148
- name: "params",
149
- type: "tuple",
150
- },
151
- {
152
- components: [
153
- { internalType: "address", name: "erc20", type: "address" },
154
- { internalType: "address", name: "erc6160", type: "address" },
155
- { internalType: "string", name: "name", type: "string" },
156
- { internalType: "string", name: "symbol", type: "string" },
157
- { internalType: "uint256", name: "initialSupply", type: "uint256" },
158
- { internalType: "address", name: "beneficiary", type: "address" },
159
- ],
160
- internalType: "struct AssetMetadata[]",
161
- name: "assets",
162
- type: "tuple[]",
163
- },
164
- ],
165
- internalType: "struct TokenGatewayParamsExt",
166
- name: "teleportParams",
167
- type: "tuple",
168
- },
169
- ],
170
- name: "init",
171
- outputs: [],
172
- stateMutability: "nonpayable",
173
- type: "function",
174
- },
175
- {
176
- inputs: [{ internalType: "bytes", name: "destination", type: "bytes" }],
177
- name: "instance",
178
- outputs: [{ internalType: "address", name: "", type: "address" }],
179
- stateMutability: "view",
180
- type: "function",
181
- },
182
- {
183
- inputs: [
184
- {
185
- components: [
186
- {
187
- components: [
188
- { internalType: "bytes", name: "source", type: "bytes" },
189
- { internalType: "bytes", name: "dest", type: "bytes" },
190
- { internalType: "uint64", name: "nonce", type: "uint64" },
191
- { internalType: "bytes", name: "from", type: "bytes" },
192
- { internalType: "bytes", name: "to", type: "bytes" },
193
- { internalType: "uint64", name: "timeoutTimestamp", type: "uint64" },
194
- { internalType: "bytes", name: "body", type: "bytes" },
195
- ],
196
- internalType: "struct PostRequest",
197
- name: "request",
198
- type: "tuple",
199
- },
200
- { internalType: "address", name: "relayer", type: "address" },
201
- ],
202
- internalType: "struct IncomingPostRequest",
203
- name: "incoming",
204
- type: "tuple",
205
- },
206
- ],
207
- name: "onAccept",
208
- outputs: [],
209
- stateMutability: "nonpayable",
210
- type: "function",
211
- },
212
- {
213
- inputs: [
214
- {
215
- components: [
216
- {
217
- components: [
218
- {
219
- components: [
220
- { internalType: "bytes", name: "source", type: "bytes" },
221
- { internalType: "bytes", name: "dest", type: "bytes" },
222
- { internalType: "uint64", name: "nonce", type: "uint64" },
223
- { internalType: "address", name: "from", type: "address" },
224
- { internalType: "uint64", name: "timeoutTimestamp", type: "uint64" },
225
- { internalType: "bytes[]", name: "keys", type: "bytes[]" },
226
- { internalType: "uint64", name: "height", type: "uint64" },
227
- { internalType: "bytes", name: "context", type: "bytes" },
228
- ],
229
- internalType: "struct GetRequest",
230
- name: "request",
231
- type: "tuple",
232
- },
233
- {
234
- components: [
235
- { internalType: "bytes", name: "key", type: "bytes" },
236
- { internalType: "bytes", name: "value", type: "bytes" },
237
- ],
238
- internalType: "struct StorageValue[]",
239
- name: "values",
240
- type: "tuple[]",
241
- },
242
- ],
243
- internalType: "struct GetResponse",
244
- name: "response",
245
- type: "tuple",
246
- },
247
- { internalType: "address", name: "relayer", type: "address" },
248
- ],
249
- internalType: "struct IncomingGetResponse",
250
- name: "",
251
- type: "tuple",
252
- },
253
- ],
254
- name: "onGetResponse",
255
- outputs: [],
256
- stateMutability: "nonpayable",
257
- type: "function",
258
- },
259
- {
260
- inputs: [
261
- {
262
- components: [
263
- { internalType: "bytes", name: "source", type: "bytes" },
264
- { internalType: "bytes", name: "dest", type: "bytes" },
265
- { internalType: "uint64", name: "nonce", type: "uint64" },
266
- { internalType: "address", name: "from", type: "address" },
267
- { internalType: "uint64", name: "timeoutTimestamp", type: "uint64" },
268
- { internalType: "bytes[]", name: "keys", type: "bytes[]" },
269
- { internalType: "uint64", name: "height", type: "uint64" },
270
- { internalType: "bytes", name: "context", type: "bytes" },
271
- ],
272
- internalType: "struct GetRequest",
273
- name: "",
274
- type: "tuple",
275
- },
276
- ],
277
- name: "onGetTimeout",
278
- outputs: [],
279
- stateMutability: "nonpayable",
280
- type: "function",
281
- },
282
- {
283
- inputs: [
284
- {
285
- components: [
286
- { internalType: "bytes", name: "source", type: "bytes" },
287
- { internalType: "bytes", name: "dest", type: "bytes" },
288
- { internalType: "uint64", name: "nonce", type: "uint64" },
289
- { internalType: "bytes", name: "from", type: "bytes" },
290
- { internalType: "bytes", name: "to", type: "bytes" },
291
- { internalType: "uint64", name: "timeoutTimestamp", type: "uint64" },
292
- { internalType: "bytes", name: "body", type: "bytes" },
293
- ],
294
- internalType: "struct PostRequest",
295
- name: "request",
296
- type: "tuple",
297
- },
298
- ],
299
- name: "onPostRequestTimeout",
300
- outputs: [],
301
- stateMutability: "nonpayable",
302
- type: "function",
303
- },
304
- {
305
- inputs: [
306
- {
307
- components: [
308
- {
309
- components: [
310
- {
311
- components: [
312
- { internalType: "bytes", name: "source", type: "bytes" },
313
- { internalType: "bytes", name: "dest", type: "bytes" },
314
- { internalType: "uint64", name: "nonce", type: "uint64" },
315
- { internalType: "bytes", name: "from", type: "bytes" },
316
- { internalType: "bytes", name: "to", type: "bytes" },
317
- { internalType: "uint64", name: "timeoutTimestamp", type: "uint64" },
318
- { internalType: "bytes", name: "body", type: "bytes" },
319
- ],
320
- internalType: "struct PostRequest",
321
- name: "request",
322
- type: "tuple",
323
- },
324
- { internalType: "bytes", name: "response", type: "bytes" },
325
- { internalType: "uint64", name: "timeoutTimestamp", type: "uint64" },
326
- ],
327
- internalType: "struct PostResponse",
328
- name: "response",
329
- type: "tuple",
330
- },
331
- { internalType: "address", name: "relayer", type: "address" },
332
- ],
333
- internalType: "struct IncomingPostResponse",
334
- name: "",
335
- type: "tuple",
336
- },
337
- ],
338
- name: "onPostResponse",
339
- outputs: [],
340
- stateMutability: "nonpayable",
341
- type: "function",
342
- },
343
- {
344
- inputs: [
345
- {
346
- components: [
347
- {
348
- components: [
349
- { internalType: "bytes", name: "source", type: "bytes" },
350
- { internalType: "bytes", name: "dest", type: "bytes" },
351
- { internalType: "uint64", name: "nonce", type: "uint64" },
352
- { internalType: "bytes", name: "from", type: "bytes" },
353
- { internalType: "bytes", name: "to", type: "bytes" },
354
- { internalType: "uint64", name: "timeoutTimestamp", type: "uint64" },
355
- { internalType: "bytes", name: "body", type: "bytes" },
356
- ],
357
- internalType: "struct PostRequest",
358
- name: "request",
359
- type: "tuple",
360
- },
361
- { internalType: "bytes", name: "response", type: "bytes" },
362
- { internalType: "uint64", name: "timeoutTimestamp", type: "uint64" },
363
- ],
364
- internalType: "struct PostResponse",
365
- name: "",
366
- type: "tuple",
367
- },
368
- ],
369
- name: "onPostResponseTimeout",
370
- outputs: [],
371
- stateMutability: "nonpayable",
372
- type: "function",
373
- },
374
- {
375
- inputs: [],
376
- name: "params",
377
- outputs: [
378
- {
379
- components: [
380
- { internalType: "address", name: "host", type: "address" },
381
- { internalType: "address", name: "dispatcher", type: "address" },
382
- ],
383
- internalType: "struct TokenGatewayParams",
384
- name: "",
385
- type: "tuple",
386
- },
387
- ],
388
- stateMutability: "view",
389
- type: "function",
390
- },
391
- {
392
- inputs: [
393
- {
394
- components: [
395
- { internalType: "bytes", name: "dest", type: "bytes" },
396
- { internalType: "bytes", name: "to", type: "bytes" },
397
- { internalType: "bytes", name: "body", type: "bytes" },
398
- { internalType: "uint64", name: "timeout", type: "uint64" },
399
- { internalType: "uint256", name: "fee", type: "uint256" },
400
- { internalType: "address", name: "payer", type: "address" },
401
- ],
402
- internalType: "struct DispatchPost",
403
- name: "post",
404
- type: "tuple",
405
- },
406
- ],
407
- name: "quote",
408
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
409
- stateMutability: "view",
410
- type: "function",
411
- },
412
- {
413
- inputs: [
414
- {
415
- components: [
416
- {
417
- components: [
418
- { internalType: "bytes", name: "source", type: "bytes" },
419
- { internalType: "bytes", name: "dest", type: "bytes" },
420
- { internalType: "uint64", name: "nonce", type: "uint64" },
421
- { internalType: "bytes", name: "from", type: "bytes" },
422
- { internalType: "bytes", name: "to", type: "bytes" },
423
- { internalType: "uint64", name: "timeoutTimestamp", type: "uint64" },
424
- { internalType: "bytes", name: "body", type: "bytes" },
425
- ],
426
- internalType: "struct PostRequest",
427
- name: "request",
428
- type: "tuple",
429
- },
430
- { internalType: "bytes", name: "response", type: "bytes" },
431
- { internalType: "uint64", name: "timeout", type: "uint64" },
432
- { internalType: "uint256", name: "fee", type: "uint256" },
433
- { internalType: "address", name: "payer", type: "address" },
434
- ],
435
- internalType: "struct DispatchPostResponse",
436
- name: "res",
437
- type: "tuple",
438
- },
439
- ],
440
- name: "quote",
441
- outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
442
- stateMutability: "view",
443
- type: "function",
444
- },
445
- {
446
- inputs: [
447
- {
448
- components: [
449
- { internalType: "uint256", name: "amount", type: "uint256" },
450
- { internalType: "uint256", name: "relayerFee", type: "uint256" },
451
- { internalType: "bytes32", name: "assetId", type: "bytes32" },
452
- { internalType: "bool", name: "redeem", type: "bool" },
453
- { internalType: "bytes32", name: "to", type: "bytes32" },
454
- { internalType: "bytes", name: "dest", type: "bytes" },
455
- { internalType: "uint64", name: "timeout", type: "uint64" },
456
- { internalType: "uint256", name: "nativeCost", type: "uint256" },
457
- { internalType: "bytes", name: "data", type: "bytes" },
458
- ],
459
- internalType: "struct TeleportParams",
460
- name: "teleportParams",
461
- type: "tuple",
462
- },
463
- ],
464
- name: "teleport",
465
- outputs: [],
466
- stateMutability: "payable",
467
- type: "function",
468
- },
469
- ];
470
- export default { ABI };
471
- //# sourceMappingURL=tokenGateway.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tokenGateway.js","sourceRoot":"","sources":["../../src/abis/tokenGateway.ts"],"names":[],"mappings":"AAAA,MAAM,GAAG,GAAG;IACX;QACC,MAAM,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EA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AAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;oBAC7D,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE;oBACtD,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE;oBACxD,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE;oBACtD,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC3D,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE;oBAChE,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE;iBACtD;gBACD,YAAY,EAAE,uBAAuB;gBACrC,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,OAAO;aACb;SACD;QACD,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KAChB;CACQ,CAAA;AAEV,eAAe,EAAE,GAAG,EAAE,CAAA"}
package/dist/chain.d.ts DELETED
@@ -1,83 +0,0 @@
1
- import { HexString, IEvmConfig, IPostRequest, ISubstrateConfig } from "./types";
2
- export * from "./chains/evm";
3
- export * from "./chains/substrate";
4
- /**
5
- * Type representing an ISMP message.
6
- */
7
- export type IIsmpMessage = IRequestMessage | ITimeoutPostRequestMessage;
8
- export interface IRequestMessage {
9
- /**
10
- * The kind of message.
11
- */
12
- kind: "PostRequest";
13
- /**
14
- * The requests to be posted.
15
- */
16
- requests: IPostRequest[];
17
- /**
18
- * The proof of the requests.
19
- */
20
- proof: IProof;
21
- /**
22
- * The signer of the message.
23
- */
24
- signer: HexString;
25
- }
26
- export interface ITimeoutPostRequestMessage {
27
- /**
28
- * The kind of message.
29
- */
30
- kind: "TimeoutPostRequest";
31
- /**
32
- * The requests to be posted.
33
- */
34
- requests: IPostRequest[];
35
- /**
36
- * The proof of the requests.
37
- */
38
- proof: IProof;
39
- }
40
- export interface IProof {
41
- /**
42
- * The height of the proof.
43
- */
44
- height: bigint;
45
- /**
46
- * The state machine identifier of the proof.
47
- */
48
- stateMachine: string;
49
- /**
50
- * The associated consensus state identifier of the proof.
51
- */
52
- consensusStateId: string;
53
- /**
54
- * The encoded storage proof
55
- */
56
- proof: HexString;
57
- }
58
- /**
59
- * Interface representing a chain.
60
- */
61
- export interface IChain {
62
- timestamp(): Promise<bigint>;
63
- /**
64
- * Returns the state trie key for the request-receipt storage item for the given request commitment.
65
- */
66
- requestReceiptKey(commitment: HexString): HexString;
67
- /**
68
- * Query and return the request-receipt for the given request commitment.
69
- */
70
- queryRequestReceipt(commitment: HexString): Promise<HexString | undefined>;
71
- /**
72
- * Query and return the encoded storage proof for the provided keys at the given height.
73
- */
74
- queryStateProof(at: bigint, keys: HexString[]): Promise<HexString>;
75
- queryRequestsProof(requests: HexString[], counterparty: string, at?: bigint): Promise<HexString>;
76
- encode(message: IIsmpMessage): HexString;
77
- }
78
- /**
79
- * Returns the chain interface for a given state machine identifier
80
- * @param chainConfig - Chain configuration
81
- * @returns Chain interface
82
- */
83
- export declare function getChain(chainConfig: IEvmConfig | ISubstrateConfig): Promise<IChain>;
package/dist/chain.js DELETED
@@ -1,34 +0,0 @@
1
- import { isEvmChain, isSubstrateChain } from "./utils.js";
2
- import { EvmChain, SubstrateChain } from "./chain.js";
3
- export * from "./chains/evm.js";
4
- export * from "./chains/substrate.js";
5
- /**
6
- * Returns the chain interface for a given state machine identifier
7
- * @param chainConfig - Chain configuration
8
- * @returns Chain interface
9
- */
10
- export async function getChain(chainConfig) {
11
- if (isEvmChain(chainConfig.stateMachineId)) {
12
- const config = chainConfig;
13
- const chainId = parseInt(chainConfig.stateMachineId.split("-")[1]);
14
- const evmChain = new EvmChain({
15
- chainId,
16
- url: config.rpcUrl,
17
- host: config.host,
18
- });
19
- return evmChain;
20
- }
21
- else if (isSubstrateChain(chainConfig.stateMachineId)) {
22
- const config = chainConfig;
23
- const substrateChain = new SubstrateChain({
24
- ws: config.wsUrl,
25
- hasher: config.hasher,
26
- });
27
- await substrateChain.connect();
28
- return substrateChain;
29
- }
30
- else {
31
- throw new Error(`Unsupported chain: ${chainConfig.stateMachineId}`);
32
- }
33
- }
34
- //# sourceMappingURL=chain.js.map
package/dist/chain.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"chain.js","sourceRoot":"","sources":["../src/chain.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAElD,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAmGlC;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,WAA0C;IACxE,IAAI,UAAU,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC;QAC5C,MAAM,MAAM,GAAG,WAAyB,CAAA;QACxC,MAAM,OAAO,GAAG,QAAQ,CAAC,WAAW,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAClE,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC;YAC7B,OAAO;YACP,GAAG,EAAE,MAAM,CAAC,MAAM;YAClB,IAAI,EAAE,MAAM,CAAC,IAAW;SACxB,CAAC,CAAA;QAEF,OAAO,QAAQ,CAAA;IAChB,CAAC;SAAM,IAAI,gBAAgB,CAAC,WAAW,CAAC,cAAc,CAAC,EAAE,CAAC;QACzD,MAAM,MAAM,GAAG,WAA+B,CAAA;QAC9C,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC;YACzC,EAAE,EAAE,MAAM,CAAC,KAAK;YAChB,MAAM,EAAE,MAAM,CAAC,MAAM;SACrB,CAAC,CAAA;QAEF,MAAM,cAAc,CAAC,OAAO,EAAE,CAAA;QAE9B,OAAO,cAAc,CAAA;IACtB,CAAC;SAAM,CAAC;QACP,MAAM,IAAI,KAAK,CAAC,sBAAsB,WAAW,CAAC,cAAc,EAAE,CAAC,CAAA;IACpE,CAAC;AACF,CAAC"}