@agoric/builders 0.2.0-u18.2 → 0.2.0-u18.4

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/CHANGELOG.md CHANGED
@@ -3,6 +3,23 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.2.0-u18.4](https://github.com/Agoric/agoric-sdk/compare/@agoric/builders@0.2.0-u18.3...@agoric/builders@0.2.0-u18.4) (2024-12-13)
7
+
8
+
9
+ ### Features
10
+
11
+ * record instances that will be replaced so we can manage them ([3b1a35d](https://github.com/Agoric/agoric-sdk/commit/3b1a35d31a7bf20fab6b80af3091079f6307cb29))
12
+
13
+
14
+
15
+ ## [0.2.0-u18.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/builders@0.2.0-u18.2...@agoric/builders@0.2.0-u18.3) (2024-12-09)
16
+
17
+ **Note:** Version bump only for package @agoric/builders
18
+
19
+
20
+
21
+
22
+
6
23
  ## [0.2.0-u18.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/builders@0.2.0-u18.1...@agoric/builders@0.2.0-u18.2) (2024-11-21)
7
24
 
8
25
  **Note:** Version bump only for package @agoric/builders
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/builders",
3
- "version": "0.2.0-u18.2",
3
+ "version": "0.2.0-u18.4",
4
4
  "description": "Build scripts for proposals to an Agoric chain",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -26,9 +26,9 @@
26
26
  "@agoric/ertp": "^0.16.3-u18.0",
27
27
  "@agoric/internal": "^0.4.0-u18.0",
28
28
  "@agoric/notifier": "^0.7.0-u18.0",
29
- "@agoric/smart-wallet": "^0.5.4-u18.2",
29
+ "@agoric/smart-wallet": "^0.5.4-u18.3",
30
30
  "@agoric/vat-data": "^0.5.3-u18.0",
31
- "@agoric/vats": "^0.16.0-u18.2",
31
+ "@agoric/vats": "^0.16.0-u18.3",
32
32
  "@agoric/zoe": "^0.26.3-u18.0",
33
33
  "@endo/bundle-source": "^3.4.2",
34
34
  "@endo/captp": "^4.4.2",
@@ -41,10 +41,10 @@
41
41
  "import-meta-resolve": "^2.2.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@agoric/deploy-script-support": "^0.10.4-u18.2",
44
+ "@agoric/deploy-script-support": "^0.10.4-u18.3",
45
45
  "@agoric/governance": "^0.10.4-u18.0",
46
- "@agoric/inter-protocol": "^0.17.0-u18.2",
47
- "@agoric/orchestration": "^0.2.0-u18.2",
46
+ "@agoric/inter-protocol": "^0.17.0-u18.4",
47
+ "@agoric/orchestration": "^0.2.0-u18.3",
48
48
  "@agoric/store": "^0.9.3-u18.0",
49
49
  "@agoric/swing-store": "^0.10.0-u18.0",
50
50
  "@agoric/swingset-liveslots": "^0.10.3-u18.0",
@@ -81,5 +81,5 @@
81
81
  "typeCoverage": {
82
82
  "atLeast": 82.43
83
83
  },
84
- "gitHead": "431b36a49f8574ce49c29d152bf0ace03eb5a348"
84
+ "gitHead": "9770dee3ff8774388dfb600da987e1d511c47b5d"
85
85
  }
@@ -32,7 +32,7 @@ const configurations = {
32
32
  'agoric1qj07c7vfk3knqdral0sej7fa6eavkdn8vd8etf', // Simply Staking
33
33
  'agoric10vjkvkmpp9e356xeh6qqlhrny2htyzp8hf88fk', // P2P
34
34
  ],
35
- inBrandNames: ['ATOM', 'stTIA', 'stkATOM'],
35
+ inBrandNames: ['ATOM', 'stTIA', 'stkATOM', 'dATOM'],
36
36
  },
37
37
  EMERYNET: {
38
38
  oracleAddresses: [
@@ -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
+ };