@agoric/orchestration 0.1.1-dev-6073b2b.0 → 0.1.1-dev-44926a7.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/orchestration",
3
- "version": "0.1.1-dev-6073b2b.0+6073b2b",
3
+ "version": "0.1.1-dev-44926a7.0+44926a7",
4
4
  "description": "Chain abstraction for Agoric's orchestration clients",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -33,20 +33,20 @@
33
33
  },
34
34
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
35
35
  "dependencies": {
36
- "@agoric/assert": "0.6.1-dev-6073b2b.0+6073b2b",
37
- "@agoric/async-flow": "0.1.1-dev-6073b2b.0+6073b2b",
38
- "@agoric/cosmic-proto": "0.4.1-dev-6073b2b.0+6073b2b",
39
- "@agoric/ertp": "0.16.3-dev-6073b2b.0+6073b2b",
40
- "@agoric/internal": "0.3.3-dev-6073b2b.0+6073b2b",
41
- "@agoric/network": "0.1.1-dev-6073b2b.0+6073b2b",
42
- "@agoric/notifier": "0.6.3-dev-6073b2b.0+6073b2b",
43
- "@agoric/store": "0.9.3-dev-6073b2b.0+6073b2b",
44
- "@agoric/time": "0.3.3-dev-6073b2b.0+6073b2b",
45
- "@agoric/vat-data": "0.5.3-dev-6073b2b.0+6073b2b",
46
- "@agoric/vats": "0.15.2-dev-6073b2b.0+6073b2b",
47
- "@agoric/vow": "0.1.1-dev-6073b2b.0+6073b2b",
48
- "@agoric/zoe": "0.26.3-dev-6073b2b.0+6073b2b",
49
- "@agoric/zone": "0.2.3-dev-6073b2b.0+6073b2b",
36
+ "@agoric/assert": "0.6.1-dev-44926a7.0+44926a7",
37
+ "@agoric/async-flow": "0.1.1-dev-44926a7.0+44926a7",
38
+ "@agoric/cosmic-proto": "0.4.1-dev-44926a7.0+44926a7",
39
+ "@agoric/ertp": "0.16.3-dev-44926a7.0+44926a7",
40
+ "@agoric/internal": "0.3.3-dev-44926a7.0+44926a7",
41
+ "@agoric/network": "0.1.1-dev-44926a7.0+44926a7",
42
+ "@agoric/notifier": "0.6.3-dev-44926a7.0+44926a7",
43
+ "@agoric/store": "0.9.3-dev-44926a7.0+44926a7",
44
+ "@agoric/time": "0.3.3-dev-44926a7.0+44926a7",
45
+ "@agoric/vat-data": "0.5.3-dev-44926a7.0+44926a7",
46
+ "@agoric/vats": "0.15.2-dev-44926a7.0+44926a7",
47
+ "@agoric/vow": "0.1.1-dev-44926a7.0+44926a7",
48
+ "@agoric/zoe": "0.26.3-dev-44926a7.0+44926a7",
49
+ "@agoric/zone": "0.2.3-dev-44926a7.0+44926a7",
50
50
  "@endo/base64": "^1.0.5",
51
51
  "@endo/far": "^1.1.2",
52
52
  "@endo/marshal": "^1.5.0",
@@ -90,5 +90,5 @@
90
90
  "typeCoverage": {
91
91
  "atLeast": 97.1
92
92
  },
93
- "gitHead": "6073b2bd663ac7c2e541d534ffc8959f44470a06"
93
+ "gitHead": "44926a7a3ed286c3ca634ab86851f47beb9998b3"
94
94
  }
@@ -5,6 +5,7 @@
5
5
  * @import {LocalChain} from '@agoric/vats/src/localchain.js';
6
6
  * @import {OrchestrationService} from '../service.js';
7
7
  * @import {NameHub} from '@agoric/vats';
8
+ * @import {VBankAssetDetail} from '@agoric/vats/tools/board-utils.js';
8
9
  * @import {Remote} from '@agoric/vow';
9
10
  */
