@agoric/zoe 0.26.3-dev-a3bdfb1.0 → 0.26.3-dev-fa844b5.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/bundles/bundle-contractFacet-js-meta.json +217 -357
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +14 -14
- package/src/contractFacet/zcfZygote.js +1 -1
- package/src/contracts/loan/liquidate.js +1 -1
- package/src/internal-types.js +4 -4
- package/src/zoeService/feeMint.js +1 -1
- package/src/zoeService/makeInvitation.js +1 -1
- package/src/zoeService/utils.d.ts +2 -3
- package/src/zoeService/zoe.js +2 -2
- package/src/zoeService/zoeStorageManager.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/zoe",
|
|
3
|
-
"version": "0.26.3-dev-
|
|
3
|
+
"version": "0.26.3-dev-fa844b5.0+fa844b5",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@agoric/assert": "0.6.1-dev-
|
|
47
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
48
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
49
|
-
"@agoric/internal": "0.3.3-dev-
|
|
50
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
51
|
-
"@agoric/store": "0.9.3-dev-
|
|
52
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
53
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
54
|
-
"@agoric/time": "0.3.3-dev-
|
|
55
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-dev-
|
|
46
|
+
"@agoric/assert": "0.6.1-dev-fa844b5.0+fa844b5",
|
|
47
|
+
"@agoric/base-zone": "0.1.1-dev-fa844b5.0+fa844b5",
|
|
48
|
+
"@agoric/ertp": "0.16.3-dev-fa844b5.0+fa844b5",
|
|
49
|
+
"@agoric/internal": "0.3.3-dev-fa844b5.0+fa844b5",
|
|
50
|
+
"@agoric/notifier": "0.6.3-dev-fa844b5.0+fa844b5",
|
|
51
|
+
"@agoric/store": "0.9.3-dev-fa844b5.0+fa844b5",
|
|
52
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-fa844b5.0+fa844b5",
|
|
53
|
+
"@agoric/swingset-vat": "0.32.3-dev-fa844b5.0+fa844b5",
|
|
54
|
+
"@agoric/time": "0.3.3-dev-fa844b5.0+fa844b5",
|
|
55
|
+
"@agoric/vat-data": "0.5.3-dev-fa844b5.0+fa844b5",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-fa844b5.0+fa844b5",
|
|
57
57
|
"@endo/bundle-source": "^3.2.1",
|
|
58
58
|
"@endo/captp": "^4.1.0",
|
|
59
59
|
"@endo/common": "^1.2.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"yargs-parser": "^21.1.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
71
|
+
"@agoric/kmarshal": "0.1.1-dev-fa844b5.0+fa844b5",
|
|
72
72
|
"@endo/init": "^1.1.0",
|
|
73
73
|
"ava": "^5.3.0",
|
|
74
74
|
"c8": "^9.1.0",
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
"typeCoverage": {
|
|
142
142
|
"atLeast": 84.9
|
|
143
143
|
},
|
|
144
|
-
"gitHead": "
|
|
144
|
+
"gitHead": "fa844b51a10ab02af61af19207c164c99c2d8d8c"
|
|
145
145
|
}
|
|
@@ -76,7 +76,7 @@ export const makeZCFZygote = async (
|
|
|
76
76
|
instantiate: instantiateIssuerStorage,
|
|
77
77
|
} = provideIssuerStorage(zcfBaggage);
|
|
78
78
|
|
|
79
|
-
/** @type {ShutdownWithFailure} */
|
|
79
|
+
/** @type {import('@agoric/swingset-vat').ShutdownWithFailure} */
|
|
80
80
|
const shutdownWithFailure = reason => {
|
|
81
81
|
E(zoeInstanceAdmin).failAllSeats(reason);
|
|
82
82
|
seatManager.dropAllReferences();
|
|
@@ -37,7 +37,7 @@ export const doLiquidation = async (
|
|
|
37
37
|
zcf.shutdown('your loan had to be liquidated');
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
-
/** @type {ShutdownWithFailure} */
|
|
40
|
+
/** @type {import('@agoric/swingset-vat').ShutdownWithFailure} */
|
|
41
41
|
const closeWithFailure = err => {
|
|
42
42
|
lenderSeat.fail(err);
|
|
43
43
|
collateralSeat.fail(err);
|
package/src/internal-types.js
CHANGED
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
* @typedef {object} ZoeSeatAdmin
|
|
57
57
|
* @property {(allocation: Allocation) => void} replaceAllocation
|
|
58
58
|
* @property {ZoeSeatAdminExit} exit
|
|
59
|
-
* @property {ShutdownWithFailure} fail called with the reason
|
|
59
|
+
* @property {import('@agoric/swingset-vat').ShutdownWithFailure} fail called with the reason
|
|
60
60
|
* for calling fail on this seat, where reason is normally an instanceof Error.
|
|
61
61
|
* @property {() => Subscriber<AmountKeywordRecord>} getExitSubscriber
|
|
62
62
|
*/
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
* @property {() => string[]} getOfferFilter
|
|
93
93
|
* @property {() => Installation} getInstallation
|
|
94
94
|
* @property {(completion: Completion) => void} exitAllSeats
|
|
95
|
-
* @property {ShutdownWithFailure} failAllSeats
|
|
95
|
+
* @property {import('@agoric/swingset-vat').ShutdownWithFailure} failAllSeats
|
|
96
96
|
* @property {() => void} stopAcceptingOffers
|
|
97
97
|
* @property {(string: string) => boolean} isBlocked
|
|
98
98
|
* @property {(handleOfferObj: HandleOfferObj, publicFacet: unknown) => void} initDelayedState
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
* @property {MakeNoEscrowSeat} makeNoEscrowSeat
|
|
131
131
|
* @property {ReplaceAllocations} replaceAllocations
|
|
132
132
|
* @property {(completion: Completion) => void} exitAllSeats
|
|
133
|
-
* @property {ShutdownWithFailure} failAllSeats
|
|
133
|
+
* @property {import('@agoric/swingset-vat').ShutdownWithFailure} failAllSeats
|
|
134
134
|
* @property {(seatHandle: SeatHandle, completion: Completion) => void} exitSeat
|
|
135
135
|
* @property {(seatHandle: SeatHandle, reason: Error) => void} failSeat
|
|
136
136
|
* @property {() => void} stopAcceptingOffers
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
*
|
|
290
290
|
* @param {ERef<ZoeInstanceAdmin>} zoeInstanceAdmin
|
|
291
291
|
* @param {GetAssetKindByBrand} getAssetKindByBrand
|
|
292
|
-
* @param {ShutdownWithFailure} shutdownWithFailure
|
|
292
|
+
* @param {import('@agoric/swingset-vat').ShutdownWithFailure} shutdownWithFailure
|
|
293
293
|
* @param {import('@agoric/vat-data').Baggage} zcfBaggage
|
|
294
294
|
* @returns {{ seatManager: ZcfSeatManager, zcfMintReallocator: ZcfMintReallocator }}
|
|
295
295
|
*/
|
|
@@ -29,7 +29,7 @@ export const defaultFeeIssuerConfig = harden(
|
|
|
29
29
|
/**
|
|
30
30
|
* @param {import('@agoric/vat-data').Baggage} zoeBaggage
|
|
31
31
|
* @param {FeeIssuerConfig} feeIssuerConfig
|
|
32
|
-
* @param {ShutdownWithFailure} shutdownZoeVat
|
|
32
|
+
* @param {import('@agoric/swingset-vat').ShutdownWithFailure} shutdownZoeVat
|
|
33
33
|
*/
|
|
34
34
|
const prepareFeeMint = (zoeBaggage, feeIssuerConfig, shutdownZoeVat) => {
|
|
35
35
|
const mintBaggage = provideDurableMapStore(zoeBaggage, 'mintBaggage');
|
|
@@ -12,7 +12,7 @@ const ZOE_INVITATION_KIT = 'ZoeInvitationKit';
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* @param {import('@agoric/vat-data').Baggage} baggage
|
|
15
|
-
* @param {ShutdownWithFailure | undefined} shutdownZoeVat
|
|
15
|
+
* @param {import('@agoric/swingset-vat').ShutdownWithFailure | undefined} shutdownZoeVat
|
|
16
16
|
*/
|
|
17
17
|
export const prepareInvitationKit = (baggage, shutdownZoeVat = undefined) => {
|
|
18
18
|
const invitationKitBaggage = provideDurableMapStore(
|
|
@@ -26,9 +26,8 @@ export type Instance<SF> = Handle<'Instance'> & {
|
|
|
26
26
|
[StartFunction]: SF;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
export type InstallationStart<I> =
|
|
30
|
-
? SF
|
|
31
|
-
: never;
|
|
29
|
+
export type InstallationStart<I> =
|
|
30
|
+
I extends Installation<infer SF> ? SF : never;
|
|
32
31
|
|
|
33
32
|
type ContractStartFunction = (
|
|
34
33
|
zcf?: ZCF,
|
package/src/zoeService/zoe.js
CHANGED
|
@@ -40,7 +40,7 @@ const { Fail } = assert;
|
|
|
40
40
|
* @param {Promise<VatAdminSvc> | VatAdminSvc} [options.vatAdminSvc] - The vatAdmin Service, which carries the
|
|
41
41
|
* power to create a new vat. If it's not available when makeZoe() is called, it
|
|
42
42
|
* must be provided later using setVatAdminService().
|
|
43
|
-
* @param {ShutdownWithFailure} [options.shutdownZoeVat] - a function to
|
|
43
|
+
* @param {import('@agoric/swingset-vat').ShutdownWithFailure} [options.shutdownZoeVat] - a function to
|
|
44
44
|
* shutdown the Zoe Vat. This function needs to use the vatPowers
|
|
45
45
|
* available to a vat.
|
|
46
46
|
* @param {FeeIssuerConfig} [options.feeIssuerConfig]
|
|
@@ -268,7 +268,7 @@ const makeDurableZoeKit = ({
|
|
|
268
268
|
* @param {Promise<VatAdminSvc> | VatAdminSvc} [vatAdminSvc] - The vatAdmin Service, which carries the
|
|
269
269
|
* power to create a new vat. If it's not available when makeZoe() is called, it
|
|
270
270
|
* must be provided later using setVatAdminService().
|
|
271
|
-
* @param {ShutdownWithFailure} [shutdownZoeVat] - a function to
|
|
271
|
+
* @param {import('@agoric/swingset-vat').ShutdownWithFailure} [shutdownZoeVat] - a function to
|
|
272
272
|
* shutdown the Zoe Vat. This function needs to use the vatPowers
|
|
273
273
|
* available to a vat.
|
|
274
274
|
* @param {FeeIssuerConfig} [feeIssuerConfig]
|
|
@@ -46,7 +46,7 @@ const { ownKeys } = Reflect;
|
|
|
46
46
|
* @param {CreateZCFVat} createZCFVat - the ability to create a new
|
|
47
47
|
* ZCF Vat
|
|
48
48
|
* @param {GetBundleCapForID} getBundleCapForID
|
|
49
|
-
* @param {ShutdownWithFailure} shutdownZoeVat
|
|
49
|
+
* @param {import('@agoric/swingset-vat').ShutdownWithFailure} shutdownZoeVat
|
|
50
50
|
* @param {{
|
|
51
51
|
* getFeeIssuerKit: GetFeeIssuerKit,
|
|
52
52
|
* getFeeIssuer: () => Issuer,
|