@agoric/vats 0.15.2-dev-74ab972.0 → 0.15.2-dev-86e3b2d.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-
|
|
3
|
+
"version": "0.15.2-dev-86e3b2d.0+86e3b2d",
|
|
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-86e3b2d.0+86e3b2d",
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-86e3b2d.0+86e3b2d",
|
|
27
|
+
"@agoric/governance": "0.10.4-dev-86e3b2d.0+86e3b2d",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-86e3b2d.0+86e3b2d",
|
|
29
|
+
"@agoric/network": "0.1.1-dev-86e3b2d.0+86e3b2d",
|
|
30
|
+
"@agoric/notifier": "0.6.3-dev-86e3b2d.0+86e3b2d",
|
|
31
|
+
"@agoric/store": "0.9.3-dev-86e3b2d.0+86e3b2d",
|
|
32
|
+
"@agoric/swingset-vat": "0.32.3-dev-86e3b2d.0+86e3b2d",
|
|
33
|
+
"@agoric/time": "0.3.3-dev-86e3b2d.0+86e3b2d",
|
|
34
|
+
"@agoric/vat-data": "0.5.3-dev-86e3b2d.0+86e3b2d",
|
|
35
|
+
"@agoric/vow": "0.1.1-dev-86e3b2d.0+86e3b2d",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-86e3b2d.0+86e3b2d",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-86e3b2d.0+86e3b2d",
|
|
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-
|
|
50
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-86e3b2d.0+86e3b2d",
|
|
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": "
|
|
82
|
+
"gitHead": "86e3b2d6a2bd916d1a4012e8229fea8414228501"
|
|
83
83
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export function upgradeAgoricNames({ consume: { vatAdminSvc, vatStore } }: BootstrapPowers & {
|
|
2
|
+
consume: {
|
|
3
|
+
vatAdminSvc: VatAdminSvc;
|
|
4
|
+
vatStore: MapStore<string, import("@agoric/swingset-vat").CreateVatResults>;
|
|
5
|
+
};
|
|
6
|
+
}, options: {
|
|
7
|
+
options: {
|
|
8
|
+
agoricNamesRef: VatSourceRef;
|
|
9
|
+
};
|
|
10
|
+
}): Promise<void>;
|
|
11
|
+
export function getManifestForUpgradingAgoricNames(_powers: any, { agoricNamesRef }: {
|
|
12
|
+
agoricNamesRef: any;
|
|
13
|
+
}): {
|
|
14
|
+
manifest: {
|
|
15
|
+
[x: string]: {
|
|
16
|
+
consume: {
|
|
17
|
+
vatAdminSvc: string;
|
|
18
|
+
vatStore: string;
|
|
19
|
+
};
|
|
20
|
+
produce: {};
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
options: {
|
|
24
|
+
agoricNamesRef: any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=upgrade-agoricNames-proposal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upgrade-agoricNames-proposal.d.ts","sourceRoot":"","sources":["upgrade-agoricNames-proposal.js"],"names":[],"mappings":"AAeO,2EAZI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,WAAW,EAAE,WAAW,CAAC;QACzB,QAAQ,EAAE,QAAQ,CACxB,MAAc,EACd,OAAe,sBAAsB,EAAE,gBAAgB,CAChD,CAAC;KACH,CAAC;CACH,WAED;IAAkD,OAAO,EAAjD;QAAE,cAAc,EAAE,YAAY,CAAA;KAAE;CAC1C,iBAgBA;AAEM;;;;;;;;;;;;;;;EAcL"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { E } from '@endo/far';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @param {BootstrapPowers & {
|
|
5
|
+
* consume: {
|
|
6
|
+
* vatAdminSvc: VatAdminSvc;
|
|
7
|
+
* vatStore: MapStore<
|
|
8
|
+
* string,
|
|
9
|
+
* import('@agoric/swingset-vat').CreateVatResults
|
|
10
|
+
* >;
|
|
11
|
+
* };
|
|
12
|
+
* }} powers
|
|
13
|
+
* @param {object} options
|
|
14
|
+
* @param {{ agoricNamesRef: VatSourceRef }} options.options
|
|
15
|
+
*/
|
|
16
|
+
export const upgradeAgoricNames = async (
|
|
17
|
+
{ consume: { vatAdminSvc, vatStore } },
|
|
18
|
+
options,
|
|
19
|
+
) => {
|
|
20
|
+
const { agoricNamesRef } = options.options;
|
|
21
|
+
|
|
22
|
+
assert(agoricNamesRef.bundleID);
|
|
23
|
+
const agoricNamesBundleCap = await E(vatAdminSvc).getBundleCap(
|
|
24
|
+
agoricNamesRef.bundleID,
|
|
25
|
+
);
|
|
26
|
+
console.log(`BANK BUNDLE ID: `, agoricNamesRef.bundleID);
|
|
27
|
+
|
|
28
|
+
const { adminNode } = await E(vatStore).get('agoricNames');
|
|
29
|
+
|
|
30
|
+
await E(adminNode).upgrade(agoricNamesBundleCap, {});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export const getManifestForUpgradingAgoricNames = (
|
|
34
|
+
_powers,
|
|
35
|
+
{ agoricNamesRef },
|
|
36
|
+
) => ({
|
|
37
|
+
manifest: {
|
|
38
|
+
[upgradeAgoricNames.name]: {
|
|
39
|
+
consume: {
|
|
40
|
+
vatAdminSvc: 'vatAdminSvc',
|
|
41
|
+
vatStore: 'vatStore',
|
|
42
|
+
},
|
|
43
|
+
produce: {},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
options: { agoricNamesRef },
|
|
47
|
+
});
|