10
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"sendAnywhere.contract.d.ts","sourceRoot":"","sources":["sendAnywhere.contract.js"],"names":[],"mappings":"AAYA;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AAEH,kEAKE;AASK,2BANI,GAAG,eACH,mBAAmB,GAAG;IAChC,UAAc,EAAE,UAAU,CAAC;CACxB,WACO,OAAO;;;;;QA2FZ;;;WAGG;4BAFQ,eAAe,kBACf,iBAAiB;;GAmBjC;kCArIY;IACZ,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,oBAAoB,CAAC,CAAC;IACvD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;CAC9B;6BAhBsB,kBAAkB;qCACS,eAAe;uCAAf,eAAe;gCAEvC,gCAAgC;4BAGpC,aAAa;0CAFC,eAAe;kCAFX,cAAc;6BAG/B,cAAc"}
1
+ {"version":3,"file":"sendAnywhere.contract.d.ts","sourceRoot":"","sources":["sendAnywhere.contract.js"],"names":[],"mappings":"AAWA;;;;;;;;;GASG;AAEH;;;;;;;;GAQG;AAEH,kEAKE;AASK,2BANI,GAAG,eACH,mBAAmB,GAAG;IAChC,UAAc,EAAE,UAAU,CAAC;CACxB,WACO,OAAO;;;;;QAgGZ;;;WAGG;4BAFQ,eAAe,kBACf,iBAAiB;;GAmBjC;kCA1IY;IACZ,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,oBAAwB,EAAE,OAAO,oBAAoB,CAAC,CAAC;IACvD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;CAC9B;6BAjBsB,kBAAkB;qCACS,eAAe;uCAAf,eAAe;gCAEvC,gCAAgC;4BAIpC,aAAa;0CAHC,eAAe;kCAFX,cAAc;6BAG/B,cAAc"}
@@ -1,8 +1,7 @@
1
1
  import { withdrawFromSeat } from '@agoric/zoe/src/contractSupport/zoeHelpers.js';
2
2
  import { InvitationShape } from '@agoric/zoe/src/typeGuards.js';
3
- import { E } from '@endo/far';
4
3
  import { M, mustMatch } from '@endo/patterns';
5
- import { V } from '@agoric/vow/vat.js';
4
+ import { heapVowE as E } from '@agoric/vow/vat.js';
6
5
  import { AmountShape } from '@agoric/ertp';
7
6
  import { CosmosChainInfoShape } from '../typeGuards.js';
8
7
  import { provideOrchestration } from '../utils/start-helper.js';
@@ -17,6 +16,7 @@ const { Fail } = assert;
17
16
  * @import {LocalChain} from '@agoric/vats/src/localchain.js';
18
17
  * @import {OrchestrationService} from '../service.js';
19
18
  * @import {NameHub} from '@agoric/vats';
19
+ * @import {VBankAssetDetail} from '@agoric/vats/tools/board-utils.js';
20
20
  * @import {Remote} from '@agoric/vow';
21
21
  */
22
22
 
