@agoric/vats 0.16.0-upgrade-19-dev-0754752.0 → 0.16.0-upgrade-18a-dev-4ee0508.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/CHANGELOG.md +57 -8
- package/package.json +28 -28
- package/src/centralSupply.d.ts +2 -2
- package/src/core/boot-chain.d.ts +1 -1
- package/src/core/boot-chain.d.ts.map +1 -1
- package/src/core/chain-behaviors.d.ts.map +1 -1
- package/src/core/chain-behaviors.js +1 -6
- package/src/core/lib-boot.d.ts +1 -2
- package/src/core/lib-boot.d.ts.map +1 -1
- package/src/core/lib-boot.js +1 -5
- package/src/core/startWalletFactory.d.ts +4 -5
- package/src/core/startWalletFactory.d.ts.map +1 -1
- package/src/core/startWalletFactory.js +1 -5
- package/src/core/types-ambient.d.ts +2 -2
- package/src/core/utils.d.ts +1 -1
- package/src/core/utils.d.ts.map +1 -1
- package/src/localchain.d.ts +1 -41
- package/src/localchain.d.ts.map +1 -1
- package/src/localchain.js +2 -2
- package/src/proposals/kread-proposal.d.ts +1 -1
- package/src/proposals/kread-proposal.d.ts.map +1 -1
- package/src/proposals/localchain-proposal.d.ts +10 -3
- package/src/proposals/localchain-proposal.d.ts.map +1 -1
- package/src/proposals/localchain-test.d.ts +1 -1
- package/src/proposals/localchain-test.d.ts.map +1 -1
- package/src/proposals/network-proposal.d.ts +1 -1
- package/src/proposals/network-proposal.d.ts.map +1 -1
- package/src/proposals/probeZcfBundle.d.ts +1 -1
- package/src/proposals/probeZcfBundle.d.ts.map +1 -1
- package/src/proposals/restart-vats-proposal.d.ts +1 -1
- package/src/proposals/restart-vats-proposal.d.ts.map +1 -1
- package/src/proposals/testUpgradedBoard.d.ts +1 -1
- package/src/proposals/testUpgradedBoard.d.ts.map +1 -1
- package/src/proposals/transfer-proposal.d.ts +1 -1
- package/src/proposals/transfer-proposal.d.ts.map +1 -1
- package/src/proposals/transfer-proposal.js +1 -5
- package/src/proposals/upgrade-agoricNames-proposal.d.ts +1 -1
- package/src/proposals/upgrade-agoricNames-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-asset-reserve-proposal.d.ts +2 -7
- package/src/proposals/upgrade-asset-reserve-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-asset-reserve-proposal.js +1 -2
- package/src/proposals/upgrade-bank-proposal.d.ts +1 -1
- package/src/proposals/upgrade-bank-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-board-proposal.d.ts +1 -1
- package/src/proposals/upgrade-board-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-mintHolder-proposal.d.ts +2 -7
- package/src/proposals/upgrade-mintHolder-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-mintHolder-proposal.js +1 -2
- package/src/proposals/upgrade-paRegistry-proposal.d.ts +1 -1
- package/src/proposals/upgrade-paRegistry-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-provisionPool-proposal.d.ts +3 -8
- package/src/proposals/upgrade-provisionPool-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-provisionPool-proposal.js +2 -15
- package/src/proposals/upgrade-vats-generic-proposal.d.ts +1 -1
- package/src/proposals/upgrade-vats-generic-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-vaultFactory-proposal.d.ts +1 -1
- package/src/proposals/upgrade-vaultFactory-proposal.d.ts.map +1 -1
- package/src/proposals/upgrade-zoe-proposal.d.ts +1 -1
- package/src/proposals/upgrade-zoe-proposal.d.ts.map +1 -1
- package/src/proposals/vtransfer-echoer.d.ts +1 -1
- package/src/proposals/vtransfer-echoer.d.ts.map +1 -1
- package/src/proposals/zcf-only-proposal.d.ts +2 -2
- package/src/proposals/zcf-only-proposal.d.ts.map +1 -1
- package/src/proposals/zcf-proposal.d.ts +1 -1
- package/src/proposals/zcf-proposal.d.ts.map +1 -1
- package/src/types.d.ts +3 -10
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +3 -10
- package/src/vat-bank.d.ts +26 -6
- package/src/vat-bank.d.ts.map +1 -1
- package/src/vat-bank.js +8 -13
- package/src/vat-mints.d.ts +6 -6
- package/tools/bank-utils.d.ts.map +1 -1
- package/src/proposals/upgrade-psm-proposal.d.ts +0 -33
- package/src/proposals/upgrade-psm-proposal.d.ts.map +0 -1
- package/src/proposals/upgrade-psm-proposal.js +0 -75
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,63 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [0.16.0-
|
|
6
|
+
## [0.16.0-u18a.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/vats@0.16.0-u18.5...@agoric/vats@0.16.0-u18a.0) (2025-02-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @agoric/vats
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.16.0-u18.5](https://github.com/Agoric/agoric-sdk/compare/@agoric/vats@0.16.0-u18.4...@agoric/vats@0.16.0-u18.5) (2024-12-24)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **cosmic-swingset:** Add support for testing blocks of a mock chain ([48b6405](https://github.com/Agoric/agoric-sdk/commit/48b6405d23dc3dc051e3a9aea66ffb3f9749a82e))
|
|
20
|
+
* upgrade v7-board and test it ([#10516](https://github.com/Agoric/agoric-sdk/issues/10516)) ([d8a109e](https://github.com/Agoric/agoric-sdk/commit/d8a109edcc78c977ef856131b52dd449e6a9d724)), closes [#10394](https://github.com/Agoric/agoric-sdk/issues/10394)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **ERTP,vats:** fix 9407 AmountPatternShape ([#9863](https://github.com/Agoric/agoric-sdk/issues/9863)) ([59b1a9f](https://github.com/Agoric/agoric-sdk/commit/59b1a9f2961eaf3107e2c733da1bd67466bb2f94)), closes [#9410](https://github.com/Agoric/agoric-sdk/issues/9410) [#9407](https://github.com/Agoric/agoric-sdk/issues/9407) [#9410](https://github.com/Agoric/agoric-sdk/issues/9410) [#9407](https://github.com/Agoric/agoric-sdk/issues/9407) [#9410](https://github.com/Agoric/agoric-sdk/issues/9410) [#9407](https://github.com/Agoric/agoric-sdk/issues/9407) [#9410](https://github.com/Agoric/agoric-sdk/issues/9410)
|
|
26
|
+
* **vaultFactory:** fix proposal description ([bc1f87a](https://github.com/Agoric/agoric-sdk/commit/bc1f87a802f68d629972874c6bb60339c3933de4))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [0.16.0-u18.4](https://github.com/Agoric/agoric-sdk/compare/@agoric/vats@0.16.0-u18.3...@agoric/vats@0.16.0-u18.4) (2024-12-17)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @agoric/vats
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [0.16.0-u18.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/vats@0.16.0-u18.2...@agoric/vats@0.16.0-u18.3) (2024-12-09)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @agoric/vats
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [0.16.0-u18.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/vats@0.16.0-u18.1...@agoric/vats@0.16.0-u18.2) (2024-11-21)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @agoric/vats
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [0.16.0-u18.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/vats@0.16.0-u18.0...@agoric/vats@0.16.0-u18.1) (2024-11-19)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @agoric/vats
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## [0.16.0-u18.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/vats@0.15.1...@agoric/vats@0.16.0-u18.0) (2024-10-31)
|
|
7
63
|
|
|
8
64
|
|
|
9
65
|
### ⚠ BREAKING CHANGES
|
|
@@ -17,9 +73,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
17
73
|
### Features
|
|
18
74
|
|
|
19
75
|
* add upgrade zcf only proposal ([73e0bb8](https://github.com/Agoric/agoric-sdk/commit/73e0bb830e7612e74c8fb510b909db154d2b2219))
|
|
20
|
-
* Complete IBCMethodEvents type definitions with IBC method parameters ([2676f98](https://github.com/Agoric/agoric-sdk/commit/2676f98712441d35d14f9c62869362551dc0d4f6))
|
|
21
76
|
* coreEval to update priceFeeds, auction, and vaultManager ([fd91f78](https://github.com/Agoric/agoric-sdk/commit/fd91f781ad721033d67485d1732272af0c689ae7))
|
|
22
|
-
* **cosmic-swingset:** Add support for testing blocks of a mock chain ([48b6405](https://github.com/Agoric/agoric-sdk/commit/48b6405d23dc3dc051e3a9aea66ffb3f9749a82e))
|
|
23
77
|
* **cosmos:** wire new swingset port handler ([ea582bf](https://github.com/Agoric/agoric-sdk/commit/ea582bf7738f82d0abe5529ee1ac9f2e117c957a))
|
|
24
78
|
* export fakeLocalChainBridgeTxHandler ([7cd5c43](https://github.com/Agoric/agoric-sdk/commit/7cd5c43a6571454751b66e2f218c72cc6e1a8ef5))
|
|
25
79
|
* fake bank bridge ([9abd093](https://github.com/Agoric/agoric-sdk/commit/9abd0931182993545504f9f264440052128756e8))
|
|
@@ -59,7 +113,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
59
113
|
* **types:** parameterize NameHub ([6110c6a](https://github.com/Agoric/agoric-sdk/commit/6110c6a544ec8a37de86d462c032611651f8e459))
|
|
60
114
|
* **types:** WellKnownSpaces['instance'] ([72b3b76](https://github.com/Agoric/agoric-sdk/commit/72b3b763b2f1fdf0c4608d0601a19fd2f3a16709))
|
|
61
115
|
* **undelegate:** use Timestamp instead of Date ([3d4ab30](https://github.com/Agoric/agoric-sdk/commit/3d4ab30008da2200c39426e4dcb07701d7999f99))
|
|
62
|
-
* upgrade v7-board and test it ([#10516](https://github.com/Agoric/agoric-sdk/issues/10516)) ([d8a109e](https://github.com/Agoric/agoric-sdk/commit/d8a109edcc78c977ef856131b52dd449e6a9d724)), closes [#10394](https://github.com/Agoric/agoric-sdk/issues/10394)
|
|
63
116
|
* **vat-transfer:** first cut at working proposal ([2864bd5](https://github.com/Agoric/agoric-sdk/commit/2864bd5c12300c3595df9676bcfde894dbe59b29))
|
|
64
117
|
* **vats:** `BRIDGE_TARGET_REGISTER` and `BRIDGE_TARGET_UNREGISTER` ([badf695](https://github.com/Agoric/agoric-sdk/commit/badf6958dcfb602cf5992afd4ba1f0dc602fccd5))
|
|
65
118
|
* **vats:** provide init-localchain ([19e5aed](https://github.com/Agoric/agoric-sdk/commit/19e5aed4e8a2aad667c04023e0aea01712ff9b9c))
|
|
@@ -76,7 +129,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
76
129
|
* eliminate the `passableEncoding` hack ([87dbbda](https://github.com/Agoric/agoric-sdk/commit/87dbbda8484c6fe3fe542eb847647fd1540c11e6)), closes [#8327](https://github.com/Agoric/agoric-sdk/issues/8327)
|
|
77
130
|
* endow with original unstructured `assert` ([#9514](https://github.com/Agoric/agoric-sdk/issues/9514)) ([f908f89](https://github.com/Agoric/agoric-sdk/commit/f908f89186162df83b540f6aeb1f4c665c3a56b4)), closes [#9515](https://github.com/Agoric/agoric-sdk/issues/9515) [#5672](https://github.com/Agoric/agoric-sdk/issues/5672) [#8332](https://github.com/Agoric/agoric-sdk/issues/8332) [#9513](https://github.com/Agoric/agoric-sdk/issues/9513) [#5672](https://github.com/Agoric/agoric-sdk/issues/5672) [#8332](https://github.com/Agoric/agoric-sdk/issues/8332) [#9513](https://github.com/Agoric/agoric-sdk/issues/9513) [#9515](https://github.com/Agoric/agoric-sdk/issues/9515) [#5672](https://github.com/Agoric/agoric-sdk/issues/5672) [#5672](https://github.com/Agoric/agoric-sdk/issues/5672) [#9513](https://github.com/Agoric/agoric-sdk/issues/9513) [#9513](https://github.com/Agoric/agoric-sdk/issues/9513)
|
|
78
131
|
* ensure script main rejections exit with error ([abdab87](https://github.com/Agoric/agoric-sdk/commit/abdab879014a5c3124ebd0e9246995ac6b1ce6e5))
|
|
79
|
-
* **ERTP,vats:** fix 9407 AmountPatternShape ([#9863](https://github.com/Agoric/agoric-sdk/issues/9863)) ([59b1a9f](https://github.com/Agoric/agoric-sdk/commit/59b1a9f2961eaf3107e2c733da1bd67466bb2f94)), closes [#9410](https://github.com/Agoric/agoric-sdk/issues/9410) [#9407](https://github.com/Agoric/agoric-sdk/issues/9407) [#9410](https://github.com/Agoric/agoric-sdk/issues/9410) [#9407](https://github.com/Agoric/agoric-sdk/issues/9407) [#9410](https://github.com/Agoric/agoric-sdk/issues/9410) [#9407](https://github.com/Agoric/agoric-sdk/issues/9407) [#9410](https://github.com/Agoric/agoric-sdk/issues/9410)
|
|
80
132
|
* **fake-bridge:** use when to handle vows ([8907806](https://github.com/Agoric/agoric-sdk/commit/89078060abeece36ad23edcdc9067be49e463139))
|
|
81
133
|
* **localchain:** `callWhen`s return `PromiseVow` ([b5cf8bd](https://github.com/Agoric/agoric-sdk/commit/b5cf8bd51585df36a72b65d7a1d66babd358b316))
|
|
82
134
|
* **localchain:** work around TypeScript mapped tuple bug ([90e062c](https://github.com/Agoric/agoric-sdk/commit/90e062c3adb5b666ff21a73e1b3c3cddff37c966))
|
|
@@ -87,7 +139,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
87
139
|
* **network:** improve naming and data coercion ([8bcd9e2](https://github.com/Agoric/agoric-sdk/commit/8bcd9e2100f4973fd788a6edf42c144d916c173d))
|
|
88
140
|
* **network:** introduce `Finalizer` to close network ([54b9b00](https://github.com/Agoric/agoric-sdk/commit/54b9b009fff3fd3ab54f731adee97195acaa238f))
|
|
89
141
|
* **network:** use vow types, correct revealed problems ([d1c1240](https://github.com/Agoric/agoric-sdk/commit/d1c1240bcf534a316533d4c203f45f01fdfc825d))
|
|
90
|
-
* nonce handling in vbank ([01ee862](https://github.com/Agoric/agoric-sdk/commit/01ee86258ad904adb7439e118208ee5eb639fc0c))
|
|
91
142
|
* parseQueryPacket should use ResponseQuery.toJSON ([0bd7161](https://github.com/Agoric/agoric-sdk/commit/0bd7161125b9cef2f44cc47feddf3e6fbc75e5a0))
|
|
92
143
|
* **provisioning:** don't use disconnected namesByAddress ([84d74dd](https://github.com/Agoric/agoric-sdk/commit/84d74dd22a8fb2ec274c293d5de0078e0a9359a0))
|
|
93
144
|
* repair storage of zcfBundleCap and add a3p test ([72c7574](https://github.com/Agoric/agoric-sdk/commit/72c75740aff920ffb53231441d0f00a8747400f1))
|
|
@@ -100,7 +151,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
100
151
|
* **types:** template syntax ([279b903](https://github.com/Agoric/agoric-sdk/commit/279b903a559710511d69f1614badddeab801b90d))
|
|
101
152
|
* **types:** Zoe utils hidden by skipLibCheck ([2f17f89](https://github.com/Agoric/agoric-sdk/commit/2f17f8917c9084930968303c0b832d56bbf8333a))
|
|
102
153
|
* update for `[@jessie](https://github.com/jessie).js/safe-await-separator` ([94c6b3c](https://github.com/Agoric/agoric-sdk/commit/94c6b3c83a5326594f1e2886ae01d6a703a7a68f))
|
|
103
|
-
* **vat-bank:** allow numeric or string nonces ([b2590be](https://github.com/Agoric/agoric-sdk/commit/b2590be55332e1fc7c68808e2d7284cda13cbd4e))
|
|
104
154
|
* **vats:** `vat-transfer` and `bridge-target` rework ([1be5003](https://github.com/Agoric/agoric-sdk/commit/1be500353e47e307c693c092b611edbc56d72fb6))
|
|
105
155
|
* **vats:** `vtransfer` code cleanup ([8ac8197](https://github.com/Agoric/agoric-sdk/commit/8ac819709ef9ced0badee25e6715a5847b1e3f4c))
|
|
106
156
|
* **vats:** don't give all of bankManager to 1 account ([d1f1630](https://github.com/Agoric/agoric-sdk/commit/d1f1630794e790a109b93c8de0c5b4b5077b77d3))
|
|
@@ -109,7 +159,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
109
159
|
* **vats:** Shape of NameHub lookupAdmin rest args ([ad575b0](https://github.com/Agoric/agoric-sdk/commit/ad575b0f32c5fea30f73c28e729663a660a53f02))
|
|
110
160
|
* **vats:** update error message test ([37bae13](https://github.com/Agoric/agoric-sdk/commit/37bae13150b30ea823f9d61b6f763a8a2dd188d7))
|
|
111
161
|
* **vats:** update vlocalchain API ([6ef27ab](https://github.com/Agoric/agoric-sdk/commit/6ef27abb02432df7b6ab600d5955c9d6ac145697))
|
|
112
|
-
* **vaultFactory:** fix proposal description ([bc1f87a](https://github.com/Agoric/agoric-sdk/commit/bc1f87a802f68d629972874c6bb60339c3933de4))
|
|
113
162
|
|
|
114
163
|
|
|
115
164
|
### Reverts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/vats",
|
|
3
|
-
"version": "0.16.0-upgrade-
|
|
3
|
+
"version": "0.16.0-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
4
4
|
"description": "Agoric's Vat library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -22,34 +22,34 @@
|
|
|
22
22
|
"author": "Agoric",
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agoric/cosmic-proto": "0.5.0-upgrade-
|
|
26
|
-
"@agoric/ertp": "0.16.3-upgrade-
|
|
27
|
-
"@agoric/governance": "0.10.4-upgrade-
|
|
28
|
-
"@agoric/internal": "0.4.0-upgrade-
|
|
29
|
-
"@agoric/network": "0.2.0-upgrade-
|
|
30
|
-
"@agoric/notifier": "0.7.0-upgrade-
|
|
31
|
-
"@agoric/store": "0.9.3-upgrade-
|
|
32
|
-
"@agoric/swingset-vat": "0.33.0-upgrade-
|
|
33
|
-
"@agoric/time": "0.3.3-upgrade-
|
|
34
|
-
"@agoric/vat-data": "0.5.3-upgrade-
|
|
35
|
-
"@agoric/vow": "0.2.0-upgrade-
|
|
36
|
-
"@agoric/zoe": "0.
|
|
37
|
-
"@agoric/zone": "0.3.0-upgrade-
|
|
38
|
-
"@endo/errors": "^1.2.
|
|
39
|
-
"@endo/far": "^1.1.
|
|
40
|
-
"@endo/import-bundle": "^1.3.
|
|
41
|
-
"@endo/marshal": "^1.6.
|
|
42
|
-
"@endo/nat": "^5.0.
|
|
43
|
-
"@endo/pass-style": "^1.4.
|
|
44
|
-
"@endo/patterns": "^1.4.
|
|
45
|
-
"@endo/promise-kit": "^1.1.
|
|
46
|
-
"import-meta-resolve": "^
|
|
25
|
+
"@agoric/cosmic-proto": "0.5.0-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
26
|
+
"@agoric/ertp": "0.16.3-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
27
|
+
"@agoric/governance": "0.10.4-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
28
|
+
"@agoric/internal": "0.4.0-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
29
|
+
"@agoric/network": "0.2.0-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
30
|
+
"@agoric/notifier": "0.7.0-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
31
|
+
"@agoric/store": "0.9.3-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
32
|
+
"@agoric/swingset-vat": "0.33.0-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
33
|
+
"@agoric/time": "0.3.3-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
34
|
+
"@agoric/vat-data": "0.5.3-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
35
|
+
"@agoric/vow": "0.2.0-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
36
|
+
"@agoric/zoe": "0.26.3-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
37
|
+
"@agoric/zone": "0.3.0-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
38
|
+
"@endo/errors": "^1.2.8",
|
|
39
|
+
"@endo/far": "^1.1.9",
|
|
40
|
+
"@endo/import-bundle": "^1.3.2",
|
|
41
|
+
"@endo/marshal": "^1.6.2",
|
|
42
|
+
"@endo/nat": "^5.0.13",
|
|
43
|
+
"@endo/pass-style": "^1.4.7",
|
|
44
|
+
"@endo/patterns": "^1.4.7",
|
|
45
|
+
"@endo/promise-kit": "^1.1.8",
|
|
46
|
+
"import-meta-resolve": "^2.2.1",
|
|
47
47
|
"jessie.js": "^0.3.4"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@agoric/swingset-liveslots": "0.10.3-upgrade-
|
|
51
|
-
"@endo/bundle-source": "^3.5.
|
|
52
|
-
"@endo/init": "^1.1.
|
|
50
|
+
"@agoric/swingset-liveslots": "0.10.3-upgrade-18a-dev-4ee0508.0+4ee0508",
|
|
51
|
+
"@endo/bundle-source": "^3.5.0",
|
|
52
|
+
"@endo/init": "^1.1.7",
|
|
53
53
|
"ava": "^5.3.0",
|
|
54
54
|
"c8": "^10.1.2"
|
|
55
55
|
},
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"workerThreads": false
|
|
78
78
|
},
|
|
79
79
|
"typeCoverage": {
|
|
80
|
-
"atLeast":
|
|
80
|
+
"atLeast": 91.21
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "4ee05088e5ada989a866a11ff65838d395505ce6"
|
|
83
83
|
}
|
package/src/centralSupply.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ export function start(zcf: ZCF<{
|
|
|
4
4
|
feeMintAccess: FeeMintAccess;
|
|
5
5
|
}): Promise<{
|
|
6
6
|
creatorFacet: {
|
|
7
|
-
getBootstrapPayment: () => globalThis.Payment<any
|
|
7
|
+
getBootstrapPayment: () => globalThis.Payment<any>;
|
|
8
8
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
9
|
-
getBootstrapPayment: () => globalThis.Payment<any
|
|
9
|
+
getBootstrapPayment: () => globalThis.Payment<any>;
|
|
10
10
|
}>;
|
|
11
11
|
}>;
|
|
12
12
|
export type CentralSupplyContract = ContractOf<typeof start>;
|
package/src/core/boot-chain.d.ts
CHANGED
|
@@ -72,7 +72,7 @@ export namespace modules {
|
|
|
72
72
|
manifest: Record<string, Record<string, unknown>>;
|
|
73
73
|
makeConfig: (name: string, permit: Record<string, unknown>) => unknown;
|
|
74
74
|
}) => Promise<any[]>;
|
|
75
|
-
makePromiseSpaceForNameHub: (nameAdmin: ERef<import("../types.js").NameAdmin>, log?: typeof console.log) => PromiseSpaceOf<any,
|
|
75
|
+
makePromiseSpaceForNameHub: (nameAdmin: ERef<import("../types.js").NameAdmin>, log?: typeof console.log) => PromiseSpaceOf<any, {}, {}>;
|
|
76
76
|
makeWellKnownSpaces: (parentAdmin: ERef<import("../types.js").NameAdmin>, log?: typeof console.log, kinds?: string[]) => Promise<WellKnownSpaces>;
|
|
77
77
|
makeAgoricNamesAccess: (log?: typeof console.log, reserved?: Record<string, Record<string, unknown>>) => Promise<{
|
|
78
78
|
agoricNames: import("../types.js").NameHub;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boot-chain.d.ts","sourceRoot":"","sources":["boot-chain.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"boot-chain.d.ts","sourceRoot":"","sources":["boot-chain.js"],"names":[],"mappings":";;;;;;;oBAkDwvK,CAAC;;;;;;;;mBAA07N,CAAC;kCAA6B,CAAC;4BAAqB,CAAC;;;;;;;;;;;;;yBAAtxT,mBAAc;;;yBAA0/G,mBAAc;;+CAA6D,OAAQ,wDAAwD,mCAAmC;;;;;;;;;;;;;;;2BAAgvQ,CAAC,SAAS,qCAAqC;;;;;;;;;;;;;;;qCAA73Y,GAAG;;;;;;;;;4DAAilG,aAAa,2BAAyC,QAAS,GAAG;uDAA6lB,aAAa,2BAA2C,QAAS,GAAG;6CAAy3B,QAAS,GAAG;gCAA+V,aAAa;qCAAyC,aAAa;;;;;;;6HAA01C,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iGAA16J,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/BtkH,iDAAiD;AAEjD,iEAAiD;AAc1C,2CATI,SAAS,GAAG;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,CAAC,GAAG,KAAA,KAAK,IAAI,CAAC;CACvB,iBACO;IACN,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;CAClC,WACO,OAAO,kBAAkB,EAAE,OAAO;;;;;;;;;;;;;;GAc5C;+BA5Ba,OAAO,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain-behaviors.d.ts","sourceRoot":"","sources":["chain-behaviors.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chain-behaviors.d.ts","sourceRoot":"","sources":["chain-behaviors.js"],"names":[],"mappings":"AA+BO,0CAFI,eAAe,iBAgFzB;AAMM,qIAFI,eAAe,iBAUzB;AAIM,6DADK,eAAe,iBAG1B;AAIM,gMADK,eAAe,iBAuD1B;AAcM,2FAHI,cAAc,kBACd;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,iBAqFhD;AAIM,sMADK,eAAe,iBAc1B;AAMM,kNAFI,WAAW,CAAC,YAAY,CAAC,GAAG,cAAc,iBAkCpD;AAMM,2LAFI,cAAc,iBA8BxB;AAKM,qLAFI,cAAc,iBAqCxB;AAGM,kJADK,eAAe,GAAG,cAAc,iBAkB3C;AAaM,kGATI,eAAe,wCACf;IACN,OAAO,CAAC,EAAE;QACR,kBAAkB,CAAC,EAAE;YACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;SACrB,CAAC;KACH,CAAC;CACH,iBAkCH;AAOM,4DAFI,eAAe,iBAMzB;AAGD,wDAAwD;AACxD,8CADW,OAAO,eAAe,EAAE,iBAAiB,CA2ElD;AAGF,wDAAwD;AACxD,uCADW,OAAO,eAAe,EAAE,iBAAiB,CASjD"}
|
|
@@ -20,10 +20,6 @@ import { BASIC_BOOTSTRAP_PERMITS } from './basic-behaviors.js';
|
|
|
20
20
|
import { agoricNamesReserved, callProperties, extractPowers } from './utils.js';
|
|
21
21
|
import { makeScopedBridge } from '../bridge.js';
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* @import {BridgeMessage} from '@agoric/cosmic-swingset/src/types.js';
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
23
|
const { keys } = Object;
|
|
28
24
|
|
|
29
25
|
/**
|
|
@@ -61,10 +57,10 @@ export const bridgeCoreEval = async allPowers => {
|
|
|
61
57
|
|
|
62
58
|
// Register a coreEval handler over the bridge.
|
|
63
59
|
const handler = Far('coreHandler', {
|
|
64
|
-
/** @param {BridgeMessage} obj */
|
|
65
60
|
async fromBridge(obj) {
|
|
66
61
|
switch (obj.type) {
|
|
67
62
|
case 'CORE_EVAL': {
|
|
63
|
+
/** @type {import('@agoric/cosmic-proto/swingset/swingset.js').CoreEvalProposalSDKType} */
|
|
68
64
|
const { evals } = obj;
|
|
69
65
|
return Promise.all(
|
|
70
66
|
evals.map(({ json_permits: jsonPermit, js_code: code }) =>
|
|
@@ -155,7 +151,6 @@ export const bridgeProvisioner = async ({
|
|
|
155
151
|
// Register a provisioning handler over the bridge.
|
|
156
152
|
const handler = provisioning
|
|
157
153
|
? Far('provisioningHandler', {
|
|
158
|
-
/** @param {BridgeMessage} obj */
|
|
159
154
|
async fromBridge(obj) {
|
|
160
155
|
switch (obj.type) {
|
|
161
156
|
case 'PLEASE_PROVISION': {
|
package/src/core/lib-boot.d.ts
CHANGED
|
@@ -62,6 +62,5 @@ export type ModuleNamespace = Record<string, unknown>;
|
|
|
62
62
|
export type BootModules = {
|
|
63
63
|
utils: typeof import("./utils.js");
|
|
64
64
|
} & Record<string, Record<string, any>>;
|
|
65
|
-
export type BootstrapRootObject =
|
|
66
|
-
import type { EReturn } from '@endo/far';
|
|
65
|
+
export type BootstrapRootObject = Awaited<ReturnType<typeof makeBootstrap>>;
|
|
67
66
|
//# sourceMappingURL=lib-boot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib-boot.d.ts","sourceRoot":"","sources":["lib-boot.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lib-boot.d.ts","sourceRoot":"","sources":["lib-boot.js"],"names":[],"mappings":"AAyDO,yCAVI,OAAO,sBAAsB,EAAE,SAAS,GAAG;IACjD,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,CAAC,EAAE,OAAO,OAAO,CAAC,GAAG,CAAC;CAC7B,iBACO,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,gBACvB,iBAAiB,aACjB,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,WAC5B,WAAW,SACX,OAAO,cAAc,EAAE,IAAI;IAkHlC;;;;;OAKG;sBAFQ,YAAY,WACZ,WAAW,GAAG,YAAY;IAerC,6BAA6B;wBAAjB,MAAM;;IASlB,6BAA6B;sBAAjB,MAAM;;IAclB;;;OAGG;oBAFU,CAAC,EAAE,CAAC,SACN,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;;IA5CzB;;;;;OAKG;sBAFQ,YAAY,WACZ,WAAW,GAAG,YAAY;IAerC,6BAA6B;wBAAjB,MAAM;;IASlB,6BAA6B;sBAAjB,MAAM;;IAclB;;;OAGG;oBAFU,CAAC,EAAE,CAAC,SACN,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;GAK5B;sCA/MY,IAAI,GACV,MAAM,GACN;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS,CAAA;CAAE;;;;;;;;;;;;;;gCAgBhD,MAAM,CAAC,MAAM,EAAE,uBAAuB,CAAC;2BAIvC,CAAC,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC;8BAE5C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;0BAEvB;IAAE,KAAK,EAAE,cAAc,YAAY,CAAC,CAAA;CAAE,GAAG,MAAM,CAC3D,MAAU,EACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACpB;kCAmLU,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
package/src/core/lib-boot.js
CHANGED
|
@@ -8,10 +8,6 @@ import {
|
|
|
8
8
|
} from './utils.js';
|
|
9
9
|
import { makePromiseSpace } from './promise-space.js';
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* @import {EReturn} from '@endo/far';
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
11
|
/**
|
|
16
12
|
* @typedef {true
|
|
17
13
|
* | string
|
|
@@ -221,4 +217,4 @@ export const makeBootstrap = (
|
|
|
221
217
|
//#endregion
|
|
222
218
|
});
|
|
223
219
|
};
|
|
224
|
-
/** @typedef {
|
|
220
|
+
/** @typedef {Awaited<ReturnType<typeof makeBootstrap>>} BootstrapRootObject */
|
|
@@ -12,7 +12,7 @@ export function startWalletFactory({ vatParameters: { chainStorageEntries }, con
|
|
|
12
12
|
};
|
|
13
13
|
}): Promise<void>;
|
|
14
14
|
export const WALLET_FACTORY_MANIFEST: {
|
|
15
|
-
[
|
|
15
|
+
[x: string]: {
|
|
16
16
|
vatParameters: {
|
|
17
17
|
chainStorageEntries: boolean;
|
|
18
18
|
};
|
|
@@ -63,7 +63,7 @@ export function getManifestForWalletFactory({ restoreRef }: {
|
|
|
63
63
|
installKeys: any;
|
|
64
64
|
}): {
|
|
65
65
|
manifest: {
|
|
66
|
-
[
|
|
66
|
+
[x: string]: {
|
|
67
67
|
vatParameters: {
|
|
68
68
|
chainStorageEntries: boolean;
|
|
69
69
|
};
|
|
@@ -113,7 +113,7 @@ export function getManifestForWalletFactory({ restoreRef }: {
|
|
|
113
113
|
walletFactory: any;
|
|
114
114
|
};
|
|
115
115
|
};
|
|
116
|
-
export type WalletFactoryStartResult =
|
|
116
|
+
export type WalletFactoryStartResult = Awaited<ReturnType<typeof startFactoryInstance>>;
|
|
117
117
|
import { Stable } from '@agoric/internal/src/tokens.js';
|
|
118
118
|
/**
|
|
119
119
|
* @param {ERef<ZoeService>} zoe
|
|
@@ -122,7 +122,7 @@ import { Stable } from '@agoric/internal/src/tokens.js';
|
|
|
122
122
|
* >} inst
|
|
123
123
|
*
|
|
124
124
|
*
|
|
125
|
-
* @typedef {
|
|
125
|
+
* @typedef {Awaited<ReturnType<typeof startFactoryInstance>>} WalletFactoryStartResult
|
|
126
126
|
*/
|
|
127
127
|
declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<import("@agoric/smart-wallet/src/walletFactory.js").start>): Promise<import("@agoric/zoe/src/zoeService/utils.js").StartedInstanceKit<(zcf: ZCF<SmartWalletContractTerms>, privateArgs: {
|
|
128
128
|
storageNode: ERef<StorageNode>;
|
|
@@ -133,6 +133,5 @@ declare function startFactoryInstance(zoe: ERef<ZoeService>, inst: Installation<
|
|
|
133
133
|
provideSmartWallet(address: string, bank: ERef<import("../vat-bank.js").Bank>, namesByAddressAdmin: ERef<import("../types.js").NameAdmin>): Promise<[wallet: import("@agoric/smart-wallet/src/smartWallet.js").SmartWallet, isNew: boolean]>;
|
|
134
134
|
}>;
|
|
135
135
|
}>>>;
|
|
136
|
-
import type { EReturn } from '@endo/far';
|
|
137
136
|
export {};
|
|
138
137
|
//# sourceMappingURL=startWalletFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"startWalletFactory.d.ts","sourceRoot":"","sources":["startWalletFactory.js"],"names":[],"mappings":"AAkFO,qnBArBI,eAAe,GACrB,qBAAqB,GACrB,cAAc,CAAC;IACb,6BAA6B,EAAE,OAAO,qCAAqC,EAAE,+BAA+B,CAAC;IAC7G,cAAc,EAAE;QACd,YAAY,EAAE,OAAO,CACnB,UAAU,CACpB,mEAAwE,CAAC,OAAO,CAAC,CACtE,CACF,CAAC,cAAc,CAAC,CAAC;QAClB,UAAU,EAAE,UAAU,CAAC;KACxB,CAAC;IACF,mBAAmB,EAAE,OAAO,aAAa,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACzE,4BAA4B,EAAE,OAAO,aAAa,EAAE,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;CAC5F,CAAC,4CACI;IACN,OAAO,CAAC,EAAE;QACR,sBAAsB,CAAC,EAAE,MAAM,CAAC;KACjC,CAAC;CACH,iBAoLH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCE;AAEK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWN;uCAnSY,OAAO,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;uBAhBtC,gCAAgC;AASvD;;;;;;;;GAQG;AAEH,2CATW,IAAI,CAAC,UAAU,CAAC,QAChB,YAAY,CACtB,OAAW,2CAA2C,EAAE,KAAK,CAC1D;;uBA8GU,CAAC,cAAsB,aAC3B;iBAE6B,CAAA;mBAEnC,kBAEC;;8DA8IwB,gBACR,0CAGf,aACG,uCAKA,yCAAkB;;KAvQ2C"}
|
|
@@ -12,10 +12,6 @@ import {
|
|
|
12
12
|
slotToBoardRemote,
|
|
13
13
|
} from '../../tools/board-utils.js';
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* @import {EReturn} from '@endo/far';
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
15
|
const trace = makeTracer('StartWF');
|
|
20
16
|
|
|
21
17
|
/**
|
|
@@ -25,7 +21,7 @@ const trace = makeTracer('StartWF');
|
|
|
25
21
|
* >} inst
|
|
26
22
|
*
|
|
27
23
|
*
|
|
28
|
-
* @typedef {
|
|
24
|
+
* @typedef {Awaited<ReturnType<typeof startFactoryInstance>>} WalletFactoryStartResult
|
|
29
25
|
*/
|
|
30
26
|
// eslint-disable-next-line no-unused-vars
|
|
31
27
|
const startFactoryInstance = (zoe, inst) => E(zoe).startInstance(inst);
|
|
@@ -128,7 +128,7 @@ type ClientManager = {
|
|
|
128
128
|
* @template C - Consume only
|
|
129
129
|
* @template P - Produce only
|
|
130
130
|
*/
|
|
131
|
-
type PromiseSpaceOf<B, C =
|
|
131
|
+
type PromiseSpaceOf<B, C = {}, P = {}> = {
|
|
132
132
|
consume: { [K in keyof (B & C)]: Promise<(B & C)[K]> };
|
|
133
133
|
produce: { [K in keyof (B & P)]: Producer<(B & P)[K]> };
|
|
134
134
|
};
|
|
@@ -449,7 +449,7 @@ type BootstrapSpace = WellKnownSpaces &
|
|
|
449
449
|
loadVat: VatLoader;
|
|
450
450
|
loadCriticalVat: VatLoader;
|
|
451
451
|
},
|
|
452
|
-
|
|
452
|
+
{}
|
|
453
453
|
>;
|
|
454
454
|
|
|
455
455
|
type LocalChainVat = ERef<
|
package/src/core/utils.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export function runModuleBehaviors({ allPowers, behaviors, manifest, makeConfig,
|
|
|
24
24
|
manifest: Record<string, Record<string, unknown>>;
|
|
25
25
|
makeConfig: (name: string, permit: Record<string, unknown>) => unknown;
|
|
26
26
|
}): Promise<any[]>;
|
|
27
|
-
export function makePromiseSpaceForNameHub(nameAdmin: ERef<import("../types.js").NameAdmin>, log?: typeof console.log): PromiseSpaceOf<any,
|
|
27
|
+
export function makePromiseSpaceForNameHub(nameAdmin: ERef<import("../types.js").NameAdmin>, log?: typeof console.log): PromiseSpaceOf<any, {}, {}>;
|
|
28
28
|
export function makeWellKnownSpaces(parentAdmin: ERef<import("../types.js").NameAdmin>, log?: typeof console.log, kinds?: string[]): Promise<WellKnownSpaces>;
|
|
29
29
|
export function makeAgoricNamesAccess(log?: typeof console.log, reserved?: Record<string, Record<string, unknown>>): Promise<{
|
|
30
30
|
agoricNames: import("../types.js").NameHub;
|
package/src/core/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAcA;;;;;;;GAOG;AACH,kCAJU,GACJ,CAAC,IAAI,MAAM,aAAa,GAAG,GAAG,EAAE,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,MAAM,GAAE,GACjE,CA+DD;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,yCAJI,CAAC,CAAC,GAAG,IAAI,KAAA,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,WACrC,OAAO,EAAA,GACR,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAG0B;AAWvD,kCALI,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAEnC,OAAO,SACP,MAAM,EAAE,OAiClB;AAQM,sCAJI,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,aAEnC,OAAO,OAYjB;AAUM,oFALJ;IAAsB,SAAS,EAAvB,OAAO;IACuB,SAAS,EAAvC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACuB,QAAQ,EAAtD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC0B,UAAU,EAA3E,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO;CACpE,kBAuBA;AASM,sDAHI,IAAI,CAAC,OAAO,aAAa,EAAE,SAAS,CAAC,QACrC,OAAO,OAAO,CAAC,GAAG
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAcA;;;;;;;GAOG;AACH,kCAJU,GACJ,CAAC,IAAI,MAAM,aAAa,GAAG,GAAG,EAAE,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,MAAM,GAAE,GACjE,CA+DD;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,yCAJI,CAAC,CAAC,GAAG,IAAI,KAAA,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,WACrC,OAAO,EAAA,GACR,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAG0B;AAWvD,kCALI,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAEnC,OAAO,SACP,MAAM,EAAE,OAiClB;AAQM,sCAJI,IAAI,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,aAEnC,OAAO,OAYjB;AAUM,oFALJ;IAAsB,SAAS,EAAvB,OAAO;IACuB,SAAS,EAAvC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACuB,QAAQ,EAAtD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC0B,UAAU,EAA3E,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO;CACpE,kBAuBA;AASM,sDAHI,IAAI,CAAC,OAAO,aAAa,EAAE,SAAS,CAAC,QACrC,OAAO,OAAO,CAAC,GAAG,+BAwB5B;AAOM,iDAJI,IAAI,CAAC,OAAO,aAAa,EAAE,SAAS,CAAC,QACrC,OAAO,OAAO,CAAC,GAAG,UAClB,MAAM,EAAE,4BAoBlB;AAoBM,4CAZI,OAAO,OAAO,CAAC,GAAG,aAClB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAKrC,OAAO,CAAC;IAChB,WAAW,EAAE,OAAO,aAAa,EAAE,OAAO,CAAC;IAC3C,gBAAgB,EAAE,OAAO,aAAa,EAAE,SAAS,CAAC;IAClD,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC,CAsBJ;AAMM,mDAFI,MAAM;;;EAgBhB;AAYM,kCAPI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,kBAC/D,OAAO,QACP,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,IAAI,UACtB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yFA1K2B,WAAW;uFAAX,WAAW;;;;;;;;;;;;;;;;;;;;;yFAAX,WAAW;uFAAX,WAAW;;;;;EA6NtD;uBAzDa,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;sCAOb,sBAAsB"}
|
package/src/localchain.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @import {EReturn} from '@endo/far';
|
|
3
2
|
* @import {TypedJson, ResponseTo, JsonSafe} from '@agoric/cosmic-proto';
|
|
4
3
|
* @import {PromiseVow, VowTools} from '@agoric/vow';
|
|
5
4
|
* @import {TargetApp, TargetRegistration} from './bridge-target.js';
|
|
@@ -123,7 +122,6 @@ export function prepareLocalChainAccountKit(zone: import("@agoric/base-zone").Zo
|
|
|
123
122
|
monitorTransfers(tap: TargetApp): PromiseVow<TargetRegistration>;
|
|
124
123
|
};
|
|
125
124
|
}>;
|
|
126
|
-
/** @typedef {EReturn<EReturn<typeof prepareLocalChain>>} LocalChain */
|
|
127
125
|
/**
|
|
128
126
|
* @typedef {Awaited<
|
|
129
127
|
* ReturnType<ReturnType<typeof prepareLocalChainAccountKit>>
|
|
@@ -201,10 +199,10 @@ export type LocalChainPowers = {
|
|
|
201
199
|
bankManager: BankManager;
|
|
202
200
|
transfer: import("./transfer.js").TransferMiddleware;
|
|
203
201
|
};
|
|
204
|
-
export type LocalChain = EReturn<EReturn<typeof prepareLocalChain>>;
|
|
205
202
|
export type LocalChainAccountKit = Awaited<ReturnType<ReturnType<typeof prepareLocalChainAccountKit>>>;
|
|
206
203
|
export type LocalChainAccount = LocalChainAccountKit["account"];
|
|
207
204
|
export type LocalChainTools = ReturnType<typeof prepareLocalChainTools>;
|
|
205
|
+
export type LocalChain = ReturnType<LocalChainTools["makeLocalChain"]>;
|
|
208
206
|
import type { VowTools } from '@agoric/vow';
|
|
209
207
|
import type { PromiseVow } from '@agoric/vow';
|
|
210
208
|
import type { TypedJson } from '@agoric/cosmic-proto';
|
|
@@ -215,42 +213,4 @@ import type { TargetRegistration } from './bridge-target.js';
|
|
|
215
213
|
import type { ScopedBridgeManager } from './types.js';
|
|
216
214
|
import type { Bank } from './vat-bank.js';
|
|
217
215
|
import type { BankManager } from './vat-bank.js';
|
|
218
|
-
/**
|
|
219
|
-
* @param {import('@agoric/base-zone').Zone} zone
|
|
220
|
-
* @param {ReturnType<typeof prepareLocalChainAccountKit>} makeAccountKit
|
|
221
|
-
* @param {VowTools} vowTools
|
|
222
|
-
*/
|
|
223
|
-
declare function prepareLocalChain(zone: import("@agoric/base-zone").Zone, makeAccountKit: ReturnType<typeof prepareLocalChainAccountKit>, { watch }: VowTools): (powers: LocalChainPowers) => import("@endo/exo").Guarded<{
|
|
224
|
-
/**
|
|
225
|
-
* Allocate a fresh address that doesn't correspond with a public key,
|
|
226
|
-
* and follows the ICA guidelines to help reduce collisions. See
|
|
227
|
-
* x/vlocalchain/keeper/keeper.go AllocateAddress for the use of the app
|
|
228
|
-
* hash and block data hash.
|
|
229
|
-
*
|
|
230
|
-
* @returns {PromiseVow<LocalChainAccount>}
|
|
231
|
-
*/
|
|
232
|
-
makeAccount(): PromiseVow<LocalChainAccount>;
|
|
233
|
-
/**
|
|
234
|
-
* Make a single query to the local chain. Will reject with an error if
|
|
235
|
-
* the query fails. Otherwise, return the response as a JSON-compatible
|
|
236
|
-
* object.
|
|
237
|
-
*
|
|
238
|
-
* @template {TypedJson} [T=TypedJson]
|
|
239
|
-
* @param {T} request
|
|
240
|
-
* @returns {PromiseVow<JsonSafe<ResponseTo<T>>>}
|
|
241
|
-
*/
|
|
242
|
-
query<T extends TypedJson = {
|
|
243
|
-
'@type': string;
|
|
244
|
-
}>(request: T): PromiseVow<JsonSafe<ResponseTo<T>>>;
|
|
245
|
-
queryMany(requests: {
|
|
246
|
-
'@type': string;
|
|
247
|
-
}[]): PromiseVowOfTupleMappedToGenerics<{
|
|
248
|
-
error?: string | undefined;
|
|
249
|
-
reply: {
|
|
250
|
-
'@type': string;
|
|
251
|
-
};
|
|
252
|
-
}[]>;
|
|
253
|
-
}>;
|
|
254
|
-
import type { EReturn } from '@endo/far';
|
|
255
|
-
export {};
|
|
256
216
|
//# 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":"AAcA
|
|
1
|
+
{"version":3,"file":"localchain.d.ts","sourceRoot":"","sources":["localchain.js"],"names":[],"mappings":"AAcA;;;;;;GAMG;AAEH;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;GAaG;AAEH;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH;;;;;;;GAaG;AAMI,kDAHI,OAAO,mBAAmB,EAAE,IAAI,aAChC,QAAQ;;QA2BX;;;;;;WAMG;2BALQ,KAAK,CAAC,KAAK,CAAC,+BACZ;YACN,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;YACxB,cAAc,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;SAC/B;;;;QAYJ;;;WAGG;0BAFQ,KAAK,CAAC,KAAK,CAAC,GACV,WAAW,MAAM,CAAC,KAAK,CAAC,CAAC;QAUtC;;;;;;;;;WASG;yBAJQ,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,mBACpB,OAAO,GAEL,WAAW,MAAM,CAAC,KAAK,CAAC,CAAC;QAYtC;;;;;;WAMG;yBAFQ,MAAM,CAAC,KAAK,CAAC,GACX,WAAW,OAAO,CAAC,KAAK,CAAC,CAAC;QAOvC;;;;;;;;;;;;;;;;;;;WAmBG;kBATwB,EAAE,SAAf,SAAS,EAAG,YAEf,EAAE,GACA,iCAAiC,CAAC,GACzC,CAAC,IAAI,MAAM,EAAE,iCACf,CAAC;QAmBL;;;WAGG;8BAFQ,SAAS,GACP,WAAW,kBAAkB,CAAC;;GAQhD;AAEH;;;;GAIG;AAEH,mEAAmE;AAEnE;;;;GAMG;AAoGI,6CAHI,OAAO,mBAAmB,EAAE,IAAI,YAChC,QAAQ;6BARN,gBAAgB;QAjErB;;;;;;;WAOG;uBADU,WAAW,iBAAiB,CAAC;QAU1C;;;;;;;;WAQG;cAHuB,CAAC,SAAd,SAAW;;oBACb,CAAC,GACC,WAAW,SAAS,WAAW,CAAC,CAAC,CAAC,CAAC;;;;oBA3OzC,MAAM;;;;;;EAoSpB;;;;;;;;;;;;;8CA1TwB,CAAC,SAAZ,OAAO,EAAG,IACX,OAAO,CAAC,CAAC,CAAC;;;;;wBAgBK,EAAE,SAAhB,SAAS,EAAG;;kBAEf,EAAE,KACA,iCAAiC,CAAC,GACzC,CAAC,IAAI,MAAM,EAAE,GAAG,SAAS;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1B,CAAC,GACH,CAAC;4BAIQ;IACR,MAAM,EAAE,oBAAoB,aAAa,CAAC,CAAC;IAC3C,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,OAAO,eAAe,EAAE,kBAAkB,CAAC;CACtD;+BAIS;IACR,MAAM,EAAE,oBAAoB,aAAa,CAAC,CAAC;IAC3C,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,OAAO,eAAe,EAAE,kBAAkB,CAAC;CACtD;mCA2JS,OAAO,CACf,UAAU,CAAC,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAC3D;gCAGU,oBAAoB,CAAC,SAAS,CAAC;8BAoH/B,UAAU,CAAC,OAAO,sBAAsB,CAAC;yBACzC,UAAU,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC;8BArUpB,aAAa;gCAAb,aAAa;+BADF,sBAAsB;gCAAtB,sBAAsB;8BAAtB,sBAAsB;+BAExB,oBAAoB;wCAApB,oBAAoB;yCAE9B,YAAY;0BADd,eAAe;iCAAf,eAAe"}
|
package/src/localchain.js
CHANGED
|
@@ -13,7 +13,6 @@ import { Shape as NetworkShape } from '@agoric/network';
|
|
|
13
13
|
const { Vow$ } = NetworkShape;
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* @import {EReturn} from '@endo/far';
|
|
17
16
|
* @import {TypedJson, ResponseTo, JsonSafe} from '@agoric/cosmic-proto';
|
|
18
17
|
* @import {PromiseVow, VowTools} from '@agoric/vow';
|
|
19
18
|
* @import {TargetApp, TargetRegistration} from './bridge-target.js';
|
|
@@ -216,7 +215,6 @@ export const prepareLocalChainAccountKit = (zone, { watch }) =>
|
|
|
216
215
|
},
|
|
217
216
|
},
|
|
218
217
|
);
|
|
219
|
-
/** @typedef {EReturn<EReturn<typeof prepareLocalChain>>} LocalChain */
|
|
220
218
|
|
|
221
219
|
/**
|
|
222
220
|
* @typedef {Awaited<
|
|
@@ -339,4 +337,6 @@ export const prepareLocalChainTools = (zone, vowTools) => {
|
|
|
339
337
|
return harden({ makeLocalChain });
|
|
340
338
|
};
|
|
341
339
|
harden(prepareLocalChainTools);
|
|
340
|
+
|
|
342
341
|
/** @typedef {ReturnType<typeof prepareLocalChainTools>} LocalChainTools */
|
|
342
|
+
/** @typedef {ReturnType<LocalChainTools['makeLocalChain']>} LocalChain */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kread-proposal.d.ts","sourceRoot":"","sources":["kread-proposal.js"],"names":[],"mappings":"AAOO,kEAJI,eAAe,GAAG;IACxB,OAAO,EAAE;QAAE,QAAQ,EAAE,GAAG,CAAA;KAAE,CAAC;CAC5B,iBAUH;AAEM
|
|
1
|
+
{"version":3,"file":"kread-proposal.d.ts","sourceRoot":"","sources":["kread-proposal.js"],"names":[],"mappings":"AAOO,kEAJI,eAAe,GAAG;IACxB,OAAO,EAAE;QAAE,QAAQ,EAAE,GAAG,CAAA;KAAE,CAAC;CAC5B,iBAUH;AAEM;;;;;;;;EAML"}
|
|
@@ -24,25 +24,32 @@ export function getManifestForLocalChain(_powers: any, { localchainRef }: {
|
|
|
24
24
|
localchainRef: any;
|
|
25
25
|
}): {
|
|
26
26
|
manifest: {
|
|
27
|
-
[
|
|
27
|
+
[x: string]: {
|
|
28
28
|
consume: {
|
|
29
29
|
loadCriticalVat: boolean;
|
|
30
30
|
bridgeManager: string;
|
|
31
31
|
localchainBridgeManager: string;
|
|
32
32
|
bankManager: string;
|
|
33
33
|
transferMiddleware: string;
|
|
34
|
+
client?: undefined;
|
|
35
|
+
localchain?: undefined;
|
|
34
36
|
};
|
|
35
37
|
produce: {
|
|
36
38
|
localchain: string;
|
|
37
39
|
localchainVat: string;
|
|
38
40
|
localchainBridgeManager: string;
|
|
39
41
|
};
|
|
40
|
-
}
|
|
41
|
-
[addLocalChainToClient.name]: {
|
|
42
|
+
} | {
|
|
42
43
|
consume: {
|
|
43
44
|
client: string;
|
|
44
45
|
localchain: string;
|
|
46
|
+
loadCriticalVat?: undefined;
|
|
47
|
+
bridgeManager?: undefined;
|
|
48
|
+
localchainBridgeManager?: undefined;
|
|
49
|
+
bankManager?: undefined;
|
|
50
|
+
transferMiddleware?: undefined;
|
|
45
51
|
};
|
|
52
|
+
produce?: undefined;
|
|
46
53
|
};
|
|
47
54
|
};
|
|
48
55
|
options: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localchain-proposal.d.ts","sourceRoot":"","sources":["localchain-proposal.js"],"names":[],"mappings":"AA0BO,2PApBI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,aAAa,EAAE,OAAO,UAAU,EAAE,aAAa,CAAC;QAChD,uBAAuB,EAAE,OAAO,UAAU,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC;QAC/E,WAAW,EAAE,OAAO,CAAC,OAAO,gBAAgB,EAAE,WAAW,CAAC,CAAC;QAC3D,kBAAkB,EAAE,OAAO,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC,CAAC;KAC1E,CAAC;IACF,OAAO,EAAE;QACP,UAAU,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC1B,aAAa,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC7B,uBAAuB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;KACxC,CAAC;CACH,WAED;IAAiD,OAAO,EAAhD;QAAE,aAAa,EAAE,YAAY,CAAA;KAAE;CAEvC,iBA6DF;AAUM,2EAPI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,UAAU,EAAE,OAAO,kBAAkB,EAAE,UAAU,CAAC;KACnD,CAAC;CACH,YACO,MAAM,iBAOhB;AAEM
|
|
1
|
+
{"version":3,"file":"localchain-proposal.d.ts","sourceRoot":"","sources":["localchain-proposal.js"],"names":[],"mappings":"AA0BO,2PApBI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,aAAa,EAAE,OAAO,UAAU,EAAE,aAAa,CAAC;QAChD,uBAAuB,EAAE,OAAO,UAAU,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAC;QAC/E,WAAW,EAAE,OAAO,CAAC,OAAO,gBAAgB,EAAE,WAAW,CAAC,CAAC;QAC3D,kBAAkB,EAAE,OAAO,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC,CAAC;KAC1E,CAAC;IACF,OAAO,EAAE;QACP,UAAU,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC1B,aAAa,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;QAC7B,uBAAuB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;KACxC,CAAC;CACH,WAED;IAAiD,OAAO,EAAhD;QAAE,aAAa,EAAE,YAAY,CAAA;KAAE;CAEvC,iBA6DF;AAUM,2EAPI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,UAAU,EAAE,OAAO,kBAAkB,EAAE,UAAU,CAAC;KACnD,CAAC;CACH,YACO,MAAM,iBAOhB;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BL;6BAzGW;IACR,UAAU,EAAE,IAAI,CAAC,OAAO,sBAAsB,EAAE,aAAa,CAAC,CAAC;CAChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localchain-test.d.ts","sourceRoot":"","sources":["localchain-test.js"],"names":[],"mappings":"AAaO,0EARI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,UAAU,EAAE,OAAO,kBAAkB,EAAE,UAAU,CAAC;KACnD,CAAC;CACH,mCAED;IAA4C,OAAO,EAA3C;QAAE,cAAc,EAAE,MAAM,CAAA;KAAE;CACpC,iBA8DA;AAEM
|
|
1
|
+
{"version":3,"file":"localchain-test.d.ts","sourceRoot":"","sources":["localchain-test.js"],"names":[],"mappings":"AAaO,0EARI,eAAe,GAAG;IACxB,OAAO,EAAE;QACP,UAAU,EAAE,OAAO,kBAAkB,EAAE,UAAU,CAAC;KACnD,CAAC;CACH,mCAED;IAA4C,OAAO,EAA3C;QAAE,cAAc,EAAE,MAAM,CAAA;KAAE;CACpC,iBA8DA;AAEM;;;;;;;;;;;;;;EAYL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-proposal.d.ts","sourceRoot":"","sources":["network-proposal.js"],"names":[],"mappings":"AA2BO,+CAHI,QAAQ,GAAG,OAAO,sBAClB,IAAI,CAAC,OAAO,aAAa,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC,iBAsCjE;AA8BM,mOAZI,eAAe,GAAG;IACxB,OAAO,EAAE;QAAE,aAAa,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;CAC3C,WAED;IAAoE,OAAO,EAAnE;QAAE,UAAU,EAAE,YAAY,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE;CAE1D,iBA2EF;AAEM
|
|
1
|
+
{"version":3,"file":"network-proposal.d.ts","sourceRoot":"","sources":["network-proposal.js"],"names":[],"mappings":"AA2BO,+CAHI,QAAQ,GAAG,OAAO,sBAClB,IAAI,CAAC,OAAO,aAAa,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC,iBAsCjE;AA8BM,mOAZI,eAAe,GAAG;IACxB,OAAO,EAAE;QAAE,aAAa,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;CAC3C,WAED;IAAoE,OAAO,EAAnE;QAAE,UAAU,EAAE,YAAY,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE;CAE1D,iBA2EF;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;EAsBL;;;;;;;;;;;;;;;;;sBAnGW;IACR,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC1B,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAClB,YAAY,EAAE,IAAI,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC;CACjD"}
|