@agoric/vm-config 0.1.1-calypso-dev-84eb287.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.
@@ -0,0 +1,195 @@
1
+ {
2
+ "$comment": "This SwingSet config file (see loadSwingsetConfigFile) is designed to bring up vaults in a decentralized network in an automated fashion. It includes coreProposals to start vaults. Its testing facilities are limited to known testing keys for EC and Oracle operators.",
3
+ "bootstrap": "bootstrap",
4
+ "defaultReapInterval": 1000,
5
+ "coreProposals": [
6
+ "@agoric/builders/scripts/vats/init-core.js",
7
+ {
8
+ "module": "@agoric/builders/scripts/inter-protocol/init-core.js",
9
+ "entrypoint": "defaultProposalBuilder",
10
+ "args": [
11
+ {
12
+ "econCommitteeOptions": {
13
+ "committeeSize": 3
14
+ },
15
+ "referencedUi": "NO REFERENCED UI",
16
+ "minInitialPoolLiquidity": "0"
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "module": "@agoric/builders/scripts/inter-protocol/add-collateral-core.js",
22
+ "entrypoint": "defaultProposalBuilder",
23
+ "args": [
24
+ {
25
+ "debtLimitValue": 0,
26
+ "interchainAssetOptions": {
27
+ "denom": "ibc/06362C6F7F4FB702B94C13CD2E7C03DEC357683FD978936340B43FBFBC5351EB",
28
+ "decimalPlaces": 6,
29
+ "keyword": "ATOM",
30
+ "oracleBrand": "ATOM",
31
+ "proposedName": "ATOM"
32
+ }
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "module": "@agoric/builders/scripts/inter-protocol/add-collateral-core.js",
38
+ "entrypoint": "psmProposalBuilder",
39
+ "args": [
40
+ {
41
+ "anchorOptions": {
42
+ "denom": "ibc/toyusdc",
43
+ "decimalPlaces": 6,
44
+ "keyword": "ToyUSD",
45
+ "proposedName": "ToyUSD"
46
+ }
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ "module": "@agoric/builders/scripts/inter-protocol/add-collateral-core.js",
52
+ "entrypoint": "psmProposalBuilder",
53
+ "args": [
54
+ {
55
+ "anchorOptions": {
56
+ "denom": "ibc/4B53406F2FD21ABE4EF15977D0585D0C1B9C1DBBA1F911BD1463F42B067FB4D8",
57
+ "decimalPlaces": 6,
58
+ "keyword": "USDC_axl",
59
+ "proposedName": "USD Coin"
60
+ }
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "module": "@agoric/builders/scripts/inter-protocol/add-collateral-core.js",
66
+ "entrypoint": "psmProposalBuilder",
67
+ "args": [
68
+ {
69
+ "anchorOptions": {
70
+ "keyword": "DAI_axl",
71
+ "proposedName": "DAI",
72
+ "decimalPlaces": 18,
73
+ "denom": "ibc/3914BDEF46F429A26917E4D8D434620EC4817DC6B6E68FB327E190902F1E9242"
74
+ }
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "module": "@agoric/builders/scripts/inter-protocol/add-collateral-core.js",
80
+ "entrypoint": "psmProposalBuilder",
81
+ "args": [
82
+ {
83
+ "anchorOptions": {
84
+ "keyword": "DAI_grv",
85
+ "proposedName": "DAI",
86
+ "decimalPlaces": 18,
87
+ "denom": "ibc/3D5291C23D776C3AA7A7ABB34C7B023193ECD2BC42EA19D3165B2CF9652117E7"
88
+ }
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ "module": "@agoric/builders/scripts/inter-protocol/price-feed-core.js",
94
+ "entrypoint": "defaultProposalBuilder",
95
+ "args": [
96
+ {
97
+ "contractTerms": {
98
+ "POLL_INTERVAL": 30,
99
+ "maxSubmissionCount": 1000,
100
+ "minSubmissionCount": 2,
101
+ "restartDelay": 1,
102
+ "timeout": 10,
103
+ "minSubmissionValue": 1,
104
+ "maxSubmissionValue": 9007199254740991
105
+ },
106
+ "AGORIC_INSTANCE_NAME": "ATOM-USD price feed",
107
+ "oracleAddresses": [
108
+ "agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce",
109
+ "agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang"
110
+ ],
111
+ "IN_BRAND_LOOKUP": [
112
+ "agoricNames",
113
+ "oracleBrand",
114
+ "ATOM"
115
+ ],
116
+ "IN_BRAND_DECIMALS": 6,
117
+ "OUT_BRAND_LOOKUP": [
118
+ "agoricNames",
119
+ "oracleBrand",
120
+ "USD"
121
+ ],
122
+ "OUT_BRAND_DECIMALS": 4
123
+ }
124
+ ]
125
+ },
126
+ {
127
+ "module": "@agoric/builders/scripts/inter-protocol/invite-committee-core.js",
128
+ "entrypoint": "defaultProposalBuilder",
129
+ "args": [
130
+ {
131
+ "voterAddresses": {
132
+ "gov1": "agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce",
133
+ "gov2": "agoric140dmkrz2e42ergjj7gyvejhzmjzurvqeq82ang",
134
+ "gov3": "agoric1w8wktaur4zf8qmmtn3n7x3r0jhsjkjntcm3u6h"
135
+ }
136
+ }
137
+ ]
138
+ }
139
+ ],
140
+ "vats": {
141
+ "bootstrap": {
142
+ "sourceSpec": "@agoric/vats/src/core/boot-chain.js",
143
+ "creationOptions": {
144
+ "critical": true
145
+ }
146
+ }
147
+ },
148
+ "clearStorageSubtrees": [
149
+ "published"
150
+ ],
151
+ "exportStorageSubtrees": [
152
+ "published.psm.IST",
153
+ "published.wallet",
154
+ "published.provisionPool.metrics"
155
+ ],
156
+ "bundles": {
157
+ "agoricNames": {
158
+ "sourceSpec": "@agoric/vats/src/vat-agoricNames.js"
159
+ },
160
+ "bank": {
161
+ "sourceSpec": "@agoric/vats/src/vat-bank.js"
162
+ },
163
+ "board": {
164
+ "sourceSpec": "@agoric/vats/src/vat-board.js"
165
+ },
166
+ "bridge": {
167
+ "sourceSpec": "@agoric/vats/src/vat-bridge.js"
168
+ },
169
+ "centralSupply": {
170
+ "sourceSpec": "@agoric/vats/src/centralSupply.js"
171
+ },
172
+ "mintHolder": {
173
+ "sourceSpec": "@agoric/vats/src/mintHolder.js"
174
+ },
175
+ "priceAuthority": {
176
+ "sourceSpec": "@agoric/vats/src/vat-priceAuthority.js"
177
+ },
178
+ "provisionPool": {
179
+ "sourceSpec": "@agoric/inter-protocol/src/provisionPool.js"
180
+ },
181
+ "provisioning": {
182
+ "sourceSpec": "@agoric/vats/src/vat-provisioning.js"
183
+ },
184
+ "walletFactory": {
185
+ "sourceSpec": "@agoric/smart-wallet/src/walletFactory.js"
186
+ },
187
+ "zcf": {
188
+ "sourceSpec": "@agoric/zoe/contractFacet.js"
189
+ },
190
+ "zoe": {
191
+ "sourceSpec": "@agoric/vats/src/vat-zoe.js"
192
+ }
193
+ },
194
+ "defaultManagerType": "xs-worker"
195
+ }
@@ -0,0 +1,7 @@
1
+ [
2
+ "@agoric/builders/scripts/inter-protocol/init-core.js",
3
+ "@agoric/builders/scripts/pegasus/init-core.js",
4
+ "@agoric/builders/scripts/vats/init-network.js",
5
+ "@agoric/builders/scripts/vats/init-localchain.js",
6
+ "@agoric/builders/scripts/vats/init-transfer.js"
7
+ ]
package/index.js ADDED
File without changes
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@agoric/vm-config",
3
+ "version": "0.1.1-calypso-dev-84eb287.0+84eb287",
4
+ "description": "Config to start an Agoric VM",
5
+ "type": "module",
6
+ "main": "./index.js",
7
+ "repository": "https://github.com/Agoric/agoric-sdk",
8
+ "scripts": {
9
+ "build": "exit 0",
10
+ "test": "ava",
11
+ "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js",
12
+ "test:xs": "exit 0",
13
+ "lint-fix": "yarn lint:eslint --fix",
14
+ "lint": "run-s --continue-on-error lint:*",
15
+ "lint:types": "tsc",
16
+ "lint:eslint": "eslint ."
17
+ },
18
+ "keywords": [],
19
+ "author": "Agoric",
20
+ "license": "Apache-2.0",
21
+ "devDependencies": {
22
+ "ava": "^5.3.0",
23
+ "c8": "^9.1.0"
24
+ },
25
+ "files": [
26
+ "CHANGELOG.md",
27
+ "src/",
28
+ "scripts/",
29
+ "tools/",
30
+ "*.json",
31
+ "globals.d.ts",
32
+ "exported.js"
33
+ ],
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "engines": {
38
+ "node": "^18.12 || ^20.9"
39
+ },
40
+ "ava": {
41
+ "files": [
42
+ "test/**/*.test.*"
43
+ ],
44
+ "require": [
45
+ "@endo/init/debug.js"
46
+ ],
47
+ "timeout": "20m",
48
+ "workerThreads": false
49
+ },
50
+ "typeCoverage": {
51
+ "atLeast": 100
52
+ },
53
+ "gitHead": "84eb287915c8255d68e845a9b6e10c790f0d54cb"
54
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": [
3
+ "./tsconfig.json",
4
+ "../../tsconfig-build-options.json"
5
+ ]
6
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "checkJs": false,
5
+ },
6
+ "include": [
7
+ "*.js",
8
+ "scripts/**/*.js",
9
+ "src/**/*.js",
10
+ "test/**/*.js",
11
+ "tools/**/*.js",
12
+ ],
13
+ }