@agoric/builders 0.2.0-upgrade-18-dev-6a4fdea.0 → 0.2.0-upgrade-18-dev-6cab101.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/builders",
|
|
3
|
-
"version": "0.2.0-upgrade-18-dev-
|
|
3
|
+
"version": "0.2.0-upgrade-18-dev-6cab101.0+6cab101",
|
|
4
4
|
"description": "Build scripts for proposals to an Agoric chain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"author": "Agoric",
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@agoric/ertp": "0.16.3-upgrade-18-dev-
|
|
27
|
-
"@agoric/internal": "0.4.0-upgrade-18-dev-
|
|
28
|
-
"@agoric/notifier": "0.7.0-upgrade-18-dev-
|
|
29
|
-
"@agoric/smart-wallet": "0.5.4-upgrade-18-dev-
|
|
30
|
-
"@agoric/vat-data": "0.5.3-upgrade-18-dev-
|
|
31
|
-
"@agoric/vats": "0.16.0-upgrade-18-dev-
|
|
32
|
-
"@agoric/zoe": "0.26.3-upgrade-18-dev-
|
|
26
|
+
"@agoric/ertp": "0.16.3-upgrade-18-dev-6cab101.0+6cab101",
|
|
27
|
+
"@agoric/internal": "0.4.0-upgrade-18-dev-6cab101.0+6cab101",
|
|
28
|
+
"@agoric/notifier": "0.7.0-upgrade-18-dev-6cab101.0+6cab101",
|
|
29
|
+
"@agoric/smart-wallet": "0.5.4-upgrade-18-dev-6cab101.0+6cab101",
|
|
30
|
+
"@agoric/vat-data": "0.5.3-upgrade-18-dev-6cab101.0+6cab101",
|
|
31
|
+
"@agoric/vats": "0.16.0-upgrade-18-dev-6cab101.0+6cab101",
|
|
32
|
+
"@agoric/zoe": "0.26.3-upgrade-18-dev-6cab101.0+6cab101",
|
|
33
33
|
"@endo/bundle-source": "^3.4.2",
|
|
34
34
|
"@endo/captp": "^4.4.2",
|
|
35
35
|
"@endo/eventual-send": "^1.2.7",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"import-meta-resolve": "^2.2.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@agoric/deploy-script-support": "0.10.4-upgrade-18-dev-
|
|
45
|
-
"@agoric/governance": "0.10.4-upgrade-18-dev-
|
|
46
|
-
"@agoric/inter-protocol": "0.17.0-upgrade-18-dev-
|
|
47
|
-
"@agoric/orchestration": "0.2.0-upgrade-18-dev-
|
|
48
|
-
"@agoric/store": "0.9.3-upgrade-18-dev-
|
|
49
|
-
"@agoric/swing-store": "0.10.0-upgrade-18-dev-
|
|
50
|
-
"@agoric/swingset-liveslots": "0.10.3-upgrade-18-dev-
|
|
51
|
-
"@agoric/time": "0.3.3-upgrade-18-dev-
|
|
44
|
+
"@agoric/deploy-script-support": "0.10.4-upgrade-18-dev-6cab101.0+6cab101",
|
|
45
|
+
"@agoric/governance": "0.10.4-upgrade-18-dev-6cab101.0+6cab101",
|
|
46
|
+
"@agoric/inter-protocol": "0.17.0-upgrade-18-dev-6cab101.0+6cab101",
|
|
47
|
+
"@agoric/orchestration": "0.2.0-upgrade-18-dev-6cab101.0+6cab101",
|
|
48
|
+
"@agoric/store": "0.9.3-upgrade-18-dev-6cab101.0+6cab101",
|
|
49
|
+
"@agoric/swing-store": "0.10.0-upgrade-18-dev-6cab101.0+6cab101",
|
|
50
|
+
"@agoric/swingset-liveslots": "0.10.3-upgrade-18-dev-6cab101.0+6cab101",
|
|
51
|
+
"@agoric/time": "0.3.3-upgrade-18-dev-6cab101.0+6cab101",
|
|
52
52
|
"@endo/errors": "^1.2.7",
|
|
53
53
|
"ava": "^5.3.0",
|
|
54
54
|
"c8": "^9.1.0"
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"typeCoverage": {
|
|
82
82
|
"atLeast": 82.43
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "6cab101e3587dd01b84dd8d078e1f660019bc07d"
|
|
85
85
|
}
|
|
@@ -41,6 +41,16 @@ const configurations = {
|
|
|
41
41
|
],
|
|
42
42
|
inBrandNames: ['ATOM', 'stATOM', 'stOSMO', 'stTIA', 'stkATOM'],
|
|
43
43
|
},
|
|
44
|
+
BOOT_TEST: {
|
|
45
|
+
oracleAddresses: [
|
|
46
|
+
'agoric144rrhh4m09mh7aaffhm6xy223ym76gve2x7y78', // DSRV
|
|
47
|
+
'agoric19d6gnr9fyp6hev4tlrg87zjrzsd5gzr5qlfq2p', // Stakin
|
|
48
|
+
'agoric19uscwxdac6cf6z7d5e26e0jm0lgwstc47cpll8', // 01node
|
|
49
|
+
'agoric1krunjcqfrf7la48zrvdfeeqtls5r00ep68mzkr', // Simply Staking
|
|
50
|
+
'agoric1n4fcxsnkxe4gj6e24naec99hzmc4pjfdccy5nj', // P2P
|
|
51
|
+
],
|
|
52
|
+
inBrandNames: ['ATOM'],
|
|
53
|
+
},
|
|
44
54
|
};
|
|
45
55
|
|
|
46
56
|
const { keys } = Object;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { makeTracer } from '@agoric/internal';
|
|
2
|
+
import { E } from '@endo/far';
|
|
3
|
+
|
|
4
|
+
const trace = makeTracer('RecordedRetired', true);
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @param {BootstrapPowers &
|
|
8
|
+
* PromiseSpaceOf<{ retiredContractInstances: MapStore<string, Instance>;
|
|
9
|
+
* }>
|
|
10
|
+
* } powers
|
|
11
|
+
*/
|
|
12
|
+
export const testRecordedRetiredInstances = async ({
|
|
13
|
+
consume: {
|
|
14
|
+
contractKits,
|
|
15
|
+
// governedContractKits,
|
|
16
|
+
retiredContractInstances: retiredContractInstancesP,
|
|
17
|
+
},
|
|
18
|
+
}) => {
|
|
19
|
+
trace('Start');
|
|
20
|
+
const retiredContractInstances = await retiredContractInstancesP;
|
|
21
|
+
|
|
22
|
+
const auctionIDs = Array.from(retiredContractInstances.keys()).filter(k =>
|
|
23
|
+
k.startsWith('auction'),
|
|
24
|
+
);
|
|
25
|
+
assert(auctionIDs);
|
|
26
|
+
assert(auctionIDs.length === 1);
|
|
27
|
+
const auctionInstance = retiredContractInstances.get(auctionIDs[0]);
|
|
28
|
+
trace({ auctionInstance });
|
|
29
|
+
// I don't know why it's neither in governedContractKits nor contractKits
|
|
30
|
+
// assert(await E(governedContractKits).get(auctionInstance));
|
|
31
|
+
|
|
32
|
+
const committeeIDs = Array.from(retiredContractInstances.keys()).filter(k =>
|
|
33
|
+
k.startsWith('economicCommittee'),
|
|
34
|
+
);
|
|
35
|
+
assert(committeeIDs);
|
|
36
|
+
assert(committeeIDs.length === 1);
|
|
37
|
+
const committeeInstance = retiredContractInstances.get(committeeIDs[0]);
|
|
38
|
+
assert(await E(contractKits).get(committeeInstance));
|
|
39
|
+
|
|
40
|
+
trace('done');
|
|
41
|
+
};
|
|
42
|
+
harden(testRecordedRetiredInstances);
|
|
43
|
+
|
|
44
|
+
export const getManifestForRecordedRetiredInstances = () => {
|
|
45
|
+
return {
|
|
46
|
+
manifest: {
|
|
47
|
+
[testRecordedRetiredInstances.name]: {
|
|
48
|
+
consume: {
|
|
49
|
+
contractKits: true,
|
|
50
|
+
// governedContractKits: true,
|
|
51
|
+
retiredContractInstances: true,
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
59
|
+
export const defaultProposalBuilder = async () =>
|
|
60
|
+
harden({
|
|
61
|
+
sourceSpec:
|
|
62
|
+
'@agoric/builders/scripts/testing/recorded-retired-instances.js',
|
|
63
|
+
getManifestCall: ['getManifestForRecordedRetiredInstances', {}],
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
67
|
+
export default async (homeP, endowments) => {
|
|
68
|
+
// import dynamically so the module can work in CoreEval environment
|
|
69
|
+
const dspModule = await import('@agoric/deploy-script-support');
|
|
70
|
+
const { makeHelpers } = dspModule;
|
|
71
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
72
|
+
await writeCoreEval('recorded-retired', defaultProposalBuilder);
|
|
73
|
+
};
|