@agoric/inter-protocol 0.16.2-dev-1f25ee2.0 → 0.16.2-dev-e5813b9.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/inter-protocol",
|
|
3
|
-
"version": "0.16.2-dev-
|
|
3
|
+
"version": "0.16.2-dev-e5813b9.0+e5813b9",
|
|
4
4
|
"description": "Core cryptoeconomy contracts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
35
|
-
"@agoric/governance": "0.10.4-dev-
|
|
36
|
-
"@agoric/internal": "0.3.3-dev-
|
|
37
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
38
|
-
"@agoric/store": "0.9.3-dev-
|
|
39
|
-
"@agoric/time": "0.3.3-dev-
|
|
40
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
41
|
-
"@agoric/vats": "0.15.2-dev-
|
|
42
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
43
|
-
"@agoric/zone": "0.2.3-dev-
|
|
34
|
+
"@agoric/ertp": "0.16.3-dev-e5813b9.0+e5813b9",
|
|
35
|
+
"@agoric/governance": "0.10.4-dev-e5813b9.0+e5813b9",
|
|
36
|
+
"@agoric/internal": "0.3.3-dev-e5813b9.0+e5813b9",
|
|
37
|
+
"@agoric/notifier": "0.6.3-dev-e5813b9.0+e5813b9",
|
|
38
|
+
"@agoric/store": "0.9.3-dev-e5813b9.0+e5813b9",
|
|
39
|
+
"@agoric/time": "0.3.3-dev-e5813b9.0+e5813b9",
|
|
40
|
+
"@agoric/vat-data": "0.5.3-dev-e5813b9.0+e5813b9",
|
|
41
|
+
"@agoric/vats": "0.15.2-dev-e5813b9.0+e5813b9",
|
|
42
|
+
"@agoric/zoe": "0.26.3-dev-e5813b9.0+e5813b9",
|
|
43
|
+
"@agoric/zone": "0.2.3-dev-e5813b9.0+e5813b9",
|
|
44
44
|
"@endo/captp": "^4.4.3",
|
|
45
45
|
"@endo/errors": "^1.2.8",
|
|
46
46
|
"@endo/eventual-send": "^1.2.8",
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"jessie.js": "^0.3.4"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
55
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
56
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
54
|
+
"@agoric/smart-wallet": "0.5.4-dev-e5813b9.0+e5813b9",
|
|
55
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-e5813b9.0+e5813b9",
|
|
56
|
+
"@agoric/swingset-vat": "0.32.3-dev-e5813b9.0+e5813b9",
|
|
57
57
|
"@endo/bundle-source": "^3.5.0",
|
|
58
58
|
"@endo/init": "^1.1.7",
|
|
59
59
|
"@endo/promise-kit": "^1.1.8",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"typeCoverage": {
|
|
85
85
|
"atLeast": 95.58
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "e5813b9a1b7aff07f84e2b185351b3283e29e141"
|
|
88
88
|
}
|
|
@@ -18,6 +18,8 @@ export function getManifestForReplaceAllElectorates({ economicCommitteeRef: _eco
|
|
|
18
18
|
auctionUpgradeNewGovCreator: boolean;
|
|
19
19
|
auctionUpgradeNewInstance: boolean;
|
|
20
20
|
psmKit: boolean;
|
|
21
|
+
contractKits: boolean;
|
|
22
|
+
econCharterKit: boolean;
|
|
21
23
|
governedContractKits: boolean;
|
|
22
24
|
chainStorage: boolean;
|
|
23
25
|
highPrioritySendersManager: boolean;
|
|
@@ -47,6 +49,7 @@ export function getManifestForReplaceAllElectorates({ economicCommitteeRef: _eco
|
|
|
47
49
|
};
|
|
48
50
|
consume: {
|
|
49
51
|
economicCommittee: boolean;
|
|
52
|
+
econCommitteeCharter: boolean;
|
|
50
53
|
};
|
|
51
54
|
};
|
|
52
55
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replaceElectorate.d.ts","sourceRoot":"","sources":["replaceElectorate.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"replaceElectorate.d.ts","sourceRoot":"","sources":["replaceElectorate.js"],"names":[],"mappings":"AAweO,uDAlBI,sBAAsB,GAAG,eAAe,UAGxC;IACN,OAAO,EAAE;QACP,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACvC,yBAAyB,EAAE;YACzB,cAAc,EAAE,MAAM,EAAE,CAAC;YACzB,iBAAiB,EAAE,MAAM,EAAE,CAAC;SAC7B,CAAC;KACH,CAAC;CACH,GAGS,OAAO,CAAC,IAAI,CAAC,CAuEzB;AAIM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDL;8BA9NW,cAAc,CAAC;IACvB,yBAAyB,EAAE,QAAQ,CAAC;IACpC,2BAA2B,EAAE,GAAG,CAAC;IACjC,wBAAwB,EAAE,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CACtD,CAAC;4CApXqC,qBAAqB"}
|
|
@@ -289,33 +289,87 @@ const startNewEconomicCommittee = async (
|
|
|
289
289
|
* Starts a new Economic Committee Charter by creating an instance with the
|
|
290
290
|
* provided committee specifications.
|
|
291
291
|
*
|
|
292
|
-
* @param {EconomyBootstrapPowers
|
|
293
|
-
*
|
|
292
|
+
* @param {EconomyBootstrapPowers &
|
|
293
|
+
* PromiseSpaceOf<{ retiredContractInstances: MapStore<string, Instance> }>} powers
|
|
294
|
+
* - The resources and capabilities required to start the committee.
|
|
295
|
+
*
|
|
294
296
|
* @returns {Promise<EconCharterStartResult>} A promise that resolves to the
|
|
295
297
|
* charter kit result.
|
|
296
298
|
*/
|
|
297
299
|
const startNewEconCharter = async ({
|
|
298
|
-
consume: {
|
|
299
|
-
|
|
300
|
+
consume: {
|
|
301
|
+
board,
|
|
302
|
+
startUpgradable,
|
|
303
|
+
contractKits: contractKitsP,
|
|
304
|
+
econCharterKit: econCharterKitP,
|
|
305
|
+
retiredContractInstances: retiredContractInstancesP,
|
|
306
|
+
},
|
|
307
|
+
produce: {
|
|
308
|
+
econCharterKit: produceEconCharterKit,
|
|
309
|
+
retiredContractInstances: produceRetiredInstances,
|
|
310
|
+
},
|
|
300
311
|
installation: {
|
|
301
312
|
consume: { binaryVoteCounter: counterP, econCommitteeCharter: installP },
|
|
302
313
|
},
|
|
303
314
|
instance: {
|
|
304
315
|
produce: { econCommitteeCharter },
|
|
316
|
+
consume: { econCommitteeCharter: previousInstanceP },
|
|
305
317
|
},
|
|
306
318
|
}) => {
|
|
307
|
-
const [
|
|
319
|
+
const [
|
|
320
|
+
charterInstall,
|
|
321
|
+
counterInstall,
|
|
322
|
+
previousInstance,
|
|
323
|
+
contractKits,
|
|
324
|
+
econCharterKit,
|
|
325
|
+
retiredInstances,
|
|
326
|
+
] = await Promise.all([
|
|
308
327
|
installP,
|
|
309
328
|
counterP,
|
|
329
|
+
previousInstanceP,
|
|
330
|
+
contractKitsP,
|
|
331
|
+
econCharterKitP,
|
|
332
|
+
provideRetiredInstances(retiredContractInstancesP, produceRetiredInstances),
|
|
310
333
|
]);
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
334
|
+
|
|
335
|
+
const label = 'econCommitteeCharter';
|
|
336
|
+
const previousCharterKit = { ...econCharterKit, label };
|
|
337
|
+
|
|
338
|
+
const boardID = await E(board).getId(previousCharterKit.instance);
|
|
339
|
+
const identifier = `${label}-${boardID}`;
|
|
340
|
+
trace('Saving previous EC Charter Instance', label);
|
|
341
|
+
|
|
342
|
+
// save the old charter instance kit so we can manage it later
|
|
343
|
+
if (retiredInstances.has(identifier)) {
|
|
344
|
+
// bootstrap tests start having already run this upgrade. Actual upgrades on
|
|
345
|
+
// mainNet or testnets should start with the promiseSpace post upgrade-17,
|
|
346
|
+
// which doesn't have this entry in the map.
|
|
347
|
+
trace(
|
|
348
|
+
'⚠️ WARNING: collision on storing Charter in retireInstances not' +
|
|
349
|
+
' expected during chain upgrade. It IS normal during bootstrap tests',
|
|
350
|
+
);
|
|
351
|
+
} else {
|
|
352
|
+
retiredInstances.init(identifier, previousCharterKit.instance);
|
|
353
|
+
}
|
|
354
|
+
if (contractKits.has(previousInstance)) {
|
|
355
|
+
// bootstrap tests start having already run this upgrade. Actual upgrades on
|
|
356
|
+
// mainNet or testnets should start with the promiseSpace post upgrade-17,
|
|
357
|
+
// which doesn't have this entry in the map.
|
|
358
|
+
trace(
|
|
359
|
+
'⚠️ WARNING: collision on storing Charter in contractKits not' +
|
|
360
|
+
' expected during chain upgrade. It IS normal during bootstrap tests',
|
|
361
|
+
);
|
|
362
|
+
} else {
|
|
363
|
+
contractKits.init(previousInstance, previousCharterKit);
|
|
364
|
+
}
|
|
314
365
|
|
|
315
366
|
trace('Starting new EC Charter Instance');
|
|
316
367
|
|
|
368
|
+
const terms = harden({
|
|
369
|
+
binaryVoteCounterInstallation: counterInstall,
|
|
370
|
+
});
|
|
317
371
|
const startResult = await E(startUpgradable)({
|
|
318
|
-
label
|
|
372
|
+
label,
|
|
319
373
|
installation: charterInstall,
|
|
320
374
|
terms,
|
|
321
375
|
});
|
|
@@ -325,8 +379,8 @@ const startNewEconCharter = async ({
|
|
|
325
379
|
econCommitteeCharter.reset();
|
|
326
380
|
econCommitteeCharter.resolve(E.get(startResult).instance);
|
|
327
381
|
|
|
328
|
-
|
|
329
|
-
|
|
382
|
+
produceEconCharterKit.reset();
|
|
383
|
+
produceEconCharterKit.resolve(startResult);
|
|
330
384
|
return startResult;
|
|
331
385
|
};
|
|
332
386
|
|
|
@@ -515,6 +569,8 @@ export const getManifestForReplaceAllElectorates = async (
|
|
|
515
569
|
auctionUpgradeNewGovCreator: true,
|
|
516
570
|
auctionUpgradeNewInstance: true,
|
|
517
571
|
psmKit: true,
|
|
572
|
+
contractKits: true,
|
|
573
|
+
econCharterKit: true,
|
|
518
574
|
governedContractKits: true,
|
|
519
575
|
chainStorage: true,
|
|
520
576
|
highPrioritySendersManager: true,
|
|
@@ -543,7 +599,10 @@ export const getManifestForReplaceAllElectorates = async (
|
|
|
543
599
|
economicCommittee: true,
|
|
544
600
|
econCommitteeCharter: true,
|
|
545
601
|
},
|
|
546
|
-
consume: {
|
|
602
|
+
consume: {
|
|
603
|
+
economicCommittee: true,
|
|
604
|
+
econCommitteeCharter: true,
|
|
605
|
+
},
|
|
547
606
|
},
|
|
548
607
|
},
|
|
549
608
|
},
|