@@ -57,10 +57,15 @@ export const start = async (zcf, privateArgs, baggage) => {
57
57
 
58
58
  const findBrandInVBank = async brand => {
59
59
  const assets = await E(
60
- E(privateArgs.agoricNames).lookup('vbankAsset'),
60
+ // XXX heapVowE
61
+ /** @type {Promise<Promise<NameHub<VBankAssetDetail>>>} */ (
62
+ E(privateArgs.agoricNames).lookup('vbankAsset')
63
+ ),
61
64
  ).values();
62
65
  const it = assets.find(a => a.brand === brand);
63
- it || Fail`brand ${brand} not in agoricNames.vbankAsset`;
66
+ if (!it) {
67
+ throw Fail`brand ${brand} not in agoricNames.vbankAsset`;
68
+ }
64
69
  return it;
65
70
  };
66
71
 
@@ -84,12 +89,12 @@ export const start = async (zcf, privateArgs, baggage) => {
84
89
  if (!contractAccount) {
85
90
  const agoricChain = await orch.getChain('agoric');
86
91
  // XXX when() until membrane
87
- contractAccount = await V.when(agoricChain.makeAccount());
92
+ contractAccount = await E.when(agoricChain.makeAccount());
88
93
  console.log('contractAccount', contractAccount);
89
94
  }
90
95
 
91
96
  // XXX when() until membrane
92
- const info = await V.when(chain.getChainInfo());
97
+ const info = await E.when(chain.getChainInfo());
93
98
  console.log('info', info);
94
99
  const { chainId } = info;
95
100
  assert(typeof chainId === 'string', 'bad chainId');
@@ -141,7 +146,7 @@ export const start = async (zcf, privateArgs, baggage) => {
141
146
  const chainKey = `${chainInfo.chainId}-${(nonce += 1n)}`;
142
147
  // when() because chainHub methods return vows. If this were inside
143
148
  // orchestrate() the membrane would wrap/unwrap automatically.
144
- const agoricChainInfo = await V.when(chainHub.getChainInfo('agoric'));
149
+ const agoricChainInfo = await E.when(chainHub.getChainInfo('agoric'));
145
150
  chainHub.registerChain(chainKey, chainInfo);
146
151
  chainHub.registerConnection(
147
152
  agoricChainInfo.chainId,
@@ -1 +1 @@
1
- {"version":3,"file":"stakeBld.contract.d.ts","sourceRoot":"","sources":["stakeBld.contract.js"],"names":[],"mappings":"AAmCO,2BAVI,GAAG,eACH;IACV,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;IACjC,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,UAAc,EAAE,UAAU,CAAC;IAC3B,WAAe,EAAE,WAAW,CAAC;IAC7B,YAAgB,EAAE,YAAY,CAAC;CAC5B,WACO,OAAO,kBAAkB,EAAE,OAAO;;QAiDvC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8BH;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiBR;6BArHyB,cAAc;4BACf,kBAAkB;gCAEd,gCAAgC;kCAD9B,cAAc"}
1
+ {"version":3,"file":"stakeBld.contract.d.ts","sourceRoot":"","sources":["stakeBld.contract.js"],"names":[],"mappings":"AAkCO,2BAVI,GAAG,eACH;IACV,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;IACjC,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,UAAc,EAAE,UAAU,CAAC;IAC3B,WAAe,EAAE,WAAW,CAAC;IAC7B,YAAgB,EAAE,YAAY,CAAC;CAC5B,WACO,OAAO,kBAAkB,EAAE,OAAO;;QAiDvC;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8BH;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiBR;6BArHyB,cAAc;4BACf,kBAAkB;gCAEd,gCAAgC;kCAD9B,cAAc"}
@@ -6,8 +6,7 @@ import { prepareRecorderKitMakers } from '@agoric/zoe/src/contractSupport/record
6
6
  import { withdrawFromSeat } from '@agoric/zoe/src/contractSupport/zoeHelpers.js';
7
7
  import { InvitationShape } from '@agoric/zoe/src/typeGuards.js';
8
8
  import { makeDurableZone } from '@agoric/zone/durable.js';
9
- import { prepareVowTools, V } from '@agoric/vow/vat.js';
10
- import { E } from '@endo/far';
9
+ import { prepareVowTools, heapVowE as E } from '@agoric/vow/vat.js';
11
10
  import { deeplyFulfilled } from '@endo/marshal';
12
11
  import { M } from '@endo/patterns';
13
12
  import { prepareLocalOrchestrationAccountKit } from '../exos/local-orchestration-account.js';
@@ -58,8 +57,8 @@ export const start = async (zcf, privateArgs, baggage) => {
58
57
  const bldAmountShape = await E(BLD).getAmountShape();
59
58
 
60
59
  async function makeLocalAccountKit() {
61
- const account = await V(privateArgs.localchain).makeAccount();
62
- const address = await V(account).getAddress();
60
+ const account = await E(privateArgs.localchain).makeAccount();
61
+ const address = await E(account).getAddress();
63
62
  // FIXME 'address' is implied by 'account'; use an async maker that get the value itself
64
63
  return makeLocalOrchestrationAccountKit({
65
64
  account,
@@ -92,7 +91,7 @@ export const start = async (zcf, privateArgs, baggage) => {
92
91
  const { In } = await deeplyFulfilled(
93
92
  withdrawFromSeat(zcf, seat, give),
94
93
  );
95
- await V(holder).deposit(In);
94
+ await E(holder).deposit(In);
96
95
  seat.exit();
97
96
  return harden({
98
97
  publicSubscribers: holder.getPublicTopics(),
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { makeTracer, StorageNodeShape } from '@agoric/internal';
4
4
  import { TimerServiceShape } from '@agoric/time';
5
- import { V as E, prepareVowTools } from '@agoric/vow/vat.js';
5
+ import { heapVowE as E, prepareVowTools } from '@agoric/vow/vat.js';
6
6
  import {
7
7
  prepareRecorderKitMakers,
8
8
  provideAll,
@@ -4,7 +4,7 @@ import { withdrawFromSeat } from '@agoric/zoe/src/contractSupport/zoeHelpers.js'
4
4
  import { Far } from '@endo/far';
5
5
  import { deeplyFulfilled } from '@endo/marshal';
6
6
  import { M, objectMap } from '@endo/patterns';
7
- import { when } from '@agoric/vow/vat.js';
7
+ import { heapVowTools } from '@agoric/vow/vat.js';
8
8
  import { orcUtils } from '../utils/orc.js';
9
9
  import { provideOrchestration } from '../utils/start-helper.js';
10
10
 
@@ -97,9 +97,9 @@ export const start = async (zcf, privateArgs, baggage) => {
97
97
 
98
98
  const [omniAccount, localAccount] = await Promise.all([
99
99
  // XXX when() until membrane
100
- when(omni.makeAccount()),
100
+ heapVowTools.when(omni.makeAccount()),
101
101
  // XXX when() until membrane
102
- when(agoric.makeAccount()),
102
+ heapVowTools.when(agoric.makeAccount()),
103
103
  ]);
104
104
 
105
105
  const omniAddress = omniAccount.getAddress();
@@ -1 +1 @@
1
- {"version":3,"file":"chain-hub.d.ts","sourceRoot":"","sources":["chain-hub.js"],"names":[],"mappings":"AASA;;;;;;;GAOG;AAEH;;;;;GAKG;AAEH,wCAAwC;AACxC,gCAAiC;AACjC,kCAAkC;AAClC,gDAAiD;AAqB1C,wCAHI,MAAM,YACN,MAAM,UAUhB;AAoCM,0CAHI,OAAO,OAAO,CAAC;IAgBtB;;;;;;;;;;;OAWG;wBAFQ,MAAM,aACN,eAAe;IAK1B;;;;OAIG;iBAHmB,CAAC,SAAV,MAAQ,aACV,CAAC,GACC,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC;IAoBpC;;;;OAIG;iCAHQ,MAAM,YACN,MAAM,kBACN,iBAAiB;IAO5B;;;;OAIG;8BAHQ,MAAM,GAAG;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,UAC5B,MAAM,GAAG;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,GAC1B,IAAI,iBAAiB,CAAC;IAqBnC;;;;;;;;OAQG;2BAPmB,EAAE,SAAX,MAAQ,EACC,EAAE,SAAX,MAAQ,cACV,EAAE,cACF,EAAE,GACA,IACZ,CAAK,eAAe,CAAC,EAAE,CAAC,EAAE,eAAe,CAAC,EAAE,CAAC,EAAE,iB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,CAAC,GACnC,SAAS;uBA0LF,UAAU,CAAC,OAAO,YAAY,CAAC;6BAtMnB,cAAc;4BAIf,kBAAkB;0BACpB,cAAc;qCAHgB,kBAAkB;yBADjD,aAAa;uCACkB,kBAAkB;iCAC9B,kBAAkB;+BAAlB,kBAAkB"}
@@ -1,10 +1,13 @@
1
1
  import { VowShape } from '@agoric/vow';
2
- import { allVows, watch } from '@agoric/vow/vat.js';
2
+ import { heapVowTools } from '@agoric/vow/vat.js';
3
3
  import { makeHeapZone } from '@agoric/zone';
4
4
  import { E } from '@endo/far';
5
5
  import { M } from '@endo/patterns';
6
6
  import { CosmosChainInfoShape, IBCConnectionInfoShape } from '../typeGuards.js';
7
7
 
8
+ // FIXME test thoroughly whether heap suffices for ChainHub
9
+ const { allVows, watch } = heapVowTools;
10
+
8
11
  const { Fail } = assert;
9
12
 
10
13
  /**
@@ -1,5 +1,5 @@
1
1
  /** @file ChainAccount exo */
2
- import { V, watch } from '@agoric/vow/vat.js';
2
+ import { heapVowE as E, heapVowTools } from '@agoric/vow/vat.js';
3
3
 
4
4
  import { ChainFacadeI } from '../typeGuards.js';
5
5
 
@@ -45,7 +45,7 @@ export const prepareLocalChainFacade = (
45
45
  },
46
46
  {
47
47
  getChainInfo() {
48
- return watch(this.state.localChainInfo);
48
+ return heapVowTools.watch(this.state.localChainInfo);
49
49
  },
50
50
 
51
51
  // FIXME parameterize on the remoteChainInfo to make()
@@ -53,9 +53,9 @@ export const prepareLocalChainFacade = (
53
53
  /** @returns {Vow<OrchestrationAccount<ChainInfo>>} */
54
54
  makeAccount() {
55
55
  const { localChainInfo } = this.state;
56
- const lcaP = V(localchain).makeAccount();
56
+ const lcaP = E(localchain).makeAccount();
57
57
  // FIXME use watch() from vowTools
58
- return watch(allVows([lcaP, V(lcaP).getAddress()]), {
58
+ return heapVowTools.watch(allVows([lcaP, E(lcaP).getAddress()]), {
59
59
  onFulfilled: ([lca, address]) => {
60
60
  const { holder: account } = makeLocalOrchestrationAccountKit({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ric/internal';
5
5
  import { M } from '@agoric/vat-data';
6
6
  import { VowShape } from '@agoric/vow';
7
- import { V } from '@agoric/vow/vat.js';
7
+ import { heapVowE as E } from '@agoric/vow/vat.js';
8
8
  import { TopicsRecordShape } from '@agoric/zoe/src/contractSupport/index.js';
9
9
  import { InvitationShape } from '@agoric/zoe/src/typeGuards.js';
10
- import { E } from '@endo/far';
11
10
  import {
12
11
  ChainAddressShape,
13
12
  ChainAmountShape,
@@ -285,7 +284,7 @@ export const prepareLocalOrchestrationAccountKit = (
285
284
  ? [/** @type {any} */ (null), denomArg]
286
285
  : [denomArg, 'FIXME'];
287
286
 
288
- const natAmount = await V.when(
287
+ const natAmount = await E.when(
289
288
  E(this.state.account).getBalance(brand),
290
289
  );
291
290
  return harden({ denom, value: natAmount.value });
@@ -338,6 +337,7 @@ export const prepareLocalOrchestrationAccountKit = (
338
337
  denom: 'ubld',
339
338
  };
340
339
  const { account: lca } = this.state;
340
+ /** @type {any} XXX heapVowE */
341
341
  const results = E(lca).executeTx([
342
342
  typedJson('/cosmos.staking.v1beta1.MsgUndelegate', {
343
343
  amount,
@@ -345,7 +345,6 @@ export const prepareLocalOrchestrationAccountKit = (
345
345
  delegatorAddress: this.state.address.address,
346
346
  }),
347
347
  ]);
348
- // @ts-expect-error Type 'JsonSafe<MsgUndelegateResponse & { '@type': "/cosmos.staking.v1beta1.MsgUndelegateResponse"; }>' is not assignable to type 'MsgUndelegateResponse'.
349
348
  return when(watch(results, this.facets.undelegateWatcher));
350
349
  },
351
350
  /**
@@ -1,6 +1,6 @@
1
1
  /** @file ChainAccount exo */
2
2
  import { makeTracer } from '@agoric/internal';
3
- import { V, watch } from '@agoric/vow/vat.js';
3
+ import { heapVowE as E, heapVowTools } from '@agoric/vow/vat.js';
4
4
 
5
5
  import { ChainFacadeI } from '../typeGuards.js';
6
6
 
@@ -55,7 +55,7 @@ export const prepareRemoteChainFacade = (
55
55
  },
56
56
  {
57
57
  getChainInfo() {
58
- return watch(this.state.remoteChainInfo);
58
+ return heapVowTools.watch(this.state.remoteChainInfo);
59
59
  },
60
60
 
61
61
  // FIXME parameterize on the remoteChainInfo to make()
@@ -69,14 +69,14 @@ export const prepareRemoteChainFacade = (
69
69
  throw Fail`chain info lacks staking denom`;
70
70
  }
71
71
 
72
- const icaP = V(orchestration).makeAccount(
72
+ const icaP = E(orchestration).makeAccount(
73
73
  remoteChainInfo.chainId,
74
74
  connectionInfo.id,
75
75
  connectionInfo.counterparty.connection_id,
76
76
  );
77
77
 
78
78
  // FIXME use watch() from vowTools
79
- return watch(allVows([icaP, V(icaP).getAddress()]), {
79
+ return heapVowTools.watch(allVows([icaP, E(icaP).getAddress()]), {
80
80
  onFulfilled: ([account, address]) => {
81
81
  return makeCosmosOrchestrationAccount(address, stakingDenom, {
82
82
  account,
@@ -1 +1 @@
1
- {"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAwBO,yOAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA0D,CACjD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAoDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN;mCAjG4C,+BAA+B"}
1
+ {"version":3,"file":"start-stakeAtom.d.ts","sourceRoot":"","sources":["start-stakeAtom.js"],"names":[],"mappings":"AAuBO,yOAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA0D,CACjD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAoDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN;mCAjG4C,+BAA+B"}
@@ -1,7 +1,6 @@
1
1
  import { makeTracer } from '@agoric/internal';
2
2
  import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
3
- import { E } from '@endo/far';
4
- import { V } from '@agoric/vow/vat.js';
3
+ import { heapVowE as E } from '@agoric/vow/vat.js';
5
4
  import { makeChainHub } from '../exos/chain-hub.js';
6
5
 
7
6
  /**
@@ -47,7 +46,7 @@ export const startStakeAtom = async ({
47
46
 
48
47
  const chainHub = makeChainHub(await agoricNames);
49
48
 
50
- const [_, cosmoshub, connectionInfo] = await V.when(
49
+ const [_, cosmoshub, connectionInfo] = await E.when(
51
50
  chainHub.getChainsAndConnection('agoric', 'cosmoshub'),
52
51
  );
53
52
 
@@ -1 +1 @@
1
- {"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAkBO,6TAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;+BAiCuC,kBACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAlCkE,CACxD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAwDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BN;sBApGqB,gCAAgC"}
1
+ {"version":3,"file":"start-stakeBld.d.ts","sourceRoot":"","sources":["start-stakeBld.js"],"names":[],"mappings":"AAkBO,6TAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;+BAiCqB,kBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAjC2B,CACxD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAwDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BN;sBApGqB,gCAAgC"}
@@ -1 +1 @@
1
- {"version":3,"file":"start-stakeOsmo.d.ts","sourceRoot":"","sources":["start-stakeOsmo.js"],"names":[],"mappings":"AAwBO,yOAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA0D,CACjD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAqDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN"}
1
+ {"version":3,"file":"start-stakeOsmo.d.ts","sourceRoot":"","sources":["start-stakeOsmo.js"],"names":[],"mappings":"AAuBO,yOAVI,eAAe,GAAG;IAC5B,YAAgB,EAAE;QAClB,OAAa,EAAE;YACf,QAAgB,EAAE,YAAY,CAC9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAA0D,CACjD,CAAC;SACH,CAAC;KACH,CAAC;CACH,iBAqDH;AAGM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BN"}
@@ -1,7 +1,6 @@
1
1
  import { makeTracer } from '@agoric/internal';
2
2
  import { makeStorageNodeChild } from '@agoric/internal/src/lib-chainStorage.js';
3
- import { V } from '@agoric/vow/vat.js';
4
- import { E } from '@endo/far';
3
+ import { heapVowE as E } from '@agoric/vow/vat.js';
5
4
  import { makeChainHub } from '../exos/chain-hub.js';
6
5
 
7
6
  /**
@@ -48,7 +47,7 @@ export const startStakeOsmo = async ({
48
47
 
49
48
  const chainHub = makeChainHub(await agoricNames);
50
49
 
51
- const [_, osmosis, connectionInfo] = await V.when(
50
+ const [_, osmosis, connectionInfo] = await E.when(
52
51
  chainHub.getChainsAndConnection('agoric', 'osmosis'),
53
52
  );
54
53