@agoric/orchestration 0.1.1-dev-4687f0d.0 → 0.1.1-dev-0282e58.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 (37) hide show
  1. package/package.json +15 -15
  2. package/src/chain-info.d.ts +334 -74
  3. package/src/chain-info.d.ts.map +1 -1
  4. package/src/chain-info.js +3 -1
  5. package/src/examples/sendAnywhere.contract.d.ts +1 -1
  6. package/src/examples/stakeIca.contract.d.ts +3 -1
  7. package/src/examples/stakeIca.contract.d.ts.map +1 -1
  8. package/src/examples/stakeIca.contract.js +4 -2
  9. package/src/examples/swapExample.contract.d.ts +1 -1
  10. package/src/examples/swapExample.contract.d.ts.map +1 -1
  11. package/src/examples/swapExample.contract.js +7 -7
  12. package/src/examples/unbondExample.contract.d.ts +2 -3
  13. package/src/examples/unbondExample.contract.d.ts.map +1 -1
  14. package/src/examples/unbondExample.contract.js +3 -3
  15. package/src/exos/chainAccountKit.d.ts +2 -1
  16. package/src/exos/chainAccountKit.d.ts.map +1 -1
  17. package/src/exos/chainAccountKit.js +5 -4
  18. package/src/exos/local-chain-account-kit.d.ts +346 -85
  19. package/src/exos/local-chain-account-kit.d.ts.map +1 -1
  20. package/src/facade.d.ts +1 -1
  21. package/src/facade.d.ts.map +1 -1
  22. package/src/facade.js +20 -14
  23. package/src/fetched-chain-info.d.ts +1935 -2984
  24. package/src/fetched-chain-info.js +335 -73
  25. package/src/proposals/orchestration-proposal.d.ts +10 -6
  26. package/src/proposals/orchestration-proposal.d.ts.map +1 -1
  27. package/src/proposals/orchestration-proposal.js +43 -24
  28. package/src/proposals/start-stakeAtom.d.ts +1 -1
  29. package/src/proposals/start-stakeAtom.d.ts.map +1 -1
  30. package/src/proposals/start-stakeAtom.js +4 -2
  31. package/src/service.d.ts +2 -1
  32. package/src/service.d.ts.map +1 -1
  33. package/src/service.js +8 -3
  34. package/src/utils/chainHub.d.ts +378 -88
  35. package/src/utils/chainHub.d.ts.map +1 -1
  36. package/src/utils/chainHub.js +47 -19
  37. package/src/vat-orchestration.d.ts +2 -2
@@ -33,8 +33,8 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
33
33
  * : ChainInfo
34
34
  * >}
35
35
  */
