@agoric/zoe 0.26.3-upgrade-16-dev-0df76a7.0 → 0.26.3-upgrade-17-dev-e67cd91.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/README.md +2 -3
- package/bundles/bundle-contractFacet-js-meta.json +536 -507
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +30 -28
- package/src/cleanProposal.d.ts.map +1 -1
- package/src/cleanProposal.js +4 -2
- package/src/contractFacet/allocationMath.d.ts.map +1 -1
- package/src/contractFacet/allocationMath.js +1 -2
- package/src/contractFacet/exit.d.ts.map +1 -1
- package/src/contractFacet/exit.js +1 -2
- package/src/contractFacet/offerHandlerStorage.d.ts +4 -0
- package/src/contractFacet/offerHandlerStorage.d.ts.map +1 -1
- package/src/contractFacet/offerHandlerStorage.js +12 -0
- package/src/contractFacet/reallocate.d.ts.map +1 -1
- package/src/contractFacet/reallocate.js +1 -2
- package/src/contractFacet/rightsConservation.js +5 -5
- package/src/contractFacet/typeGuards.d.ts +8 -0
- package/src/contractFacet/typeGuards.d.ts.map +1 -0
- package/src/contractFacet/typeGuards.js +25 -0
- package/src/contractFacet/types-ambient.d.ts +4 -1
- package/src/contractFacet/vatRoot.d.ts.map +1 -1
- package/src/contractFacet/vatRoot.js +1 -2
- package/src/contractFacet/zcfMint.d.ts.map +1 -1
- package/src/contractFacet/zcfMint.js +3 -5
- package/src/contractFacet/zcfSeat.d.ts.map +1 -1
- package/src/contractFacet/zcfSeat.js +10 -9
- package/src/contractFacet/zcfZygote.d.ts.map +1 -1
- package/src/contractFacet/zcfZygote.js +8 -12
- package/src/contractSupport/bondingCurves.js +1 -1
- package/src/contractSupport/priceAuthority.d.ts.map +1 -1
- package/src/contractSupport/priceAuthority.js +2 -3
- package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityInitial.js +0 -1
- package/src/contractSupport/priceAuthorityTransform.js +1 -1
- package/src/contractSupport/priceQuote.d.ts.map +1 -1
- package/src/contractSupport/priceQuote.js +2 -3
- package/src/contractSupport/ratio.d.ts +12 -3
- package/src/contractSupport/ratio.d.ts.map +1 -1
- package/src/contractSupport/ratio.js +19 -5
- package/src/contractSupport/recorder.d.ts +11 -21
- package/src/contractSupport/recorder.d.ts.map +1 -1
- package/src/contractSupport/recorder.js +9 -21
- package/src/contractSupport/stateMachine.js +1 -1
- package/src/contractSupport/topics.d.ts +26 -0
- package/src/contractSupport/topics.d.ts.map +1 -1
- package/src/contractSupport/topics.js +24 -1
- package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
- package/src/contractSupport/zoeHelpers.js +6 -9
- package/src/contracts/auction/assertBidSeat.js +1 -1
- package/src/contracts/auction/index.d.ts.map +1 -1
- package/src/contracts/auction/index.js +1 -3
- package/src/contracts/auction/secondPriceLogic.js +4 -4
- package/src/contracts/autoswap.d.ts.map +1 -1
- package/src/contracts/autoswap.js +4 -2
- package/src/contracts/callSpread/calculateShares.js +1 -1
- package/src/contracts/callSpread/payoffHandler.d.ts.map +1 -1
- package/src/contracts/callSpread/payoffHandler.js +0 -1
- package/src/contracts/callSpread/pricedCallSpread.d.ts.map +1 -1
- package/src/contracts/callSpread/pricedCallSpread.js +1 -3
- package/src/contracts/coveredCall-durable.d.ts.map +1 -1
- package/src/contracts/coveredCall-durable.js +1 -2
- package/src/contracts/coveredCall.d.ts.map +1 -1
- package/src/contracts/coveredCall.js +1 -2
- package/src/contracts/loan/borrow.js +1 -1
- package/src/contracts/loan/close.js +1 -1
- package/src/contracts/loan/scheduleLiquidation.d.ts.map +1 -1
- package/src/contracts/loan/scheduleLiquidation.js +0 -1
- package/src/contracts/loan/updateDebt.js +3 -3
- package/src/contracts/mintAndSellNFT.js +1 -1
- package/src/contracts/oracle.d.ts.map +1 -1
- package/src/contracts/oracle.js +1 -2
- package/src/contracts/otcDesk.js +1 -1
- package/src/contracts/priceAggregator.d.ts.map +1 -1
- package/src/contracts/priceAggregator.js +3 -4
- package/src/contracts/sellItems.d.ts.map +1 -1
- package/src/contracts/sellItems.js +1 -3
- package/src/contracts/valueVow.contract.d.ts +17 -0
- package/src/contracts/valueVow.contract.d.ts.map +1 -0
- package/src/contracts/valueVow.contract.js +63 -0
- package/src/instanceRecordStorage.d.ts.map +1 -1
- package/src/instanceRecordStorage.js +2 -5
- package/src/issuerRecord.js +1 -1
- package/src/issuerStorage.d.ts.map +1 -1
- package/src/issuerStorage.js +5 -4
- package/src/makeHandle.d.ts.map +1 -1
- package/src/makeHandle.js +1 -3
- package/src/typeGuards.d.ts +10 -8
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +7 -12
- package/src/zoeService/createZCFVat.js +1 -1
- package/src/zoeService/escrowStorage.js +3 -3
- package/src/zoeService/feeMint.d.ts.map +1 -1
- package/src/zoeService/feeMint.js +1 -2
- package/src/zoeService/installationStorage.d.ts.map +1 -1
- package/src/zoeService/installationStorage.js +1 -3
- package/src/zoeService/instanceAdminStorage.d.ts.map +1 -1
- package/src/zoeService/instanceAdminStorage.js +7 -9
- package/src/zoeService/internal-types.d.ts +1 -1
- package/src/zoeService/internal-types.d.ts.map +1 -1
- package/src/zoeService/internal-types.js +0 -1
- package/src/zoeService/invitationQueries.js +3 -3
- package/src/zoeService/makeInvitation.js +1 -1
- package/src/zoeService/offer/burnInvitation.d.ts.map +1 -1
- package/src/zoeService/offer/burnInvitation.js +3 -5
- package/src/zoeService/offer/offer.d.ts.map +1 -1
- package/src/zoeService/offer/offer.js +1 -2
- package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
- package/src/zoeService/originalZoeSeat.js +1 -3
- package/src/zoeService/startInstance.d.ts.map +1 -1
- package/src/zoeService/startInstance.js +1 -9
- package/src/zoeService/utils.d.ts +3 -2
- package/src/zoeService/utils.test-d.ts +6 -5
- package/src/zoeService/zoe.d.ts +3 -2
- package/src/zoeService/zoe.d.ts.map +1 -1
- package/src/zoeService/zoe.js +54 -52
- package/src/zoeService/zoeSeat.d.ts.map +1 -1
- package/src/zoeService/zoeSeat.js +1 -3
- package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
- package/src/zoeService/zoeStorageManager.js +0 -1
- package/tools/fakePriceAuthority.d.ts.map +1 -1
- package/tools/fakePriceAuthority.js +5 -4
- package/tools/fakeVatAdmin.d.ts.map +1 -1
- package/tools/fakeVatAdmin.js +10 -9
- package/tools/manualPriceAuthority.d.ts.map +1 -1
- package/tools/manualPriceAuthority.js +0 -1
- package/tools/manualTimer.d.ts.map +1 -1
- package/tools/manualTimer.js +1 -2
- package/tools/scriptedPriceAuthority.d.ts.map +1 -1
- package/tools/scriptedPriceAuthority.js +0 -1
- package/tools/setup-zoe.d.ts +3 -3
- package/tools/setup-zoe.d.ts.map +1 -1
- package/tools/setup-zoe.js +1 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { E } from '@endo/far';
|
|
1
2
|
import type { StartedInstanceKit } from './utils';
|
|
2
3
|
|
|
3
4
|
const someContractStartFn = (
|
|
@@ -10,24 +11,24 @@ type PsmInstanceKit = StartedInstanceKit<typeof someContractStartFn>;
|
|
|
10
11
|
const psmInstanceKit: PsmInstanceKit = null as any;
|
|
11
12
|
|
|
12
13
|
// @ts-expect-error missing privateArgs argument
|
|
13
|
-
void psmInstanceKit.adminFacet.restartContract();
|
|
14
|
+
void E(psmInstanceKit.adminFacet).restartContract();
|
|
14
15
|
|
|
15
16
|
const partial = {
|
|
16
17
|
someNumber: 1,
|
|
17
18
|
};
|
|
18
19
|
// @ts-expect-error missing member of privateArgs argument
|
|
19
|
-
void psmInstanceKit.adminFacet.restartContract(partial);
|
|
20
|
+
void E(psmInstanceKit.adminFacet).restartContract(partial);
|
|
20
21
|
|
|
21
22
|
// valid privateArgs now with 'marshaller'
|
|
22
|
-
void psmInstanceKit.adminFacet.restartContract({
|
|
23
|
+
void E(psmInstanceKit.adminFacet).restartContract({
|
|
23
24
|
...partial,
|
|
24
25
|
someString: 'str',
|
|
25
26
|
});
|
|
26
27
|
|
|
27
28
|
// @ts-expect-error missing member of privateArgs argument
|
|
28
|
-
void psmInstanceKit.adminFacet.upgradeContract('whatever', partial);
|
|
29
|
+
void E(psmInstanceKit.adminFacet).upgradeContract('whatever', partial);
|
|
29
30
|
// valid privateArgs now with 'marshaller'
|
|
30
|
-
void psmInstanceKit.adminFacet.upgradeContract('whatever', {
|
|
31
|
+
void E(psmInstanceKit.adminFacet).upgradeContract('whatever', {
|
|
31
32
|
...partial,
|
|
32
33
|
someString: 'str',
|
|
33
34
|
});
|
package/src/zoeService/zoe.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type ZoeKit = ReturnType<typeof makeDurableZoeKit>;
|
|
2
|
+
/** @import {Baggage} from '@agoric/vat-data' */
|
|
2
3
|
/**
|
|
3
4
|
* Create a durable instance of Zoe.
|
|
4
5
|
*
|
|
@@ -20,7 +21,7 @@ export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, fee
|
|
|
20
21
|
feeIssuerConfig?: FeeIssuerConfig | undefined;
|
|
21
22
|
zcfSpec?: ZCFSpec | undefined;
|
|
22
23
|
}): {
|
|
23
|
-
zoeService: ZoeService
|
|
24
|
+
zoeService: import("@endo/exo").Guarded<ZoeService>;
|
|
24
25
|
zoeConfigFacet: import("@endo/exo").Guarded<{
|
|
25
26
|
updateZcfBundleId(bundleId: any): void;
|
|
26
27
|
}>;
|
|
@@ -45,7 +46,7 @@ export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, fee
|
|
|
45
46
|
* @param {ZCFSpec} [zcfSpec] - Pointer to the contract facet bundle.
|
|
46
47
|
*/
|
|
47
48
|
export function makeZoeKit(vatAdminSvc?: VatAdminSvc | Promise<VatAdminSvc> | undefined, shutdownZoeVat?: import("@agoric/swingset-vat").ShutdownWithFailure | undefined, feeIssuerConfig?: FeeIssuerConfig | undefined, zcfSpec?: ZCFSpec | undefined): {
|
|
48
|
-
zoeService: ZoeService
|
|
49
|
+
zoeService: import("@endo/exo").Guarded<ZoeService>;
|
|
49
50
|
zoeConfigFacet: import("@endo/exo").Guarded<{
|
|
50
51
|
updateZcfBundleId(bundleId: any): void;
|
|
51
52
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoe.d.ts","sourceRoot":"","sources":["zoe.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zoe.d.ts","sourceRoot":"","sources":["zoe.js"],"names":[],"mappings":"qBAmSa,UAAU,CAAC,OAAO,iBAAiB,CAAC;AArQjD,gDAAgD;AAEhD;;;;;;;;;;;;;GAaG;AACH,0GAVG;IAAyB,UAAU,EAA3B,OAAO;IACsC,WAAW;IAGK,cAAc;IAGjD,eAAe;IACvB,OAAO;CACnC;;;;;IAkNG,4BAA4B;mBAAjB,aAAa;;EAK3B;AAED;;;;;;;;;;;;;;;GAeG;AACH;;;;;IAvBI,4BAA4B;mBAAjB,aAAa;;EA8BxB;6BA/PuB,kBAAkB"}
|
package/src/zoeService/zoe.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
|
-
/* eslint @typescript-eslint/no-floating-promises: "warn" */
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* Zoe uses ERTP, the Electronic Rights Transfer Protocol
|
|
@@ -20,6 +19,7 @@ import { Far } from '@endo/marshal';
|
|
|
20
19
|
import { makeScalarBigMapStore, prepareExo } from '@agoric/vat-data';
|
|
21
20
|
import { M } from '@agoric/store';
|
|
22
21
|
|
|
22
|
+
import { Fail } from '@endo/errors';
|
|
23
23
|
import { makeZoeStorageManager } from './zoeStorageManager.js';
|
|
24
24
|
import { makeStartInstance } from './startInstance.js';
|
|
25
25
|
import { makeOfferMethod } from './offer/offer.js';
|
|
@@ -30,8 +30,6 @@ import { ZoeServiceI } from '../typeGuards.js';
|
|
|
30
30
|
|
|
31
31
|
/** @import {Baggage} from '@agoric/vat-data' */
|
|
32
32
|
|
|
33
|
-
const { Fail } = assert;
|
|
34
|
-
|
|
35
33
|
/**
|
|
36
34
|
* Create a durable instance of Zoe.
|
|
37
35
|
*
|
|
@@ -195,58 +193,62 @@ const makeDurableZoeKit = ({
|
|
|
195
193
|
},
|
|
196
194
|
});
|
|
197
195
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
196
|
+
const zoeService = prepareExo(
|
|
197
|
+
zoeBaggage,
|
|
198
|
+
'ZoeService',
|
|
199
|
+
ZoeServiceI,
|
|
200
|
+
/** @type {ZoeService} */ ({
|
|
201
|
+
install(bundleId, bundleLabel) {
|
|
202
|
+
return dataAccess.installBundle(bundleId, bundleLabel);
|
|
203
|
+
},
|
|
204
|
+
installBundleID(bundleId, bundleLabel) {
|
|
205
|
+
return dataAccess.installBundleID(bundleId, bundleLabel);
|
|
206
|
+
},
|
|
207
|
+
startInstance,
|
|
208
|
+
offer,
|
|
208
209
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
210
|
+
// The functions below are getters only and have no impact on
|
|
211
|
+
// state within Zoe
|
|
212
|
+
getOfferFilter(instance) {
|
|
213
|
+
return dataAccess.getOfferFilter(instance);
|
|
214
|
+
},
|
|
215
|
+
async getInvitationIssuer() {
|
|
216
|
+
return dataAccess.getInvitationIssuer();
|
|
217
|
+
},
|
|
218
|
+
async getFeeIssuer() {
|
|
219
|
+
return feeMintKit.feeMint.getFeeIssuer();
|
|
220
|
+
},
|
|
220
221
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
222
|
+
getBrands(instance) {
|
|
223
|
+
return dataAccess.getBrands(instance);
|
|
224
|
+
},
|
|
225
|
+
getIssuers(instance) {
|
|
226
|
+
return dataAccess.getIssuers(instance);
|
|
227
|
+
},
|
|
228
|
+
getPublicFacet(instance) {
|
|
229
|
+
return dataAccess.getPublicFacet(instance);
|
|
230
|
+
},
|
|
231
|
+
getTerms(instance) {
|
|
232
|
+
return dataAccess.getTerms(instance);
|
|
233
|
+
},
|
|
234
|
+
getInstallationForInstance(instance) {
|
|
235
|
+
return dataAccess.getInstallation(instance);
|
|
236
|
+
},
|
|
237
|
+
getBundleIDFromInstallation(installation) {
|
|
238
|
+
return dataAccess.getBundleIDFromInstallation(installation);
|
|
239
|
+
},
|
|
240
|
+
getInstallation,
|
|
240
241
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
242
|
+
getInstance(invitation) {
|
|
243
|
+
return getInstance(invitation);
|
|
244
|
+
},
|
|
245
|
+
getConfiguration,
|
|
246
|
+
getInvitationDetails,
|
|
247
|
+
getProposalShapeForInvitation(invitation) {
|
|
248
|
+
return dataAccess.getProposalShapeForInvitation(invitation);
|
|
249
|
+
},
|
|
250
|
+
}),
|
|
251
|
+
);
|
|
250
252
|
|
|
251
253
|
return harden({
|
|
252
254
|
zoeService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoeSeat.d.ts","sourceRoot":"","sources":["zoeSeat.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zoeSeat.d.ts","sourceRoot":"","sources":["zoeSeat.js"],"names":[],"mappings":"AAkDO,iDAFI,OAAO,kBAAkB,EAAE,OAAO,uBAwWhC,UAAU,YACV,cAAc,uBACd,mBAAmB,iBACnB,aAAa;;;;;;;;;;;;;;;;QAzIlB,wCAAwC;8DAA5B,iBAAiB;;;;;;;EAoKpC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { Fail } from '@endo/errors';
|
|
2
2
|
import { prepareDurablePublishKit } from '@agoric/notifier';
|
|
3
3
|
import { E } from '@endo/eventual-send';
|
|
4
4
|
import { M, prepareExoClassKit } from '@agoric/vat-data';
|
|
@@ -15,8 +15,6 @@ import {
|
|
|
15
15
|
coreUserSeatMethods,
|
|
16
16
|
} from './originalZoeSeat.js';
|
|
17
17
|
|
|
18
|
-
const { Fail } = assert;
|
|
19
|
-
|
|
20
18
|
// ZoeSeatAdmin has the implementation of coreUserSeatMethods, but ZoeUserSeat
|
|
21
19
|
// is the facet shared with users. The latter transparently forwards to the
|
|
22
20
|
// former.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoeStorageManager.d.ts","sourceRoot":"","sources":["zoeStorageManager.js"],"names":[],"mappings":"AAwDO,oDAXI,YAAY,qBAEZ,iBAAiB,kBACjB,OAAO,sBAAsB,EAAE,mBAAmB,WAClD;IACV,eAAoB,EAAE,eAAe,CAAC;IACtC,YAAiB,EAAE,MAAM,MAAM,CAAC;IAChC,WAAgB,EAAE,MAAM,KAAK,CAAC;CAC3B,cACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"zoeStorageManager.d.ts","sourceRoot":"","sources":["zoeStorageManager.js"],"names":[],"mappings":"AAwDO,oDAXI,YAAY,qBAEZ,iBAAiB,kBACjB,OAAO,sBAAsB,EAAE,mBAAmB,WAClD;IACV,eAAoB,EAAE,eAAe,CAAC;IACtC,YAAiB,EAAE,MAAM,MAAM,CAAC;IAChC,WAAgB,EAAE,MAAM,KAAK,CAAC;CAC3B,cACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;QA+ZV,iCAAiC;;kBA3aW,CAAC;qBAC3B,CAAC;oBAA0B,CAAC;;;;;;;GAsbrD;6BAlc0B,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fakePriceAuthority.d.ts","sourceRoot":"","sources":["fakePriceAuthority.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fakePriceAuthority.d.ts","sourceRoot":"","sources":["fakePriceAuthority.js"],"names":[],"mappings":"AAyBA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,gDAHW,yBAAyB,GACvB,OAAO,CAAC,cAAc,CAAC,CAwSnC;;mBAvTa,KAAK,CAAC,KAAK,CAAC;oBACZ,KAAK,CAAC,KAAK,CAAC;;;WAGZ,OAAO,cAAc,EAAE,YAAY;;;;;oCAhB4C,4BAA4B"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fail } from '@endo/errors';
|
|
2
2
|
import { makePromiseKit } from '@endo/promise-kit';
|
|
3
|
+
import { E } from '@endo/eventual-send';
|
|
4
|
+
import { Far } from '@endo/marshal';
|
|
5
|
+
|
|
6
|
+
import { makeIssuerKit, AssetKind, AmountMath } from '@agoric/ertp';
|
|
3
7
|
import {
|
|
4
8
|
makeNotifierKit,
|
|
5
9
|
makeNotifierFromAsyncIterable,
|
|
6
10
|
} from '@agoric/notifier';
|
|
7
|
-
import { E } from '@endo/eventual-send';
|
|
8
|
-
import { Far } from '@endo/marshal';
|
|
9
11
|
import { TimeMath } from '@agoric/time';
|
|
10
12
|
|
|
11
13
|
import { natSafeMath } from '../src/contractSupport/index.js';
|
|
@@ -14,7 +16,6 @@ import { natSafeMath } from '../src/contractSupport/index.js';
|
|
|
14
16
|
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
15
17
|
*/
|
|
16
18
|
|
|
17
|
-
const { Fail } = assert;
|
|
18
19
|
const { coerceRelativeTimeRecord } = TimeMath;
|
|
19
20
|
|
|
20
21
|
// 'if (a >= b)' becomes 'if (timestampGTE(a,b))'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fakeVatAdmin.d.ts","sourceRoot":"","sources":["fakeVatAdmin.js"],"names":[],"mappings":"AAsBA,+BAA4C;;uBAR7B,OAAO,sBAAsB,EAAE,QAAQ;kCACvC,OAAO,sBAAsB,EAAE,mBAAmB;wBAGlD,OAAO,sBAAsB,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"fakeVatAdmin.d.ts","sourceRoot":"","sources":["fakeVatAdmin.js"],"names":[],"mappings":"AAsBA,+BAA4C;;uBAR7B,OAAO,sBAAsB,EAAE,QAAQ;kCACvC,OAAO,sBAAsB,EAAE,mBAAmB;wBAGlD,OAAO,sBAAsB,EAAE,SAAS;AAoJvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA8C;AA9I9C;;;GAGG;AACH,0EAHwB,OAAO,iCAChB,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqIjC"}
|
package/tools/fakeVatAdmin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
2
|
|
|
3
|
-
import { Fail } from '@
|
|
3
|
+
import { Fail } from '@endo/errors';
|
|
4
4
|
import { E } from '@endo/eventual-send';
|
|
5
5
|
import { makePromiseKit } from '@endo/promise-kit';
|
|
6
6
|
import { Far } from '@endo/marshal';
|
|
@@ -103,15 +103,16 @@ function makeFakeVatAdmin(testContextSetter = undefined, makeRemote = x => x) {
|
|
|
103
103
|
// buildRootObject: vp => ns.buildRootObject(vpow, vp, vatBaggage),
|
|
104
104
|
// }),
|
|
105
105
|
// );
|
|
106
|
-
|
|
106
|
+
const rootP = makeRemote(
|
|
107
|
+
E(evalContractBundle(zcfBundle)).buildRootObject(
|
|
108
|
+
vpow,
|
|
109
|
+
vatParameters,
|
|
110
|
+
vatBaggage,
|
|
111
|
+
),
|
|
112
|
+
);
|
|
113
|
+
return E.when(rootP, root =>
|
|
107
114
|
harden({
|
|
108
|
-
root
|
|
109
|
-
E(evalContractBundle(zcfBundle)).buildRootObject(
|
|
110
|
-
vpow,
|
|
111
|
-
vatParameters,
|
|
112
|
-
vatBaggage,
|
|
113
|
-
),
|
|
114
|
-
),
|
|
115
|
+
root,
|
|
115
116
|
adminNode: Far('adminNode', {
|
|
116
117
|
done: () => {
|
|
117
118
|
return exitKit.promise;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manualPriceAuthority.d.ts","sourceRoot":"","sources":["manualPriceAuthority.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"manualPriceAuthority.d.ts","sourceRoot":"","sources":["manualPriceAuthority.js"],"names":[],"mappings":"AAYA;;GAEG;AAEH;;;;;;;;GAQG;AACH,kDAPG;IAA8B,aAAa,EAAnC,KAAK,CAAC,KAAK,CAAC;IACU,cAAc,EAApC,KAAK,CAAC,KAAK,CAAC;IACG,YAAY,EAA3B,KAAK;IACwC,KAAK,EAAlD,OAAO,cAAc,EAAE,YAAY;IACR,cAAc;CACjD,GAAU,cAAc,GAAG;IAAE,QAAQ,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CA8E/E;mCACa,UAAU,CAAC,OAAO,wBAAwB,CAAC;oCAzFoC,4BAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manualTimer.d.ts","sourceRoot":"","sources":["manualTimer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"manualTimer.d.ts","sourceRoot":"","sources":["manualTimer.js"],"names":[],"mappings":"AAyEO,qDANc,GAAG,EAAE,KAAK,IAAI,wHAGtB,cAAc,CAsD1B;;oCA5GY;IACZ,QAAW,CAAC,EAAE,OAAO,cAAc,EAAE,YAAY,GAAG,MAAM,CAAC;IAC3D,kBAAqB,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC;;;;;;;;UAOU,CAAC,GAAG,CAAC,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;WAItC,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC;;6BAG/C,UAAU,CAAC,OAAO,gBAAgB,CAAC,GAAG,eAAe,gBAAgB,EAAE,aAAa,GAAG,gBAAgB,CAAC,GAAG,gBAAgB;iCA9BxG,4CAA4C;mCAI7C,cAAc;oCAEb,qBAAqB"}
|
package/tools/manualTimer.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Fail } from '@endo/errors';
|
|
1
2
|
import { Far } from '@endo/marshal';
|
|
2
3
|
import { bindAllMethods } from '@agoric/internal';
|
|
3
4
|
import { buildManualTimer } from '@agoric/swingset-vat/tools/manual-timer.js';
|
|
@@ -9,8 +10,6 @@ import { TimeMath } from '@agoric/time';
|
|
|
9
10
|
* @import {RemotableBrand} from '@endo/eventual-send';
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
|
-
const { Fail } = assert;
|
|
13
|
-
|
|
14
13
|
// we wrap SwingSet's buildManualTimer to accomodate the needs of
|
|
15
14
|
// zoe's tests
|
|
16
15
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scriptedPriceAuthority.d.ts","sourceRoot":"","sources":["scriptedPriceAuthority.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scriptedPriceAuthority.d.ts","sourceRoot":"","sources":["scriptedPriceAuthority.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH,yEAoFC;oCAvF4F,4BAA4B"}
|
package/tools/setup-zoe.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
export function makeZoeKitForTest(vatAdminSvc?: VatAdminSvc | undefined): {
|
|
2
|
-
zoeService: ZoeService
|
|
2
|
+
zoeService: import("@endo/exo").Guarded<ZoeService>;
|
|
3
3
|
zoeConfigFacet: import("@endo/exo").Guarded<{
|
|
4
4
|
updateZcfBundleId(bundleId: any): void;
|
|
5
5
|
}>;
|
|
6
6
|
feeMintAccess: FeeMintAccess;
|
|
7
7
|
setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/captp").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
8
8
|
};
|
|
9
|
-
export function makeZoeForTest(vatAdminSvc?: VatAdminSvc | undefined): ZoeService
|
|
9
|
+
export function makeZoeForTest(vatAdminSvc?: VatAdminSvc | undefined): import("@endo/exo").Guarded<ZoeService>;
|
|
10
10
|
export function setUpZoeForTest<T extends unknown = unknown>({ setJig, feeIssuerConfig, vatAdminSvc, useNearRemote, }?: {
|
|
11
11
|
setJig?: ((jig: T) => void) | undefined;
|
|
12
12
|
feeIssuerConfig?: FeeIssuerConfig | undefined;
|
|
13
13
|
vatAdminSvc?: VatAdminSvc | undefined;
|
|
14
14
|
useNearRemote?: boolean | undefined;
|
|
15
15
|
}): Promise<{
|
|
16
|
-
zoe: ZoeService
|
|
16
|
+
zoe: import("@endo/exo").Guarded<ZoeService>;
|
|
17
17
|
feeMintAccessP: FeeMintAccess;
|
|
18
18
|
bundleAndInstall: (path: string) => Promise<Installation>;
|
|
19
19
|
vatAdminSvc: VatAdminSvc;
|
package/tools/setup-zoe.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAUO;;;;;;;EAKN;AAKM
|
|
1
|
+
{"version":3,"file":"setup-zoe.d.ts","sourceRoot":"","sources":["setup-zoe.js"],"names":[],"mappings":"AAUO;;;;;;;EAKN;AAKM,+GACoC;AAapC,gCAPgB,CAAC,uFAErB;IAAmC,MAAM,UAA3B,CAAC,KAAK,IAAI;IACU,eAAe;IACnB,WAAW;IACf,aAAa;CAAC;;;6BA2B9B,MAAM,KACJ,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;GAiBnC"}
|
package/tools/setup-zoe.js
CHANGED