@agoric/vats 0.15.2-dev-501c093.0 → 0.15.2-dev-db972d4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/vats",
3
- "version": "0.15.2-dev-501c093.0+501c093",
3
+ "version": "0.15.2-dev-db972d4.0+db972d4",
4
4
  "description": "Agoric's Vat library",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -22,18 +22,18 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/assert": "0.6.1-dev-501c093.0+501c093",
26
- "@agoric/ertp": "0.16.3-dev-501c093.0+501c093",
27
- "@agoric/governance": "0.10.4-dev-501c093.0+501c093",
28
- "@agoric/internal": "0.3.3-dev-501c093.0+501c093",
29
- "@agoric/network": "0.1.1-dev-501c093.0+501c093",
30
- "@agoric/notifier": "0.6.3-dev-501c093.0+501c093",
31
- "@agoric/store": "0.9.3-dev-501c093.0+501c093",
32
- "@agoric/swingset-vat": "0.32.3-dev-501c093.0+501c093",
33
- "@agoric/time": "0.3.3-dev-501c093.0+501c093",
34
- "@agoric/vat-data": "0.5.3-dev-501c093.0+501c093",
35
- "@agoric/zoe": "0.26.3-dev-501c093.0+501c093",
36
- "@agoric/zone": "0.2.3-dev-501c093.0+501c093",
25
+ "@agoric/assert": "0.6.1-dev-db972d4.0+db972d4",
26
+ "@agoric/ertp": "0.16.3-dev-db972d4.0+db972d4",
27
+ "@agoric/governance": "0.10.4-dev-db972d4.0+db972d4",
28
+ "@agoric/internal": "0.3.3-dev-db972d4.0+db972d4",
29
+ "@agoric/network": "0.1.1-dev-db972d4.0+db972d4",
30
+ "@agoric/notifier": "0.6.3-dev-db972d4.0+db972d4",
31
+ "@agoric/store": "0.9.3-dev-db972d4.0+db972d4",
32
+ "@agoric/swingset-vat": "0.32.3-dev-db972d4.0+db972d4",
33
+ "@agoric/time": "0.3.3-dev-db972d4.0+db972d4",
34
+ "@agoric/vat-data": "0.5.3-dev-db972d4.0+db972d4",
35
+ "@agoric/zoe": "0.26.3-dev-db972d4.0+db972d4",
36
+ "@agoric/zone": "0.2.3-dev-db972d4.0+db972d4",
37
37
  "@endo/far": "^1.0.4",
38
38
  "@endo/import-bundle": "^1.0.4",
39
39
  "@endo/marshal": "^1.3.0",
@@ -44,7 +44,7 @@
44
44
  "jessie.js": "^0.3.2"
45
45
  },
46
46
  "devDependencies": {
47
- "@agoric/swingset-liveslots": "0.10.3-dev-501c093.0+501c093",
47
+ "@agoric/swingset-liveslots": "0.10.3-dev-db972d4.0+db972d4",
48
48
  "@endo/bundle-source": "^3.1.0",
49
49
  "@endo/init": "^1.0.4",
50
50
  "ava": "^5.3.0",
@@ -77,5 +77,5 @@
77
77
  "typeCoverage": {
78
78
  "atLeast": 89.69
79
79
  },
80
- "gitHead": "501c0935022a258d973ecf840dcec87c369d8dac"
80
+ "gitHead": "db972d4615b3aaee60659a6c97f3d42487e50771"
81
81
  }
@@ -66,6 +66,7 @@ declare namespace modules {
66
66
  reserve: string;
67
67
  psm: string;
68
68
  scaledPriceAuthority: string;
69
+ stakeBld: string;
69
70
  econCommitteeCharter: string;
70
71
  priceAggregator: string;
71
72
  };
