@agoric/builders 0.1.1-dev-6415ef6.0 → 0.1.1-dev-da89a20.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-da89a20.0+da89a20",
|
|
4
4
|
"description": "Build scripts for proposals to an Agoric chain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
"author": "Agoric",
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
27
|
-
"@agoric/internal": "0.3.3-dev-
|
|
28
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
29
|
-
"@agoric/smart-wallet": "0.5.4-dev-
|
|
30
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
31
|
-
"@agoric/vats": "0.15.2-dev-
|
|
32
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-da89a20.0+da89a20",
|
|
27
|
+
"@agoric/internal": "0.3.3-dev-da89a20.0+da89a20",
|
|
28
|
+
"@agoric/notifier": "0.6.3-dev-da89a20.0+da89a20",
|
|
29
|
+
"@agoric/smart-wallet": "0.5.4-dev-da89a20.0+da89a20",
|
|
30
|
+
"@agoric/vat-data": "0.5.3-dev-da89a20.0+da89a20",
|
|
31
|
+
"@agoric/vats": "0.15.2-dev-da89a20.0+da89a20",
|
|
32
|
+
"@agoric/zoe": "0.26.3-dev-da89a20.0+da89a20",
|
|
33
33
|
"@endo/bundle-source": "^3.4.0",
|
|
34
34
|
"@endo/captp": "^4.3.0",
|
|
35
35
|
"@endo/eventual-send": "^1.2.5",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"import-meta-resolve": "^2.2.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@agoric/deploy-script-support": "0.10.4-dev-
|
|
45
|
-
"@agoric/governance": "0.10.4-dev-
|
|
46
|
-
"@agoric/inter-protocol": "0.16.2-dev-
|
|
47
|
-
"@agoric/orchestration": "0.1.1-dev-
|
|
48
|
-
"@agoric/store": "0.9.3-dev-
|
|
49
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
50
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
51
|
-
"@agoric/time": "0.3.3-dev-
|
|
44
|
+
"@agoric/deploy-script-support": "0.10.4-dev-da89a20.0+da89a20",
|
|
45
|
+
"@agoric/governance": "0.10.4-dev-da89a20.0+da89a20",
|
|
46
|
+
"@agoric/inter-protocol": "0.16.2-dev-da89a20.0+da89a20",
|
|
47
|
+
"@agoric/orchestration": "0.1.1-dev-da89a20.0+da89a20",
|
|
48
|
+
"@agoric/store": "0.9.3-dev-da89a20.0+da89a20",
|
|
49
|
+
"@agoric/swing-store": "0.9.2-dev-da89a20.0+da89a20",
|
|
50
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-da89a20.0+da89a20",
|
|
51
|
+
"@agoric/time": "0.3.3-dev-da89a20.0+da89a20",
|
|
52
52
|
"@endo/errors": "^1.2.5",
|
|
53
53
|
"ava": "^5.3.0",
|
|
54
54
|
"c8": "^9.1.0"
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"typeCoverage": {
|
|
82
82
|
"atLeast": 82.43
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "da89a207e62599dab3984d298e35c40d958edb4d"
|
|
85
85
|
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* global process */
|
|
2
|
+
|
|
3
|
+
import { makeHelpers } from '@agoric/deploy-script-support';
|
|
4
|
+
import { getManifestForPriceFeeds } from '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js';
|
|
5
|
+
|
|
6
|
+
/** @import {PriceFeedConfig} from '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js'; */
|
|
7
|
+
|
|
8
|
+
/** @type {Record<string, PriceFeedConfig>} */
|
|
9
|
+
const configurations = {
|
|
10
|
+
A3P_INTEGRATION: {
|
|
11
|
+
oracleAddresses: [
|
|
12
|
+
'agoric1ee9hr0jyrxhy999y755mp862ljgycmwyp4pl7q', // GOV1
|
|
13
|
+
'agoric1wrfh296eu2z34p6pah7q04jjuyj3mxu9v98277', // GOV2
|
|
14
|
+
'agoric1ydzxwh6f893jvpaslmaz6l8j2ulup9a7x8qvvq', // GOV3
|
|
15
|
+
],
|
|
16
|
+
inBrandNames: ['ATOM', 'stATOM'],
|
|
17
|
+
},
|
|
18
|
+
main: {
|
|
19
|
+
oracleAddresses: [
|
|
20
|
+
'agoric144rrhh4m09mh7aaffhm6xy223ym76gve2x7y78', // DSRV
|
|
21
|
+
'agoric19d6gnr9fyp6hev4tlrg87zjrzsd5gzr5qlfq2p', // Stakin
|
|
22
|
+
'agoric19uscwxdac6cf6z7d5e26e0jm0lgwstc47cpll8', // 01node
|
|
23
|
+
'agoric1krunjcqfrf7la48zrvdfeeqtls5r00ep68mzkr', // Simply Staking
|
|
24
|
+
'agoric1n4fcxsnkxe4gj6e24naec99hzmc4pjfdccy5nj', // P2P
|
|
25
|
+
],
|
|
26
|
+
inBrandNames: ['ATOM', 'stATOM', 'stOSMO', 'stTIA', 'stkATOM'],
|
|
27
|
+
contractTerms: { minSubmissionCount: 3 },
|
|
28
|
+
},
|
|
29
|
+
devnet: {
|
|
30
|
+
oracleAddresses: [
|
|
31
|
+
'agoric1lw4e4aas9q84tq0q92j85rwjjjapf8dmnllnft', // DSRV
|
|
32
|
+
'agoric1zj6vrrrjq4gsyr9lw7dplv4vyejg3p8j2urm82', // Stakin
|
|
33
|
+
'agoric1ra0g6crtsy6r3qnpu7ruvm7qd4wjnznyzg5nu4', // 01node
|
|
34
|
+
'agoric1qj07c7vfk3knqdral0sej7fa6eavkdn8vd8etf', // Simply Staking
|
|
35
|
+
'agoric10vjkvkmpp9e356xeh6qqlhrny2htyzp8hf88fk', // P2P
|
|
36
|
+
],
|
|
37
|
+
inBrandNames: ['ATOM', 'stTIA', 'stkATOM'],
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */
|
|
42
|
+
export const defaultProposalBuilder = async ({ publishRef, install }, opts) => {
|
|
43
|
+
return harden({
|
|
44
|
+
sourceSpec: '@agoric/inter-protocol/src/proposals/deploy-price-feeds.js',
|
|
45
|
+
getManifestCall: [
|
|
46
|
+
getManifestForPriceFeeds.name,
|
|
47
|
+
{
|
|
48
|
+
...opts,
|
|
49
|
+
priceAggregatorRef: publishRef(
|
|
50
|
+
install(
|
|
51
|
+
'@agoric/inter-protocol/src/price/fluxAggregatorContract.js',
|
|
52
|
+
'../bundles/bundle-fluxAggregatorKit.js',
|
|
53
|
+
),
|
|
54
|
+
),
|
|
55
|
+
scaledPARef: publishRef(
|
|
56
|
+
install(
|
|
57
|
+
'@agoric/zoe/src/contracts/scaledPriceAuthority.js',
|
|
58
|
+
'../bundles/bundle-scaledPriceAuthority.js',
|
|
59
|
+
),
|
|
60
|
+
),
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const { keys } = Object;
|
|
67
|
+
const Usage = `agoric run updatePriceFeed.js ${keys(configurations).join(' | ')}`;
|
|
68
|
+
|
|
69
|
+
export default async (homeP, endowments) => {
|
|
70
|
+
const { scriptArgs } = endowments;
|
|
71
|
+
const config = configurations[scriptArgs?.[0]];
|
|
72
|
+
if (!config) {
|
|
73
|
+
console.error(Usage);
|
|
74
|
+
process.exit(1);
|
|
75
|
+
}
|
|
76
|
+
console.log('UPPrices', scriptArgs, config);
|
|
77
|
+
|
|
78
|
+
const { writeCoreEval } = await makeHelpers(homeP, endowments);
|
|
79
|
+
|
|
80
|
+
await writeCoreEval('gov-price-feeds', (utils, opts) =>
|
|
81
|
+
defaultProposalBuilder(utils, { ...opts, ...config }),
|
|
82
|
+
);
|
|
83
|
+
};
|
|
@@ -7,12 +7,18 @@ export const defaultProposalBuilder = async ({ publishRef, install }) => {
|
|
|
7
7
|
getManifestCall: [
|
|
8
8
|
'getManifestForAddAuction',
|
|
9
9
|
{
|
|
10
|
-
|
|
10
|
+
auctioneerRef: publishRef(
|
|
11
11
|
install(
|
|
12
12
|
'@agoric/inter-protocol/src/auction/auctioneer.js',
|
|
13
13
|
'../../inter-protocol/bundles/bundle-auctioneer.js',
|
|
14
14
|
),
|
|
15
15
|
),
|
|
16
|
+
contractGovernorRef: publishRef(
|
|
17
|
+
install(
|
|
18
|
+
'@agoric/governance/src/contractGovernor.js',
|
|
19
|
+
'../bundles/bundle-contractGovernor.js',
|
|
20
|
+
),
|
|
21
|
+
),
|
|
16
22
|
},
|
|
17
23
|
],
|
|
18
24
|
});
|
|
@@ -7,12 +7,18 @@ export const defaultProposalBuilder = async ({ publishRef, install }) =>
|
|
|
7
7
|
getManifestCall: [
|
|
8
8
|
'getManifestForUpgradeVaults',
|
|
9
9
|
{
|
|
10
|
-
|
|
10
|
+
VaultFactoryRef: publishRef(
|
|
11
11
|
install(
|
|
12
12
|
'@agoric/inter-protocol/src/vaultFactory/vaultFactory.js',
|
|
13
13
|
'../bundles/bundle-vaultFactory.js',
|
|
14
14
|
),
|
|
15
15
|
),
|
|
16
|
+
contractGovernorRef: publishRef(
|
|
17
|
+
install(
|
|
18
|
+
'@agoric/governance/src/contractGovernor.js',
|
|
19
|
+
'../bundles/bundle-contractGovernor.js',
|
|
20
|
+
),
|
|
21
|
+
),
|
|
16
22
|
},
|
|
17
23
|
],
|
|
18
24
|
});
|