@agoric/vats 0.15.2-dev-c1d2b71.0 → 0.15.2-dev-1f25ee2.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-c1d2b71.0+c1d2b71",
3
+ "version": "0.15.2-dev-1f25ee2.0+1f25ee2",
4
4
  "description": "Agoric's Vat library",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -22,19 +22,19 @@
22
22
  "author": "Agoric",
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@agoric/cosmic-proto": "0.4.1-dev-c1d2b71.0+c1d2b71",
26
- "@agoric/ertp": "0.16.3-dev-c1d2b71.0+c1d2b71",
27
- "@agoric/governance": "0.10.4-dev-c1d2b71.0+c1d2b71",
28
- "@agoric/internal": "0.3.3-dev-c1d2b71.0+c1d2b71",
29
- "@agoric/network": "0.1.1-dev-c1d2b71.0+c1d2b71",
30
- "@agoric/notifier": "0.6.3-dev-c1d2b71.0+c1d2b71",
31
- "@agoric/store": "0.9.3-dev-c1d2b71.0+c1d2b71",
32
- "@agoric/swingset-vat": "0.32.3-dev-c1d2b71.0+c1d2b71",
33
- "@agoric/time": "0.3.3-dev-c1d2b71.0+c1d2b71",
34
- "@agoric/vat-data": "0.5.3-dev-c1d2b71.0+c1d2b71",
35
- "@agoric/vow": "0.1.1-dev-c1d2b71.0+c1d2b71",
36
- "@agoric/zoe": "0.26.3-dev-c1d2b71.0+c1d2b71",
37
- "@agoric/zone": "0.2.3-dev-c1d2b71.0+c1d2b71",
25
+ "@agoric/cosmic-proto": "0.4.1-dev-1f25ee2.0+1f25ee2",
26
+ "@agoric/ertp": "0.16.3-dev-1f25ee2.0+1f25ee2",
27
+ "@agoric/governance": "0.10.4-dev-1f25ee2.0+1f25ee2",
28
+ "@agoric/internal": "0.3.3-dev-1f25ee2.0+1f25ee2",
29
+ "@agoric/network": "0.1.1-dev-1f25ee2.0+1f25ee2",
30
+ "@agoric/notifier": "0.6.3-dev-1f25ee2.0+1f25ee2",
31
+ "@agoric/store": "0.9.3-dev-1f25ee2.0+1f25ee2",
32
+ "@agoric/swingset-vat": "0.32.3-dev-1f25ee2.0+1f25ee2",
33
+ "@agoric/time": "0.3.3-dev-1f25ee2.0+1f25ee2",
34
+ "@agoric/vat-data": "0.5.3-dev-1f25ee2.0+1f25ee2",
35
+ "@agoric/vow": "0.1.1-dev-1f25ee2.0+1f25ee2",
36
+ "@agoric/zoe": "0.26.3-dev-1f25ee2.0+1f25ee2",
37
+ "@agoric/zone": "0.2.3-dev-1f25ee2.0+1f25ee2",
38
38
  "@endo/errors": "^1.2.8",
39
39
  "@endo/far": "^1.1.9",
40
40
  "@endo/import-bundle": "^1.3.2",
@@ -47,7 +47,7 @@
47
47
  "jessie.js": "^0.3.4"
48
48
  },
49
49
  "devDependencies": {
50
- "@agoric/swingset-liveslots": "0.10.3-dev-c1d2b71.0+c1d2b71",
50
+ "@agoric/swingset-liveslots": "0.10.3-dev-1f25ee2.0+1f25ee2",
51
51
  "@endo/bundle-source": "^3.5.0",
52
52
  "@endo/init": "^1.1.7",
53
53
  "ava": "^5.3.0",
@@ -79,5 +79,5 @@
79
79
  "typeCoverage": {
80
80
  "atLeast": 91.21
81
81
  },
82
- "gitHead": "c1d2b71a0322d0ee4848d2a7e75e0c956e6c46b8"
82
+ "gitHead": "1f25ee2ec66788523594e25f020ccf3b6103d259"
83
83
  }
@@ -16,7 +16,7 @@ export const LOCALCHAIN_QUERY_ALL_BALANCES_RESPONSE: {
16
16
  denom: string;
17
17
  }[];
18
18
  export function fakeLocalChainBridgeQueryHandler(message: object): unknown;
19
- export function makeFakeLocalchainBridge(zone: import("@agoric/zone").Zone, onToBridge?: (obj: any) => void): ScopedBridgeManager<"vlocalchain">;
19
+ export function makeFakeLocalchainBridge(zone: import("@agoric/zone").Zone, onToBridge?: (obj: any) => void, makeAddressFn?: (number: any) => string): ScopedBridgeManager<"vlocalchain">;
20
20
  export function makeFakeTransferBridge(zone: import("@agoric/zone").Zone, onToBridge?: (obj: any) => void): ScopedBridgeManager<"vtransfer">;
