@agoric/builders 0.2.0-u17.1 → 0.2.0-u18.1
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 +13 -4
- package/package.json +28 -28
- package/scripts/inter-protocol/add-STARS.js +1 -0
- package/scripts/inter-protocol/add-collateral-core.js +7 -3
- package/scripts/inter-protocol/init-core.js +2 -1
- package/scripts/inter-protocol/invite-committee-core.js +2 -1
- package/scripts/inter-protocol/price-feed-core.js +1 -1
- package/scripts/inter-protocol/replace-electorate-core.js +163 -0
- package/scripts/inter-protocol/updatePriceFeeds.js +118 -0
- package/scripts/orchestration/init-basic-flows.js +1 -0
- package/scripts/orchestration/init-stakeAtom.js +2 -1
- package/scripts/orchestration/init-stakeBld.js +2 -1
- package/scripts/orchestration/init-stakeOsmo.js +2 -1
- package/scripts/orchestration/write-chain-info.js +1 -0
- package/scripts/pegasus/init-core.js +1 -0
- package/scripts/smart-wallet/build-game1-start.js +1 -0
- package/scripts/smart-wallet/build-wallet-factory2-upgrade.js +1 -0
- package/scripts/smart-wallet/build-walletFactory-upgrade.js +1 -0
- package/scripts/testing/add-LEMONS.js +1 -0
- package/scripts/testing/add-OLIVES.js +1 -0
- package/scripts/testing/append-chain-info.js +1 -3
- package/scripts/testing/fix-buggy-sendAnywhere.js +143 -0
- package/scripts/testing/restart-basic-flows.js +1 -0
- package/scripts/testing/restart-send-anywhere.js +1 -0
- package/scripts/testing/restart-stakeAtom.js +2 -1
- package/scripts/testing/restart-valueVow.js +1 -0
- package/scripts/testing/start-auto-stake-it.js +1 -0
- package/scripts/testing/start-buggy-sendAnywhere.js +143 -0
- package/scripts/testing/start-query-flows.js +1 -0
- package/scripts/testing/start-send-anywhere.js +1 -0
- package/scripts/testing/start-valueVow.js +1 -0
- package/scripts/testing/tweak-chain-info.js +1 -3
- package/scripts/vats/add-auction.js +8 -1
- package/scripts/vats/init-core.js +1 -0
- package/scripts/vats/init-localchain.js +1 -0
- package/scripts/vats/init-network.js +1 -0
- package/scripts/vats/init-orchestration.js +1 -0
- package/scripts/vats/init-transfer.js +1 -0
- package/scripts/vats/probe-zcf-bundle.js +1 -0
- package/scripts/vats/replace-provisioning.js +1 -0
- package/scripts/vats/replace-zoe.js +1 -0
- package/scripts/vats/restart-vats.js +1 -0
- package/scripts/vats/revive-kread.js +1 -0
- package/scripts/vats/test-localchain.js +1 -0
- package/scripts/vats/test-vtransfer.js +1 -0
- package/scripts/vats/updateAtomPriceFeed.js +1 -0
- package/scripts/vats/updateStAtomPriceFeed.js +1 -0
- package/scripts/vats/updateStOsmoPriceFeed.js +1 -0
- package/scripts/vats/updateStTiaPriceFeed.js +1 -0
- package/scripts/vats/updateStkAtomPriceFeed.js +1 -0
- package/scripts/vats/upgrade-bank.js +1 -0
- package/scripts/vats/upgrade-orch-core.js +1 -0
- package/scripts/vats/upgrade-provisionPool.js +1 -0
- package/scripts/vats/upgrade-zcf.js +1 -0
- package/scripts/vats/upgrade-zoe.js +1 -0
- package/scripts/vats/upgradeScaledPriceAuthorities.js +1 -0
- package/scripts/vats/upgradeVaults.js +2 -1
- package/scripts/inter-protocol/deploy-contracts.js +0 -111
package/CHANGELOG.md
CHANGED
|
@@ -3,20 +3,20 @@
|
|
|
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-
|
|
6
|
+
## [0.2.0-u18.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/builders@0.2.0-u18.0...@agoric/builders@0.2.0-u18.1) (2024-11-19)
|
|
7
7
|
|
|
8
|
+
**Note:** Version bump only for package @agoric/builders
|
|
8
9
|
|
|
9
|
-
### Bug Fixes
|
|
10
10
|
|
|
11
|
-
* write-chain-info after u17 ([a25d3c6](https://github.com/Agoric/agoric-sdk/commit/a25d3c6b9c31e0d7bedf17ecb22463e9a5d3e5ba))
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
|
|
15
|
-
## 0.2.0-
|
|
14
|
+
## 0.2.0-u18.0 (2024-10-31)
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
### ⚠ BREAKING CHANGES
|
|
19
18
|
|
|
19
|
+
* remove orch.makeLocalAccount
|
|
20
20
|
* make Network and IBC vats durable (#8721)
|
|
21
21
|
|
|
22
22
|
### Features
|
|
@@ -26,8 +26,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
26
26
|
* add priceFeed for StkAtom ([6a861df](https://github.com/Agoric/agoric-sdk/commit/6a861dfa14f42b4547a24ba31175a3b1a74c97c1))
|
|
27
27
|
* add transfer method to CosmosOrchestrationAccount ([b1fdde1](https://github.com/Agoric/agoric-sdk/commit/b1fdde18b33237d1a2ea6f02938d998f55ce4d01))
|
|
28
28
|
* add upgrade zcf only proposal ([73e0bb8](https://github.com/Agoric/agoric-sdk/commit/73e0bb830e7612e74c8fb510b909db154d2b2219))
|
|
29
|
+
* added replace electorate proposal in chain upgrade ([4e88d9f](https://github.com/Agoric/agoric-sdk/commit/4e88d9f0412fe2b90efda30df0afbb61887bf35f))
|
|
29
30
|
* auctioneer detects failing priceAuthority; requests new one ([#8691](https://github.com/Agoric/agoric-sdk/issues/8691)) ([8604b01](https://github.com/Agoric/agoric-sdk/commit/8604b011b072d7bef43df59c075bcff9582b8804)), closes [#8696](https://github.com/Agoric/agoric-sdk/issues/8696)
|
|
30
31
|
* **builders:** non-ambient `strictPriceFeedProposalBuilder` in `priceFeedSupport.js` ([95174a2](https://github.com/Agoric/agoric-sdk/commit/95174a23671ed16f7497ef6b0edaa63a54f1343d))
|
|
32
|
+
* coreEval to update priceFeeds, auction, and vaultManager ([fd91f78](https://github.com/Agoric/agoric-sdk/commit/fd91f781ad721033d67485d1732272af0c689ae7))
|
|
31
33
|
* examples/auto-stake-it.contract.js ([b87ecba](https://github.com/Agoric/agoric-sdk/commit/b87ecba0ea41f1397dbd513d8e4c541f1299fd3f)), closes [#9042](https://github.com/Agoric/agoric-sdk/issues/9042)
|
|
32
34
|
* include issuerKeywordRecord in start-sendAnywhere.js ([0b97916](https://github.com/Agoric/agoric-sdk/commit/0b9791672f91890a9de13511d0a6e7290d30d4d5))
|
|
33
35
|
* make Network and IBC vats durable ([#8721](https://github.com/Agoric/agoric-sdk/issues/8721)) ([3d13c09](https://github.com/Agoric/agoric-sdk/commit/3d13c09363013e23726c2ac5fa299a8e5344fd8c))
|
|
@@ -36,10 +38,15 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
36
38
|
* **orchestration:** add stakeAtom example contract ([82f1901](https://github.com/Agoric/agoric-sdk/commit/82f1901ec6ecf5a802a72023d033609deeb053e1))
|
|
37
39
|
* **orchestration:** create ChainAccount ([ba75ed6](https://github.com/Agoric/agoric-sdk/commit/ba75ed692a565aae5c5124ad5220f6901576532e))
|
|
38
40
|
* **orchestration:** stakeAtom query balance ([9f0ae09](https://github.com/Agoric/agoric-sdk/commit/9f0ae09e389f1750c9e550d5e6893460d1e21d07))
|
|
41
|
+
* remove orch.makeLocalAccount ([5526337](https://github.com/Agoric/agoric-sdk/commit/552633753ff66f011f6cff7b701cd3cc8f808fbe)), closes [#10106](https://github.com/Agoric/agoric-sdk/issues/10106)
|
|
42
|
+
* remove prefix.key_prefix from IBCConnectionInfo ([78e701a](https://github.com/Agoric/agoric-sdk/commit/78e701a92de9fa62ac719211a3bd874efd3678ac)), closes [#9807](https://github.com/Agoric/agoric-sdk/issues/9807)
|
|
39
43
|
* repair KREAd contract on zoe upgrade ([84dd229](https://github.com/Agoric/agoric-sdk/commit/84dd2297eb74061b809a11bba3c2d2c5c697219f))
|
|
44
|
+
* replace committee proposal support for custom config ([d3014e3](https://github.com/Agoric/agoric-sdk/commit/d3014e3162eeb7e30c2976dd8fd3feb9b79efc54))
|
|
40
45
|
* **smart-wallet:** upgrade walletFactory for non-vbank assets ([a0c4ecf](https://github.com/Agoric/agoric-sdk/commit/a0c4ecf5d6f1e3874828f5b2fcf38f87cb0619ba))
|
|
41
46
|
* stakeBld contract ([a7e30a4](https://github.com/Agoric/agoric-sdk/commit/a7e30a4e43c00b2916d2d57c70063650e726321f))
|
|
42
47
|
* start a new auction in a3p-integration ([969235b](https://github.com/Agoric/agoric-sdk/commit/969235b18abbd15187e343d5f616f12177d224c4))
|
|
48
|
+
* update price feed proposal support for custom config ([8804ed2](https://github.com/Agoric/agoric-sdk/commit/8804ed28e259bf4ee9dd8872ccdd9ec42897e279))
|
|
49
|
+
* upgrade auction and vaults to use the new governor ([5aeac6d](https://github.com/Agoric/agoric-sdk/commit/5aeac6d2bd3a95357c9a725e01391b3d967530ff))
|
|
43
50
|
* **vat-transfer:** first cut at working proposal ([2864bd5](https://github.com/Agoric/agoric-sdk/commit/2864bd5c12300c3595df9676bcfde894dbe59b29))
|
|
44
51
|
* **vats:** provide init-localchain ([19e5aed](https://github.com/Agoric/agoric-sdk/commit/19e5aed4e8a2aad667c04023e0aea01712ff9b9c))
|
|
45
52
|
* **vats:** upgrade the orchestration core ([c2d9530](https://github.com/Agoric/agoric-sdk/commit/c2d9530e2d891bd9412969a43a9c5728cc3c2721))
|
|
@@ -53,3 +60,5 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
53
60
|
* **orchestration:** makeAccount never resolves when icqEnabled: false ([a74b6a2](https://github.com/Agoric/agoric-sdk/commit/a74b6a27d5108c5e014d546b86c695e3fc8bf2e5))
|
|
54
61
|
* repair storage of zcfBundleCap and add a3p test ([72c7574](https://github.com/Agoric/agoric-sdk/commit/72c75740aff920ffb53231441d0f00a8747400f1))
|
|
55
62
|
* support issuerName separate from keyword in add-collateral-core ([f0b1559](https://github.com/Agoric/agoric-sdk/commit/f0b1559374fe67d10e92f20c85d90a6f07e03cf0))
|
|
63
|
+
* validate scriptArgs endowment ([6864614](https://github.com/Agoric/agoric-sdk/commit/68646147d3e95c68b4a90c9e37d888ef00e9d35d))
|
|
64
|
+
* write-chain-info after u17 ([fc1f3ce](https://github.com/Agoric/agoric-sdk/commit/fc1f3ce1fe03bb2018edd4eb55d6561312d5fbe8))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/builders",
|
|
3
|
-
"version": "0.2.0-
|
|
3
|
+
"version": "0.2.0-u18.1",
|
|
4
4
|
"description": "Build scripts for proposals to an Agoric chain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build:restart-vats-proposal": "echo This command has been deprecated. Please run this instead: agoric run scripts/vats/restart-vats.js",
|
|
12
12
|
"build:zcf-proposal": "echo This command has been deprecated. Please run this instead: agoric run scripts/vats/replace-zoe.js",
|
|
13
13
|
"prepack": "tsc --build tsconfig.build.json",
|
|
14
|
-
"postpack": "git clean -f '*.d.ts*'",
|
|
14
|
+
"postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
|
|
15
15
|
"test": "ava",
|
|
16
16
|
"test:xs": "exit 0",
|
|
17
17
|
"lint-fix": "yarn lint:eslint --fix",
|
|
@@ -23,33 +23,33 @@
|
|
|
23
23
|
"author": "Agoric",
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@agoric/ertp": "^0.16.3-
|
|
27
|
-
"@agoric/internal": "^0.4.0-
|
|
28
|
-
"@agoric/notifier": "^0.7.0-
|
|
29
|
-
"@agoric/smart-wallet": "^0.5.4-
|
|
30
|
-
"@agoric/vat-data": "^0.5.3-
|
|
31
|
-
"@agoric/vats": "^0.16.0-
|
|
32
|
-
"@agoric/zoe": "^0.26.3-
|
|
33
|
-
"@endo/bundle-source": "^3.4.
|
|
34
|
-
"@endo/captp": "^4.
|
|
35
|
-
"@endo/eventual-send": "^1.2.
|
|
36
|
-
"@endo/far": "^1.1.
|
|
37
|
-
"@endo/init": "^1.1.
|
|
38
|
-
"@endo/marshal": "^1.
|
|
39
|
-
"@endo/promise-kit": "^1.1.
|
|
40
|
-
"@endo/stream": "^1.2.
|
|
26
|
+
"@agoric/ertp": "^0.16.3-u18.0",
|
|
27
|
+
"@agoric/internal": "^0.4.0-u18.0",
|
|
28
|
+
"@agoric/notifier": "^0.7.0-u18.0",
|
|
29
|
+
"@agoric/smart-wallet": "^0.5.4-u18.1",
|
|
30
|
+
"@agoric/vat-data": "^0.5.3-u18.0",
|
|
31
|
+
"@agoric/vats": "^0.16.0-u18.1",
|
|
32
|
+
"@agoric/zoe": "^0.26.3-u18.0",
|
|
33
|
+
"@endo/bundle-source": "^3.4.2",
|
|
34
|
+
"@endo/captp": "^4.4.2",
|
|
35
|
+
"@endo/eventual-send": "^1.2.7",
|
|
36
|
+
"@endo/far": "^1.1.8",
|
|
37
|
+
"@endo/init": "^1.1.6",
|
|
38
|
+
"@endo/marshal": "^1.6.1",
|
|
39
|
+
"@endo/promise-kit": "^1.1.7",
|
|
40
|
+
"@endo/stream": "^1.2.7",
|
|
41
41
|
"import-meta-resolve": "^2.2.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@agoric/deploy-script-support": "^0.10.4-
|
|
45
|
-
"@agoric/governance": "^0.10.4-
|
|
46
|
-
"@agoric/inter-protocol": "^0.17.0-
|
|
47
|
-
"@agoric/orchestration": "^0.2.0-
|
|
48
|
-
"@agoric/store": "^0.9.3-
|
|
49
|
-
"@agoric/swing-store": "^0.
|
|
50
|
-
"@agoric/swingset-liveslots": "^0.10.3-
|
|
51
|
-
"@agoric/time": "^0.3.3-
|
|
52
|
-
"@endo/errors": "^1.2.
|
|
44
|
+
"@agoric/deploy-script-support": "^0.10.4-u18.1",
|
|
45
|
+
"@agoric/governance": "^0.10.4-u18.0",
|
|
46
|
+
"@agoric/inter-protocol": "^0.17.0-u18.1",
|
|
47
|
+
"@agoric/orchestration": "^0.2.0-u18.1",
|
|
48
|
+
"@agoric/store": "^0.9.3-u18.0",
|
|
49
|
+
"@agoric/swing-store": "^0.10.0-u18.0",
|
|
50
|
+
"@agoric/swingset-liveslots": "^0.10.3-u18.0",
|
|
51
|
+
"@agoric/time": "^0.3.3-u18.0",
|
|
52
|
+
"@endo/errors": "^1.2.7",
|
|
53
53
|
"ava": "^5.3.0",
|
|
54
54
|
"c8": "^9.1.0"
|
|
55
55
|
},
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"workerThreads": false
|
|
80
80
|
},
|
|
81
81
|
"typeCoverage": {
|
|
82
|
-
"atLeast":
|
|
82
|
+
"atLeast": 82.43
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "329d378c894020c788ed45918bf26105edfdf969"
|
|
85
85
|
}
|
|
@@ -36,6 +36,7 @@ const starsOraclesProposalBuilder = async powers => {
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
39
40
|
export default async (homeP, endowments) => {
|
|
40
41
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
41
42
|
await writeCoreEval('add-STARS', starsVaultProposalBuilder);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* eslint-env node */
|
|
2
2
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
3
3
|
|
|
4
4
|
import { getManifestForAddAssetToVault } from '@agoric/inter-protocol/src/proposals/addAssetToVault.js';
|
|
@@ -103,6 +103,7 @@ export const psmProposalBuilder = async (
|
|
|
103
103
|
});
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
106
107
|
export default async (homeP, endowments) => {
|
|
107
108
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
108
109
|
|
|
@@ -112,7 +113,10 @@ export default async (homeP, endowments) => {
|
|
|
112
113
|
|
|
113
114
|
await writeCoreEval('gov-add-collateral', defaultProposalBuilder);
|
|
114
115
|
await writeCoreEval('gov-start-psm', opts =>
|
|
115
|
-
|
|
116
|
-
|
|
116
|
+
psmProposalBuilder({
|
|
117
|
+
...opts,
|
|
118
|
+
// @ts-expect-error XXX makeInstallCache types
|
|
119
|
+
wrapInstall: tool.wrapInstall,
|
|
120
|
+
}),
|
|
117
121
|
);
|
|
118
122
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* eslint-env node */
|
|
2
2
|
/**
|
|
3
3
|
* @file can be run with `agoric deploy` after a chain is running (depends on
|
|
4
4
|
* chain state) Only works with "local" chain and not sim-chain b/c it needs
|
|
@@ -184,6 +184,7 @@ export const defaultProposalBuilder = async (
|
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
187
188
|
export default async (homeP, endowments) => {
|
|
188
189
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
189
190
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* eslint-env node */
|
|
2
2
|
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
3
3
|
|
|
4
4
|
import { getManifestForInviteCommittee } from '@agoric/inter-protocol/src/proposals/committee-proposal.js';
|
|
@@ -36,6 +36,7 @@ export const defaultProposalBuilder = async (
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
39
40
|
export default async (homeP, endowments) => {
|
|
40
41
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
41
42
|
await writeCoreEval('gov-invite-committee', defaultProposalBuilder);
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file build core eval script to replace EC committee and charter
|
|
3
|
+
* Usage:
|
|
4
|
+
* To run this script, use the following command format in the CLI:
|
|
5
|
+
* agoric run replace-electorate-core.js [ENVIRONMENT]
|
|
6
|
+
* where [ENVIRONMENT] is one of the following:
|
|
7
|
+
* - MAINNET
|
|
8
|
+
* - DEVNET
|
|
9
|
+
* - EMERYNET
|
|
10
|
+
* - A3P_INTEGRATION
|
|
11
|
+
* - BOOTSTRAP_TEST
|
|
12
|
+
*
|
|
13
|
+
* Example:
|
|
14
|
+
* agoric run replace-electorate-core.js MAINNET
|
|
15
|
+
*/
|
|
16
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
17
|
+
import { getManifestForReplaceAllElectorates } from '@agoric/inter-protocol/src/proposals/replaceElectorate.js';
|
|
18
|
+
|
|
19
|
+
/** @typedef {Parameters<typeof import('@agoric/inter-protocol/src/proposals/replaceElectorate.js').replaceAllElectorates>[1]['options']} ReplaceElectorateOptions */
|
|
20
|
+
|
|
21
|
+
/** @type {Record<string, ReplaceElectorateOptions>} */
|
|
22
|
+
const configurations = {
|
|
23
|
+
MAINNET: {
|
|
24
|
+
committeeName: 'Economic Committee',
|
|
25
|
+
voterAddresses: {
|
|
26
|
+
'Chloe White': 'agoric1d4228cvelf8tj65f4h7n2td90sscavln2283h5',
|
|
27
|
+
'Chris Berg': 'agoric13p9adwk0na5npfq64g22l6xucvqdmu3xqe70wq',
|
|
28
|
+
'Joe Clark': 'agoric1zayxg4e9vd0es9c9jlpt36qtth255txjp6a8yc',
|
|
29
|
+
},
|
|
30
|
+
highPrioritySendersConfig: {
|
|
31
|
+
addressesToAdd: [],
|
|
32
|
+
addressesToRemove: [
|
|
33
|
+
'agoric1gx9uu7y6c90rqruhesae2t7c2vlw4uyyxlqxrx',
|
|
34
|
+
'agoric14543m33dr28x7qhwc558hzlj9szwhzwzpcmw6a',
|
|
35
|
+
'agoric1el6zqs8ggctj5vwyukyk4fh50wcpdpwgugd5l5',
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
DEVNET: {
|
|
40
|
+
committeeName: 'Economic Committee',
|
|
41
|
+
voterAddresses: {
|
|
42
|
+
gov1: 'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce',
|
|
43
|
+
gov2: 'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang',
|
|
44
|
+
gov4: 'agoric1f0h5zgxyg3euxsqzs0506uj4cmu56y30pqx46s',
|
|
45
|
+
},
|
|
46
|
+
highPrioritySendersConfig: {
|
|
47
|
+
addressesToAdd: ['agoric1f0h5zgxyg3euxsqzs0506uj4cmu56y30pqx46s'],
|
|
48
|
+
addressesToRemove: ['agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h'],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
EMERYNET: {
|
|
52
|
+
committeeName: 'Economic Committee',
|
|
53
|
+
voterAddresses: {
|
|
54
|
+
gov1: 'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce',
|
|
55
|
+
gov2: 'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang',
|
|
56
|
+
gov4: 'agoric1f0h5zgxyg3euxsqzs0506uj4cmu56y30pqx46s',
|
|
57
|
+
},
|
|
58
|
+
highPrioritySendersConfig: {
|
|
59
|
+
addressesToAdd: ['agoric1f0h5zgxyg3euxsqzs0506uj4cmu56y30pqx46s'],
|
|
60
|
+
addressesToRemove: ['agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h'],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
A3P_INTEGRATION: {
|
|
64
|
+
committeeName: 'Economic Committee',
|
|
65
|
+
voterAddresses: {
|
|
66
|
+
gov1: 'agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q',
|
|
67
|
+
gov2: 'agoric1wrfh296eu2z34p6pah7q04jjuyj3mxu9v98277',
|
|
68
|
+
gov4: 'agoric1c9gyu460lu70rtcdp95vummd6032psmpdx7wdy',
|
|
69
|
+
},
|
|
70
|
+
highPrioritySendersConfig: {
|
|
71
|
+
addressesToAdd: ['agoric1c9gyu460lu70rtcdp95vummd6032psmpdx7wdy'],
|
|
72
|
+
addressesToRemove: ['agoric1ydzxwh6f893jvpaslmaz6l8j2ulup9a7x8qvvq'],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
BOOTSTRAP_TEST: {
|
|
76
|
+
committeeName: 'Economic Committee',
|
|
77
|
+
voterAddresses: {
|
|
78
|
+
gov1: 'agoric1gx9uu7y6c90rqruhesae2t7c2vlw4uyyxlqxrx',
|
|
79
|
+
gov2: 'agoric1d4228cvelf8tj65f4h7n2td90sscavln2283h5',
|
|
80
|
+
gov3: 'agoric14543m33dr28x7qhwc558hzlj9szwhzwzpcmw6a',
|
|
81
|
+
},
|
|
82
|
+
highPrioritySendersConfig: {
|
|
83
|
+
addressesToAdd: [],
|
|
84
|
+
addressesToRemove: [
|
|
85
|
+
'agoric13p9adwk0na5npfq64g22l6xucvqdmu3xqe70wq',
|
|
86
|
+
'agoric1el6zqs8ggctj5vwyukyk4fh50wcpdpwgugd5l5',
|
|
87
|
+
'agoric1zayxg4e9vd0es9c9jlpt36qtth255txjp6a8yc',
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const { keys } = Object;
|
|
94
|
+
const knownVariants = keys(configurations);
|
|
95
|
+
|
|
96
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
97
|
+
export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
|
|
98
|
+
const config = opts.config || configurations[opts.variant];
|
|
99
|
+
if (!config) {
|
|
100
|
+
const error = `Unknown variant "${opts.variant}". Expected one of ${knownVariants.join(', ')}`;
|
|
101
|
+
console.error(error);
|
|
102
|
+
throw Error(error);
|
|
103
|
+
}
|
|
104
|
+
const { committeeName, voterAddresses, highPrioritySendersConfig } = config;
|
|
105
|
+
console.log(
|
|
106
|
+
'Generating replace committee proposal with config',
|
|
107
|
+
JSON.stringify({
|
|
108
|
+
committeeName,
|
|
109
|
+
voterAddresses,
|
|
110
|
+
highPrioritySendersConfig,
|
|
111
|
+
}),
|
|
112
|
+
);
|
|
113
|
+
return harden({
|
|
114
|
+
sourceSpec: '@agoric/inter-protocol/src/proposals/replaceElectorate.js',
|
|
115
|
+
getManifestCall: [
|
|
116
|
+
getManifestForReplaceAllElectorates.name,
|
|
117
|
+
{
|
|
118
|
+
committeeName,
|
|
119
|
+
voterAddresses,
|
|
120
|
+
highPrioritySendersConfig,
|
|
121
|
+
economicCommitteeRef: publishRef(
|
|
122
|
+
install(
|
|
123
|
+
'@agoric/governance/src/committee.js',
|
|
124
|
+
'../bundles/bundle-committee.js',
|
|
125
|
+
),
|
|
126
|
+
),
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
});
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
const Usage = `agoric run replace-electorate-core.js ${[...knownVariants, '<json-config>'].join(' | ')}`;
|
|
133
|
+
|
|
134
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
135
|
+
export default async (homeP, endowments) => {
|
|
136
|
+
const { scriptArgs } = endowments;
|
|
137
|
+
const variantOrConfig = scriptArgs?.[0];
|
|
138
|
+
console.log('replace-electorate-core.js', variantOrConfig);
|
|
139
|
+
|
|
140
|
+
const opts = {};
|
|
141
|
+
|
|
142
|
+
if (typeof variantOrConfig === 'string') {
|
|
143
|
+
if (variantOrConfig[0] === '{') {
|
|
144
|
+
try {
|
|
145
|
+
opts.config = JSON.parse(variantOrConfig);
|
|
146
|
+
} catch (err) {
|
|
147
|
+
throw Error(`Failed to parse config argument ${variantOrConfig}`);
|
|
148
|
+
}
|
|
149
|
+
} else {
|
|
150
|
+
opts.variant = variantOrConfig;
|
|
151
|
+
}
|
|
152
|
+
} else {
|
|
153
|
+
console.error(Usage);
|
|
154
|
+
throw Error(Usage);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
158
|
+
|
|
159
|
+
await writeCoreEval(
|
|
160
|
+
`replace-committee-${opts.variant || 'from-config'}`,
|
|
161
|
+
utils => defaultProposalBuilder(utils, opts),
|
|
162
|
+
);
|
|
163
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
import { getManifestForPriceFeeds } from '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js';
|
|
3
|
+
|
|
4
|
+
/** @import {PriceFeedConfig} from '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js'; */
|
|
5
|
+
|
|
6
|
+
/** @type {Record<string, PriceFeedConfig>} */
|
|
7
|
+
const configurations = {
|
|
8
|
+
A3P_INTEGRATION: {
|
|
9
|
+
oracleAddresses: [
|
|
10
|
+
'agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q', // GOV1
|
|
11
|
+
'agoric1wrfh296eu2z34p6pah7q04jjuyj3mxu9v98277', // GOV2
|
|
12
|
+
'agoric1ydzxwh6f893jvpaslmaz6l8j2ulup9a7x8qvvq', // GOV3
|
|
13
|
+
],
|
|
14
|
+
inBrandNames: ['ATOM', 'stATOM'],
|
|
15
|
+
},
|
|
16
|
+
MAINNET: {
|
|
17
|
+
oracleAddresses: [
|
|
18
|
+
'agoric144rrhh4m09mh7aaffhm6xy223ym76gve2x7y78', // DSRV
|
|
19
|
+
'agoric19d6gnr9fyp6hev4tlrg87zjrzsd5gzr5qlfq2p', // Stakin
|
|
20
|
+
'agoric19uscwxdac6cf6z7d5e26e0jm0lgwstc47cpll8', // 01node
|
|
21
|
+
'agoric1krunjcqfrf7la48zrvdfeeqtls5r00ep68mzkr', // Simply Staking
|
|
22
|
+
'agoric1n4fcxsnkxe4gj6e24naec99hzmc4pjfdccy5nj', // P2P
|
|
23
|
+
],
|
|
24
|
+
inBrandNames: ['ATOM', 'stATOM', 'stOSMO', 'stTIA', 'stkATOM'],
|
|
25
|
+
contractTerms: { minSubmissionCount: 3 },
|
|
26
|
+
},
|
|
27
|
+
DEVNET: {
|
|
28
|
+
oracleAddresses: [
|
|
29
|
+
'agoric1lw4e4aas9q84tq0q92j85rwjjjapf8dmnllnft', // DSRV
|
|
30
|
+
'agoric1zj6vrrrjq4gsyr9lw7dplv4vyejg3p8j2urm82', // Stakin
|
|
31
|
+
'agoric1ra0g6crtsy6r3qnpu7ruvm7qd4wjnznyzg5nu4', // 01node
|
|
32
|
+
'agoric1qj07c7vfk3knqdral0sej7fa6eavkdn8vd8etf', // Simply Staking
|
|
33
|
+
'agoric10vjkvkmpp9e356xeh6qqlhrny2htyzp8hf88fk', // P2P
|
|
34
|
+
],
|
|
35
|
+
inBrandNames: ['ATOM', 'stTIA', 'stkATOM'],
|
|
36
|
+
},
|
|
37
|
+
EMERYNET: {
|
|
38
|
+
oracleAddresses: [
|
|
39
|
+
'agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce', // GOV1
|
|
40
|
+
'agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang', // GOV2
|
|
41
|
+
],
|
|
42
|
+
inBrandNames: ['ATOM', 'stATOM', 'stOSMO', 'stTIA', 'stkATOM'],
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const { keys } = Object;
|
|
47
|
+
const knownVariants = keys(configurations);
|
|
48
|
+
|
|
49
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
50
|
+
export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
|
|
51
|
+
const config = opts.config || configurations[opts.variant];
|
|
52
|
+
if (!config) {
|
|
53
|
+
const error = `Unknown variant "${opts.variant}". Expected one of ${knownVariants.join(', ')}`;
|
|
54
|
+
console.error(error);
|
|
55
|
+
throw Error(error);
|
|
56
|
+
}
|
|
57
|
+
const { oracleAddresses, inBrandNames, contractTerms } = config;
|
|
58
|
+
console.log(
|
|
59
|
+
'Generating price feeds update proposal with config',
|
|
60
|
+
JSON.stringify({ oracleAddresses, inBrandNames, contractTerms }),
|
|
61
|
+
);
|
|
62
|
+
return harden({
|
|
63
|
+
sourceSpec: '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js',
|
|
64
|
+
getManifestCall: [
|
|
65
|
+
getManifestForPriceFeeds.name,
|
|
66
|
+
{
|
|
67
|
+
oracleAddresses,
|
|
68
|
+
inBrandNames,
|
|
69
|
+
contractTerms,
|
|
70
|
+
priceAggregatorRef: publishRef(
|
|
71
|
+
install(
|
|
72
|
+
'@agoric/inter-protocol/src/price/fluxAggregatorContract.js',
|
|
73
|
+
'../bundles/bundle-fluxAggregatorKit.js',
|
|
74
|
+
),
|
|
75
|
+
),
|
|
76
|
+
scaledPARef: publishRef(
|
|
77
|
+
install(
|
|
78
|
+
'@agoric/zoe/src/contracts/scaledPriceAuthority.js',
|
|
79
|
+
'../bundles/bundle-scaledPriceAuthority.js',
|
|
80
|
+
),
|
|
81
|
+
),
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const Usage = `agoric run updatePriceFeeds.js ${[...knownVariants, '<json-config>'].join(' | ')}`;
|
|
88
|
+
|
|
89
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
90
|
+
export default async (homeP, endowments) => {
|
|
91
|
+
const { scriptArgs } = endowments;
|
|
92
|
+
const variantOrConfig = scriptArgs?.[0];
|
|
93
|
+
console.log('updatePriceFeeds.js', variantOrConfig);
|
|
94
|
+
|
|
95
|
+
const opts = {};
|
|
96
|
+
|
|
97
|
+
if (typeof variantOrConfig === 'string') {
|
|
98
|
+
if (variantOrConfig[0] === '{') {
|
|
99
|
+
try {
|
|
100
|
+
opts.config = JSON.parse(variantOrConfig);
|
|
101
|
+
} catch (err) {
|
|
102
|
+
throw Error(`Failed to parse config argument ${variantOrConfig}`);
|
|
103
|
+
}
|
|
104
|
+
} else {
|
|
105
|
+
opts.variant = variantOrConfig;
|
|
106
|
+
}
|
|
107
|
+
} else {
|
|
108
|
+
console.error(Usage);
|
|
109
|
+
throw Error(Usage);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
113
|
+
|
|
114
|
+
await writeCoreEval(
|
|
115
|
+
`gov-price-feeds-${opts.variant || 'from-config'}`,
|
|
116
|
+
utils => defaultProposalBuilder(utils, opts),
|
|
117
|
+
);
|
|
118
|
+
};
|
|
@@ -20,6 +20,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
23
24
|
export default async (homeP, endowments) => {
|
|
24
25
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
25
26
|
await writeCoreEval(startBasicFlows.name, defaultProposalBuilder);
|
|
@@ -9,7 +9,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
|
9
9
|
{
|
|
10
10
|
installKeys: {
|
|
11
11
|
stakeIca: publishRef(
|
|
12
|
-
install('@agoric/orchestration/src/examples/
|
|
12
|
+
install('@agoric/orchestration/src/examples/stake-ica.contract.js'),
|
|
13
13
|
),
|
|
14
14
|
},
|
|
15
15
|
},
|
|
@@ -17,6 +17,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
20
21
|
export default async (homeP, endowments) => {
|
|
21
22
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
22
23
|
await writeCoreEval('start-stakeAtom', defaultProposalBuilder);
|
|
@@ -10,13 +10,14 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
10
10
|
{
|
|
11
11
|
installKeys: {
|
|
12
12
|
stakeBld: publishRef(
|
|
13
|
-
install('@agoric/orchestration/src/examples/
|
|
13
|
+
install('@agoric/orchestration/src/examples/stake-bld.contract.js'),
|
|
14
14
|
),
|
|
15
15
|
},
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
20
21
|
export default async (homeP, endowments) => {
|
|
21
22
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
22
23
|
await writeCoreEval('start-stakeBld', defaultProposalBuilder);
|
|
@@ -9,7 +9,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
|
9
9
|
{
|
|
10
10
|
installKeys: {
|
|
11
11
|
stakeIca: publishRef(
|
|
12
|
-
install('@agoric/orchestration/src/examples/
|
|
12
|
+
install('@agoric/orchestration/src/examples/stake-ica.contract.js'),
|
|
13
13
|
),
|
|
14
14
|
},
|
|
15
15
|
},
|
|
@@ -17,6 +17,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
20
21
|
export default async (homeP, endowments) => {
|
|
21
22
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
22
23
|
await writeCoreEval('start-stakeOsmo', defaultProposalBuilder);
|
|
@@ -7,6 +7,7 @@ export const defaultProposalBuilder = async () =>
|
|
|
7
7
|
getManifestCall: ['getManifestForChainInfo'],
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
10
11
|
export default async (homeP, endowments) => {
|
|
11
12
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
12
13
|
await writeCoreEval('gov-orchestration', defaultProposalBuilder);
|
|
@@ -17,6 +17,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
17
17
|
],
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
20
21
|
export default async (homeP, endowments) => {
|
|
21
22
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
22
23
|
await writeCoreEval('gov-pegasus', defaultProposalBuilder);
|
|
@@ -27,6 +27,7 @@ const game1ProposalBuilder = async ({ publishRef, install }) => {
|
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
30
31
|
export default async (homeP, endowments) => {
|
|
31
32
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
32
33
|
await writeCoreEval('start-game1', game1ProposalBuilder);
|
|
@@ -22,6 +22,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
22
22
|
],
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
25
26
|
export default async (homeP, endowments) => {
|
|
26
27
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
27
28
|
await writeCoreEval('upgrade-wallet-factory', defaultProposalBuilder);
|
|
@@ -28,6 +28,7 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
|
28
28
|
});
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
31
32
|
export default async (homeP, endowments) => {
|
|
32
33
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
33
34
|
await writeCoreEval('upgrade-walletFactory', defaultProposalBuilder);
|
|
@@ -17,6 +17,7 @@ const starsVaultProposalBuilder = async powers => {
|
|
|
17
17
|
});
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
20
21
|
export default async (homeP, endowments) => {
|
|
21
22
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
22
23
|
await writeCoreEval('add-STARS-collateral', starsVaultProposalBuilder);
|
|
@@ -16,6 +16,7 @@ const stars2VaultProposalBuilder = async powers => {
|
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
19
20
|
export default async (homeP, endowments) => {
|
|
20
21
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
21
22
|
await writeCoreEval('add-STARS2-collateral', stars2VaultProposalBuilder);
|
|
@@ -13,9 +13,6 @@ const chainInfo = {
|
|
|
13
13
|
counterparty: {
|
|
14
14
|
client_id: '07-tendermint-2',
|
|
15
15
|
connection_id: 'connection-1',
|
|
16
|
-
prefix: {
|
|
17
|
-
key_prefix: '',
|
|
18
|
-
},
|
|
19
16
|
},
|
|
20
17
|
state: 3 /* IBCConnectionState.STATE_OPEN */,
|
|
21
18
|
transferChannel: {
|
|
@@ -44,6 +41,7 @@ export const defaultProposalBuilder = async () =>
|
|
|
44
41
|
],
|
|
45
42
|
});
|
|
46
43
|
|
|
44
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
47
45
|
export default async (homeP, endowments) => {
|
|
48
46
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
49
47
|
await writeCoreEval('revise-chain-info', defaultProposalBuilder);
|