@agoric/vats 0.15.2-dev-b04fbb7.0 → 0.15.2-dev-3d662f8.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 +15 -15
- package/src/core/boot-chain.d.ts +20 -0
- package/src/core/boot-chain.d.ts.map +1 -1
- package/src/core/startWalletFactory.d.ts +2 -0
- package/src/core/startWalletFactory.d.ts.map +1 -1
- package/src/core/types-ambient.d.ts +2 -0
- package/src/core/utils.d.ts +2 -0
- package/src/core/utils.d.ts.map +1 -1
- package/src/core/utils.js +2 -0
- package/src/localchain.d.ts +29 -1
- package/src/localchain.d.ts.map +1 -1
- package/src/localchain.js +9 -0
- package/src/proposals/localchain-proposal.d.ts +2 -0
- package/src/proposals/localchain-proposal.d.ts.map +1 -1
- package/src/vat-localchain.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/vats",
|
|
3
|
-
"version": "0.15.2-dev-
|
|
3
|
+
"version": "0.15.2-dev-3d662f8.0+3d662f8",
|
|
4
4
|
"description": "Agoric's Vat library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/assert": "0.6.1-dev-
|
|
26
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
27
|
-
"@agoric/governance": "0.10.4-dev-
|
|
28
|
-
"@agoric/internal": "0.3.3-dev-
|
|
29
|
-
"@agoric/network": "0.1.1-dev-
|
|
30
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
31
|
-
"@agoric/store": "0.9.3-dev-
|
|
32
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
33
|
-
"@agoric/time": "0.3.3-dev-
|
|
34
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
35
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
36
|
-
"@agoric/zone": "0.2.3-dev-
|
|
25
|
+
"@agoric/assert": "0.6.1-dev-3d662f8.0+3d662f8",
|
|
26
|
+
"@agoric/ertp": "0.16.3-dev-3d662f8.0+3d662f8",
|
|
27
|
+
"@agoric/governance": "0.10.4-dev-3d662f8.0+3d662f8",
|
|
28
|
+
"@agoric/internal": "0.3.3-dev-3d662f8.0+3d662f8",
|
|
29
|
+
"@agoric/network": "0.1.1-dev-3d662f8.0+3d662f8",
|
|
30
|
+
"@agoric/notifier": "0.6.3-dev-3d662f8.0+3d662f8",
|
|
31
|
+
"@agoric/store": "0.9.3-dev-3d662f8.0+3d662f8",
|
|
32
|
+
"@agoric/swingset-vat": "0.32.3-dev-3d662f8.0+3d662f8",
|
|
33
|
+
"@agoric/time": "0.3.3-dev-3d662f8.0+3d662f8",
|
|
34
|
+
"@agoric/vat-data": "0.5.3-dev-3d662f8.0+3d662f8",
|
|
35
|
+
"@agoric/zoe": "0.26.3-dev-3d662f8.0+3d662f8",
|
|
36
|
+
"@agoric/zone": "0.2.3-dev-3d662f8.0+3d662f8",
|
|
37
37
|
"@endo/far": "^1.0.4",
|
|
38
38
|
"@endo/import-bundle": "^1.0.4",
|
|
39
39
|
"@endo/marshal": "^1.3.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"jessie.js": "^0.3.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
47
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-3d662f8.0+3d662f8",
|
|
48
48
|
"@endo/bundle-source": "^3.1.0",
|
|
49
49
|
"@endo/init": "^1.0.4",
|
|
50
50
|
"ava": "^5.3.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"typeCoverage": {
|
|
78
78
|
"atLeast": 89.69
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "3d662f8942693391430a675dad4e68b9867a5e89"
|
|
81
81
|
}
|
package/src/core/boot-chain.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ declare namespace modules {
|
|
|
66
66
|
reserve: string;
|
|
67
67
|
psm: string;
|
|
68
68
|
scaledPriceAuthority: string;
|
|
69
|
+
stakeBld: string;
|
|
69
70
|
econCommitteeCharter: string;
|
|
70
71
|
priceAggregator: string;
|
|
71
72
|
};
|
|
@@ -77,6 +78,7 @@ declare namespace modules {
|
|
|
77
78
|
VaultFactory: string;
|
|
78
79
|
Pegasus: string;
|
|
79
80
|
reserve: string;
|
|
81
|
+
stakeBld: string;
|
|
80
82
|
econCommitteeCharter: string;
|
|
81
83
|
economicCommittee: string;
|
|
82
84
|
VaultFactoryGovernor: string;
|
|
@@ -337,6 +339,7 @@ declare namespace modules {
|
|
|
337
339
|
reserve: string;
|
|
338
340
|
psm: string;
|
|
339
341
|
scaledPriceAuthority: string;
|
|
342
|
+
stakeBld: string;
|
|
340
343
|
econCommitteeCharter: string;
|
|
341
344
|
priceAggregator: string;
|
|
342
345
|
};
|
|
@@ -348,6 +351,7 @@ declare namespace modules {
|
|
|
348
351
|
VaultFactory: string;
|
|
349
352
|
Pegasus: string;
|
|
350
353
|
reserve: string;
|
|
354
|
+
stakeBld: string;
|
|
351
355
|
econCommitteeCharter: string;
|
|
352
356
|
economicCommittee: string;
|
|
353
357
|
VaultFactoryGovernor: string;
|
|
@@ -576,6 +580,7 @@ declare namespace modules {
|
|
|
576
580
|
reserve: string;
|
|
577
581
|
psm: string;
|
|
578
582
|
scaledPriceAuthority: string;
|
|
583
|
+
stakeBld: string;
|
|
579
584
|
econCommitteeCharter: string;
|
|
580
585
|
priceAggregator: string;
|
|
581
586
|
};
|
|
@@ -587,6 +592,7 @@ declare namespace modules {
|
|
|
587
592
|
VaultFactory: string;
|
|
588
593
|
Pegasus: string;
|
|
589
594
|
reserve: string;
|
|
595
|
+
stakeBld: string;
|
|
590
596
|
econCommitteeCharter: string;
|
|
591
597
|
economicCommittee: string;
|
|
592
598
|
VaultFactoryGovernor: string;
|
|
@@ -827,6 +833,7 @@ declare namespace modules {
|
|
|
827
833
|
reserve: string;
|
|
828
834
|
psm: string;
|
|
829
835
|
scaledPriceAuthority: string;
|
|
836
|
+
stakeBld: string;
|
|
830
837
|
econCommitteeCharter: string;
|
|
831
838
|
priceAggregator: string;
|
|
832
839
|
};
|
|
@@ -838,6 +845,7 @@ declare namespace modules {
|
|
|
838
845
|
VaultFactory: string;
|
|
839
846
|
Pegasus: string;
|
|
840
847
|
reserve: string;
|
|
848
|
+
stakeBld: string;
|
|
841
849
|
econCommitteeCharter: string;
|
|
842
850
|
economicCommittee: string;
|
|
843
851
|
VaultFactoryGovernor: string;
|
|
@@ -1062,6 +1070,7 @@ declare namespace modules {
|
|
|
1062
1070
|
reserve: string;
|
|
1063
1071
|
psm: string;
|
|
1064
1072
|
scaledPriceAuthority: string;
|
|
1073
|
+
stakeBld: string;
|
|
1065
1074
|
econCommitteeCharter: string;
|
|
1066
1075
|
priceAggregator: string;
|
|
1067
1076
|
};
|
|
@@ -1073,6 +1082,7 @@ declare namespace modules {
|
|
|
1073
1082
|
VaultFactory: string;
|
|
1074
1083
|
Pegasus: string;
|
|
1075
1084
|
reserve: string;
|
|
1085
|
+
stakeBld: string;
|
|
1076
1086
|
econCommitteeCharter: string;
|
|
1077
1087
|
economicCommittee: string;
|
|
1078
1088
|
VaultFactoryGovernor: string;
|
|
@@ -1297,6 +1307,7 @@ declare namespace modules {
|
|
|
1297
1307
|
reserve: string;
|
|
1298
1308
|
psm: string;
|
|
1299
1309
|
scaledPriceAuthority: string;
|
|
1310
|
+
stakeBld: string;
|
|
1300
1311
|
econCommitteeCharter: string;
|
|
1301
1312
|
priceAggregator: string;
|
|
1302
1313
|
};
|
|
@@ -1308,6 +1319,7 @@ declare namespace modules {
|
|
|
1308
1319
|
VaultFactory: string;
|
|
1309
1320
|
Pegasus: string;
|
|
1310
1321
|
reserve: string;
|
|
1322
|
+
stakeBld: string;
|
|
1311
1323
|
econCommitteeCharter: string;
|
|
1312
1324
|
economicCommittee: string;
|
|
1313
1325
|
VaultFactoryGovernor: string;
|
|
@@ -1528,6 +1540,7 @@ declare namespace modules {
|
|
|
1528
1540
|
reserve: string;
|
|
1529
1541
|
psm: string;
|
|
1530
1542
|
scaledPriceAuthority: string;
|
|
1543
|
+
stakeBld: string;
|
|
1531
1544
|
econCommitteeCharter: string;
|
|
1532
1545
|
priceAggregator: string;
|
|
1533
1546
|
};
|
|
@@ -1539,6 +1552,7 @@ declare namespace modules {
|
|
|
1539
1552
|
VaultFactory: string;
|
|
1540
1553
|
Pegasus: string;
|
|
1541
1554
|
reserve: string;
|
|
1555
|
+
stakeBld: string;
|
|
1542
1556
|
econCommitteeCharter: string;
|
|
1543
1557
|
economicCommittee: string;
|
|
1544
1558
|
VaultFactoryGovernor: string;
|
|
@@ -1759,6 +1773,7 @@ declare namespace modules {
|
|
|
1759
1773
|
reserve: string;
|
|
1760
1774
|
psm: string;
|
|
1761
1775
|
scaledPriceAuthority: string;
|
|
1776
|
+
stakeBld: string;
|
|
1762
1777
|
econCommitteeCharter: string;
|
|
1763
1778
|
priceAggregator: string;
|
|
1764
1779
|
};
|
|
@@ -1770,6 +1785,7 @@ declare namespace modules {
|
|
|
1770
1785
|
VaultFactory: string;
|
|
1771
1786
|
Pegasus: string;
|
|
1772
1787
|
reserve: string;
|
|
1788
|
+
stakeBld: string;
|
|
1773
1789
|
econCommitteeCharter: string;
|
|
1774
1790
|
economicCommittee: string;
|
|
1775
1791
|
VaultFactoryGovernor: string;
|
|
@@ -1998,6 +2014,7 @@ declare namespace modules {
|
|
|
1998
2014
|
reserve: string;
|
|
1999
2015
|
psm: string;
|
|
2000
2016
|
scaledPriceAuthority: string;
|
|
2017
|
+
stakeBld: string;
|
|
2001
2018
|
econCommitteeCharter: string;
|
|
2002
2019
|
priceAggregator: string;
|
|
2003
2020
|
};
|
|
@@ -2009,6 +2026,7 @@ declare namespace modules {
|
|
|
2009
2026
|
VaultFactory: string;
|
|
2010
2027
|
Pegasus: string;
|
|
2011
2028
|
reserve: string;
|
|
2029
|
+
stakeBld: string;
|
|
2012
2030
|
econCommitteeCharter: string;
|
|
2013
2031
|
economicCommittee: string;
|
|
2014
2032
|
VaultFactoryGovernor: string;
|
|
@@ -2240,6 +2258,7 @@ declare namespace modules {
|
|
|
2240
2258
|
reserve: string;
|
|
2241
2259
|
psm: string;
|
|
2242
2260
|
scaledPriceAuthority: string;
|
|
2261
|
+
stakeBld: string;
|
|
2243
2262
|
econCommitteeCharter: string;
|
|
2244
2263
|
priceAggregator: string;
|
|
2245
2264
|
};
|
|
@@ -2251,6 +2270,7 @@ declare namespace modules {
|
|
|
2251
2270
|
VaultFactory: string;
|
|
2252
2271
|
Pegasus: string;
|
|
2253
2272
|
reserve: string;
|
|
2273
|
+
stakeBld: string;
|
|
2254
2274
|
econCommitteeCharter: string;
|
|
2255
2275
|
economicCommittee: string;
|
|
2256
2276
|
VaultFactoryGovernor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boot-chain.d.ts","sourceRoot":"","sources":["boot-chain.js"],"names":[],"mappings":"AAmBA,iDAAiD;AAEjD,iEAAiD;AAc1C;OARC,MAAM;0BACQ,IAAI;kBAEf;IACV,qBAAyB,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC,WACO,OAAO,kBAAkB,EAAE,OAAO;;;;;;;;;;;;;;GAc5C;+BA5Ba,cAAc
|
|
1
|
+
{"version":3,"file":"boot-chain.d.ts","sourceRoot":"","sources":["boot-chain.js"],"names":[],"mappings":"AAmBA,iDAAiD;AAEjD,iEAAiD;AAc1C;OARC,MAAM;0BACQ,IAAI;kBAEf;IACV,qBAAyB,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC,WACO,OAAO,kBAAkB,EAAE,OAAO;;;;;;;;;;;;;;GAc5C;+BA5Ba,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAhBQ,sBAAsB"}
|
|
@@ -207,6 +207,7 @@ export function startWalletFactory({ vatParameters: { chainStorageEntries }, con
|
|
|
207
207
|
reserve: string;
|
|
208
208
|
psm: string;
|
|
209
209
|
scaledPriceAuthority: string;
|
|
210
|
+
stakeBld: string;
|
|
210
211
|
econCommitteeCharter: string;
|
|
211
212
|
priceAggregator: string;
|
|
212
213
|
};
|
|
@@ -218,6 +219,7 @@ export function startWalletFactory({ vatParameters: { chainStorageEntries }, con
|
|
|
218
219
|
VaultFactory: string;
|
|
219
220
|
Pegasus: string;
|
|
220
221
|
reserve: string;
|
|
222
|
+
stakeBld: string;
|
|
221
223
|
econCommitteeCharter: string;
|
|
222
224
|
economicCommittee: string;
|
|
223
225
|
VaultFactoryGovernor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"AAiFO
|
|
1
|
+
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"AAiFO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAlB+B,OAAO,qCAAqC,EAAE,+BAA+B;oBAC5F;QACtB,YAAoB,EAAE,QACtB,WACA,oEAAyE,OAAO,CAAC,CACtE,CACF,CAAC,cAAc,CAAC,CAAC;QAC1B,UAAkB,EAAE,UAAU,CAAC;KACxB;yBACoB,OAAO,aAAa,EAAE,mBAAmB;kCAChC,OAAO,aAAa,EAAE,mBAAmB;;;;;8BAwL7E;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCE;AAEK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWN;uCAjSY,QAAQ,WAAW,2BAA2B,CAAC,CAAC;uBAftC,gCAAgC;AASvD;;;;;;;GAOG;AAEH,2CARW,KAAK,UAAU,CAAC,QAChB,aACV,OAAW,2CAA2C,EAAE,KAAK,CAC1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKkE"}
|
|
@@ -179,6 +179,7 @@ type WellKnownName = {
|
|
|
179
179
|
| 'reserve'
|
|
180
180
|
| 'psm'
|
|
181
181
|
| 'scaledPriceAuthority'
|
|
182
|
+
| 'stakeBld' // test contract
|
|
182
183
|
| 'econCommitteeCharter'
|
|
183
184
|
| 'priceAggregator';
|
|
184
185
|
instance:
|
|
@@ -192,6 +193,7 @@ type WellKnownName = {
|
|
|
192
193
|
| 'provisionPool'
|
|
193
194
|
| 'reserve'
|
|
194
195
|
| 'reserveGovernor'
|
|
196
|
+
| 'stakeBld' // test contract
|
|
195
197
|
| 'Pegasus';
|
|
196
198
|
oracleBrand: 'USD';
|
|
197
199
|
uiConfig: 'VaultFactory';
|
package/src/core/utils.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export const agoricNamesReserved: {
|
|
|
29
29
|
reserve: string;
|
|
30
30
|
psm: string;
|
|
31
31
|
scaledPriceAuthority: string;
|
|
32
|
+
stakeBld: string;
|
|
32
33
|
econCommitteeCharter: string;
|
|
33
34
|
priceAggregator: string;
|
|
34
35
|
};
|
|
@@ -40,6 +41,7 @@ export const agoricNamesReserved: {
|
|
|
40
41
|
VaultFactory: string;
|
|
41
42
|
Pegasus: string;
|
|
42
43
|
reserve: string;
|
|
44
|
+
stakeBld: string;
|
|
43
45
|
econCommitteeCharter: string;
|
|
44
46
|
economicCommittee: string;
|
|
45
47
|
VaultFactoryGovernor: string;
|
package/src/core/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2DG;AAEH,8BAA8B;AAC9B,8BADW,eAAe,CAKxB;AAQK,gCAHI,MAAM,8BACN;IAAE,IAAI,EAAE;QAAE,KAAK,EAAE,QAAQ,CAAC;QAAC,KAAK,EAAE,YAAY,CAAA;KAAE,CAAA;CAAE,iBAK5D;AAQM,8DAJkB,OAAO,MAAM,EAAE,OAAO,CAAC,cAClC,OAAO,KACR,OAAO,MAAM,EAAE,OAAO,CAAC,CAG0B;AAWvD,kCALI,IAAI,GAAG,MAAM,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC,YAEnC,OAAO,oCAkCjB;AAQM,sCAJI,IAAI,GAAG,MAAM,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC,aAEnC,OAAO,OAYjB;AAUM;eALI,OAAO;eACP,OAAO,MAAM,EAAE,OAAO,CAAC;cACvB,OAAO,MAAM,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAC;uBAChC,MAAM,UAAU,OAAO,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO;mBAwBpE;AASM,sDAHI,KAAK,OAAO,aAAa,EAAE,SAAS,CAAC;;;4CAyB/C;AAOM,iDAJI,KAAK,OAAO,aAAa,EAAE,SAAS,CAAC;;;uEAsB/C;AAoBM;;;0BAXI,OAAO,MAAM,EAAE,OAAO,MAAM,EAAE,OAAO,CAAC,CAAC;iBAMhC,OAAO,aAAa,EAAE,OAAO;sBACxB,OAAO,aAAa,EAAE,SAAS;YACzC,eAAe;GAuB3B;AAMM,mDAFI,MAAM;;;EAgBhB;AAaM,kCAVI,KAAK,WAAW,QAAQ,WAAW,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,kBAC/D,OAAO,mBACG,GAAG,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDhC;;;;+BApDY,OAAO,sBAAsB,EAAE,gBAAgB;uBAG/C,SAAS,MAAM,EAAE,gBAAgB,CAAC"}
|
package/src/core/utils.js
CHANGED
|
@@ -56,6 +56,7 @@ export const agoricNamesReserved = harden({
|
|
|
56
56
|
econCommitteeCharter: 'Charter for Econ Governance questions',
|
|
57
57
|
priceAggregator: 'simple price aggregator',
|
|
58
58
|
scaledPriceAuthority: 'scaled price authority',
|
|
59
|
+
stakeBld: 'example BLD staking contract',
|
|
59
60
|
},
|
|
60
61
|
instance: {
|
|
61
62
|
economicCommittee: 'Economic Committee',
|
|
@@ -69,6 +70,7 @@ export const agoricNamesReserved = harden({
|
|
|
69
70
|
econCommitteeCharter: 'Charter for Econ Governance questions',
|
|
70
71
|
provisionPool: 'Account Provision Pool',
|
|
71
72
|
walletFactory: 'Smart Wallet Factory',
|
|
73
|
+
stakeBld: 'example BLD staking contract',
|
|
72
74
|
},
|
|
73
75
|
oracleBrand: {
|
|
74
76
|
USD: 'US Dollar',
|
package/src/localchain.d.ts
CHANGED
|
@@ -3,6 +3,11 @@ export const LocalChainAccountI: import("@endo/patterns").InterfaceGuard<{
|
|
|
3
3
|
deposit: import("@endo/patterns").MethodGuard;
|
|
4
4
|
executeTx: import("@endo/patterns").MethodGuard;
|
|
5
5
|
}>;
|
|
6
|
+
/**
|
|
7
|
+
* @typedef {Awaited<
|
|
8
|
+
* ReturnType<Awaited<ReturnType<typeof prepareLocalChainAccount>>>
|
|
9
|
+
* >} LocalChainAccount
|
|
10
|
+
*/
|
|
6
11
|
export const LocalChainI: import("@endo/patterns").InterfaceGuard<{
|
|
7
12
|
createAccount: import("@endo/patterns").MethodGuard;
|
|
8
13
|
query: import("@endo/patterns").MethodGuard;
|
|
@@ -38,7 +43,11 @@ export function prepareLocalChainTools(zone: import('@agoric/base-zone').Zone):
|
|
|
38
43
|
* @param {Payment} payment
|
|
39
44
|
*/
|
|
40
45
|
deposit(payment: Payment): Promise<Amount<AssetKind>>;
|
|
41
|
-
|
|
46
|
+
/**
|
|
47
|
+
* @param {Proto3Jsonable[]} messages
|
|
48
|
+
* @returns {Promise<Proto3Jsonable[]>}
|
|
49
|
+
*/
|
|
50
|
+
executeTx(messages: Proto3Jsonable[]): Promise<Proto3Jsonable[]>;
|
|
42
51
|
}>>;
|
|
43
52
|
/**
|
|
44
53
|
* Make a single query to the local chain. Will reject with an error if
|
|
@@ -73,7 +82,26 @@ export type LocalChainPowers = {
|
|
|
73
82
|
bankManager: import('./vat-bank.js').BankManager;
|
|
74
83
|
};
|
|
75
84
|
export type PowerStore = MapStore<keyof LocalChainPowers, LocalChainPowers[keyof LocalChainPowers]>;
|
|
85
|
+
export type LocalChainAccount = Awaited<ReturnType<Awaited<ReturnType<typeof prepareLocalChainAccount>>>>;
|
|
76
86
|
export type LocalChainTools = ReturnType<typeof prepareLocalChainTools>;
|
|
77
87
|
export type LocalChainKit = ReturnType<LocalChainTools['makeLocalChain']>;
|
|
78
88
|
export type LocalChain = LocalChainKit['public'];
|
|
89
|
+
/** @param {import('@agoric/base-zone').Zone} zone */
|
|
90
|
+
declare function prepareLocalChainAccount(zone: import('@agoric/base-zone').Zone): (address: string, powers: PowerStore) => import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
91
|
+
getAddress(): Promise<string>;
|
|
92
|
+
/**
|
|
93
|
+
* Deposit a payment into the bank purse that matches the alleged brand.
|
|
94
|
+
* This is safe, since even if the payment lies about its brand, ERTP will
|
|
95
|
+
* reject spoofed payment objects when depositing into a purse.
|
|
96
|
+
*
|
|
97
|
+
* @param {Payment} payment
|
|
98
|
+
*/
|
|
99
|
+
deposit(payment: Payment): Promise<Amount<AssetKind>>;
|
|
100
|
+
/**
|
|
101
|
+
* @param {Proto3Jsonable[]} messages
|
|
102
|
+
* @returns {Promise<Proto3Jsonable[]>}
|
|
103
|
+
*/
|
|
104
|
+
executeTx(messages: Proto3Jsonable[]): Promise<Proto3Jsonable[]>;
|
|
105
|
+
}>;
|
|
106
|
+
export {};
|
|
79
107
|
//# sourceMappingURL=localchain.d.ts.map
|
package/src/localchain.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localchain.d.ts","sourceRoot":"","sources":["localchain.js"],"names":[],"mappings":"AAoCA;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"localchain.d.ts","sourceRoot":"","sources":["localchain.js"],"names":[],"mappings":"AAoCA;;;;GAMG;AAqDH;;;;GAIG;AAEH;;;;GAIG;AAEH;;GAEG;AAiGI,6CADK,OAAO,mBAAmB,EAAE,IAAI;;;YAzEpC;;;;eAIG;;;;YAgBH;;;;;eAKG;;;gBAlGL;;;;;;mBAMG;iCADQ,OAAO;gBAYlB;;;mBAGG;oCAFQ,cAAc,EAAE,GACd,QAAQ,cAAc,EAAE,CAAC;;YAwFpC;;;;;;;eAOG;2BAFQ,cAAc,GACZ,QAAQ,cAAc,CAAC;YAapC;;;;;;;eAOG;gCAFQ,cAAc,EAAE,GACd,QAAQ;gBAAE,KAAK,CAAC,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,cAAc,CAAA;aAAE,EAAE,CAAC;;;EAoBxE;;;aA1Ma,MAAM;;+BAMP;IACZ,MAAU,EAAE,OAAO,YAAY,EAAE,mBAAmB,CAAC;IACrD,WAAe,EAAE,OAAO,eAAe,EAAE,WAAW,CAAC;CAClD;yBAES,SACZ,MAAU,gBAAgB,EAC1B,gBAAoB,CAAC,MAAM,gBAAgB,CAAC,CACzC;gCAyES,QACZ,WAAe,QAAQ,WAAW,+BAA+B,CAAC,CAAC,CAAC,CACjE;8BAoHU,WAAW,6BAA6B,CAAC;4BACzC,WAAW,eAAe,CAAC,gBAAgB,CAAC,CAAC;yBAC7C,aAAa,CAAC,QAAQ,CAAC;AA5KrC,qDAAqD;AACrD,gDADY,OAAO,mBAAmB,EAAE,IAAI;;IAetC;;;;;;OAMG;qBADQ,OAAO;IAYlB;;;OAGG;wBAFQ,cAAc,EAAE,GACd,QAAQ,cAAc,EAAE,CAAC;GAgBzC"}
|
package/src/localchain.js
CHANGED
|
@@ -74,6 +74,10 @@ const prepareLocalChainAccount = zone =>
|
|
|
74
74
|
const allegedPurse = E(bankAcct).getPurse(allegedBrand);
|
|
75
75
|
return E(allegedPurse).deposit(payment);
|
|
76
76
|
},
|
|
77
|
+
/**
|
|
78
|
+
* @param {Proto3Jsonable[]} messages
|
|
79
|
+
* @returns {Promise<Proto3Jsonable[]>}
|
|
80
|
+
*/
|
|
77
81
|
async executeTx(messages) {
|
|
78
82
|
const { address, powers } = this.state;
|
|
79
83
|
const obj = {
|
|
@@ -89,6 +93,11 @@ const prepareLocalChainAccount = zone =>
|
|
|
89
93
|
},
|
|
90
94
|
},
|
|
91
95
|
);
|
|
96
|
+
/**
|
|
97
|
+
* @typedef {Awaited<
|
|
98
|
+
* ReturnType<Awaited<ReturnType<typeof prepareLocalChainAccount>>>
|
|
99
|
+
* >} LocalChainAccount
|
|
100
|
+
*/
|
|
92
101
|
|
|
93
102
|
export const LocalChainI = M.interface('LocalChain', {
|
|
94
103
|
createAccount: M.callWhen().returns(M.remotable('LocalChainAccount')),
|
|
@@ -207,6 +207,7 @@ export function setupLocalChainVat({ consume: { loadCriticalVat, bridgeManager:
|
|
|
207
207
|
reserve: string;
|
|
208
208
|
psm: string;
|
|
209
209
|
scaledPriceAuthority: string;
|
|
210
|
+
stakeBld: string;
|
|
210
211
|
econCommitteeCharter: string;
|
|
211
212
|
priceAggregator: string;
|
|
212
213
|
};
|
|
@@ -218,6 +219,7 @@ export function setupLocalChainVat({ consume: { loadCriticalVat, bridgeManager:
|
|
|
218
219
|
VaultFactory: string;
|
|
219
220
|
Pegasus: string;
|
|
220
221
|
reserve: string;
|
|
222
|
+
stakeBld: string;
|
|
221
223
|
econCommitteeCharter: string;
|
|
222
224
|
economicCommittee: string;
|
|
223
225
|
VaultFactoryGovernor: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localchain-proposal.d.ts","sourceRoot":"","sources":["localchain-proposal.js"],"names":[],"mappings":"AA0BO
|
|
1
|
+
{"version":3,"file":"localchain-proposal.d.ts","sourceRoot":"","sources":["localchain-proposal.js"],"names":[],"mappings":"AA0BO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAnBiB,UAAU,GAAG,CAAC;uBAChB,OAAO,UAAU,EAAE,aAAa;iCACtB,OAAO,UAAU,EAAE,mBAAmB;qBAClD,QAAQ,OAAO,gBAAgB,EAAE,WAAW,CAAC;;aAEnD;QACb,UAAgB,EAAE,SAAS,GAAG,CAAC,CAAC;QAChC,eAAqB,EAAE,SAAS,GAAG,CAAC,CAAC;QACrC,aAAmB,EAAE,SAAS,GAAG,CAAC,CAAC;QACnC,uBAA6B,EAAE,SAAS,GAAG,CAAC,CAAC;KACxC;;;uBAGsB,YAAY;;kBAoFvC;AAUM,2EAPI,eAAe,GAAG;IAC5B,OAAW,EAAE;QACb,UAAgB,EAAE,OAAO,kBAAkB,EAAE,UAAU,CAAC;KACnD,CAAC;CACH,YACO,MAAM,iBAOhB;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BL;6BA/HW;IACZ,UAAc,EAAE,KAAK,OAAO,sBAAsB,EAAE,aAAa,CAAC,CAAC;CAChE"}
|
package/src/vat-localchain.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
13
13
|
createAccount(): Promise<import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
14
14
|
getAddress(): Promise<string>;
|
|
15
15
|
deposit(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
|
|
16
|
-
executeTx(messages:
|
|
16
|
+
executeTx(messages: import("./localchain.js").Proto3Jsonable[]): Promise<import("./localchain.js").Proto3Jsonable[]>;
|
|
17
17
|
}>>;
|
|
18
18
|
query(request: import("./localchain.js").Proto3Jsonable): Promise<import("./localchain.js").Proto3Jsonable>;
|
|
19
19
|
queryMany(requests: import("./localchain.js").Proto3Jsonable[]): Promise<{
|
|
@@ -37,7 +37,7 @@ export function buildRootObject(_vatPowers: any, _args: any, baggage: any): {
|
|
|
37
37
|
createAccount(): Promise<import("@endo/exo/src/exo-makers.js").Guarded<{
|
|
38
38
|
getAddress(): Promise<string>;
|
|
39
39
|
deposit(payment: Payment<AssetKind>): Promise<Amount<AssetKind>>;
|
|
40
|
-
executeTx(messages:
|
|
40
|
+
executeTx(messages: import("./localchain.js").Proto3Jsonable[]): Promise<import("./localchain.js").Proto3Jsonable[]>;
|
|
41
41
|
}>>;
|
|
42
42
|
query(request: import("./localchain.js").Proto3Jsonable): Promise<import("./localchain.js").Proto3Jsonable>;
|
|
43
43
|
queryMany(requests: import("./localchain.js").Proto3Jsonable[]): Promise<{
|