@agoric/vats 0.15.2-dev-fed2b5e.0 → 0.15.2-dev-35e67be.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 +17 -20
- package/scripts/build-bundles.js +3 -3
- package/src/core/lib-boot.js +1 -1
- package/scripts/init-core.js +0 -31
- package/scripts/init-network.js +0 -19
- package/scripts/replace-zoe.js +0 -19
- package/scripts/restart-vats.js +0 -23
- package/scripts/set-core-proposal-env.js +0 -37
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-35e67be.0+35e67be",
|
|
4
4
|
"description": "Agoric's Vat library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "yarn build:bundles",
|
|
10
10
|
"build:bundles": "node scripts/build-bundles.js",
|
|
11
|
-
"build:restart-vats-proposal": "agoric run scripts/restart-vats.js",
|
|
12
|
-
"build:zcf-proposal": "agoric run scripts/replace-zoe.js",
|
|
13
11
|
"prepack": "tsc --build jsconfig.build.json",
|
|
14
12
|
"postpack": "git clean -f '*.d.ts*'",
|
|
15
13
|
"test": "ava",
|
|
@@ -24,19 +22,19 @@
|
|
|
24
22
|
"author": "Agoric",
|
|
25
23
|
"license": "Apache-2.0",
|
|
26
24
|
"dependencies": {
|
|
27
|
-
"@agoric/assert": "0.6.1-dev-
|
|
28
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
29
|
-
"@agoric/governance": "0.10.4-dev-
|
|
30
|
-
"@agoric/inter-protocol": "0.16.2-dev-
|
|
31
|
-
"@agoric/internal": "0.3.3-dev-
|
|
32
|
-
"@agoric/network": "0.1.1-dev-
|
|
33
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
34
|
-
"@agoric/store": "0.9.3-dev-
|
|
35
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
36
|
-
"@agoric/time": "0.3.3-dev-
|
|
37
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
38
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
39
|
-
"@agoric/zone": "0.2.3-dev-
|
|
25
|
+
"@agoric/assert": "0.6.1-dev-35e67be.0+35e67be",
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-35e67be.0+35e67be",
|
|
27
|
+
"@agoric/governance": "0.10.4-dev-35e67be.0+35e67be",
|
|
28
|
+
"@agoric/inter-protocol": "0.16.2-dev-35e67be.0+35e67be",
|
|
29
|
+
"@agoric/internal": "0.3.3-dev-35e67be.0+35e67be",
|
|
30
|
+
"@agoric/network": "0.1.1-dev-35e67be.0+35e67be",
|
|
31
|
+
"@agoric/notifier": "0.6.3-dev-35e67be.0+35e67be",
|
|
32
|
+
"@agoric/store": "0.9.3-dev-35e67be.0+35e67be",
|
|
33
|
+
"@agoric/swingset-vat": "0.32.3-dev-35e67be.0+35e67be",
|
|
34
|
+
"@agoric/time": "0.3.3-dev-35e67be.0+35e67be",
|
|
35
|
+
"@agoric/vat-data": "0.5.3-dev-35e67be.0+35e67be",
|
|
36
|
+
"@agoric/zoe": "0.26.3-dev-35e67be.0+35e67be",
|
|
37
|
+
"@agoric/zone": "0.2.3-dev-35e67be.0+35e67be",
|
|
40
38
|
"@endo/far": "^0.2.19",
|
|
41
39
|
"@endo/import-bundle": "^0.3.5",
|
|
42
40
|
"@endo/marshal": "^0.8.6",
|
|
@@ -46,9 +44,8 @@
|
|
|
46
44
|
"jessie.js": "^0.3.2"
|
|
47
45
|
},
|
|
48
46
|
"devDependencies": {
|
|
49
|
-
"@agoric/
|
|
50
|
-
"@agoric/
|
|
51
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-fed2b5e.0+fed2b5e",
|
|
47
|
+
"@agoric/smart-wallet": "0.5.4-dev-35e67be.0+35e67be",
|
|
48
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-35e67be.0+35e67be",
|
|
52
49
|
"@endo/bundle-source": "^2.5.2",
|
|
53
50
|
"@endo/init": "^0.5.57",
|
|
54
51
|
"ava": "^5.3.0",
|
|
@@ -76,5 +73,5 @@
|
|
|
76
73
|
"timeout": "20m",
|
|
77
74
|
"workerThreads": false
|
|
78
75
|
},
|
|
79
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "35e67bed9eae0896e32b549ad0d1fd02fb83a905"
|
|
80
77
|
}
|
package/scripts/build-bundles.js
CHANGED
|
@@ -6,9 +6,9 @@ import url from 'url';
|
|
|
6
6
|
const dirname = url.fileURLToPath(new URL('.', import.meta.url));
|
|
7
7
|
|
|
8
8
|
const sourceToBundle = [
|
|
9
|
-
[
|
|
10
|
-
[
|
|
11
|
-
[
|
|
9
|
+
['@agoric/vats/src/centralSupply.js', '../bundles/bundle-centralSupply.js'],
|
|
10
|
+
['@agoric/vats/src/mintHolder.js', '../bundles/bundle-mintHolder.js'],
|
|
11
|
+
['@agoric/vats/src/provisionPool.js', '../bundles/bundle-provisionPool.js'],
|
|
12
12
|
];
|
|
13
13
|
|
|
14
14
|
await createBundles(sourceToBundle, dirname);
|
package/src/core/lib-boot.js
CHANGED
package/scripts/init-core.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
-
|
|
3
|
-
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
|
|
4
|
-
export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
5
|
-
harden({
|
|
6
|
-
sourceSpec: '../src/core/startWalletFactory.js',
|
|
7
|
-
getManifestCall: [
|
|
8
|
-
'getManifestForWalletFactory',
|
|
9
|
-
{
|
|
10
|
-
installKeys: {
|
|
11
|
-
provisionPool: publishRef(
|
|
12
|
-
install(
|
|
13
|
-
'../src/provisionPool.js',
|
|
14
|
-
'../bundles/bundle-provisionPool.js',
|
|
15
|
-
),
|
|
16
|
-
),
|
|
17
|
-
walletFactory: publishRef(
|
|
18
|
-
install(
|
|
19
|
-
'@agoric/smart-wallet/src/walletFactory.js',
|
|
20
|
-
'../../smart-wallet/bundles/bundle-walletFactory.js',
|
|
21
|
-
),
|
|
22
|
-
),
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
export default async (homeP, endowments) => {
|
|
29
|
-
const { writeCoreProposal } = await makeHelpers(homeP, endowments);
|
|
30
|
-
await writeCoreProposal('gov-vats', defaultProposalBuilder);
|
|
31
|
-
};
|
package/scripts/init-network.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
-
|
|
3
|
-
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
|
|
4
|
-
export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
5
|
-
harden({
|
|
6
|
-
sourceSpec: '../src/proposals/network-proposal.js',
|
|
7
|
-
getManifestCall: [
|
|
8
|
-
'getManifestForNetwork',
|
|
9
|
-
{
|
|
10
|
-
networkRef: publishRef(install('../src/vat-network.js')),
|
|
11
|
-
ibcRef: publishRef(install('../src/vat-ibc.js')),
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export default async (homeP, endowments) => {
|
|
17
|
-
const { writeCoreProposal } = await makeHelpers(homeP, endowments);
|
|
18
|
-
await writeCoreProposal('gov-network', defaultProposalBuilder);
|
|
19
|
-
};
|
package/scripts/replace-zoe.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
-
|
|
3
|
-
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
|
|
4
|
-
export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
5
|
-
harden({
|
|
6
|
-
sourceSpec: '../src/proposals/zcf-proposal.js',
|
|
7
|
-
getManifestCall: [
|
|
8
|
-
'getManifestForZoe',
|
|
9
|
-
{
|
|
10
|
-
zoeRef: publishRef(install('../src/vat-zoe.js')),
|
|
11
|
-
zcfRef: publishRef(install('../../zoe/src/contractFacet/vatRoot.js')),
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export default async (homeP, endowments) => {
|
|
17
|
-
const { writeCoreProposal } = await makeHelpers(homeP, endowments);
|
|
18
|
-
await writeCoreProposal('replace-zcf', defaultProposalBuilder);
|
|
19
|
-
};
|
package/scripts/restart-vats.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
-
|
|
3
|
-
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').ProposalBuilder} */
|
|
4
|
-
export const defaultProposalBuilder = async () => {
|
|
5
|
-
// An includelist isn't necessary because the collections are known to be complete (tested in test-vaults-upgrade.js)
|
|
6
|
-
const skip = [
|
|
7
|
-
// can be replaced instead of upgraded
|
|
8
|
-
'auctioneer',
|
|
9
|
-
'feeDistributor',
|
|
10
|
-
// skip so vaultManager can have prices upon restart; these have been tested as restartable
|
|
11
|
-
'scaledPriceAuthority-ATOM',
|
|
12
|
-
];
|
|
13
|
-
|
|
14
|
-
return harden({
|
|
15
|
-
sourceSpec: '../src/proposals/restart-vats-proposal.js',
|
|
16
|
-
getManifestCall: ['getManifestForRestart', harden({ skip })],
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export default async (homeP, endowments) => {
|
|
21
|
-
const { writeCoreProposal } = await makeHelpers(homeP, endowments);
|
|
22
|
-
await writeCoreProposal('restart-vats', defaultProposalBuilder);
|
|
23
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
#! /usr/bin/env node
|
|
2
|
-
import fs from 'fs';
|
|
3
|
-
import process from 'process';
|
|
4
|
-
import { createRequire } from 'module';
|
|
5
|
-
|
|
6
|
-
const require = createRequire(import.meta.url);
|
|
7
|
-
const spec = process.argv[2];
|
|
8
|
-
if (!spec) {
|
|
9
|
-
process.exit(0);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const vatConfigFile = require.resolve(spec);
|
|
13
|
-
const configJson = fs.readFileSync(vatConfigFile);
|
|
14
|
-
const config = JSON.parse(configJson);
|
|
15
|
-
|
|
16
|
-
const envs = new Map();
|
|
17
|
-
if (Array.isArray(config?.coreProposals)) {
|
|
18
|
-
config.coreProposals.forEach(
|
|
19
|
-
({ env }) =>
|
|
20
|
-
env &&
|
|
21
|
-
Object.entries(env).forEach(([key, val]) => {
|
|
22
|
-
const oldVal = envs.get(key);
|
|
23
|
-
if (envs.has(key) && oldVal !== val) {
|
|
24
|
-
throw Error(
|
|
25
|
-
`Duplicate env key: ${key}, but value is ${val} not ${oldVal}`,
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
envs.set(key, val);
|
|
29
|
-
}),
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
for (const [key, val] of envs.entries()) {
|
|
34
|
-
process.stdout.write(
|
|
35
|
-
`${key}="${val.replace(/(\\)/g, '\\$1').replace(/(")/g, '\\$1')}"\n`,
|
|
36
|
-
);
|
|
37
|
-
}
|