@agoric/builders 0.1.1-dev-78063fc.0 → 0.1.1-dev-b58d523.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 +18 -18
- package/scripts/fast-usdc/init-fast-usdc.js +13 -2
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-b58d523.0+b58d523",
|
|
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-b58d523.0+b58d523",
|
|
27
|
+
"@agoric/fast-usdc": "0.1.1-dev-b58d523.0+b58d523",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-b58d523.0+b58d523",
|
|
29
|
+
"@agoric/notifier": "0.6.3-dev-b58d523.0+b58d523",
|
|
30
|
+
"@agoric/smart-wallet": "0.5.4-dev-b58d523.0+b58d523",
|
|
31
|
+
"@agoric/vat-data": "0.5.3-dev-b58d523.0+b58d523",
|
|
32
|
+
"@agoric/vats": "0.15.2-dev-b58d523.0+b58d523",
|
|
33
|
+
"@agoric/zoe": "0.26.3-dev-b58d523.0+b58d523",
|
|
34
34
|
"@endo/bundle-source": "^3.5.0",
|
|
35
35
|
"@endo/captp": "^4.4.3",
|
|
36
36
|
"@endo/eventual-send": "^1.2.8",
|
|
@@ -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-b58d523.0+b58d523",
|
|
47
|
+
"@agoric/governance": "0.10.4-dev-b58d523.0+b58d523",
|
|
48
|
+
"@agoric/inter-protocol": "0.16.2-dev-b58d523.0+b58d523",
|
|
49
|
+
"@agoric/orchestration": "0.1.1-dev-b58d523.0+b58d523",
|
|
50
|
+
"@agoric/store": "0.9.3-dev-b58d523.0+b58d523",
|
|
51
|
+
"@agoric/swing-store": "0.9.2-dev-b58d523.0+b58d523",
|
|
52
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-b58d523.0+b58d523",
|
|
53
|
+
"@agoric/time": "0.3.3-dev-b58d523.0+b58d523",
|
|
54
54
|
"@endo/errors": "^1.2.8",
|
|
55
55
|
"ava": "^5.3.0",
|
|
56
56
|
"c8": "^10.1.2"
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
"typeCoverage": {
|
|
84
84
|
"atLeast": 90.93
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "b58d52340da194d6e51264cf3a54b51968e28bb4"
|
|
87
87
|
}
|
|
@@ -17,7 +17,7 @@ import { parseArgs } from 'node:util';
|
|
|
17
17
|
/**
|
|
18
18
|
* @import {CoreEvalBuilder, DeployScriptFunction} from '@agoric/deploy-script-support/src/externalTypes.js'
|
|
19
19
|
* @import {ParseArgsConfig} from 'node:util'
|
|
20
|
-
* @import {FastUSDCConfig} from '@agoric/fast-usdc/src/types.js'
|
|
20
|
+
* @import {FastUSDCConfig, FeedPolicy} from '@agoric/fast-usdc/src/types.js'
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
23
|
const { keys } = Object;
|
|
@@ -114,6 +114,7 @@ export default async (homeP, endowments) => {
|
|
|
114
114
|
},
|
|
115
115
|
} = parseArgs({ args: scriptArgs, options });
|
|
116
116
|
|
|
117
|
+
/** @returns {FeedPolicy} */
|
|
117
118
|
const parseFeedPolicy = () => {
|
|
118
119
|
if (net) {
|
|
119
120
|
if (!(net in configurations)) {
|
|
@@ -122,7 +123,17 @@ export default async (homeP, endowments) => {
|
|
|
122
123
|
return configurations[net].feedPolicy;
|
|
123
124
|
}
|
|
124
125
|
if (!feedPolicy) throw Error(feedPolicyUsage);
|
|
125
|
-
|
|
126
|
+
const parsed = JSON.parse(feedPolicy);
|
|
127
|
+
if (!parsed.chainPolicies) {
|
|
128
|
+
return {
|
|
129
|
+
...configurations.MAINNET.feedPolicy,
|
|
130
|
+
...parsed,
|
|
131
|
+
};
|
|
132
|
+
} else {
|
|
133
|
+
// consider having callers use `toExternalConfig` to pass in bigints and
|
|
134
|
+
// use `fromExternalConfig` here to parse
|
|
135
|
+
throw Error('TODO: support unmarshalling feedPolicy');
|
|
136
|
+
}
|
|
126
137
|
};
|
|
127
138
|
|
|
128
139
|
const parseOracleArgs = () => {
|