@agoric/vats 0.15.2-dev-04bd001.0 → 0.15.2-dev-19e7b87.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 +16 -16
- package/tools/fake-bridge.d.ts +1 -0
- package/tools/fake-bridge.d.ts.map +1 -1
- package/tools/fake-bridge.js +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/vats",
|
|
3
|
-
"version": "0.15.2-dev-
|
|
3
|
+
"version": "0.15.2-dev-19e7b87.0+19e7b87",
|
|
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-
|
|
26
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
27
|
-
"@agoric/governance": "0.10.4-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/network": "0.1.1-dev-
|
|
30
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
31
|
-
"@agoric/store": "0.9.3-dev-
|
|
32
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
33
|
-
"@agoric/time": "0.3.3-dev-
|
|
34
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
35
|
-
"@agoric/vow": "0.1.1-dev-
|
|
36
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
37
|
-
"@agoric/zone": "0.2.3-dev-
|
|
25
|
+
"@agoric/cosmic-proto": "0.4.1-dev-19e7b87.0+19e7b87",
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-19e7b87.0+19e7b87",
|
|
27
|
+
"@agoric/governance": "0.10.4-dev-19e7b87.0+19e7b87",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-19e7b87.0+19e7b87",
|
|
29
|
+
"@agoric/network": "0.1.1-dev-19e7b87.0+19e7b87",
|
|
30
|
+
"@agoric/notifier": "0.6.3-dev-19e7b87.0+19e7b87",
|
|
31
|
+
"@agoric/store": "0.9.3-dev-19e7b87.0+19e7b87",
|
|
32
|
+
"@agoric/swingset-vat": "0.32.3-dev-19e7b87.0+19e7b87",
|
|
33
|
+
"@agoric/time": "0.3.3-dev-19e7b87.0+19e7b87",
|
|
34
|
+
"@agoric/vat-data": "0.5.3-dev-19e7b87.0+19e7b87",
|
|
35
|
+
"@agoric/vow": "0.1.1-dev-19e7b87.0+19e7b87",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-19e7b87.0+19e7b87",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-19e7b87.0+19e7b87",
|
|
38
38
|
"@endo/errors": "^1.2.10",
|
|
39
39
|
"@endo/far": "^1.1.11",
|
|
40
40
|
"@endo/import-bundle": "^1.4.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"jessie.js": "^0.3.4"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
50
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-19e7b87.0+19e7b87",
|
|
51
51
|
"@endo/bundle-source": "^4.0.0",
|
|
52
52
|
"@endo/init": "^1.1.9",
|
|
53
53
|
"ava": "^5.3.0",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"typeCoverage": {
|
|
80
80
|
"atLeast": 90.49
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "19e7b8742b53a23339f9733335dddde20bf64604"
|
|
83
83
|
}
|
package/tools/fake-bridge.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export const LOCALCHAIN_QUERY_ALL_BALANCES_RESPONSE: {
|
|
|
15
15
|
value: bigint;
|
|
16
16
|
denom: string;
|
|
17
17
|
}[];
|
|
18
|
+
export const LOCALCHAIN_QUERY_DENOM_HASH_DEFAULT_VALUE: "fakeDenomHash";
|
|
18
19
|
export function fakeLocalChainBridgeQueryHandler(message: object): unknown;
|
|
19
20
|
export function makeFakeLocalchainBridge(zone: import("@agoric/zone").Zone, onToBridge?: (obj: object, result: unknown) => void, makeAddressFn?: (index: number) => string): ScopedBridgeManager<"vlocalchain">;
|
|
20
21
|
export function makeFakeTransferBridge(zone: import("@agoric/zone").Zone, onToBridge?: (obj: any) => void): ScopedBridgeManager<"vtransfer">;
|
|
@@ -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,CAgGvC;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,CAgDnB;AAED;;;IASE;
|
|
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,CAgGvC;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,CAgDnB;AAED;;;IASE;AAEF,wDAAyD,eAAe,CAAC;AAWlE,0DAHI,MAAM,GACJ,OAAO,CAqDnB;AASM,+CANI,OAAO,cAAc,EAAE,IAAI,eAC3B,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,kBAEtC,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GACvB,oBAAoB,aAAa,CAAC,CA4E9C;AAOM,6CAJI,OAAO,cAAc,EAAE,IAAI,eAC3B,CAAC,GAAG,KAAA,KAAK,IAAI,GACX,oBAAoB,WAAW,CAAC,CAuC5C;uBA5aa;IAAE,CAAC,OAAO,EAAE,MAAM,GAAG;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CAAE;yCAPX,iBAAiB"}
|
package/tools/fake-bridge.js
CHANGED
|
@@ -255,6 +255,8 @@ export const LOCALCHAIN_QUERY_ALL_BALANCES_RESPONSE = [
|
|
|
255
255
|
},
|
|
256
256
|
];
|
|
257
257
|
|
|
258
|
+
export const LOCALCHAIN_QUERY_DENOM_HASH_DEFAULT_VALUE = 'fakeDenomHash';
|
|
259
|
+
|
|
258
260
|
/**
|
|
259
261
|
* Used to mock responses from Cosmos Golang back to SwingSet for for
|
|
260
262
|
* E(lca).query() and E(lca).queryMany().
|
|
@@ -296,6 +298,21 @@ export const fakeLocalChainBridgeQueryHandler = message => {
|
|
|
296
298
|
},
|
|
297
299
|
};
|
|
298
300
|
}
|
|
301
|
+
case '/ibc.applications.transfer.v1.QueryDenomHashRequest': {
|
|
302
|
+
// native agoric assets cause this query throw
|
|
303
|
+
if (message.trace === 'ubld') {
|
|
304
|
+
throw new Error('ubld denomination trace not found');
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
return {
|
|
308
|
+
error: '',
|
|
309
|
+
height: '1',
|
|
310
|
+
reply: {
|
|
311
|
+
'@type': '/ibc.applications.transfer.v1.QueryDenomHashResponse',
|
|
312
|
+
hash: LOCALCHAIN_QUERY_DENOM_HASH_DEFAULT_VALUE,
|
|
313
|
+
},
|
|
314
|
+
};
|
|
315
|
+
}
|
|
299
316
|
// returns one empty object per message unless specified
|
|
300
317
|
default:
|
|
301
318
|
return {};
|