36
- getChainInfo<K extends string>(chainName: K): Promise<K extends "celestia" | "agoric" | "neutron" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "cosmoshub" | "juno" | "noble" | "omniflixhub" | "dydx" ? Omit<{
37
- agoric: {
36
+ getChainInfo<K extends string>(chainName: K): Promise<K extends "celestia" | "agoriclocal" | "agoric" | "cosmoshub" | "dydx" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" ? Omit<{
37
+ agoriclocal: {
38
38
  chainId: string;
39
39
  connections: {
40
40
  'cosmoshub-4': {
@@ -52,13 +52,20 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
52
52
  portId: string;
53
53
  channelId: string;
54
54
  counterPartyChannelId: string;
55
+ /**
56
+ * The entries of the top-level namehubs in agoricNames are reflected to
57
+ * vstorage. But only the top level. So we combine the 2 chain ids into 1 key.
58
+ * Connections are directionless, so we sort the ids.
59
+ *
60
+ * @param {string} chainId1
61
+ * @param {string} chainId2
62
+ */
55
63
  counterPartyPortId: string;
56
64
  ordering: 1;
57
65
  state: 3;
58
66
  version: string;
59
67
  };
60
68
  };
61
- /** @type {MapStore<string, CosmosChainInfo>} */
62
69
  osmosislocal: {
63
70
  id: string;
64
71
  client_id: string;
@@ -82,14 +89,175 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
82
89
  };
83
90
  };
84
91
  };
92
+ agoric: {
93
+ chainId: string;
94
+ stakingTokens: {
95
+ denom: string;
96
+ }[];
97
+ connections: {
98
+ 'cosmoshub-4': {
99
+ id: string;
100
+ client_id: string;
101
+ counterparty: {
102
+ client_id: string;
103
+ connection_id: string;
104
+ prefix: {
105
+ key_prefix: string;
106
+ };
107
+ };
108
+ state: number;
109
+ transferChannel: {
110
+ channelId: string;
111
+ portId: string;
112
+ counterPartyChannelId: string;
113
+ counterPartyPortId: string;
114
+ /**
115
+ * Character used in a connection tuple key to separate the two chain ids. Valid
116
+ * because a chainId can contain only alphanumerics and dash.
117
+ *
118
+ * Vstorage keys can be only alphanumerics, dash or underscore. That leaves
119
+ * underscore as the only valid separator.
120
+ *
121
+ * @see {@link https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-2.md}
122
+ */
123
+ ordering: number;
124
+ state: number;
125
+ version: string;
126
+ };
127
+ };
128
+ 'noble-1': {
129
+ id: string;
130
+ client_id: string;
131
+ counterparty: {
132
+ client_id: string;
133
+ connection_id: string;
134
+ prefix: {
135
+ key_prefix: string;
136
+ };
137
+ };
138
+ state: number;
139
+ transferChannel: {
140
+ channelId: string;
141
+ portId: string;
142
+ counterPartyChannelId: string;
143
+ counterPartyPortId: string;
144
+ ordering: number;
145
+ state: number;
146
+ version: string;
147
+ };
148
+ };
149
+ 'omniflixhub-1': {
150
+ id: string;
151
+ client_id: string;
152
+ counterparty: {
153
+ client_id: string;
154
+ connection_id: string;
155
+ prefix: {
156
+ key_prefix: string;
157
+ };
158
+ };
159
+ state: number;
160
+ transferChannel: {
161
+ channelId: string;
162
+ portId: string;
163
+ counterPartyChannelId: string; /** @type {MapStore<string, CosmosChainInfo>} */
164
+ counterPartyPortId: string;
165
+ ordering: number;
166
+ state: number;
167
+ version: string;
168
+ };
169
+ };
170
+ 'osmosis-1': {
171
+ id: string;
172
+ client_id: string;
173
+ counterparty: {
174
+ client_id: string;
175
+ connection_id: string;
176
+ prefix: {
177
+ key_prefix: string; /**
178
+ * Register a new chain. The name will override a name in well known chain
179
+ * names.
180
+ *
181
+ * If a durable zone was not provided, registration will not survive a
182
+ * reincarnation of the vat. Then if the chain is not yet in the well known
183
+ * names at that point, it will have to be registered again. In an unchanged
184
+ * contract `start` the call will happen again naturally.
185
+ *
186
+ * @param {string} name
187
+ * @param {CosmosChainInfo} chainInfo
188
+ */
189
+ };
190
+ };
191
+ state: number;
192
+ transferChannel: {
193
+ channelId: string;
194
+ portId: string;
195
+ counterPartyChannelId: string;
196
+ counterPartyPortId: string;
197
+ ordering: number;
198
+ state: number;
199
+ version: string;
200
+ };
201
+ };
202
+ 'secret-4': {
203
+ id: string;
204
+ client_id: string;
205
+ counterparty: {
206
+ client_id: string;
207
+ connection_id: string;
208
+ prefix: {
209
+ key_prefix: string;
210
+ }; /**
211
+ * @template {string} K
212
+ * @param {K} chainName
213
+ * @returns {Promise<
214
+ * K extends keyof KnownChains
215
+ * ? Omit<KnownChains[K], 'connections'>
216
+ * : ChainInfo
217
+ * >}
218
+ */
219
+ };
220
+ state: number;
221
+ transferChannel: {
222
+ channelId: string;
223
+ portId: string;
224
+ counterPartyChannelId: string;
225
+ counterPartyPortId: string;
226
+ ordering: number;
227
+ state: number;
228
+ version: string;
229
+ };
230
+ };
231
+ 'stride-1': {
232
+ id: string;
233
+ client_id: string;
234
+ counterparty: {
235
+ client_id: string;
236
+ connection_id: string;
237
+ prefix: {
238
+ key_prefix: string;
239
+ };
240
+ };
241
+ state: number;
242
+ transferChannel: {
243
+ channelId: string;
244
+ portId: string;
245
+ counterPartyChannelId: string;
246
+ counterPartyPortId: string;
247
+ ordering: number;
248
+ state: number;
249
+ version: string;
250
+ };
251
+ };
252
+ };
253
+ };
85
254
  celestia: {
86
255
  chainId: string;
87
256
  stakingTokens: {
88
257
  denom: string;
89
258
  }[];
90
259
  connections: {
91
- neutron: {
92
- /** agoricNames key for ChainInfo hub */
260
+ 'neutron-1': {
93
261
  id: string;
94
262
  client_id: string;
95
263
  counterparty: {
@@ -110,7 +278,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
110
278
  version: string;
111
279
  };
112
280
  };
113
- osmosis: {
281
+ 'osmosis-1': {
114
282
  id: string;
115
283
  client_id: string;
116
284
  counterparty: {
@@ -131,7 +299,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
131
299
  version: string;
132
300
  };
133
301
  };
134
- secretnetwork: {
302
+ 'secret-4': {
135
303
  id: string;
136
304
  client_id: string;
137
305
  counterparty: {
@@ -152,7 +320,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
152
320
  version: string;
153
321
  };
154
322
  };
155
- stargaze: {
323
+ 'stargaze-1': {
156
324
  id: string;
157
325
  client_id: string;
158
326
  counterparty: {
@@ -173,7 +341,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
173
341
  version: string;
174
342
  };
175
343
  };
176
- stride: {
344
+ 'stride-1': {
177
345
  id: string;
178
346
  client_id: string;
179
347
  counterparty: {
@@ -200,13 +368,9 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
200
368
  chainId: string;
201
369
  stakingTokens: {
202
370
  denom: string;
203
- }[]; /**
204
- * @param {string} srcChainId
205
- * @param {string} destChainId
206
- * @returns {Promise<IBCConnectionInfo>}
207
- */
371
+ }[];
208
372
  connections: {
209
- juno: {
373
+ 'agoric-3': {
210
374
  id: string;
211
375
  client_id: string;
212
376
  counterparty: {
@@ -227,7 +391,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
227
391
  version: string;
228
392
  };
229
393
  };
230
- neutron: {
394
+ 'juno-1': {
231
395
  id: string;
232
396
  client_id: string;
233
397
  counterparty: {
@@ -248,7 +412,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
248
412
  version: string;
249
413
  };
250
414
  };
251
- noble: {
415
+ 'neutron-1': {
252
416
  id: string;
253
417
  client_id: string;
254
418
  counterparty: {
@@ -269,7 +433,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
269
433
  version: string;
270
434
  };
271
435
  };
272
- omniflixhub: {
436
+ 'noble-1': {
273
437
  id: string;
274
438
  client_id: string;
275
439
  counterparty: {
@@ -290,7 +454,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
290
454
  version: string;
291
455
  };
292
456
  };
293
- osmosis: {
457
+ 'omniflixhub-1': {
294
458
  id: string;
295
459
  client_id: string;
296
460
  counterparty: {
@@ -311,7 +475,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
311
475
  version: string;
312
476
  };
313
477
  };
314
- secretnetwork: {
478
+ 'osmosis-1': {
315
479
  id: string;
316
480
  client_id: string;
317
481
  counterparty: {
@@ -332,7 +496,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
332
496
  version: string;
333
497
  };
334
498
  };
335
- stargaze: {
499
+ 'secret-4': {
336
500
  id: string;
337
501
  client_id: string;
338
502
  counterparty: {
@@ -353,7 +517,28 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
353
517
  version: string;
354
518
  };
355
519
  };
356
- stride: {
520
+ 'stargaze-1': {
521
+ id: string;
522
+ client_id: string;
523
+ counterparty: {
524
+ client_id: string;
525
+ connection_id: string;
526
+ prefix: {
527
+ key_prefix: string;
528
+ };
529
+ };
530
+ state: number;
531
+ transferChannel: {
532
+ channelId: string;
533
+ portId: string;
534
+ counterPartyChannelId: string;
535
+ counterPartyPortId: string;
536
+ ordering: number;
537
+ state: number;
538
+ version: string;
539
+ };
540
+ };
541
+ 'stride-1': {
357
542
  id: string;
358
543
  client_id: string;
359
544
  counterparty: {
@@ -382,7 +567,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
382
567
  denom: string;
383
568
  }[];
384
569
  connections: {
385
- neutron: {
570
+ 'neutron-1': {
386
571
  id: string;
387
572
  client_id: string;
388
573
  counterparty: {
@@ -403,7 +588,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
403
588
  version: string;
404
589
  };
405
590
  };
406
- noble: {
591
+ 'noble-1': {
407
592
  id: string;
408
593
  client_id: string;
409
594
  counterparty: {
@@ -424,7 +609,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
424
609
  version: string;
425
610
  };
426
611
  };
427
- osmosis: {
612
+ 'osmosis-1': {
428
613
  id: string;
429
614
  client_id: string;
430
615
  counterparty: {
@@ -445,7 +630,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
445
630
  version: string;
446
631
  };
447
632
  };
448
- stride: {
633
+ 'stride-1': {
449
634
  id: string;
450
635
  client_id: string;
451
636
  counterparty: {
@@ -474,7 +659,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
474
659
  denom: string;
475
660
  }[];
476
661
  connections: {
477
- cosmoshub: {
662
+ 'cosmoshub-4': {
478
663
  id: string;
479
664
  client_id: string;
480
665
  counterparty: {
@@ -495,7 +680,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
495
680
  version: string;
496
681
  };
497
682
  };
498
- neutron: {
683
+ 'neutron-1': {
499
684
  id: string;
500
685
  client_id: string;
501
686
  counterparty: {
@@ -516,7 +701,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
516
701
  version: string;
517
702
  };
518
703
  };
519
- noble: {
704
+ 'noble-1': {
520
705
  id: string;
521
706
  client_id: string;
522
707
  counterparty: {
@@ -537,7 +722,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
537
722
  version: string;
538
723
  };
539
724
  };
540
- osmosis: {
725
+ 'osmosis-1': {
541
726
  id: string;
542
727
  client_id: string;
543
728
  counterparty: {
@@ -558,7 +743,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
558
743
  version: string;
559
744
  };
560
745
  };
561
- secretnetwork: {
746
+ 'secret-4': {
562
747
  id: string;
563
748
  client_id: string;
564
749
  counterparty: {
@@ -579,7 +764,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
579
764
  version: string;
580
765
  };
581
766
  };
582
- stargaze: {
767
+ 'stargaze-1': {
583
768
  id: string;
584
769
  client_id: string;
585
770
  counterparty: {
@@ -600,7 +785,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
600
785
  version: string;
601
786
  };
602
787
  };
603
- stride: {
788
+ 'stride-1': {
604
789
  id: string;
605
790
  client_id: string;
606
791
  counterparty: {
@@ -650,7 +835,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
650
835
  version: string;
651
836
  };
652
837
  };
653
- cosmoshub: {
838
+ 'cosmoshub-4': {
654
839
  id: string;
655
840
  client_id: string;
656
841
  counterparty: {
@@ -671,7 +856,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
671
856
  version: string;
672
857
  };
673
858
  };
674
- dydx: {
859
+ 'dydx-mainnet-1': {
675
860
  id: string;
676
861
  client_id: string;
677
862
  counterparty: {
@@ -692,7 +877,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
692
877
  version: string;
693
878
  };
694
879
  };
695
- juno: {
880
+ 'juno-1': {
696
881
  id: string;
697
882
  client_id: string;
698
883
  counterparty: {
@@ -713,7 +898,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
713
898
  version: string;
714
899
  };
715
900
  };
716
- noble: {
901
+ 'noble-1': {
717
902
  id: string;
718
903
  client_id: string;
719
904
  counterparty: {
@@ -734,7 +919,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
734
919
  version: string;
735
920
  };
736
921
  };
737
- osmosis: {
922
+ 'osmosis-1': {
738
923
  id: string;
739
924
  client_id: string;
740
925
  counterparty: {
@@ -755,7 +940,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
755
940
  version: string;
756
941
  };
757
942
  };
758
- secretnetwork: {
943
+ 'secret-4': {
759
944
  id: string;
760
945
  client_id: string;
761
946
  counterparty: {
@@ -776,7 +961,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
776
961
  version: string;
777
962
  };
778
963
  };
779
- stargaze: {
964
+ 'stargaze-1': {
780
965
  id: string;
781
966
  client_id: string;
782
967
  counterparty: {
@@ -797,7 +982,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
797
982
  version: string;
798
983
  };
799
984
  };
800
- stride: {
985
+ 'stride-1': {
801
986
  id: string;
802
987
  client_id: string;
803
988
  counterparty: {
@@ -826,7 +1011,28 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
826
1011
  denom: string;
827
1012
  }[];
828
1013
  connections: {
829
- cosmoshub: {
1014
+ 'agoric-3': {
1015
+ id: string;
1016
+ client_id: string;
1017
+ counterparty: {
1018
+ client_id: string;
1019
+ connection_id: string;
1020
+ prefix: {
1021
+ key_prefix: string;
1022
+ };
1023
+ };
1024
+ state: number;
1025
+ transferChannel: {
1026
+ channelId: string;
1027
+ portId: string;
1028
+ counterPartyChannelId: string;
1029
+ counterPartyPortId: string;
1030
+ ordering: number;
1031
+ state: number;
1032
+ version: string;
1033
+ };
1034
+ };
1035
+ 'cosmoshub-4': {
830
1036
  id: string;
831
1037
  client_id: string;
832
1038
  counterparty: {
@@ -847,7 +1053,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
847
1053
  version: string;
848
1054
  };
849
1055
  };
850
- dydx: {
1056
+ 'dydx-mainnet-1': {
851
1057
  id: string;
852
1058
  client_id: string;
853
1059
  counterparty: {
@@ -868,7 +1074,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
868
1074
  version: string;
869
1075
  };
870
1076
  };
871
- juno: {
1077
+ 'juno-1': {
872
1078
  id: string;
873
1079
  client_id: string;
874
1080
  counterparty: {
@@ -889,7 +1095,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
889
1095
  version: string;
890
1096
  };
891
1097
  };
892
- neutron: {
1098
+ 'neutron-1': {
893
1099
  id: string;
894
1100
  client_id: string;
895
1101
  counterparty: {
@@ -910,7 +1116,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
910
1116
  version: string;
911
1117
  };
912
1118
  };
913
- omniflixhub: {
1119
+ 'omniflixhub-1': {
914
1120
  id: string;
915
1121
  client_id: string;
916
1122
  counterparty: {
@@ -931,7 +1137,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
931
1137
  version: string;
932
1138
  };
933
1139
  };
934
- osmosis: {
1140
+ 'osmosis-1': {
935
1141
  id: string;
936
1142
  client_id: string;
937
1143
  counterparty: {
@@ -952,7 +1158,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
952
1158
  version: string;
953
1159
  };
954
1160
  };
955
- secretnetwork: {
1161
+ 'secret-4': {
956
1162
  id: string;
957
1163
  client_id: string;
958
1164
  counterparty: {
@@ -973,7 +1179,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
973
1179
  version: string;
974
1180
  };
975
1181
  };
976
- stargaze: {
1182
+ 'stargaze-1': {
977
1183
  id: string;
978
1184
  client_id: string;
979
1185
  counterparty: {
@@ -1002,7 +1208,28 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1002
1208
  denom: string;
1003
1209
  }[];
1004
1210
  connections: {
1005
- cosmoshub: {
1211
+ 'agoric-3': {
1212
+ id: string;
1213
+ client_id: string;
1214
+ counterparty: {
1215
+ client_id: string;
1216
+ connection_id: string;
1217
+ prefix: {
1218
+ key_prefix: string;
1219
+ };
1220
+ };
1221
+ state: number;
1222
+ transferChannel: {
1223
+ channelId: string;
1224
+ portId: string;
1225
+ counterPartyChannelId: string;
1226
+ counterPartyPortId: string;
1227
+ ordering: number;
1228
+ state: number;
1229
+ version: string;
1230
+ };
1231
+ };
1232
+ 'cosmoshub-4': {
1006
1233
  id: string;
1007
1234
  client_id: string;
1008
1235
  counterparty: {
@@ -1023,7 +1250,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1023
1250
  version: string;
1024
1251
  };
1025
1252
  };
1026
- noble: {
1253
+ 'noble-1': {
1027
1254
  id: string;
1028
1255
  client_id: string;
1029
1256
  counterparty: {
@@ -1044,7 +1271,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1044
1271
  version: string;
1045
1272
  };
1046
1273
  };
1047
- osmosis: {
1274
+ 'osmosis-1': {
1048
1275
  id: string;
1049
1276
  client_id: string;
1050
1277
  counterparty: {
@@ -1074,6 +1301,27 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1074
1301
  }[];
1075
1302
  icqEnabled: boolean;
1076
1303
  connections: {
1304
+ 'agoric-3': {
1305
+ id: string;
1306
+ client_id: string;
1307
+ counterparty: {
1308
+ client_id: string;
1309
+ connection_id: string;
1310
+ prefix: {
1311
+ key_prefix: string;
1312
+ };
1313
+ };
1314
+ state: number;
1315
+ transferChannel: {
1316
+ channelId: string;
1317
+ portId: string;
1318
+ counterPartyChannelId: string;
1319
+ counterPartyPortId: string;
1320
+ ordering: number;
1321
+ state: number;
1322
+ version: string;
1323
+ };
1324
+ };
1077
1325
  celestia: {
1078
1326
  id: string;
1079
1327
  client_id: string;
@@ -1095,7 +1343,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1095
1343
  version: string;
1096
1344
  };
1097
1345
  };
1098
- cosmoshub: {
1346
+ 'cosmoshub-4': {
1099
1347
  id: string;
1100
1348
  client_id: string;
1101
1349
  counterparty: {
@@ -1116,7 +1364,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1116
1364
  version: string;
1117
1365
  };
1118
1366
  };
1119
- dydx: {
1367
+ 'dydx-mainnet-1': {
1120
1368
  id: string;
1121
1369
  client_id: string;
1122
1370
  counterparty: {
@@ -1137,7 +1385,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1137
1385
  version: string;
1138
1386
  };
1139
1387
  };
1140
- juno: {
1388
+ 'juno-1': {
1141
1389
  id: string;
1142
1390
  client_id: string;
1143
1391
  counterparty: {
@@ -1158,7 +1406,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1158
1406
  version: string;
1159
1407
  };
1160
1408
  };
1161
- neutron: {
1409
+ 'neutron-1': {
1162
1410
  id: string;
1163
1411
  client_id: string;
1164
1412
  counterparty: {
@@ -1179,7 +1427,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1179
1427
  version: string;
1180
1428
  };
1181
1429
  };
1182
- noble: {
1430
+ 'noble-1': {
1183
1431
  id: string;
1184
1432
  client_id: string;
1185
1433
  counterparty: {
@@ -1200,7 +1448,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1200
1448
  version: string;
1201
1449
  };
1202
1450
  };
1203
- omniflixhub: {
1451
+ 'omniflixhub-1': {
1204
1452
  id: string;
1205
1453
  client_id: string;
1206
1454
  counterparty: {
@@ -1221,7 +1469,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1221
1469
  version: string;
1222
1470
  };
1223
1471
  };
1224
- secretnetwork: {
1472
+ 'secret-4': {
1225
1473
  id: string;
1226
1474
  client_id: string;
1227
1475
  counterparty: {
@@ -1242,7 +1490,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1242
1490
  version: string;
1243
1491
  };
1244
1492
  };
1245
- stargaze: {
1493
+ 'stargaze-1': {
1246
1494
  id: string;
1247
1495
  client_id: string;
1248
1496
  counterparty: {
@@ -1263,7 +1511,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1263
1511
  version: string;
1264
1512
  };
1265
1513
  };
1266
- stride: {
1514
+ 'stride-1': {
1267
1515
  id: string;
1268
1516
  client_id: string;
1269
1517
  counterparty: {
@@ -1292,6 +1540,27 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1292
1540
  denom: string;
1293
1541
  }[];
1294
1542
  connections: {
1543
+ 'agoric-3': {
1544
+ id: string;
1545
+ client_id: string;
1546
+ counterparty: {
1547
+ client_id: string;
1548
+ connection_id: string;
1549
+ prefix: {
1550
+ key_prefix: string;
1551
+ };
1552
+ };
1553
+ state: number;
1554
+ transferChannel: {
1555
+ channelId: string;
1556
+ portId: string;
1557
+ counterPartyChannelId: string;
1558
+ counterPartyPortId: string;
1559
+ ordering: number;
1560
+ state: number;
1561
+ version: string;
1562
+ };
1563
+ };
1295
1564
  celestia: {
1296
1565
  id: string;
1297
1566
  client_id: string;
@@ -1313,7 +1582,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1313
1582
  version: string;
1314
1583
  };
1315
1584
  };
1316
- cosmoshub: {
1585
+ 'cosmoshub-4': {
1317
1586
  id: string;
1318
1587
  client_id: string;
1319
1588
  counterparty: {
@@ -1334,7 +1603,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1334
1603
  version: string;
1335
1604
  };
1336
1605
  };
1337
- juno: {
1606
+ 'juno-1': {
1338
1607
  id: string;
1339
1608
  client_id: string;
1340
1609
  counterparty: {
@@ -1355,7 +1624,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1355
1624
  version: string;
1356
1625
  };
1357
1626
  };
1358
- neutron: {
1627
+ 'neutron-1': {
1359
1628
  id: string;
1360
1629
  client_id: string;
1361
1630
  counterparty: {
@@ -1376,7 +1645,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1376
1645
  version: string;
1377
1646
  };
1378
1647
  };
1379
- noble: {
1648
+ 'noble-1': {
1380
1649
  id: string;
1381
1650
  client_id: string;
1382
1651
  counterparty: {
@@ -1397,7 +1666,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1397
1666
  version: string;
1398
1667
  };
1399
1668
  };
1400
- osmosis: {
1669
+ 'osmosis-1': {
1401
1670
  id: string;
1402
1671
  client_id: string;
1403
1672
  counterparty: {
@@ -1418,7 +1687,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1418
1687
  version: string;
1419
1688
  };
1420
1689
  };
1421
- stargaze: {
1690
+ 'stargaze-1': {
1422
1691
  id: string;
1423
1692
  client_id: string;
1424
1693
  counterparty: {
@@ -1439,7 +1708,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1439
1708
  version: string;
1440
1709
  };
1441
1710
  };
1442
- stride: {
1711
+ 'stride-1': {
1443
1712
  id: string;
1444
1713
  client_id: string;
1445
1714
  counterparty: {
@@ -1489,7 +1758,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1489
1758
  version: string;
1490
1759
  };
1491
1760
  };
1492
- cosmoshub: {
1761
+ 'cosmoshub-4': {
1493
1762
  id: string;
1494
1763
  client_id: string;
1495
1764
  counterparty: {
@@ -1510,7 +1779,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1510
1779
  version: string;
1511
1780
  };
1512
1781
  };
1513
- juno: {
1782
+ 'juno-1': {
1514
1783
  id: string;
1515
1784
  client_id: string;
1516
1785
  counterparty: {
@@ -1531,7 +1800,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1531
1800
  version: string;
1532
1801
  };
1533
1802
  };
1534
- neutron: {
1803
+ 'neutron-1': {
1535
1804
  id: string;
1536
1805
  client_id: string;
1537
1806
  counterparty: {
@@ -1552,7 +1821,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1552
1821
  version: string;
1553
1822
  };
1554
1823
  };
1555
- noble: {
1824
+ 'noble-1': {
1556
1825
  id: string;
1557
1826
  client_id: string;
1558
1827
  counterparty: {
@@ -1573,7 +1842,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1573
1842
  version: string;
1574
1843
  };
1575
1844
  };
1576
- osmosis: {
1845
+ 'osmosis-1': {
1577
1846
  id: string;
1578
1847
  client_id: string;
1579
1848
  counterparty: {
@@ -1594,7 +1863,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1594
1863
  version: string;
1595
1864
  };
1596
1865
  };
1597
- secretnetwork: {
1866
+ 'secret-4': {
1598
1867
  id: string;
1599
1868
  client_id: string;
1600
1869
  counterparty: {
@@ -1615,7 +1884,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1615
1884
  version: string;
1616
1885
  };
1617
1886
  };
1618
- stride: {
1887
+ 'stride-1': {
1619
1888
  id: string;
1620
1889
  client_id: string;
1621
1890
  counterparty: {
@@ -1644,6 +1913,27 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1644
1913
  denom: string;
1645
1914
  }[];
1646
1915
  connections: {
1916
+ 'agoric-3': {
1917
+ id: string;
1918
+ client_id: string;
1919
+ counterparty: {
1920
+ client_id: string;
1921
+ connection_id: string;
1922
+ prefix: {
1923
+ key_prefix: string;
1924
+ };
1925
+ };
1926
+ state: number;
1927
+ transferChannel: {
1928
+ channelId: string;
1929
+ portId: string;
1930
+ counterPartyChannelId: string;
1931
+ counterPartyPortId: string;
1932
+ ordering: number;
1933
+ state: number;
1934
+ version: string;
1935
+ };
1936
+ };
1647
1937
  celestia: {
1648
1938
  id: string;
1649
1939
  client_id: string;
@@ -1665,7 +1955,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1665
1955
  version: string;
1666
1956
  };
1667
1957
  };
1668
- cosmoshub: {
1958
+ 'cosmoshub-4': {
1669
1959
  id: string;
1670
1960
  client_id: string;
1671
1961
  counterparty: {
@@ -1686,7 +1976,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1686
1976
  version: string;
1687
1977
  };
1688
1978
  };
1689
- dydx: {
1979
+ 'dydx-mainnet-1': {
1690
1980
  id: string;
1691
1981
  client_id: string;
1692
1982
  counterparty: {
@@ -1707,7 +1997,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1707
1997
  version: string;
1708
1998
  };
1709
1999
  };
1710
- juno: {
2000
+ 'juno-1': {
1711
2001
  id: string;
1712
2002
  client_id: string;
1713
2003
  counterparty: {
@@ -1728,7 +2018,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1728
2018
  version: string;
1729
2019
  };
1730
2020
  };
1731
- neutron: {
2021
+ 'neutron-1': {
1732
2022
  id: string;
1733
2023
  client_id: string;
1734
2024
  counterparty: {
@@ -1749,7 +2039,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1749
2039
  version: string;
1750
2040
  };
1751
2041
  };
1752
- osmosis: {
2042
+ 'osmosis-1': {
1753
2043
  id: string;
1754
2044
  client_id: string;
1755
2045
  counterparty: {
@@ -1770,7 +2060,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1770
2060
  version: string;
1771
2061
  };
1772
2062
  };
1773
- secretnetwork: {
2063
+ 'secret-4': {
1774
2064
  id: string;
1775
2065
  client_id: string;
1776
2066
  counterparty: {
@@ -1791,7 +2081,7 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1791
2081
  version: string;
1792
2082
  };
1793
2083
  };
1794
- stargaze: {
2084
+ 'stargaze-1': {
1795
2085
  id: string;
1796
2086
  client_id: string;
1797
2087
  counterparty: {
@@ -1816,17 +2106,17 @@ export function makeChainHub(agoricNames: Remote<NameHub>, zone?: Zone | undefin
1816
2106
  };
1817
2107
  }[K], "connections"> : ChainInfo>;
1818
2108
  /**
1819
- * @param {string} srcChainId
1820
- * @param {string} destChainId
2109
+ * @param {string} chainId1
2110
+ * @param {string} chainId2
1821
2111
  * @param {IBCConnectionInfo} connectionInfo
1822
2112
  */
1823
- registerConnection(srcChainId: string, destChainId: string, connectionInfo: IBCConnectionInfo): void;
2113
+ registerConnection(chainId1: string, chainId2: string, connectionInfo: IBCConnectionInfo): void;
1824
2114
  /**
1825
- * @param {string} srcChainId
1826
- * @param {string} destChainId
2115
+ * @param {string} chainId1
2116
+ * @param {string} chainId2
1827
2117
  * @returns {Promise<IBCConnectionInfo>}
1828
2118
  */
1829
- getConnectionInfo(srcChainId: string, destChainId: string): Promise<IBCConnectionInfo>;
2119
+ getConnectionInfo(chainId1: string, chainId2: string): Promise<IBCConnectionInfo>;
1830
2120
  };
1831
2121
  export function registerChain(agoricNamesAdmin: ERef<import("@agoric/vats").NameHubKit["nameAdmin"]>, name: string, chainInfo: CosmosChainInfo, log?: (...messages: string[]) => void): Promise<void>;
1832
2122
  export type ChainHub = ReturnType<typeof makeChainHub>;