@@ -77,6 +78,7 @@ declare namespace modules {
77
78
  VaultFactory: string;
78
79
  Pegasus: string;
79
80
  reserve: string;
81
+ stakeBld: string;
80
82
  econCommitteeCharter: string;
81
83
  economicCommittee: string;
82
84
  VaultFactoryGovernor: string;
@@ -337,6 +339,7 @@ declare namespace modules {
337
339
  reserve: string;
338
340
  psm: string;
339
341
  scaledPriceAuthority: string;
342
+ stakeBld: string;
340
343
  econCommitteeCharter: string;
341
344
  priceAggregator: string;
342
345
  };
@@ -348,6 +351,7 @@ declare namespace modules {
348
351
  VaultFactory: string;
349
352
  Pegasus: string;
350
353
  reserve: string;
354
+ stakeBld: string;
351
355
  econCommitteeCharter: string;
352
356
  economicCommittee: string;
353
357
  VaultFactoryGovernor: string;
@@ -576,6 +580,7 @@ declare namespace modules {
576
580
  reserve: string;
577
581
  psm: string;
578
582
  scaledPriceAuthority: string;
583
+ stakeBld: string;
579
584
  econCommitteeCharter: string;
580
585
  priceAggregator: string;
581
586
  };
@@ -587,6 +592,7 @@ declare namespace modules {
587
592
  VaultFactory: string;
588
593
  Pegasus: string;
589
594
  reserve: string;
595
+ stakeBld: string;
590
596
  econCommitteeCharter: string;
591
597
  economicCommittee: string;
592
598
  VaultFactoryGovernor: string;
@@ -827,6 +833,7 @@ declare namespace modules {
827
833
  reserve: string;
828
834
  psm: string;
829
835
  scaledPriceAuthority: string;
836
+ stakeBld: string;
830
837
  econCommitteeCharter: string;
831
838
  priceAggregator: string;
832
839
  };
@@ -838,6 +845,7 @@ declare namespace modules {
838
845
  VaultFactory: string;
839
846
  Pegasus: string;
840
847
  reserve: string;
848
+ stakeBld: string;
841
849
  econCommitteeCharter: string;
842
850
  economicCommittee: string;
843
851
  VaultFactoryGovernor: string;
@@ -1062,6 +1070,7 @@ declare namespace modules {
1062
1070
  reserve: string;
1063
1071
  psm: string;
1064
1072
  scaledPriceAuthority: string;
1073
+ stakeBld: string;
1065
1074
  econCommitteeCharter: string;
1066
1075
  priceAggregator: string;
1067
1076
  };
@@ -1073,6 +1082,7 @@ declare namespace modules {
1073
1082
  VaultFactory: string;
1074
1083
  Pegasus: string;
1075
1084
  reserve: string;
1085
+ stakeBld: string;
1076
1086
  econCommitteeCharter: string;
1077
1087
  economicCommittee: string;
1078
1088
  VaultFactoryGovernor: string;
@@ -1297,6 +1307,7 @@ declare namespace modules {
1297
1307
  reserve: string;
1298
1308
  psm: string;
1299
1309
  scaledPriceAuthority: string;
1310
+ stakeBld: string;
1300
1311
  econCommitteeCharter: string;
1301
1312
  priceAggregator: string;
1302
1313
  };
@@ -1308,6 +1319,7 @@ declare namespace modules {
1308
1319
  VaultFactory: string;
1309
1320
  Pegasus: string;
1310
1321
  reserve: string;
1322
+ stakeBld: string;
1311
1323
  econCommitteeCharter: string;
1312
1324
  economicCommittee: string;
1313
1325
  VaultFactoryGovernor: string;
@@ -1528,6 +1540,7 @@ declare namespace modules {
1528
1540
  reserve: string;
1529
1541
  psm: string;
1530
1542
  scaledPriceAuthority: string;
1543
+ stakeBld: string;
1531
1544
  econCommitteeCharter: string;
1532
1545
  priceAggregator: string;
1533
1546
  };
@@ -1539,6 +1552,7 @@ declare namespace modules {
1539
1552
  VaultFactory: string;
1540
1553
  Pegasus: string;
1541
1554
  reserve: string;
1555
+ stakeBld: string;
1542
1556
  econCommitteeCharter: string;
1543
1557
  economicCommittee: string;
1544
1558
  VaultFactoryGovernor: string;
@@ -1759,6 +1773,7 @@ declare namespace modules {
1759
1773
  reserve: string;
1760
1774
  psm: string;
1761
1775
  scaledPriceAuthority: string;
1776
+ stakeBld: string;
1762
1777
  econCommitteeCharter: string;
1763
1778
  priceAggregator: string;
1764
1779
  };
@@ -1770,6 +1785,7 @@ declare namespace modules {
1770
1785
  VaultFactory: string;
1771
1786
  Pegasus: string;
1772
1787
  reserve: string;
1788
+ stakeBld: string;
1773
1789
  econCommitteeCharter: string;
1774
1790
  economicCommittee: string;
1775
1791
  VaultFactoryGovernor: string;
@@ -1998,6 +2014,7 @@ declare namespace modules {
1998
2014
  reserve: string;
1999
2015
  psm: string;
2000
2016
  scaledPriceAuthority: string;
2017
+ stakeBld: string;
2001
2018
  econCommitteeCharter: string;
2002
2019
  priceAggregator: string;
2003
2020
  };
@@ -2009,6 +2026,7 @@ declare namespace modules {
2009
2026
  VaultFactory: string;
2010
2027
  Pegasus: string;
2011
2028
  reserve: string;
2029
+ stakeBld: string;
2012
2030
  econCommitteeCharter: string;
2013
2031
  economicCommittee: string;
2014
2032
  VaultFactoryGovernor: string;
@@ -2240,6 +2258,7 @@ declare namespace modules {
2240
2258
  reserve: string;
2241
2259
  psm: string;
2242
2260
  scaledPriceAuthority: string;
2261
+ stakeBld: string;
2243
2262
  econCommitteeCharter: string;
2244
2263
  priceAggregator: string;
2245
2264
  };
@@ -2251,6 +2270,7 @@ declare namespace modules {
2251
2270
  VaultFactory: string;
2252
2271
  Pegasus: string;
2253
2272
  reserve: string;
2273
+ stakeBld: string;
2254
2274
  econCommitteeCharter: string;
2255
2275
  economicCommittee: string;
2256
2276
  VaultFactoryGovernor: string;
@@ -1 +1 @@
1
- {"version":3,"file":"boot-chain.d.ts","sourceRoot":"","sources":["boot-chain.js"],"names":[],"mappings":"AAmBA,iDAAiD;AAEjD,iEAAiD;AAc1C;OARC,MAAM;0BACQ,IAAI;kBAEf;IACV,qBAAyB,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC,WACO,OAAO,kBAAkB,EAAE,OAAO;;;;;;;;;;;;;;GAc5C;+BA5Ba,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAhBQ,sBAAsB"}
@@ -207,6 +207,7 @@ export function startWalletFactory({ vatParameters: { chainStorageEntries }, con
207
207
  reserve: string;
208
208
  psm: string;
209
209
  scaledPriceAuthority: string;
210
+ stakeBld: string;
210
211
  econCommitteeCharter: string;
211
212
  priceAggregator: string;
212
213
  };
@@ -218,6 +219,7 @@ export function startWalletFactory({ vatParameters: { chainStorageEntries }, con
218
219
  VaultFactory: string;
219
220
  Pegasus: string;
220
221
  reserve: string;
222
+ stakeBld: string;
221
223
  econCommitteeCharter: string;
222
224
  economicCommittee: string;
223
225
  VaultFactoryGovernor: string;
@@ -1 +1 @@
1
- {"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"AAiFO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAlB+B,OAAO,qCAAqC,EAAE,+BAA+B;oBAC5F;QACtB,YAAoB,EAAE,QACtB,WACA,oEAAyE,OAAO,CAAC,CACtE,CACF,CAAC,cAAc,CAAC,CAAC;QAC1B,UAAkB,EAAE,UAAU,CAAC;KACxB;yBACoB,OAAO,aAAa,EAAE,mBAAmB;kCAChC,OAAO,aAAa,EAAE,mBAAmB;;;;;8BAwL7E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCE;AAEK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWN;uCAjSY,QAAQ,WAAW,2BAA2B,CAAC,CAAC;uBAftC,gCAAgC;AASvD;;;;;;;GAOG;AAEH,2CARW,KAAK,UAAU,CAAC,QAChB,aACV,OAAW,2CAA2C,EAAE,KAAK,CAC1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKkE"}
@@ -179,6 +179,7 @@ type WellKnownName = {
179
179
  | 'reserve'
180
180
  | 'psm'
181
181
  | 'scaledPriceAuthority'
182
+ | 'stakeBld' // test contract
182
183
  | 'econCommitteeCharter'
183
184
  | 'priceAggregator';
184
185
  instance:
@@ -192,6 +193,7 @@ type WellKnownName = {
192
193
  | 'provisionPool'
193
194
  | 'reserve'
194
195
  | 'reserveGovernor'
196
+ | 'stakeBld' // test contract
195
197
  | 'Pegasus';
196
198
  oracleBrand: 'USD';
197
199
  uiConfig: 'VaultFactory';
@@ -29,6 +29,7 @@ export const agoricNamesReserved: {
29
29
  reserve: string;
30
30
  psm: string;
31
31
  scaledPriceAuthority: string;
32
+ stakeBld: string;
32
33
  econCommitteeCharter: string;
33
34
  priceAggregator: string;
34
35
  };
@@ -40,6 +41,7 @@ export const agoricNamesReserved: {
40
41
  VaultFactory: string;
41
42
  Pegasus: string;
42
43
  reserve: string;
44
+ stakeBld: string;
43
45
  econCommitteeCharter: string;
44
46
  economicCommittee: string;
45
47
  VaultFactoryGovernor: string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyDG;AAEH,8BAA8B;AAC9B,8BADW,eAAe,CAKxB;AAQK,gCAHI,MAAM,8BACN;IAAE,IAAI,EAAE;QAAE,KAAK,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,YAAY,CAAA;KAAE,CAAA;CAAE,iBAK5D;AAQM,8DAJkB,OAAO,MAAM,EAAE,OAAO,CAAC,cAClC,OAAO,KACR,OAAO,MAAM,EAAE,OAAO,CAAC,CAG0B;AAWvD,kCALI,IAAI,GAAG,MAAM,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC,YAEnC,OAAO,oCAkCjB;AAQM,sCAJI,IAAI,GAAG,MAAM,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC,aAEnC,OAAO,OAYjB;AAUM;eALI,OAAO;eACP,OAAO,MAAM,EAAE,OAAO,CAAC;cACvB,OAAO,MAAM,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAC;uBAChC,MAAM,UAAU,OAAO,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO;mBAwBpE;AASM,sDAHI,KAAK,OAAO,aAAa,EAAE,SAAS,CAAC;;;4CAyB/C;AAOM,iDAJI,KAAK,OAAO,aAAa,EAAE,SAAS,CAAC;;;uEAsB/C;AAoBM;;;0BAXI,OAAO,MAAM,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAC;iBAMhC,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,iDAJI,KAAK,OAAO,aAAa,EAAE,SAAS,CAAC;;;uEAsB/C;AAoBM;;;0BAXI,OAAO,MAAM,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAC;iBAMhC,OAAO,aAAa,EAAE,OAAO;sBACxB,OAAO,aAAa,EAAE,SAAS;YACzC,eAAe;GAuB3B;AAMM,mDAFI,MAAM;;;EAgBhB;AAaM,kCAVI,KAAK,WAAW,QAAQ,WAAW,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,kBAC/D,OAAO,mBACG,GAAG,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDhC;;;;+BApDY,OAAO,sBAAsB,EAAE,gBAAgB;uBAG/C,SAAS,MAAM,EAAE,gBAAgB,CAAC"}
package/src/core/utils.js CHANGED
@@ -56,6 +56,7 @@ export const agoricNamesReserved = harden({
56
56
  econCommitteeCharter: 'Charter for Econ Governance questions',
57
57
  priceAggregator: 'simple price aggregator',
58
58
  scaledPriceAuthority: 'scaled price authority',
59
+ stakeBld: 'example BLD staking contract',
59
60
  },
60
61
  instance: {
61
62
  economicCommittee: 'Economic Committee',
@@ -69,6 +70,7 @@ export const agoricNamesReserved = harden({
69
70
  econCommitteeCharter: 'Charter for Econ Governance questions',
70
71
  provisionPool: 'Account Provision Pool',
71
72
  walletFactory: 'Smart Wallet Factory',
73
+ stakeBld: 'example BLD staking contract',
72
74
  },
73
75
  oracleBrand: {
74
76
  USD: 'US Dollar',
package/src/ibc.d.ts CHANGED
@@ -17,7 +17,7 @@ export function prepareIBCProtocol(zone: import('@agoric/base-zone').Zone, power
17
17
  isRetryableReason?: ((reason: any) => boolean) | undefined;
18
18
  watchPromise?: ((p: PromiseLike<any>, watcher: import("@agoric/vow/src/watch-promise.js").PromiseWatcher, ...args: unknown[]) => void) | undefined;
19
19
  } | undefined) => {
20
- when: <T = any, TResult1 = import("@agoric/vow/src/E.js").Unwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow/src/E.js").Unwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
20
+ when: <T, TResult1 = import("@agoric/vow").Unwrap<T>, TResult2 = never>(specimenP: T, onFulfilled?: ((value: import("@agoric/vow").Unwrap<T>) => TResult1 | PromiseLike<TResult1>) | undefined, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined) => Promise<TResult1 | TResult2>;
21
21
  watch: <T_1 = any, TResult1_1 = T_1, TResult2_1 = T_1>(specimenP: import("@agoric/vow").ERef<T_1 | import("@agoric/vow").Vow<T_1>>, watcher?: import("@agoric/vow").Watcher<T_1, TResult1_1, TResult2_1> | undefined, watcherContext?: unknown) => import("@agoric/vow").Vow<TResult1_1 | TResult2_1>;
22
22
  makeVowKit: <T_2>() => import("@agoric/vow").VowKit<T_2>;
23
23
  allVows: (vows: any) => import("@agoric/vow").Vow<any>;
package/src/ibc.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ibc.d.ts","sourceRoot":"","sources":["ibc.js"],"names":[],"mappings":"AA2DO,kDADK,OAAO,mBAAmB,EAAE,IAAI;;IA+CtC;;;;;;;OAOG;qBANQ,UAAU,eACV,KAAK,YACL,iBAAiB;QAEF,iBAAiB;QAC9B,WAAW,KAAK,CAAC;;GA6CnC;AAMM,yCAHI,OAAO,mBAAmB,EAAE,IAAI,UAChC;;;;;;;;EAAiD;qBAgBlC,eAAe;mBACjB,aAAa;;;;;;;;;;;;;;;EA6lBpC;AAKM,uCADK,OAAO,mBAAmB,EAAE,IAAI;;GAkB3C;4BAnxBa,OAAO,YAAY,EAAE,aAAa;wBAGnC,MAAM;2BAEN,MAAM;8BAEN,MAAM;;;oBAML,YAAY;iBACZ,SAAS;yBACT,YAAY;sBACZ,SAAS;;;aAKT,MAAM;gBACN,MAAM;;;WAGN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@agoric/network/exported.js';
12
12
  // empty acknowledgements as distinct from unacknowledged packets.
13
13
  const DEFAULT_ACKNOWLEDGEMENT = '\x00';
14
14
 
15
- // Default timeout after 10 minutes.
16
- const DEFAULT_PACKET_TIMEOUT_NS = 10n * 60n * 1_000_000_000n;
15
+ // Default timeout after 60 minutes.
16
+ const DEFAULT_PACKET_TIMEOUT_NS = 60n * 60n * 1_000_000_000n;
17
17
 
18
18
  /** @typedef {import('./types.js').BridgeHandler} BridgeHandler */
19
19
 
@@ -194,13 +194,18 @@ export const prepareIBCProtocol = (zone, powers) => {
194
194
  'IBCProtocolHandler',
195
195
  undefined,
196
196
  ibcdev => {
197
- /** @type {MapStore<string, Connection>} */
197
+ /** @type {MapStore<string, import('@agoric/vow').Remote<Connection>>} */
198
198
  const channelKeyToConnP = detached.mapStore('channelKeyToConnP');
199
199
 
200
200
  /** @type {MapStore<string, ConnectingInfo>} */
201
201
  const channelKeyToInfo = detached.mapStore('channelKeyToInfo');
202
202
 
203
- /** @type {MapStore<string, InboundAttempt>} */
203
+ /**
204
+ * @type {MapStore<
205
+ * string,
206
+ * import('@agoric/vow').Remote<InboundAttempt>
207
+ * >}
208
+ */
204
209
  const channelKeyToAttempt = detached.mapStore('channelKeyToAttempt');
205
210
 
206
211
  /** @type {MapStore<string, Outbound[]>} */
@@ -230,8 +235,9 @@ export const prepareIBCProtocol = (zone, powers) => {
230
235
  srcPortToOutbounds,
231
236
  channelKeyToSeqAck,
232
237
  portToPendingConns,
233
- lastPortID: 0, // Nonce for creating port identifiers.
234
- /** @type {ProtocolImpl | undefined} */ protocolImpl: undefined,
238
+ lastPortID: 0n, // Nonce for creating port identifiers.
239
+ /** @type {import('@agoric/vow').Remote<ProtocolImpl> | null} */
240
+ protocolImpl: null,
235
241
  };
236
242
  },
237
243
  {
@@ -245,7 +251,7 @@ export const prepareIBCProtocol = (zone, powers) => {
245
251
  return '';
246
252
  },
247
253
  async generatePortID(_localAddr, _protocolHandler) {
248
- this.state.lastPortID += 1;
254
+ this.state.lastPortID += 1n;
249
255
  return `port-${this.state.lastPortID}`;
250
256
  },
251
257
  async onBind(port, localAddr, _protocolHandler) {
@@ -315,7 +321,10 @@ export const prepareIBCProtocol = (zone, powers) => {
315
321
  onConnectP: kit,
316
322
  localAddr,
317
323
  };
318
- if (!srcPortToOutbounds.has(portID)) {
324
+ if (srcPortToOutbounds.has(portID)) {
325
+ const outbounds = srcPortToOutbounds.get(portID);
326
+ srcPortToOutbounds.set(portID, harden([...outbounds, ob]));
327
+ } else {
319
328
  srcPortToOutbounds.init(portID, harden([ob]));
320
329
  }
321
330
 
@@ -426,11 +435,10 @@ export const prepareIBCProtocol = (zone, powers) => {
426
435
  // e => console.warn('Manual packet', e, 'failed:', e),
427
436
  // );
428
437
 
438
+ assert(protocolImpl);
439
+
429
440
  return watch(
430
- /** @type {ProtocolImpl} */ (protocolImpl).inbound(
431
- localAddr,
432
- remoteAddr,
433
- ),
441
+ E(protocolImpl).inbound(localAddr, remoteAddr),
434
442
  this.facets.protocolImplInboundWatcher,
435
443
  {
436
444
  obj,
@@ -556,7 +564,7 @@ export const prepareIBCProtocol = (zone, powers) => {
556
564
  const conn = channelKeyToConnP.get(channelKey);
557
565
  const data = base64ToBytes(data64);
558
566
 
559
- return watch(conn.send(data), this.facets.ackWatcher, {
567
+ return watch(E(conn).send(data), this.facets.ackWatcher, {
560
568
  packet,
561
569
  });
562
570
  }
@@ -592,7 +600,7 @@ export const prepareIBCProtocol = (zone, powers) => {
592
600
  if (channelKeyToConnP.has(channelKey)) {
593
601
  const conn = channelKeyToConnP.get(channelKey);
594
602
  channelKeyToConnP.delete(channelKey);
595
- void conn.close();
603
+ void E(conn).close();
596
604
  }
597
605
  break;
598
606
  }
@@ -664,7 +672,7 @@ export const prepareIBCProtocol = (zone, powers) => {
664
672
  return seqToAck.get(sequence);
665
673
  }
666
674
  const kit = makeVowKit();
667
- seqToAck.init(sequence, harden(kit));
675
+ seqToAck.init(sequence, kit);
668
676
  return kit;
669
677
  },
670
678
  },
@@ -3,6 +3,11 @@ export const LocalChainAccountI: import("@endo/patterns").InterfaceGuard<{
3
3
  deposit: import("@endo/patterns").MethodGuard;
4
4
  executeTx: import("@endo/patterns").MethodGuard;
5
5
  }>;
6
+ /**
7
+ * @typedef {Awaited<
8
+ * ReturnType<Awaited<ReturnType<typeof prepareLocalChainAccount>>>
9
+ * >} LocalChainAccount
10
+ */
6
11
  export const LocalChainI: import("@endo/patterns").InterfaceGuard<{
7
12
  createAccount: import("@endo/patterns").MethodGuard;
8
13
  query: import("@endo/patterns").MethodGuard;
@@ -38,7 +43,11 @@ export function prepareLocalChainTools(zone: import('@agoric/base-zone').Zone):
38
43
  * @param {Payment} payment
39
44
  */
40
45
  deposit(payment: Payment): Promise<Amount<AssetKind>>;
41
- executeTx(messages: any): Promise<any>;
46
+ /**
47
+ * @param {Proto3Jsonable[]} messages
48
+ * @returns {Promise<Proto3Jsonable[]>}
49
+ */
50
+ executeTx(messages: Proto3Jsonable[]): Promise<Proto3Jsonable[]>;
42
51
  }>>;
43
52
  /**
44
53
  * Make a single query to the local chain. Will reject with an error if
@@ -73,7 +82,26 @@ export type LocalChainPowers = {
73
82
  bankManager: import('./vat-bank.js').BankManager;
74
83
  };
75
84
  export type PowerStore = MapStore<keyof LocalChainPowers, LocalChainPowers[keyof LocalChainPowers]>;
85
+ export type LocalChainAccount = Awaited<ReturnType<Awaited<ReturnType<typeof prepareLocalChainAccount>>>>;
76
86
  export type LocalChainTools = ReturnType<typeof prepareLocalChainTools>;
77
87
  export type LocalChainKit = ReturnType<LocalChainTools['makeLocalChain']>;
78
88
  export type LocalChain = LocalChainKit['public'];
89
+ /** @param {import('@agoric/base-zone').Zone} zone */
90
+ declare function prepareLocalChainAccount(zone: import('@agoric/base-zone').Zone): (address: string, powers: PowerStore) => import("@endo/exo/src/exo-makers.js").Guarded<{
91
+ getAddress(): Promise<string>;
92
+ /**
93
+ * Deposit a payment into the bank purse that matches the alleged brand.
94
+ * This is safe, since even if the payment lies about its brand, ERTP will
95
+ * reject spoofed payment objects when depositing into a purse.
96
+ *
97
+ * @param {Payment} payment
98
+ */
99
+ deposit(payment: Payment): Promise<Amount<AssetKind>>;
100
+ /**
101
+ * @param {Proto3Jsonable[]} messages
102
+ * @returns {Promise<Proto3Jsonable[]>}
103
+ */
104
+ executeTx(messages: Proto3Jsonable[]): Promise<Proto3Jsonable[]>;
105
+ }>;
106
+ export {};
79
107
  //# sourceMappingURL=localchain.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"localchain.d.ts","sourceRoot":"","sources":["localchain.js"],"names":[],"mappings":"AAoCA;;;;GAMG;AAkDH;;;;GAIG;AAEH;;GAEG;AAiGI,6CADK,OAAO,mBAAmB,EAAE,IAAI;;;YAzEpC;;;;eAIG;;;;YAgBH;;;;;eAKG;;;gBAzFL;;;;;;mBAMG;iCADQ,OAAO;;;YA6FhB;;;;;;;eAOG;2BAFQ,cAAc,GACZ,QAAQ,cAAc,CAAC;YAapC;;;;;;;eAOG;gCAFQ,cAAc,EAAE,GACd,QAAQ;gBAAE,KAAK,CAAC,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,cAAc,CAAA;aAAE,EAAE,CAAC;;;EAoBxE;;;aAjMa,MAAM;;+BAMP;IACZ,MAAU,EAAE,OAAO,YAAY,EAAE,mBAAmB,CAAC;IACrD,WAAe,EAAE,OAAO,eAAe,EAAE,WAAW,CAAC;CAClD;yBAES,SACZ,MAAU,gBAAgB,EAC1B,gBAAoB,CAAC,MAAM,gBAAgB,CAAC,CACzC;8BAsLU,WAAW,6BAA6B,CAAC;4BACzC,WAAW,eAAe,CAAC,gBAAgB,CAAC,CAAC;yBAC7C,aAAa,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"localchain.d.ts","sourceRoot":"","sources":["localchain.js"],"names":[],"mappings":"AAoCA;;;;GAMG;AAqDH;;;;GAIG;AAEH;;;;GAIG;AAEH;;GAEG;AAiGI,6CADK,OAAO,mBAAmB,EAAE,IAAI;;;YAzEpC;;;;eAIG;;;;YAgBH;;;;;eAKG;;;gBAlGL;;;;;;mBAMG;iCADQ,OAAO;gBAYlB;;;mBAGG;oCAFQ,cAAc,EAAE,GACd,QAAQ,cAAc,EAAE,CAAC;;YAwFpC;;;;;;;eAOG;2BAFQ,cAAc,GACZ,QAAQ,cAAc,CAAC;YAapC;;;;;;;eAOG;gCAFQ,cAAc,EAAE,GACd,QAAQ;gBAAE,KAAK,CAAC,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,cAAc,CAAA;aAAE,EAAE,CAAC;;;EAoBxE;;;aA1Ma,MAAM;;+BAMP;IACZ,MAAU,EAAE,OAAO,YAAY,EAAE,mBAAmB,CAAC;IACrD,WAAe,EAAE,OAAO,eAAe,EAAE,WAAW,CAAC;CAClD;yBAES,SACZ,MAAU,gBAAgB,EAC1B,gBAAoB,CAAC,MAAM,gBAAgB,CAAC,CACzC;gCAyES,QACZ,WAAe,QAAQ,WAAW,+BAA+B,CAAC,CAAC,CAAC,CACjE;8BAoHU,WAAW,6BAA6B,CAAC;4BACzC,WAAW,eAAe,CAAC,gBAAgB,CAAC,CAAC;yBAC7C,aAAa,CAAC,QAAQ,CAAC;AA5KrC,qDAAqD;AACrD,gDADY,OAAO,mBAAmB,EAAE,IAAI;;IAetC;;;;;;OAMG;qBADQ,OAAO;IAYlB;;;OAGG;wBAFQ,cAAc,EAAE,GACd,QAAQ,cAAc,EAAE,CAAC;GAgBzC"}
package/src/localchain.js CHANGED
@@ -74,6 +74,10 @@ const prepareLocalChainAccount = zone =>
74
74
  const allegedPurse = E(bankAcct).getPurse(allegedBrand);
75
75
  return E(allegedPurse).deposit(payment);
76
76
  },
77
+ /**
78
+ * @param {Proto3Jsonable[]} messages
79
+ * @returns {Promise<Proto3Jsonable[]>}
80
+ */
77
81
  async executeTx(messages) {
78
82
  const { address, powers } = this.state;
79
83
  const obj = {
@@ -89,6 +93,11 @@ const prepareLocalChainAccount = zone =>
89
93
  },
90
94
  },
91
95
  );
96
+ /**
97
+ * @typedef {Awaited<
98
+ * ReturnType<Awaited<ReturnType<typeof prepareLocalChainAccount>>>
99
+ * >} LocalChainAccount
100
+ */
92
101
 
93
102
  export const LocalChainI = M.interface('LocalChain', {
94
103
  createAccount: M.callWhen().returns(M.remotable('LocalChainAccount')),
@@ -207,6 +207,7 @@ export function setupLocalChainVat({ consume: { loadCriticalVat, bridgeManager:
207
207
  reserve: string;
208
208
  psm: string;
209
209
  scaledPriceAuthority: string;
210
+ stakeBld: string;
210
211
  econCommitteeCharter: string;
211
212
  priceAggregator: string;
212
213
  };
@@ -218,6 +219,7 @@ export function setupLocalChainVat({ consume: { loadCriticalVat, bridgeManager:
218
219
  VaultFactory: string;
219
220
  Pegasus: string;
220
221
  reserve: string;
222
+ stakeBld: string;
221
223
  econCommitteeCharter: string;
222
224
  economicCommittee: string;
223
225
  VaultFactoryGovernor: string;
@@ -1 +1 @@
1
- {"version":3,"file":"localchain-proposal.d.ts","sourceRoot":"","sources":["localchain-proposal.js"],"names":[],"mappings":"AA0BO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAnBiB,UAAU,GAAG,CAAC;uBAChB,OAAO,UAAU,EAAE,aAAa;iCACtB,OAAO,UAAU,EAAE,mBAAmB;qBAClD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;QACb,UAAgB,EAAE,SAAS,GAAG,CAAC,CAAC;QAChC,eAAqB,EAAE,SAAS,GAAG,CAAC,CAAC;QACrC,aAAmB,EAAE,SAAS,GAAG,CAAC,CAAC;QACnC,uBAA6B,EAAE,SAAS,GAAG,CAAC,CAAC;KACxC;;;uBAGsB,YAAY;;kBAoFvC;AAUM,2EAPI,eAAe,GAAG;IAC5B,OAAW,EAAE;QACb,UAAgB,EAAE,OAAO,kBAAkB,EAAE,UAAU,CAAC;KACnD,CAAC;CACH,YACO,MAAM,iBAOhB;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BL;6BA/HW;IACZ,UAAc,EAAE,KAAK,OAAO,sBAAsB,EAAE,aAAa,CAAC,CAAC;CAChE"}
@@ -1 +1 @@
1
- {"version":3,"file":"network-proposal.d.ts","sourceRoot":"","sources":["network-proposal.js"],"names":[],"mappings":"AAiBO,+CAHI,QAAQ,GAAG,OAAO,kGAoC5B;AAqCM,gOAhBI,eAAe,GAAG;IAC5B,OAAW,EAAE;QAAE,eAAe,EAAE,UAAU,GAAG,CAAC,CAAA;KAAE,CAAC;IACjD,OAAW,EAAE;QAAE,UAAU,EAAE,SAAS,GAAG,CAAC,CAAA;KAAE,CAAC;CACxC;;oBAEqB,YAAY;gBAAU,YAAY;;kBAiF1D;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;EAsBL;;;;;;;;;;;;;;;;;;;;iCAtGmB,SAAS,KAAK,UAAU,YAAY,KAAK,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;sBAE5D;IACZ,OAAW,EAAE,KAAK,UAAU,CAAC,CAAC;IAC9B,GAAO,EAAE,KAAK,MAAM,CAAC,CAAC;IACtB,YAAgB,EAAE,KAAK,eAAe,GAAG,SAAS,CAAC,CAAC;CACjD"}
1
+ {"version":3,"file":"network-proposal.d.ts","sourceRoot":"","sources":["network-proposal.js"],"names":[],"mappings":"AAoBO,+CAHI,QAAQ,GAAG,OAAO,kGAuC5B;AAqCM,gOAhBI,eAAe,GAAG;IAC5B,OAAW,EAAE;QAAE,eAAe,EAAE,UAAU,GAAG,CAAC,CAAA;KAAE,CAAC;IACjD,OAAW,EAAE;QAAE,UAAU,EAAE,SAAS,GAAG,CAAC,CAAA;KAAE,CAAC;CACxC;;oBAEqB,YAAY;gBAAU,YAAY;;kBA4E1D;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;EAsBL;;;;;;;;;;;;;;;;;;;;iCAjGmB,SAAS,KAAK,UAAU,YAAY,KAAK,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;sBAE5D;IACZ,OAAW,EAAE,KAAK,UAAU,CAAC,CAAC;IAC9B,GAAO,EAAE,KAAK,MAAM,CAAC,CAAC;IACtB,YAAgB,EAAE,KAAK,eAAe,GAAG,SAAS,CAAC,CAAC;CACjD"}
@@ -4,10 +4,13 @@
4
4
  */
5
5
  import { E } from '@endo/far';
6
6
  import { BridgeId as BRIDGE_ID } from '@agoric/internal';
7
- import { prepareVowTools } from '@agoric/vat-data/vow.js';
8
- import { makeHeapZone } from '@agoric/zone';
7
+
9
8
  import { makeScalarBigMapStore } from '@agoric/vat-data';
10
9
 
10
+ // Heap-based vow resolution is used for this module because the
11
+ // bootstrap vat can't yet be upgraded.
12
+ import { when } from '@agoric/vat-data/vow.js';
13
+
11
14
  const NUM_IBC_PORTS_PER_CLIENT = 3;
12
15
  const INTERCHAIN_ACCOUNT_CONTROLLER_PORT_PREFIX = 'icacontroller-';
13
16
 
@@ -16,9 +19,12 @@ const INTERCHAIN_ACCOUNT_CONTROLLER_PORT_PREFIX = 'icacontroller-';
16
19
  * @param {ERef<import('../types.js').ScopedBridgeManager>} [dibcBridgeManager]
17
20
  */
18
21
  export const registerNetworkProtocols = async (vats, dibcBridgeManager) => {
22
+ /** @type {Promise<void>[]} */
19
23
  const ps = [];
20
24
 
21
- const loopbackHandler = await E(vats.network).makeLoopbackProtocolHandler();
25
+ const loopbackHandler = /** @type {Remote<ProtocolHandler>} */ (
26
+ await E(vats.network).makeLoopbackProtocolHandler()
27
+ );
22
28
  // Every vat has a loopback device.
23
29
  ps.push(E(vats.network).registerProtocolHandler(['/local'], loopbackHandler));
24
30
 
@@ -42,8 +48,8 @@ export const registerNetworkProtocols = async (vats, dibcBridgeManager) => {
42
48
  ),
43
49
  );
44
50
  } else {
45
- const loHandler = await E(vats.network).makeLoopbackProtocolHandler(
46
- 'ibc-channel/channel-',
51
+ const loHandler = /** @type {Remote<ProtocolHandler>} */ (
52
+ await E(vats.network).makeLoopbackProtocolHandler('ibc-channel/channel-')
47
53
  );
48
54
  ps.push(E(vats.network).registerProtocolHandler(['/ibc-port'], loHandler));
49
55
  }
@@ -134,7 +140,7 @@ export const setupNetworkProtocols = async (
134
140
  lastICAPort += 1;
135
141
  bindAddr += `${INTERCHAIN_ACCOUNT_CONTROLLER_PORT_PREFIX}${lastICAPort}`;
136
142
  }
137
- const port = E(vats.network).bind(bindAddr);
143
+ const port = when(E(vats.network).bind(bindAddr));
138
144
  ibcportP.push(port);
139
145
  }
140
146
  return Promise.all(ibcportP);
@@ -145,15 +151,10 @@ export const setupNetworkProtocols = async (
145
151
  // ibc-port etc.
146
152
  await registerNetworkProtocols(vats, dibcBridgeManager);
147
153
 
148
- // Heap-based vow resolution is used for this module because the
149
- // bootstrap vat can't yet be upgraded.
150
- const powers = prepareVowTools(makeHeapZone());
151
-
152
- const { when } = powers;
153
154
  // Add an echo listener on our ibc-port network (whether real or virtual).
154
155
  const echoPort = await when(E(vats.network).bind('/ibc-port/echo'));
155
156
  const { listener } = await E(vats.network).makeEchoConnectionKit();
156
- await E(echoPort).addListener(listener);
157
+ await when(E(echoPort).addListener(listener));
157
158
  return E(client).assignBundle([_a => ({ ibcport: makePorts() })]);
158
159
  };
159
160
 
@@ -13,7 +13,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
13
13
  createAccount(): Promise<import("@endo/exo/src/exo-makers.js").Guarded<{
14
14
  getAddress(): Promise<string>;
15
15
  deposit(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
16
- executeTx(messages: any): Promise<any>;
16
+ executeTx(messages: import("./localchain.js").Proto3Jsonable[]): Promise<import("./localchain.js").Proto3Jsonable[]>;
17
17
  }>>;
18
18
  query(request: import("./localchain.js").Proto3Jsonable): Promise<import("./localchain.js").Proto3Jsonable>;
19
19
  queryMany(requests: import("./localchain.js").Proto3Jsonable[]): Promise<{
@@ -37,7 +37,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
37
37
  createAccount(): Promise<import("@endo/exo/src/exo-makers.js").Guarded<{
38
38
  getAddress(): Promise<string>;
39
39
  deposit(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
40
- executeTx(messages: any): Promise<any>;
40
+ executeTx(messages: import("./localchain.js").Proto3Jsonable[]): Promise<import("./localchain.js").Proto3Jsonable[]>;
41
41
  }>>;
42
42
  query(request: import("./localchain.js").Proto3Jsonable): Promise<import("./localchain.js").Proto3Jsonable>;
43
43
  queryMany(requests: import("./localchain.js").Proto3Jsonable[]): Promise<{
@@ -3,10 +3,10 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
3
3
  onCreate(_impl: any, _protocolHandler: any): Promise<void>;
4
4
  generatePortID(_localAddr: any, _protocolHandler: any): Promise<string>;
5
5
  onBind(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
6
- onConnect(_port: any, localAddr: any, remoteAddr: any, _chandler: any, protocolHandler: any): Promise<import("@agoric/vow").Vow<any>>;
6
+ onConnect(_port: any, localAddr: string, remoteAddr: string): PromiseVow<AttemptDescription>;
7
7
  onInstantiate(_port: any, _localAddr: any, _remote: any, _protocol: any): Promise<string>;
8
8
  onListen(port: any, localAddr: any, listenHandler: any, _protocolHandler: any): Promise<void>;
9
- onListenRemove(port: Port, localAddr: string, listenHandler: ListenHandler, _protocolHandler: any): Promise<void>;
9
+ onListenRemove(port: Remote<Port>, localAddr: string, listenHandler: Remote<ListenHandler>, _protocolHandler: any): Promise<void>;
10
10
  onRevoke(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
11
11
  }>;
12
12
  makeEchoConnectionKit: () => import("@endo/exo/src/exo-makers").GuardedKit<{
@@ -23,9 +23,9 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
23
23
  };
24
24
  }>;
25
25
  /** @param {Parameters<typeof protocol.registerProtocolHandler>} args */
26
- registerProtocolHandler: (paths: string[], protocolHandler: ProtocolHandler) => void;
26
+ registerProtocolHandler: (paths: string[], protocolHandler: Remote<ProtocolHandler>) => void;
27
27
  /** @param {Parameters<typeof protocol.unregisterProtocolHandler>} args */
28
- unregisterProtocolHandler: (prefix: string, protocolHandler: ProtocolHandler) => void;
28
+ unregisterProtocolHandler: (prefix: string, protocolHandler: Remote<ProtocolHandler>) => void;
29
29
  /** @param {Parameters<typeof protocol.bind>} args */
30
30
  bind: (localAddr: string) => Promise<Port | import("@agoric/vow").Vow<Port>>;
31
31
  } & import("@endo/eventual-send").RemotableBrand<{}, {
@@ -33,10 +33,10 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
33
33
  onCreate(_impl: any, _protocolHandler: any): Promise<void>;
34
34
  generatePortID(_localAddr: any, _protocolHandler: any): Promise<string>;
35
35
  onBind(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
36
- onConnect(_port: any, localAddr: any, remoteAddr: any, _chandler: any, protocolHandler: any): Promise<import("@agoric/vow").Vow<any>>;
36
+ onConnect(_port: any, localAddr: string, remoteAddr: string): PromiseVow<AttemptDescription>;
37
37
  onInstantiate(_port: any, _localAddr: any, _remote: any, _protocol: any): Promise<string>;
38
38
  onListen(port: any, localAddr: any, listenHandler: any, _protocolHandler: any): Promise<void>;
39
- onListenRemove(port: Port, localAddr: string, listenHandler: ListenHandler, _protocolHandler: any): Promise<void>;
39
+ onListenRemove(port: Remote<Port>, localAddr: string, listenHandler: Remote<ListenHandler>, _protocolHandler: any): Promise<void>;
40
40
  onRevoke(_port: any, _localAddr: any, _protocolHandler: any): Promise<void>;
41
41
  }>;
42
42
  makeEchoConnectionKit: () => import("@endo/exo/src/exo-makers").GuardedKit<{
@@ -53,9 +53,9 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
53
53
  };
54
54
  }>;
55
55
  /** @param {Parameters<typeof protocol.registerProtocolHandler>} args */
56
- registerProtocolHandler: (paths: string[], protocolHandler: ProtocolHandler) => void;
56
+ registerProtocolHandler: (paths: string[], protocolHandler: Remote<ProtocolHandler>) => void;
57
57
  /** @param {Parameters<typeof protocol.unregisterProtocolHandler>} args */
58
- unregisterProtocolHandler: (prefix: string, protocolHandler: ProtocolHandler) => void;
58
+ unregisterProtocolHandler: (prefix: string, protocolHandler: Remote<ProtocolHandler>) => void;
59
59
  /** @param {Parameters<typeof protocol.bind>} args */
60
60
  bind: (localAddr: string) => Promise<Port | import("@agoric/vow").Vow<Port>>;
61
61
  }>;