@agoric/builders 0.1.1-dev-6504dc6.0 → 0.1.1-dev-acbb5da.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.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-acbb5da.0+acbb5da",
|
|
4
4
|
"description": "Build scripts for proposals to an Agoric chain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"author": "Agoric",
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
27
|
-
"@agoric/fast-usdc": "0.1.1-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
30
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
31
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
32
|
-
"@agoric/vats": "0.15.2-dev-
|
|
33
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-acbb5da.0+acbb5da",
|
|
27
|
+
"@agoric/fast-usdc": "0.1.1-dev-acbb5da.0+acbb5da",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-acbb5da.0+acbb5da",
|
|
29
|
+
"@agoric/notifier": "0.6.3-dev-acbb5da.0+acbb5da",
|
|
30
|
+
"@agoric/smart-wallet": "0.5.4-dev-acbb5da.0+acbb5da",
|
|
31
|
+
"@agoric/vat-data": "0.5.3-dev-acbb5da.0+acbb5da",
|
|
32
|
+
"@agoric/vats": "0.15.2-dev-acbb5da.0+acbb5da",
|
|
33
|
+
"@agoric/zoe": "0.26.3-dev-acbb5da.0+acbb5da",
|
|
34
34
|
"@endo/bundle-source": "^3.5.1",
|
|
35
35
|
"@endo/captp": "^4.4.4",
|
|
36
36
|
"@endo/eventual-send": "^1.3.0",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"import-meta-resolve": "^2.2.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
47
|
-
"@agoric/governance": "0.10.4-dev-
|
|
48
|
-
"@agoric/inter-protocol": "0.16.2-dev-
|
|
49
|
-
"@agoric/orchestration": "0.1.1-dev-
|
|
50
|
-
"@agoric/store": "0.9.3-dev-
|
|
51
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
52
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
53
|
-
"@agoric/time": "0.3.3-dev-
|
|
46
|
+
"@agoric/deploy-script-support": "0.10.4-dev-acbb5da.0+acbb5da",
|
|
47
|
+
"@agoric/governance": "0.10.4-dev-acbb5da.0+acbb5da",
|
|
48
|
+
"@agoric/inter-protocol": "0.16.2-dev-acbb5da.0+acbb5da",
|
|
49
|
+
"@agoric/orchestration": "0.1.1-dev-acbb5da.0+acbb5da",
|
|
50
|
+
"@agoric/store": "0.9.3-dev-acbb5da.0+acbb5da",
|
|
51
|
+
"@agoric/swing-store": "0.9.2-dev-acbb5da.0+acbb5da",
|
|
52
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-acbb5da.0+acbb5da",
|
|
53
|
+
"@agoric/time": "0.3.3-dev-acbb5da.0+acbb5da",
|
|
54
54
|
"@endo/errors": "^1.2.9",
|
|
55
55
|
"ava": "^5.3.0",
|
|
56
56
|
"c8": "^10.1.2"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"typeCoverage": {
|
|
84
84
|
"atLeast": 91.57
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "acbb5da3c5a52bab8db319fd696aed70146f9a89"
|
|
87
87
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { parseScriptArgs, makeHelpers } from '@agoric/deploy-script-support';
|
|
2
|
+
import { getManifestForReplaceFeeDistributor } from '@agoric/inter-protocol/src/proposals/replace-fee-distributor.js';
|
|
3
|
+
import { SECONDS_PER_HOUR } from '@agoric/inter-protocol/src/proposals/econ-behaviors.js';
|
|
4
|
+
|
|
5
|
+
const configurations = {
|
|
6
|
+
A3P_INTEGRATION: {
|
|
7
|
+
params: {
|
|
8
|
+
collectionInterval: 30n,
|
|
9
|
+
keywordShares: {
|
|
10
|
+
RewardDistributor: 0n,
|
|
11
|
+
Reserve: 1n,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
MAINNET: {
|
|
16
|
+
params: {
|
|
17
|
+
collectionInterval: 1n * SECONDS_PER_HOUR,
|
|
18
|
+
keywordShares: {
|
|
19
|
+
RewardDistributor: 0n,
|
|
20
|
+
Reserve: 1n,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
DEVNET: {
|
|
25
|
+
params: {
|
|
26
|
+
collectionInterval: 1n * SECONDS_PER_HOUR,
|
|
27
|
+
keywordShares: {
|
|
28
|
+
RewardDistributor: 0n,
|
|
29
|
+
Reserve: 1n,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
EMERYNET: {
|
|
34
|
+
params: {
|
|
35
|
+
collectionInterval: 1n * SECONDS_PER_HOUR,
|
|
36
|
+
keywordShares: {
|
|
37
|
+
RewardDistributor: 0n,
|
|
38
|
+
Reserve: 1n,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
const { keys } = Object;
|
|
45
|
+
const knownVariants = keys(configurations);
|
|
46
|
+
|
|
47
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
48
|
+
export const defaultProposalBuilder = async (_, opts) => {
|
|
49
|
+
const config = opts.config || configurations[opts.variant];
|
|
50
|
+
console.log('feeDist OPTS', opts, config);
|
|
51
|
+
if (!config) {
|
|
52
|
+
const error = `Unknown variant "${opts.variant}". Expected one of ${knownVariants.join(', ')}`;
|
|
53
|
+
console.error(error);
|
|
54
|
+
throw Error(error);
|
|
55
|
+
}
|
|
56
|
+
const { params } = config;
|
|
57
|
+
|
|
58
|
+
return harden({
|
|
59
|
+
sourceSpec:
|
|
60
|
+
'@agoric/inter-protocol/src/proposals/replace-fee-distributor.js',
|
|
61
|
+
getManifestCall: [getManifestForReplaceFeeDistributor.name, { ...params }],
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
66
|
+
export default async (homeP, endowments) => {
|
|
67
|
+
const name = 'replace-feeDistributor-combo';
|
|
68
|
+
const opts = parseScriptArgs(endowments, name, knownVariants);
|
|
69
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
70
|
+
|
|
71
|
+
await writeCoreEval('replace-feeDistributor', utils =>
|
|
72
|
+
defaultProposalBuilder(utils, opts),
|
|
73
|
+
);
|
|
74
|
+
};
|
|
@@ -14,6 +14,6 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
14
14
|
|
|
15
15
|
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
16
16
|
export default async (homeP, endowments) => {
|
|
17
|
-
const {
|
|
18
|
-
await
|
|
17
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
18
|
+
await writeCoreEval('upgrade-bank', defaultProposalBuilder);
|
|
19
19
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
1
|
+
import { makeHelpers, parseScriptArgs } from '@agoric/deploy-script-support';
|
|
2
2
|
import { getManifestForUpgradingMintHolder } from '@agoric/vats/src/proposals/upgrade-mintHolder-proposal.js';
|
|
3
3
|
|
|
4
4
|
const configurations = {
|
|
@@ -94,30 +94,9 @@ export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
|
|
|
94
94
|
});
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
const Usage = `agoric run upgrade-mintHolder.js ${[...knownVariants, '<json-config>'].join(' | ')}`;
|
|
98
|
-
|
|
99
97
|
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
100
98
|
export default async (homeP, endowments) => {
|
|
101
|
-
const
|
|
102
|
-
const variantOrConfig = scriptArgs?.[0];
|
|
103
|
-
console.log('upgrade-mintHolder', variantOrConfig);
|
|
104
|
-
|
|
105
|
-
const opts = {};
|
|
106
|
-
|
|
107
|
-
if (typeof variantOrConfig === 'string') {
|
|
108
|
-
if (variantOrConfig[0] === '{') {
|
|
109
|
-
try {
|
|
110
|
-
opts.config = JSON.parse(variantOrConfig);
|
|
111
|
-
} catch (err) {
|
|
112
|
-
throw Error(`Failed to parse config argument ${variantOrConfig}`);
|
|
113
|
-
}
|
|
114
|
-
} else {
|
|
115
|
-
opts.variant = variantOrConfig;
|
|
116
|
-
}
|
|
117
|
-
} else {
|
|
118
|
-
console.error(Usage);
|
|
119
|
-
throw Error(Usage);
|
|
120
|
-
}
|
|
99
|
+
const opts = parseScriptArgs(endowments, 'upgrade-mintHolder', knownVariants);
|
|
121
100
|
|
|
122
101
|
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
123
102
|
await writeCoreEval(`upgrade-mintHolder`, utils =>
|
|
@@ -14,6 +14,6 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
14
14
|
|
|
15
15
|
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').DeployScriptFunction} */
|
|
16
16
|
export default async (homeP, endowments) => {
|
|
17
|
-
const {
|
|
18
|
-
await
|
|
17
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
18
|
+
await writeCoreEval('upgrade-psm', defaultProposalBuilder);
|
|
19
19
|
};
|