21
21
  export type Balances = {
22
22
  [address: string]: {
@@ -1 +1 @@
1
- {"version":3,"file":"fake-bridge.d.ts","sourceRoot":"","sources":["fake-bridge.js"],"names":[],"mappings":"AAkBA,6EAA6E;AAE7E,6BAA8B,QAAQ,CAAC;AAehC,yCAPI,OAAO,cAAc,EAAE,IAAI,6BAEnC;IAAwB,QAAQ;IACH,UAAU,kBAAtB,IAAI;CACrB,GAAU,oBAAoB,MAAM,CAAC,CA4FvC;AAOM,wCAJI,OAAO,cAAc,EAAE,IAAI,cAC3B,CAAC,GAAG,KAAA,KAAK,IAAI,GACX,oBAAoB,MAAM,CAAC,CAwCvC;AAED,yCAA0C,uBAAuB,CAAC;;;;;AAwB3D,0DALI,MAAM,YACN,MAAM,GACJ,OAAO,CAsCnB;AAED;;;IASE;AAWK,0DAHI,MAAM,GACJ,OAAO,CAsCnB;AAOM,+CAJI,OAAO,cAAc,EAAE,IAAI,eAC3B,CAAC,GAAG,KAAA,KAAK,IAAI,GACX,oBAAoB,aAAa,CAAC,CAgD9C;AAOM,6CAJI,OAAO,cAAc,EAAE,IAAI,eAC3B,CAAC,GAAG,KAAA,KAAK,IAAI,GACX,oBAAoB,WAAW,CAAC,CAuC5C;uBA/Wa;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CAAE;yCAPX,iBAAiB"}
1
+ {"version":3,"file":"fake-bridge.d.ts","sourceRoot":"","sources":["fake-bridge.js"],"names":[],"mappings":"AAkBA,6EAA6E;AAE7E,6BAA8B,QAAQ,CAAC;AAehC,yCAPI,OAAO,cAAc,EAAE,IAAI,6BAEnC;IAAwB,QAAQ;IACH,UAAU,kBAAtB,IAAI;CACrB,GAAU,oBAAoB,MAAM,CAAC,CA4FvC;AAOM,wCAJI,OAAO,cAAc,EAAE,IAAI,cAC3B,CAAC,GAAG,KAAA,KAAK,IAAI,GACX,oBAAoB,MAAM,CAAC,CAwCvC;AAED,yCAA0C,uBAAuB,CAAC;;;;;AAwB3D,0DALI,MAAM,YACN,MAAM,GACJ,OAAO,CAsCnB;AAED;;;IASE;AAWK,0DAHI,MAAM,GACJ,OAAO,CAsCnB;AAQM,+CALI,OAAO,cAAc,EAAE,IAAI,eAC3B,CAAC,GAAG,KAAA,KAAK,IAAI,kBACb,CAAC,MAAM,KAAA,KAAK,MAAM,GAChB,oBAAoB,aAAa,CAAC,CAoD9C;AAOM,6CAJI,OAAO,cAAc,EAAE,IAAI,eAC3B,CAAC,GAAG,KAAA,KAAK,IAAI,GACX,oBAAoB,WAAW,CAAC,CAuC5C;uBApXa;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CAAE;yCAPX,iBAAiB"}
@@ -291,9 +291,14 @@ export const fakeLocalChainBridgeQueryHandler = message => {
291
291
  /**
292
292
  * @param {import('@agoric/zone').Zone} zone
293
293
  * @param {(obj) => void} [onToBridge]
294
+ * @param {(number) => string} makeAddressFn
294
295
  * @returns {ScopedBridgeManager<'vlocalchain'>}
295
296
  */
296
- export const makeFakeLocalchainBridge = (zone, onToBridge = () => {}) => {
297
+ export const makeFakeLocalchainBridge = (
298
+ zone,
299
+ onToBridge = () => {},
300
+ makeAddressFn = index => `${LOCALCHAIN_DEFAULT_ADDRESS}${index || ''}`,
301
+ ) => {
297
302
  /** @type {Remote<BridgeHandler>} */
298
303
  let hndlr;
299
304
  let lcaExecuteTxSequence = 0;
@@ -306,7 +311,7 @@ export const makeFakeLocalchainBridge = (zone, onToBridge = () => {}) => {
306
311
  trace('toBridge', type, method, params);
307
312
  switch (type) {
308
313
  case 'VLOCALCHAIN_ALLOCATE_ADDRESS': {
309
- const address = `${LOCALCHAIN_DEFAULT_ADDRESS}${accountsCreated || ''}`;
314
+ const address = makeAddressFn(accountsCreated);
310
315
  accountsCreated += 1;
311
316
  return address;
312
317
  }