@agoric/zoe 0.26.3-dev-aa68d8f.0 → 0.26.3-dev-96c9ff5.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 +258 -253
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +27 -27
- package/src/cleanProposal.d.ts +1 -1
- package/src/cleanProposal.d.ts.map +1 -1
- package/src/cleanProposal.js +8 -0
- package/src/contractFacet/offerHandlerStorage.d.ts +4 -1
- package/src/contractFacet/offerHandlerStorage.d.ts.map +1 -1
- package/src/contractFacet/offerHandlerStorage.js +11 -3
- package/src/contractFacet/types-ambient.d.ts +10 -5
- package/src/contractFacet/vatRoot.d.ts +1 -1
- package/src/contractFacet/vatRoot.d.ts.map +1 -1
- package/src/contractFacet/zcfMint.d.ts +1 -1
- package/src/contractFacet/zcfMint.d.ts.map +1 -1
- package/src/contractFacet/zcfMint.js +2 -3
- package/src/contractFacet/zcfSeat.js +1 -1
- package/src/contractSupport/durability.d.ts +1 -1
- package/src/contractSupport/durability.d.ts.map +1 -1
- package/src/contractSupport/durability.js +1 -1
- package/src/contractSupport/priceAuthority.d.ts +2 -1
- package/src/contractSupport/priceAuthority.d.ts.map +1 -1
- package/src/contractSupport/priceAuthority.js +1 -1
- package/src/contractSupport/priceAuthorityInitial.d.ts +2 -1
- package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityInitial.js +1 -1
- package/src/contractSupport/priceAuthorityQuoteMint.d.ts +2 -1
- package/src/contractSupport/priceAuthorityQuoteMint.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityQuoteMint.js +8 -1
- package/src/contractSupport/priceAuthorityTransform.d.ts +3 -2
- package/src/contractSupport/priceAuthorityTransform.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityTransform.js +5 -5
- package/src/contractSupport/priceQuote.d.ts +3 -3
- package/src/contractSupport/priceQuote.d.ts.map +1 -1
- package/src/contractSupport/ratio.d.ts.map +1 -1
- package/src/contractSupport/ratio.js +18 -13
- package/src/contractSupport/recorder.d.ts +13 -13
- package/src/contractSupport/recorder.d.ts.map +1 -1
- package/src/contractSupport/recorder.js +3 -3
- package/src/contractSupport/zoeHelpers.d.ts +1 -1
- package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
- package/src/contracts/auction/index.d.ts +2 -2
- package/src/contracts/automaticRefund.d.ts +1 -1
- package/src/contracts/autoswap.d.ts.map +1 -1
- package/src/contracts/autoswap.js +4 -2
- package/src/contracts/barterExchange.d.ts +1 -1
- package/src/contracts/callSpread/pricedCallSpread.d.ts +1 -1
- package/src/contracts/callSpread/pricedCallSpread.d.ts.map +1 -1
- package/src/contracts/callSpread/pricedCallSpread.js +1 -0
- package/src/contracts/loan/borrow.d.ts.map +1 -1
- package/src/contracts/loan/borrow.js +3 -1
- package/src/contracts/mintPayments.d.ts +6 -6
- package/src/contracts/oracle.d.ts +2 -2
- package/src/contracts/otcDesk.d.ts +1 -1
- package/src/contracts/priceAggregator.d.ts +5 -4
- package/src/contracts/priceAggregator.d.ts.map +1 -1
- package/src/contracts/priceAggregator.js +2 -5
- package/src/contracts/simpleExchange.d.ts +1 -1
- package/src/internal-types.d.ts +5 -4
- package/src/internal-types.d.ts.map +1 -1
- package/src/internal-types.js +7 -4
- package/src/typeGuards.d.ts +1 -1
- package/src/types-ambient.d.ts +5 -8
- package/src/types-ambient.d.ts.map +1 -1
- package/src/types-ambient.js +3 -5
- package/src/zoeService/escrowStorage.js +1 -1
- package/src/zoeService/feeMint.d.ts +1 -1
- package/src/zoeService/makeInvitation.d.ts +2 -2
- package/src/zoeService/makeInvitation.d.ts.map +1 -1
- package/src/zoeService/makeInvitation.js +3 -0
- package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
- package/src/zoeService/originalZoeSeat.js +4 -3
- package/src/zoeService/startInstance.d.ts.map +1 -1
- package/src/zoeService/startInstance.js +6 -1
- package/src/zoeService/types-ambient.d.ts +2 -2
- package/src/zoeService/types-ambient.d.ts.map +1 -1
- package/src/zoeService/types-ambient.js +2 -2
- package/src/zoeService/utils.d.ts +17 -17
- package/src/zoeService/zoe.d.ts +2 -2
- package/src/zoeService/zoeSeat.d.ts.map +1 -1
- package/src/zoeService/zoeSeat.js +3 -2
- package/src/zoeService/zoeStorageManager.d.ts +3 -3
- package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
- package/src/zoeService/zoeStorageManager.js +3 -1
- package/tools/fakePriceAuthority.d.ts +3 -3
- package/tools/fakePriceAuthority.d.ts.map +1 -1
- package/tools/fakePriceAuthority.js +12 -9
- package/tools/fakeVatAdmin.d.ts +6 -6
- package/tools/manualTimer.d.ts +5 -5
- package/tools/manualTimer.d.ts.map +1 -1
- package/tools/manualTimer.js +6 -4
- package/tools/scriptedOracle.d.ts +1 -1
- package/tools/setup-zoe.d.ts +1 -1
- package/tools/types.d.ts +4 -4
- package/tools/types.d.ts.map +1 -1
- package/tools/types.js +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;yBAmBc,mBAAmB;aASnB,aAAa;qBACb,eAAe;mBACf,OAAO,YAAY,EAAE,aAAa;WAClC,KAAK;oBACL,OAAO,YAAY,EAAE,cAAc;gBACnC,UAAU;eACV,SAAS;cACT,OAAO,YAAY,EAAE,QAAQ;oBAC7B,cAAc;gCACd,0BAA0B;iBAC1B,WAAW;qBACX,eAAe;;;;;0BACf,oBAAoB;kBAGpB,YAAY;sBACZ,gBAAgB;iCAChB,2BAA2B;mCAC3B,CAAC,gBAAgB,EAAE,gBAAgB,KAAK,OAAO,GAAG,SAAS;;iCAK5D,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";;;;;;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G,CAAC;;eAItB,OAAO,sBAAsB,EAAE,SAAS;;UAAY,MAAM;;;;;;;oBAItE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;6BAKnB,MAAM,CAAC,OAAO,EAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;4BAClC,MAAM,CAAC,OAAO,EAAC,OAAO,CAAC,GAAG,CAAC,CAAC;;kBAK3B,YAAY;cACZ,OAAO,YAAY,EAAE,QAAQ,CAAC,GAAG,CAAC;YAClC,gBAAgB;iBAChB,MAAM;;;kBAM2B,EAAE,UAApC,OAAO,YAAY,EAAE,YAAY,CAAC,EAAE,CAAC;uBAKE,CAAC,8BAAxC,OAAO,YAAY,EAAE,iBAAiB,CAAC,CAAC,CAAC;;UAKxC,MAAM;eACN,SAAS;iBACT,WAAW;;;uBAKX,QAAQ;;qBAIT,MAAM,CAAC,eAAe,CAAC"}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* @callback GetInvitationIssuer
|
|
52
|
-
* @returns {Promise<Issuer<'set'>>}
|
|
52
|
+
* @returns {Promise<Issuer<'set', InvitationDetails>>}
|
|
53
53
|
*/
|
|
54
54
|
|
|
55
55
|
/**
|
|
@@ -232,7 +232,7 @@
|
|
|
232
232
|
*/
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
|
-
* @typedef {Record<Keyword,
|
|
235
|
+
* @typedef {Record<Keyword, import('@agoric/ertp/exported.js').AnyAmount>} AmountKeywordRecord
|
|
236
236
|
*
|
|
237
237
|
* The keys are keywords, and the values are amounts. For example:
|
|
238
238
|
* { Asset: AmountMath.make(assetBrand, 5n), Price:
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Issuer } from '@agoric/ertp/exported.js';
|
|
2
2
|
import type { Tagged } from '@agoric/internal/src/tagged.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Callable } from '@agoric/internal/src/utils.js';
|
|
4
4
|
import type { Baggage } from '@agoric/swingset-liveslots';
|
|
5
|
-
import type {
|
|
5
|
+
import type { VatUpgradeResults } from '@agoric/swingset-vat';
|
|
6
|
+
import type { RemotableObject } from '@endo/marshal';
|
|
6
7
|
|
|
7
8
|
// XXX https://github.com/Agoric/agoric-sdk/issues/4565
|
|
8
9
|
type SourceBundle = Record<string, any>;
|
|
@@ -14,19 +15,18 @@ type ContractFacet<T extends {} = {}> = {
|
|
|
14
15
|
/**
|
|
15
16
|
* Installation of a contract, typed by its start function.
|
|
16
17
|
*/
|
|
17
|
-
export type Installation<SF extends ContractStartFunction | unknown> =
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
SF
|
|
29
|
-
>;
|
|
18
|
+
export type Installation<SF extends ContractStartFunction | unknown> =
|
|
19
|
+
RemotableObject &
|
|
20
|
+
Tagged<
|
|
21
|
+
{
|
|
22
|
+
getBundle: () => SourceBundle;
|
|
23
|
+
getBundleLabel: () => string;
|
|
24
|
+
},
|
|
25
|
+
'StartFunction',
|
|
26
|
+
SF
|
|
27
|
+
>;
|
|
28
|
+
export type Instance<SF extends ContractStartFunction | unknown> =
|
|
29
|
+
RemotableObject & Tagged<Handle<'Instance'>, 'StartFunction', SF>;
|
|
30
30
|
|
|
31
31
|
export type InstallationStart<I> =
|
|
32
32
|
I extends Installation<infer SF> ? SF : never;
|
|
@@ -37,7 +37,7 @@ export type ContractStartFunction = (
|
|
|
37
37
|
baggage?: Baggage,
|
|
38
38
|
) => ERef<{ creatorFacet?: {}; publicFacet?: {} }>;
|
|
39
39
|
|
|
40
|
-
export type AdminFacet<SF extends ContractStartFunction> = {
|
|
40
|
+
export type AdminFacet<SF extends ContractStartFunction> = RemotableObject & {
|
|
41
41
|
// Completion, which is currently any
|
|
42
42
|
getVatShutdownPromise: () => Promise<any>;
|
|
43
43
|
upgradeContract: Parameters<SF>[1] extends undefined
|
package/src/zoeService/zoe.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export function makeDurableZoeKit({ zoeBaggage, vatAdminSvc, shutdownZoeVat, fee
|
|
|
26
26
|
}>;
|
|
27
27
|
/** @type {FeeMintAccess} */
|
|
28
28
|
feeMintAccess: FeeMintAccess;
|
|
29
|
-
setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
29
|
+
setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* @deprecated
|
|
@@ -51,7 +51,7 @@ export function makeZoeKit(vatAdminSvc?: VatAdminSvc | Promise<VatAdminSvc> | un
|
|
|
51
51
|
}>;
|
|
52
52
|
/** @type {FeeMintAccess} */
|
|
53
53
|
feeMintAccess: FeeMintAccess;
|
|
54
|
-
setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
54
|
+
setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
55
55
|
};
|
|
56
56
|
import type { Baggage } from '@agoric/vat-data';
|
|
57
57
|
//# sourceMappingURL=zoe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoeSeat.d.ts","sourceRoot":"","sources":["zoeSeat.js"],"names":[],"mappings":"AAoDO,iDAFI,OAAO,kBAAkB,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"zoeSeat.d.ts","sourceRoot":"","sources":["zoeSeat.js"],"names":[],"mappings":"AAoDO,iDAFI,OAAO,kBAAkB,EAAE,OAAO,uBAwWhC,UAAU,YACV,cAAc,uBACd,mBAAmB,iBACnB,aAAa;;;;;;;;;;;;;;;;QAzIlB,wCAAwC;8DAA5B,iBAAiB;;;;;;;EAoKpC"}
|
|
@@ -109,7 +109,7 @@ export const makeZoeSeatAdminFactory = baggage => {
|
|
|
109
109
|
return {
|
|
110
110
|
currentAllocation: initialAllocation,
|
|
111
111
|
proposal,
|
|
112
|
-
offerResult: undefined,
|
|
112
|
+
offerResult: /** @type {any} */ (undefined),
|
|
113
113
|
offerResultStored: offerResultIsUndefined,
|
|
114
114
|
instanceAdminHelper,
|
|
115
115
|
withdrawFacet,
|
|
@@ -312,7 +312,8 @@ export const makeZoeSeatAdminFactory = baggage => {
|
|
|
312
312
|
ephemeralOfferResultStore.delete(facets.zoeSeatAdmin);
|
|
313
313
|
} catch (err) {
|
|
314
314
|
console.warn(
|
|
315
|
-
|
|
315
|
+
'non-durable offer result will be lost upon zoe vat termination:',
|
|
316
|
+
offerResult,
|
|
316
317
|
);
|
|
317
318
|
}
|
|
318
319
|
},
|
|
@@ -4,7 +4,7 @@ export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapFo
|
|
|
4
4
|
getFeeBrand: () => Brand;
|
|
5
5
|
}, zoeBaggage: Baggage): import("@endo/exo").GuardedKit<{
|
|
6
6
|
zoeServiceDataAccess: {
|
|
7
|
-
getInvitationIssuer: () => globalThis.Issuer<"set">;
|
|
7
|
+
getInvitationIssuer: () => globalThis.Issuer<"set", InvitationDetails>;
|
|
8
8
|
getBundleIDFromInstallation(allegedInstallation: any): any;
|
|
9
9
|
getPublicFacet(instance: any): any;
|
|
10
10
|
getBrands(instance: any): any;
|
|
@@ -20,7 +20,7 @@ export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapFo
|
|
|
20
20
|
getAssetKindByBrand: GetAssetKindByBrand;
|
|
21
21
|
getInstanceAdmin(instance: any): any;
|
|
22
22
|
getProposalShapeForInvitation: (invitationHandle: any) => any;
|
|
23
|
-
getInvitationIssuer: () => globalThis.Issuer<"set">;
|
|
23
|
+
getInvitationIssuer: () => globalThis.Issuer<"set", InvitationDetails>;
|
|
24
24
|
depositPayments(proposal: any, payments: any): Promise<AmountKeywordRecord>;
|
|
25
25
|
};
|
|
26
26
|
startInstanceAccess: {
|
|
@@ -34,7 +34,7 @@ export function makeZoeStorageManager(createZCFVat: CreateZCFVat, getBundleCapFo
|
|
|
34
34
|
}>;
|
|
35
35
|
};
|
|
36
36
|
invitationIssuerAccess: {
|
|
37
|
-
getInvitationIssuer: () => globalThis.Issuer<"set">;
|
|
37
|
+
getInvitationIssuer: () => globalThis.Issuer<"set", InvitationDetails>;
|
|
38
38
|
};
|
|
39
39
|
}>;
|
|
40
40
|
import type { Baggage } from '@agoric/vat-data';
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;QAiaI,iCAAiC;0CA7agB,KAAM,YAC3D,CAAC;;;;;;;;;;GAwbJ;6BAnc0B,kBAAkB"}
|
|
@@ -275,8 +275,9 @@ export const makeZoeStorageManager = (
|
|
|
275
275
|
ownKeys(customDetails).length >= 1
|
|
276
276
|
? harden({ customDetails })
|
|
277
277
|
: harden({});
|
|
278
|
+
/** @type {InvitationAmount} */
|
|
278
279
|
const invitationAmount = AmountMath.make(
|
|
279
|
-
invitationKit.brand,
|
|
280
|
+
/** @type {Brand<'set'>} */ (invitationKit.brand),
|
|
280
281
|
harden([
|
|
281
282
|
{
|
|
282
283
|
...extraProperties,
|
|
@@ -401,6 +402,7 @@ export const makeZoeStorageManager = (
|
|
|
401
402
|
contractBundleCap,
|
|
402
403
|
contractLabel,
|
|
403
404
|
);
|
|
405
|
+
// @ts-expect-error checked cast
|
|
404
406
|
return makeInstanceStorageManager(instanceRecord, adminNode, root)
|
|
405
407
|
.instanceStorageManager;
|
|
406
408
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @property {Brand<'nat'>} actualBrandOut
|
|
5
5
|
* @property {Array<number>} [priceList]
|
|
6
6
|
* @property {Array<[number, number]>} [tradeList]
|
|
7
|
-
* @property {
|
|
7
|
+
* @property {import('@agoric/time').TimerService} timer
|
|
8
8
|
* @property {import('@agoric/time').RelativeTime} [quoteInterval]
|
|
9
9
|
* @property {ERef<Mint<'set'>>} [quoteMint]
|
|
10
10
|
* @property {Amount<'nat'>} [unitAmountIn]
|
|
@@ -22,10 +22,10 @@ export type FakePriceAuthorityOptions = {
|
|
|
22
22
|
actualBrandOut: Brand<"nat">;
|
|
23
23
|
priceList?: number[] | undefined;
|
|
24
24
|
tradeList?: [number, number][] | undefined;
|
|
25
|
-
timer:
|
|
25
|
+
timer: import("@agoric/time").TimerService;
|
|
26
26
|
quoteInterval?: import("@agoric/time").RelativeTime | undefined;
|
|
27
27
|
quoteMint?: globalThis.ERef<globalThis.Mint<"set">> | undefined;
|
|
28
|
-
unitAmountIn?:
|
|
28
|
+
unitAmountIn?: import("@agoric/ertp/exported.js").NatAmount | undefined;
|
|
29
29
|
};
|
|
30
30
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
31
31
|
//# sourceMappingURL=fakePriceAuthority.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fakePriceAuthority.d.ts","sourceRoot":"","sources":["fakePriceAuthority.js"],"names":[],"mappings":"AAwBA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,gDAHW,yBAAyB,
|
|
1
|
+
{"version":3,"file":"fakePriceAuthority.d.ts","sourceRoot":"","sources":["fakePriceAuthority.js"],"names":[],"mappings":"AAwBA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,gDAHW,yBAAyB,2BAySnC;;mBAvTa,KAAK,CAAC,KAAK,CAAC;oBACZ,KAAK,CAAC,KAAK,CAAC;;;WAGZ,OAAO,cAAc,EAAE,YAAY;;;;;oCAjB4C,4BAA4B"}
|
|
@@ -28,7 +28,7 @@ const timestampLTE = (a, b) => TimeMath.compareAbs(a, b) <= 0;
|
|
|
28
28
|
* @property {Brand<'nat'>} actualBrandOut
|
|
29
29
|
* @property {Array<number>} [priceList]
|
|
30
30
|
* @property {Array<[number, number]>} [tradeList]
|
|
31
|
-
* @property {
|
|
31
|
+
* @property {import('@agoric/time').TimerService} timer
|
|
32
32
|
* @property {import('@agoric/time').RelativeTime} [quoteInterval]
|
|
33
33
|
* @property {ERef<Mint<'set'>>} [quoteMint]
|
|
34
34
|
* @property {Amount<'nat'>} [unitAmountIn]
|
|
@@ -117,16 +117,19 @@ export async function makeFakePriceAuthority(options) {
|
|
|
117
117
|
natSafeMath.multiply(amountIn.value, tradeValueOut),
|
|
118
118
|
tradeValueIn,
|
|
119
119
|
);
|
|
120
|
+
/** @type {Amount<'set', PriceDescription>} */
|
|
120
121
|
const quoteAmount = AmountMath.make(
|
|
121
122
|
quoteBrand,
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
/** @type {[PriceDescription]} */ (
|
|
124
|
+
harden([
|
|
125
|
+
{
|
|
126
|
+
amountIn,
|
|
127
|
+
amountOut: AmountMath.make(actualBrandOut, valueOut),
|
|
128
|
+
timer,
|
|
129
|
+
timestamp: quoteTime,
|
|
130
|
+
},
|
|
131
|
+
])
|
|
132
|
+
),
|
|
130
133
|
);
|
|
131
134
|
const quote = harden({
|
|
132
135
|
quotePayment: E(quoteMint).mintPayment(quoteAmount),
|
package/tools/fakeVatAdmin.d.ts
CHANGED
|
@@ -16,13 +16,13 @@ declare const fakeVatAdmin: {
|
|
|
16
16
|
done: () => Promise<any>;
|
|
17
17
|
terminateWithFailure: () => void;
|
|
18
18
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
19
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
19
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
20
20
|
done: () => Promise<any>;
|
|
21
21
|
terminateWithFailure: () => void;
|
|
22
22
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
23
23
|
}>;
|
|
24
24
|
}>;
|
|
25
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
25
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
26
26
|
getBundleCap: (bundleID: any) => Promise<any>;
|
|
27
27
|
waitForBundleCap: (bundleID: any) => Promise<any>;
|
|
28
28
|
getNamedBundleCap: (name: any) => Promise<any>;
|
|
@@ -35,7 +35,7 @@ declare const fakeVatAdmin: {
|
|
|
35
35
|
done: () => Promise<any>;
|
|
36
36
|
terminateWithFailure: () => void;
|
|
37
37
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
38
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
38
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
39
39
|
done: () => Promise<any>;
|
|
40
40
|
terminateWithFailure: () => void;
|
|
41
41
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
@@ -60,13 +60,13 @@ export function makeFakeVatAdmin(testContextSetter?: ((...args: any[]) => unknow
|
|
|
60
60
|
done: () => Promise<any>;
|
|
61
61
|
terminateWithFailure: () => void;
|
|
62
62
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
63
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
63
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
64
64
|
done: () => Promise<any>;
|
|
65
65
|
terminateWithFailure: () => void;
|
|
66
66
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
67
67
|
}>;
|
|
68
68
|
}>;
|
|
69
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
69
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
70
70
|
getBundleCap: (bundleID: any) => Promise<any>;
|
|
71
71
|
waitForBundleCap: (bundleID: any) => Promise<any>;
|
|
72
72
|
getNamedBundleCap: (name: any) => Promise<any>;
|
|
@@ -79,7 +79,7 @@ export function makeFakeVatAdmin(testContextSetter?: ((...args: any[]) => unknow
|
|
|
79
79
|
done: () => Promise<any>;
|
|
80
80
|
terminateWithFailure: () => void;
|
|
81
81
|
upgrade: (_bundleCap: any, _options: any) => never;
|
|
82
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
82
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
83
83
|
done: () => Promise<any>;
|
|
84
84
|
terminateWithFailure: () => void;
|
|
85
85
|
upgrade: (_bundleCap: any, _options: any) => never;
|
package/tools/manualTimer.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type ManualTimerAdmin = {
|
|
|
13
13
|
tick: (msg?: string) => void | Promise<void>;
|
|
14
14
|
tickN: (nTimes: number, msg?: string) => Promise<void>;
|
|
15
15
|
};
|
|
16
|
-
export type ManualTimer = TimerService & ManualTimerAdmin;
|
|
16
|
+
export type ManualTimer = TimerServiceI & RemotableObject<"TimerService"> & RemotableBrand<ManualTimerAdmin, TimerServiceI & ManualTimerAdmin> & ManualTimerAdmin;
|
|
17
17
|
/**
|
|
18
18
|
* @typedef {object} ManualTimerAdmin
|
|
19
19
|
* @property {(msg?: string) => void | Promise<void>} tick Advance the timer by one tick.
|
|
@@ -22,9 +22,7 @@ export type ManualTimer = TimerService & ManualTimerAdmin;
|
|
|
22
22
|
* other than a rejected promise.
|
|
23
23
|
* @property {(nTimes: number, msg?: string) => Promise<void>} tickN
|
|
24
24
|
*/
|
|
25
|
-
/**
|
|
26
|
-
* @typedef {TimerService & ManualTimerAdmin} ManualTimer
|
|
27
|
-
*/
|
|
25
|
+
/** @typedef {TimerServiceI & RemotableObject<'TimerService'> & RemotableBrand<ManualTimerAdmin, TimerServiceI & ManualTimerAdmin> & ManualTimerAdmin} ManualTimer */
|
|
28
26
|
/**
|
|
29
27
|
* A fake TimerService, for unit tests that do not use a real
|
|
30
28
|
* kernel. You can make time pass by calling `advanceTo(when)`, or one
|
|
@@ -63,5 +61,7 @@ export type ManualTimer = TimerService & ManualTimerAdmin;
|
|
|
63
61
|
* @returns {ManualTimer}
|
|
64
62
|
*/
|
|
65
63
|
declare function buildManualTimer(log?: ((...args: any[]) => void) | undefined, startValue?: import("@agoric/time").Timestamp | undefined, options?: ZoeManualTimerOptions | undefined): ManualTimer;
|
|
66
|
-
import type {
|
|
64
|
+
import type { TimerServiceI } from '@agoric/time';
|
|
65
|
+
import type { RemotableObject } from '@endo/pass-style';
|
|
66
|
+
import type { RemotableBrand } from '@endo/eventual-send';
|
|
67
67
|
//# sourceMappingURL=manualTimer.d.ts.map
|
|
@@ -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":";oCAiBa;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;;;AAN7D;;;;;;;GAOG;AAEH,qKAAqK;AAErK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,mDANqB,GAAG,EAAE,KAAK,IAAI,wHAGtB,WAAW,CAuDvB;mCAxH+B,cAAc;qCACZ,kBAAkB;oCACnB,qBAAqB"}
|
package/tools/manualTimer.js
CHANGED
|
@@ -3,7 +3,11 @@ import { bindAllMethods } from '@agoric/internal';
|
|
|
3
3
|
import { buildManualTimer as build } from '@agoric/swingset-vat/tools/manual-timer.js';
|
|
4
4
|
import { TimeMath } from '@agoric/time';
|
|
5
5
|
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* @import {TimerServiceI} from '@agoric/time';
|
|
8
|
+
* @import {RemotableObject} from '@endo/pass-style';
|
|
9
|
+
* @import {RemotableBrand} from '@endo/eventual-send';
|
|
10
|
+
*/
|
|
7
11
|
|
|
8
12
|
const { Fail } = assert;
|
|
9
13
|
|
|
@@ -28,9 +32,7 @@ const nolog = (..._args) => {};
|
|
|
28
32
|
* @property {(nTimes: number, msg?: string) => Promise<void>} tickN
|
|
29
33
|
*/
|
|
30
34
|
|
|
31
|
-
/**
|
|
32
|
-
* @typedef {TimerService & ManualTimerAdmin} ManualTimer
|
|
33
|
-
*/
|
|
35
|
+
/** @typedef {TimerServiceI & RemotableObject<'TimerService'> & RemotableBrand<ManualTimerAdmin, TimerServiceI & ManualTimerAdmin> & ManualTimerAdmin} ManualTimer */
|
|
34
36
|
|
|
35
37
|
/**
|
|
36
38
|
* A fake TimerService, for unit tests that do not use a real
|
|
@@ -18,7 +18,7 @@ export function makeScriptedOracle(script: Record<string, any>, oracleInstallati
|
|
|
18
18
|
publicFacet: {
|
|
19
19
|
query(query: OracleQuery): Promise<unknown>;
|
|
20
20
|
makeQueryInvitation(query: OracleQuery): Promise<Invitation<unknown, never>>;
|
|
21
|
-
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
21
|
+
} & import("@endo/marshal").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
22
22
|
query(query: OracleQuery): Promise<unknown>;
|
|
23
23
|
makeQueryInvitation(query: OracleQuery): Promise<Invitation<unknown, never>>;
|
|
24
24
|
}>;
|
package/tools/setup-zoe.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export function makeZoeKitForTest(vatAdminSvc?: VatAdminSvc | undefined): {
|
|
|
4
4
|
updateZcfBundleId(bundleId: any): void;
|
|
5
5
|
}>;
|
|
6
6
|
feeMintAccess: FeeMintAccess;
|
|
7
|
-
setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
7
|
+
setVatAdminService: ((lateVatAdminSvc: any) => void) & import("@endo/captp").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (lateVatAdminSvc: any) => void>;
|
|
8
8
|
};
|
|
9
9
|
export function makeZoeForTest(vatAdminSvc?: VatAdminSvc | undefined): ZoeService;
|
|
10
10
|
export function setUpZoeForTest<T extends unknown = unknown>({ setJig, feeIssuerConfig, vatAdminSvc, useNearRemote, }?: {
|
package/tools/types.d.ts
CHANGED
|
@@ -2,11 +2,11 @@ export type PriceQuote = {
|
|
|
2
2
|
/**
|
|
3
3
|
* Amount whose value is a PriceQuoteValue
|
|
4
4
|
*/
|
|
5
|
-
quoteAmount: Amount<"set">;
|
|
5
|
+
quoteAmount: Amount<"set", PriceDescription>;
|
|
6
6
|
/**
|
|
7
7
|
* The `quoteAmount` wrapped as a payment
|
|
8
8
|
*/
|
|
9
|
-
quotePayment: ERef<Payment<"set">>;
|
|
9
|
+
quotePayment: ERef<Payment<"set", PriceDescription>>;
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* A single-valued set of PriceDescriptions. This is the `value` in
|
|
@@ -28,7 +28,7 @@ export type PriceDescription = {
|
|
|
28
28
|
/**
|
|
29
29
|
* The service that gave the `timestamp`
|
|
30
30
|
*/
|
|
31
|
-
timer: import("@agoric/time").TimerService;
|
|
31
|
+
timer: import("@endo/pass-style").RemotableObject & import("@agoric/time").TimerService;
|
|
32
32
|
/**
|
|
33
33
|
* A timestamp according to `timer` for the quote
|
|
34
34
|
*/
|
|
@@ -60,7 +60,7 @@ export type PriceAuthority = {
|
|
|
60
60
|
/**
|
|
61
61
|
* Get the ERTP issuer of PriceQuotes for a given brandIn/brandOut pair
|
|
62
62
|
*/
|
|
63
|
-
getQuoteIssuer: (brandIn: Brand, brandOut: Brand) => ERef<Issuer<"set">>;
|
|
63
|
+
getQuoteIssuer: (brandIn: Brand, brandOut: Brand) => ERef<Issuer<"set", PriceDescription>>;
|
|
64
64
|
/**
|
|
65
65
|
* Get the timer used in PriceQuotes for a given brandIn/brandOut pair
|
|
66
66
|
*/
|
package/tools/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;iBAKc,MAAM,CAAC,KAAK,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;iBAKc,MAAM,CAAC,KAAK,EAAE,gBAAgB,CAAC;;;;kBAE/B,IAAI,CAAC,OAAO,CAAC,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AAK,CAAC,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,cAAc,EAAE,eAAe,CAAA;CAAE,GAAG,SAAS;;;;;;;;cAOpH,MAAM,CAAC,KAAK,CAAC;;;;eAEb,MAAM,CAAC,KAAK,CAAC"}
|
package/tools/types.js
CHANGED
|
@@ -3,9 +3,9 @@ export {};
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @typedef {object} PriceQuote
|
|
6
|
-
* @property {Amount<'set'>} quoteAmount
|
|
6
|
+
* @property {Amount<'set', PriceDescription>} quoteAmount
|
|
7
7
|
* Amount whose value is a PriceQuoteValue
|
|
8
|
-
* @property {ERef<Payment<'set'>>} quotePayment
|
|
8
|
+
* @property {ERef<Payment<'set', PriceDescription>>} quotePayment
|
|
9
9
|
* The `quoteAmount` wrapped as a payment
|
|
10
10
|
*/
|
|
11
11
|
|
|
@@ -22,7 +22,7 @@ export {};
|
|
|
22
22
|
* The amount supplied to a trade
|
|
23
23
|
* @property {Amount<'nat'>} amountOut
|
|
24
24
|
* The quoted result of trading `amountIn`
|
|
25
|
-
* @property {import('@agoric/time').TimerService} timer
|
|
25
|
+
* @property {import('@endo/pass-style').RemotableObject & import('@agoric/time').TimerService} timer
|
|
26
26
|
* The service that gave the `timestamp`
|
|
27
27
|
* @property {import('@agoric/time').TimestampRecord} timestamp
|
|
28
28
|
* A timestamp according to `timer` for the quote
|
|
@@ -64,7 +64,7 @@ export {};
|
|
|
64
64
|
* An object that mints PriceQuotes and handles
|
|
65
65
|
* triggers and notifiers for changes in the price
|
|
66
66
|
*
|
|
67
|
-
* @property {(brandIn: Brand, brandOut: Brand) => ERef<Issuer<'set'>>} getQuoteIssuer
|
|
67
|
+
* @property {(brandIn: Brand, brandOut: Brand) => ERef<Issuer<'set', PriceDescription>>} getQuoteIssuer
|
|
68
68
|
* Get the ERTP issuer of PriceQuotes for a given brandIn/brandOut pair
|
|
69
69
|
*
|
|
70
70
|
* @property {(brandIn: Brand,
|