@agoric/zoe 0.26.3-dev-0705f2c.0 → 0.26.3-dev-a9680dd.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 +159 -159
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +14 -14
- package/src/cleanProposal.js +1 -1
- 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 +1 -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 +2 -3
- package/src/contractFacet/zcfSeat.d.ts.map +1 -1
- package/src/contractFacet/zcfSeat.js +3 -4
- package/src/contractFacet/zcfZygote.js +6 -6
- package/src/contractSupport/bondingCurves.js +1 -1
- package/src/contractSupport/priceAuthority.d.ts.map +1 -1
- package/src/contractSupport/priceAuthority.js +2 -2
- 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.js +1 -1
- package/src/contractSupport/recorder.d.ts.map +1 -1
- package/src/contractSupport/recorder.js +1 -1
- package/src/contractSupport/stateMachine.js +1 -1
- package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
- package/src/contractSupport/zoeHelpers.js +2 -3
- 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 -2
- package/src/contracts/autoswap.js +1 -1
- package/src/contracts/callSpread/calculateShares.js +1 -1
- package/src/contracts/callSpread/pricedCallSpread.d.ts.map +1 -1
- package/src/contracts/callSpread/pricedCallSpread.js +1 -2
- 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/updateDebt.js +3 -3
- package/src/contracts/mintAndSellNFT.js +1 -1
- package/src/contracts/oracle.js +1 -1
- package/src/contracts/otcDesk.js +1 -1
- package/src/contracts/priceAggregator.js +1 -1
- package/src/contracts/sellItems.d.ts.map +1 -1
- package/src/contracts/sellItems.js +1 -2
- package/src/instanceRecordStorage.d.ts.map +1 -1
- package/src/instanceRecordStorage.js +1 -2
- package/src/issuerRecord.js +1 -1
- package/src/issuerStorage.d.ts.map +1 -1
- package/src/issuerStorage.js +2 -3
- package/src/makeHandle.d.ts.map +1 -1
- package/src/makeHandle.js +1 -3
- package/src/zoeService/createZCFVat.js +1 -1
- package/src/zoeService/escrowStorage.js +1 -1
- 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 +1 -2
- 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 -2
- package/src/zoeService/startInstance.d.ts.map +1 -1
- package/src/zoeService/startInstance.js +1 -2
- package/src/zoeService/zoe.d.ts +1 -0
- package/src/zoeService/zoe.d.ts.map +1 -1
- package/src/zoeService/zoe.js +1 -2
- package/src/zoeService/zoeSeat.d.ts.map +1 -1
- package/src/zoeService/zoeSeat.js +1 -2
- package/tools/fakePriceAuthority.d.ts.map +1 -1
- package/tools/fakePriceAuthority.js +5 -4
- package/tools/fakeVatAdmin.js +1 -1
- package/tools/manualTimer.d.ts.map +1 -1
- package/tools/manualTimer.js +1 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint @typescript-eslint/no-floating-promises: "warn" */
|
|
2
|
+
import { Fail } from '@endo/errors';
|
|
2
3
|
import { Far } from '@endo/marshal';
|
|
3
4
|
import { Nat } from '@endo/nat';
|
|
4
5
|
import { AmountMath } from '@agoric/ertp';
|
|
@@ -14,8 +15,6 @@ import {
|
|
|
14
15
|
assertNatAssetKind,
|
|
15
16
|
} from '../contractSupport/index.js';
|
|
16
17
|
|
|
17
|
-
const { Fail } = assert;
|
|
18
|
-
|
|
19
18
|
/**
|
|
20
19
|
* Sell items in exchange for money. Items may be fungible or
|
|
21
20
|
* non-fungible and multiple items may be bought at once. Money must
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instanceRecordStorage.d.ts","sourceRoot":"","sources":["instanceRecordStorage.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instanceRecordStorage.d.ts","sourceRoot":"","sources":["instanceRecordStorage.js"],"names":[],"mappings":"AA6BO,mDAHI,OAAO,kBAAkB,EAAE,OAAO,GAChC,CAAC,EAAE,EAAE,cAAc,KAAK,aAAa,CAqFjD"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { q, Fail } from '@endo/errors';
|
|
1
2
|
import { provide, prepareExoClass, M } from '@agoric/vat-data';
|
|
2
3
|
import { assertKeywordName } from './cleanProposal.js';
|
|
3
4
|
import {
|
|
@@ -12,8 +13,6 @@ import {
|
|
|
12
13
|
|
|
13
14
|
const { ownKeys } = Reflect;
|
|
14
15
|
|
|
15
|
-
const { quote: q, Fail } = assert;
|
|
16
|
-
|
|
17
16
|
/**
|
|
18
17
|
* The InstanceRecord stores the installation, customTerms, issuers,
|
|
19
18
|
* and brands for a particular Zoe contract instance. The installation
|
package/src/issuerRecord.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issuerStorage.d.ts","sourceRoot":"","sources":["issuerStorage.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"issuerStorage.d.ts","sourceRoot":"","sources":["issuerStorage.js"],"names":[],"mappings":"AAeO,iDAFI,OAAO,kBAAkB,EAAE,OAAO;2DAwHhC,mBAAmB,KACjB,OAAO,CAAC;QAAE,OAAO,EAAE,mBAAmB,CAAC;QACnD,MAA4B,EAAE,kBAAkB,CAAA;KAAE,CAAC;2BAnDzC,IAAI,CAAC,MAAM,CAAC,KACV,OAAO,CAAC,YAAY,CAAC;sCAzBvB,YAAY,KACV,YAAY;;wBAyFA,CAAC,SAAZ,SAAU,UACb,MAAM,CAAC,CAAC,CAAC,KACP,KAAK,CAAC,CAAC,CAAC;wBASI,CAAC,SAAZ,SAAU,SACb,KAAK,CAAC,CAAC,CAAC,KACN,MAAM,CAAC,CAAC,CAAC;gCASX,MAAM,EAAE,KACN,aAAa;;EAyB3B"}
|
package/src/issuerStorage.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
+
import { Fail } from '@endo/errors';
|
|
2
|
+
import { E } from '@endo/eventual-send';
|
|
1
3
|
import { deeplyFulfilledObject, objectMap } from '@agoric/internal';
|
|
2
4
|
import { provideDurableWeakMapStore } from '@agoric/vat-data';
|
|
3
|
-
import { E } from '@endo/eventual-send';
|
|
4
5
|
|
|
5
6
|
import { cleanKeywords } from './cleanProposal.js';
|
|
6
7
|
import { makeIssuerRecord } from './issuerRecord.js';
|
|
7
8
|
|
|
8
|
-
const { Fail } = assert;
|
|
9
|
-
|
|
10
9
|
const STORAGE_INSTANTIATED_KEY = 'IssuerStorageInstantiated';
|
|
11
10
|
|
|
12
11
|
/**
|
package/src/makeHandle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeHandle.d.ts","sourceRoot":"","sources":["makeHandle.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"makeHandle.d.ts","sourceRoot":"","sources":["makeHandle.js"],"names":[],"mappings":"AAgBO,oCALe,CAAC,SAAV,MAAQ,WACV,OAAO,cACP,CAAC,GACC,CAAC,SAAS,UAAU,GAAG,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,CAAC,CAAC,CAanE;AAUM,2BAJe,CAAC,SAAV,MAAQ,cACV,CAAC,GACC,CAAC,SAAS,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,CAOvD;6BAlC0B,kBAAkB"}
|
package/src/makeHandle.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { Fail } from '@endo/errors';
|
|
4
4
|
import { initEmpty, makeExo } from '@agoric/store';
|
|
5
5
|
import { prepareExoClass } from '@agoric/vat-data';
|
|
6
6
|
|
|
7
7
|
import { HandleI } from './typeGuards.js';
|
|
8
8
|
|
|
9
|
-
const { Fail } = assert;
|
|
10
|
-
|
|
11
9
|
/** @import {Baggage} from '@agoric/vat-data' */
|
|
12
10
|
|
|
13
11
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AmountMath } from '@agoric/ertp';
|
|
2
2
|
import { E } from '@endo/eventual-send';
|
|
3
|
-
import { q, Fail } from '@
|
|
3
|
+
import { q, Fail } from '@endo/errors';
|
|
4
4
|
import { deeplyFulfilledObject, objectMap } from '@agoric/internal';
|
|
5
5
|
import { provideDurableWeakMapStore } from '@agoric/vat-data';
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feeMint.d.ts","sourceRoot":"","sources":["feeMint.js"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"feeMint.d.ts","sourceRoot":"","sources":["feeMint.js"],"names":[],"mappings":";;;;;;;;;AA2BA;;;;GAIG;AACH,2CAJW,OAAO,kBAAkB,EAAE,OAAO,mBAClC,eAAe,kBACf,OAAO,sBAAsB,EAAE,mBAAmB;;;;;;;GA2D5D"}
|
|
@@ -11,10 +11,9 @@ import {
|
|
|
11
11
|
provide,
|
|
12
12
|
prepareExoClassKit,
|
|
13
13
|
} from '@agoric/vat-data';
|
|
14
|
+
import { Fail, q } from '@endo/errors';
|
|
14
15
|
import { FeeMintAccessShape } from '../typeGuards.js';
|
|
15
16
|
|
|
16
|
-
const { Fail, quote: q } = assert;
|
|
17
|
-
|
|
18
17
|
/** @deprecated Redundant. Just omit it. */
|
|
19
18
|
const FEE_MINT_KIT = 'FeeMintKit';
|
|
20
19
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installationStorage.d.ts","sourceRoot":"","sources":["installationStorage.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"installationStorage.d.ts","sourceRoot":"","sources":["installationStorage.js"],"names":[],"mappings":"AAqBO,2DAHI,iBAAiB,cACjB,OAAO;;;;;;;;;;;;;;;GA+IjB;wBArJc,OAAO,sBAAsB,EAAE,SAAS;uBACxC,OAAO,sBAAsB,EAAE,QAAQ;6BAC3B,kBAAkB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Fail, q } from '@endo/errors';
|
|
2
2
|
import {
|
|
3
3
|
M,
|
|
4
4
|
prepareExo,
|
|
@@ -11,8 +11,6 @@ import {
|
|
|
11
11
|
UnwrappedInstallationShape,
|
|
12
12
|
} from '../typeGuards.js';
|
|
13
13
|
|
|
14
|
-
const { Fail, quote: q } = assert;
|
|
15
|
-
|
|
16
14
|
/** @typedef { import('@agoric/swingset-vat').BundleCap} BundleCap */
|
|
17
15
|
/** @typedef { import('@agoric/swingset-vat').BundleID} BundleID */
|
|
18
16
|
/** @import {Baggage} from '@agoric/vat-data' */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instanceAdminStorage.d.ts","sourceRoot":"","sources":["instanceAdminStorage.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instanceAdminStorage.d.ts","sourceRoot":"","sources":["instanceAdminStorage.js"],"names":[],"mappings":"AAmDO,kDADK,OAAO,kBAAkB,EAAE,OAAO;;;;;;;;;;;;;;GA2D7C;AA0JM,mDAHI,OAAO,kBAAkB,EAAE,OAAO,4BAClC,YAAY,CAAC,UAAU,EAAE,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwChD;6BAvDY,QAAQ,CAAC;IACrB,WAAe,EAAE,OAAO,CAAC;IACzB,eAAmB,EAAE,OAAO,CAAC;CAC1B,CAAC;2BACQ;IACZ,kBAAsB,EAAE,MAAM,EAAE,CAAC;CAC9B;oBACS,YAAY,GAAG,cAAc;4BAC7B;IACZ,KAAS,EAAE,KAAK,CAAC;CACd"}
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
provide,
|
|
10
10
|
} from '@agoric/vat-data';
|
|
11
11
|
import { E } from '@endo/eventual-send';
|
|
12
|
+
import { q, Fail } from '@endo/errors';
|
|
12
13
|
import { defineDurableHandle } from '../makeHandle.js';
|
|
13
14
|
import {
|
|
14
15
|
BrandKeywordRecordShape,
|
|
@@ -18,8 +19,6 @@ import {
|
|
|
18
19
|
} from '../typeGuards.js';
|
|
19
20
|
import { makeZoeSeatAdminFactory } from './zoeSeat.js';
|
|
20
21
|
|
|
21
|
-
const { quote: q, Fail } = assert;
|
|
22
|
-
|
|
23
22
|
/**
|
|
24
23
|
* @file Two objects are defined here, both called InstanceAdminSomething.
|
|
25
24
|
* InstanceAdminStorage is a container for individual InstanceAdmins. Each
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { X, Fail, q, makeError, annotateError } from '@endo/errors';
|
|
4
4
|
import { E } from '@endo/eventual-send';
|
|
5
5
|
|
|
6
6
|
export const makeInvitationQueryFns = invitationIssuer => {
|
|
7
7
|
/** @type {GetInvitationDetails} */
|
|
8
8
|
const getInvitationDetails = async invitationP => {
|
|
9
9
|
const onRejected = reason => {
|
|
10
|
-
const err =
|
|
10
|
+
const err = makeError(
|
|
11
11
|
X`A Zoe invitation is required, not ${invitationP}`,
|
|
12
12
|
);
|
|
13
|
-
|
|
13
|
+
annotateError(err, X`Due to ${reason}`);
|
|
14
14
|
throw err;
|
|
15
15
|
};
|
|
16
16
|
const invAmount = await E(invitationIssuer)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
2
|
|
|
3
|
-
import { Fail, q } from '@
|
|
3
|
+
import { Fail, q } from '@endo/errors';
|
|
4
4
|
import { provideDurableMapStore } from '@agoric/vat-data';
|
|
5
5
|
import { AssetKind, hasIssuer, prepareIssuerKit } from '@agoric/ertp';
|
|
6
6
|
import { InvitationElementShape } from '../typeGuards.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"burnInvitation.d.ts","sourceRoot":"","sources":["burnInvitation.js"],"names":[],"mappings":"AAgBO,iDAPI,MAAM,cACN,IAAI,CAAC,OAAO,CAAC,GACX,OAAO,CAAC;IACpB,cAAkB,EAAE,QAAQ,CAAC;IAC7B,gBAAoB,EAAE,gBAAgB,CAAC;CACpC,CAAC,
|
|
1
|
+
{"version":3,"file":"burnInvitation.d.ts","sourceRoot":"","sources":["burnInvitation.js"],"names":[],"mappings":"AAgBO,iDAPI,MAAM,cACN,IAAI,CAAC,OAAO,CAAC,GACX,OAAO,CAAC;IACpB,cAAkB,EAAE,QAAQ,CAAC;IAC7B,gBAAoB,EAAE,gBAAgB,CAAC;CACpC,CAAC,CA0BJ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
2
|
|
|
3
|
-
import { Fail, assert,
|
|
3
|
+
import { Fail, assert, X, makeError, annotateError } from '@endo/errors';
|
|
4
4
|
import { E } from '@endo/eventual-send';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -16,10 +16,8 @@ import { E } from '@endo/eventual-send';
|
|
|
16
16
|
*/
|
|
17
17
|
export const burnInvitation = (invitationIssuer, invitation) => {
|
|
18
18
|
const handleRejected = reason => {
|
|
19
|
-
const err =
|
|
20
|
-
|
|
21
|
-
);
|
|
22
|
-
assert.note(err, X`Due to ${reason}`);
|
|
19
|
+
const err = makeError(X`A Zoe invitation is required, not ${invitation}`);
|
|
20
|
+
annotateError(err, X`Due to ${reason}`);
|
|
23
21
|
throw err;
|
|
24
22
|
};
|
|
25
23
|
const handleFulfilled = invitationAmount => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offer.d.ts","sourceRoot":"","sources":["offer.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"offer.d.ts","sourceRoot":"","sources":["offer.js"],"names":[],"mappings":"AAaO,6DA0DN"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @jessie-check
|
|
2
2
|
|
|
3
|
+
import { q, Fail } from '@endo/errors';
|
|
3
4
|
import { passStyleOf } from '@endo/marshal';
|
|
4
5
|
import { mustMatch } from '@agoric/store';
|
|
5
6
|
import { E } from '@endo/eventual-send';
|
|
@@ -10,8 +11,6 @@ import { makeInvitationQueryFns } from '../invitationQueries.js';
|
|
|
10
11
|
|
|
11
12
|
import '../internal-types.js';
|
|
12
13
|
|
|
13
|
-
const { quote: q, Fail } = assert;
|
|
14
|
-
|
|
15
14
|
export const makeOfferMethod = offerDataAccess => {
|
|
16
15
|
/** @type {Offer} */
|
|
17
16
|
const offer = async (
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"originalZoeSeat.d.ts","sourceRoot":"","sources":["originalZoeSeat.js"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"originalZoeSeat.d.ts","sourceRoot":"","sources":["originalZoeSeat.js"],"names":[],"mappings":";;;;;;;;;;AA6BA;;;;;;;;;;GAGG;;;;;;;;;;;;AA+CI,oDAHI,OAAO,kBAAkB,EAAE,OAAO,yBAClC,MAAM,UAAU,CAAC,GAAG,CAAC,QAkR/B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint @typescript-eslint/no-floating-promises: "warn" */
|
|
2
|
+
import { Fail } from '@endo/errors';
|
|
2
3
|
import { SubscriberShape } from '@agoric/notifier';
|
|
3
4
|
import { E } from '@endo/eventual-send';
|
|
4
5
|
import { M, prepareExoClassKit } from '@agoric/vat-data';
|
|
@@ -15,8 +16,6 @@ import {
|
|
|
15
16
|
PaymentPKeywordRecordShape,
|
|
16
17
|
} from '../typeGuards.js';
|
|
17
18
|
|
|
18
|
-
const { Fail } = assert;
|
|
19
|
-
|
|
20
19
|
export const coreUserSeatMethods = harden({
|
|
21
20
|
getProposal: M.call().returns(M.promise()),
|
|
22
21
|
getPayouts: M.call().returns(M.promise()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"startInstance.d.ts","sourceRoot":"","sources":["startInstance.js"],"names":[],"mappings":"AAmCO,uDANI,IAAI,CAAC,iBAAiB,EAAE,+BAA+B,GAAG,oBAAoB,CAAC,oBAC/E,MAAM,IAAI,CAAC,SAAS,CAAC,uBACrB,CAAC,EAAE,EAAE,MAAM,KAAK,SAAS,cACzB,OAAO,GACL,OAAO,YAAY,EAAE,aAAa,CAsW9C;wBA7Wc,OAAO,sBAAsB,EAAE,SAAS;6BAD5B,kBAAkB"}
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
import { initEmpty } from '@agoric/store';
|
|
13
13
|
import { isUpgradeDisconnection } from '@agoric/internal/src/upgrade-api.js';
|
|
14
14
|
|
|
15
|
+
import { Fail, q } from '@endo/errors';
|
|
15
16
|
import { defineDurableHandle } from '../makeHandle.js';
|
|
16
17
|
import { makeInstanceAdminMaker } from './instanceAdminStorage.js';
|
|
17
18
|
import {
|
|
@@ -25,8 +26,6 @@ import {
|
|
|
25
26
|
/** @import {Baggage} from '@agoric/vat-data' */
|
|
26
27
|
/** @typedef { import('@agoric/swingset-vat').BundleCap} BundleCap */
|
|
27
28
|
|
|
28
|
-
const { Fail, quote: q } = assert;
|
|
29
|
-
|
|
30
29
|
/**
|
|
31
30
|
* @param {Pick<ZoeStorageManager, 'makeZoeInstanceStorageManager' | 'unwrapInstallation'>} startInstanceAccess
|
|
32
31
|
* @param {() => ERef<BundleCap>} getZcfBundleCapP
|
package/src/zoeService/zoe.d.ts
CHANGED
|
@@ -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":"qBAgSa,UAAU,CAAC,OAAO,iBAAiB,CAAC;AAjQjD,gDAAgD;AAEhD;;;;;;;;;;;;;GAaG;AACH,0GAVG;IAAyB,UAAU,EAA3B,OAAO;IACsC,WAAW;IAGK,cAAc;IAGjD,eAAe;IACvB,OAAO;CACnC;;;;;IA8MG,4BAA4B;mBAAjB,aAAa;;EAK3B;AAED;;;;;;;;;;;;;;;GAeG;AACH;;;;;IAvBI,4BAA4B;mBAAjB,aAAa;;EA8BxB;6BA3PuB,kBAAkB"}
|
package/src/zoeService/zoe.js
CHANGED
|
@@ -20,6 +20,7 @@ import { Far } from '@endo/marshal';
|
|
|
20
20
|
import { makeScalarBigMapStore, prepareExo } from '@agoric/vat-data';
|
|
21
21
|
import { M } from '@agoric/store';
|
|
22
22
|
|
|
23
|
+
import { Fail } from '@endo/errors';
|
|
23
24
|
import { makeZoeStorageManager } from './zoeStorageManager.js';
|
|
24
25
|
import { makeStartInstance } from './startInstance.js';
|
|
25
26
|
import { makeOfferMethod } from './offer/offer.js';
|
|
@@ -30,8 +31,6 @@ import { ZoeServiceI } from '../typeGuards.js';
|
|
|
30
31
|
|
|
31
32
|
/** @import {Baggage} from '@agoric/vat-data' */
|
|
32
33
|
|
|
33
|
-
const { Fail } = assert;
|
|
34
|
-
|
|
35
34
|
/**
|
|
36
35
|
* Create a durable instance of Zoe.
|
|
37
36
|
*
|
|
@@ -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":"AAmDO,iDAFI,OAAO,kBAAkB,EAAE,OAAO,uBAwWhC,UAAU,YACV,cAAc,uBACd,mBAAmB,iBACnB,aAAa;;;;;;;;;;;;;;;;QAzIlB,wCAAwC;8DAA5B,iBAAiB;;;;;;;EAoKpC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* eslint @typescript-eslint/no-floating-promises: "warn" */
|
|
2
|
+
import { Fail } from '@endo/errors';
|
|
2
3
|
import { prepareDurablePublishKit } from '@agoric/notifier';
|
|
3
4
|
import { E } from '@endo/eventual-send';
|
|
4
5
|
import { M, prepareExoClassKit } from '@agoric/vat-data';
|
|
@@ -15,8 +16,6 @@ import {
|
|
|
15
16
|
coreUserSeatMethods,
|
|
16
17
|
} from './originalZoeSeat.js';
|
|
17
18
|
|
|
18
|
-
const { Fail } = assert;
|
|
19
|
-
|
|
20
19
|
// ZoeSeatAdmin has the implementation of coreUserSeatMethods, but ZoeUserSeat
|
|
21
20
|
// is the facet shared with users. The latter transparently forwards to the
|
|
22
21
|
// former.
|
|
@@ -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))'
|
package/tools/fakeVatAdmin.js
CHANGED
|
@@ -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
|
|