@agoric/zoe 0.26.3-upgrade-18a-dev-4ee0508.0 → 0.26.3-upgrade-20-dev-086463b.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 +288 -288
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +30 -30
- package/src/cleanProposal.d.ts +2 -0
- package/src/cleanProposal.d.ts.map +1 -1
- package/src/cleanProposal.js +4 -2
- package/src/contractFacet/exit.d.ts +1 -1
- package/src/contractFacet/exit.d.ts.map +1 -1
- package/src/contractFacet/offerHandlerStorage.d.ts +1 -1
- package/src/contractFacet/offerHandlerStorage.d.ts.map +1 -1
- package/src/contractFacet/offerHandlerStorage.js +5 -0
- package/src/contractFacet/reallocate.d.ts.map +1 -1
- package/src/contractFacet/reallocate.js +4 -0
- package/src/contractFacet/rightsConservation.d.ts.map +1 -1
- package/src/contractFacet/rightsConservation.js +0 -1
- package/src/contractFacet/types.d.ts +184 -0
- package/src/contractFacet/types.d.ts.map +1 -0
- package/src/contractFacet/{types-ambient.d.ts → types.ts} +66 -91
- package/src/contractFacet/vatRoot.d.ts +8 -2
- package/src/contractFacet/vatRoot.d.ts.map +1 -1
- package/src/contractFacet/vatRoot.js +5 -4
- package/src/contractFacet/zcfMint.d.ts +4 -3
- package/src/contractFacet/zcfMint.d.ts.map +1 -1
- package/src/contractFacet/zcfMint.js +9 -21
- package/src/contractFacet/zcfSeat.d.ts.map +1 -1
- package/src/contractFacet/zcfSeat.js +12 -188
- package/src/contractFacet/zcfZygote.d.ts +9 -1
- package/src/contractFacet/zcfZygote.d.ts.map +1 -1
- package/src/contractFacet/zcfZygote.js +27 -9
- package/src/contractSupport/atomicTransfer.d.ts +6 -0
- package/src/contractSupport/atomicTransfer.d.ts.map +1 -1
- package/src/contractSupport/atomicTransfer.js +4 -0
- package/src/contractSupport/bondingCurves.js +1 -1
- package/src/contractSupport/durability.d.ts +1 -0
- package/src/contractSupport/durability.d.ts.map +1 -1
- package/src/contractSupport/durability.js +4 -0
- package/src/contractSupport/index.d.ts +2 -2
- package/src/contractSupport/index.js +2 -19
- package/src/contractSupport/priceAuthorityInitial.d.ts +2 -0
- package/src/contractSupport/priceAuthorityInitial.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityInitial.js +3 -1
- package/src/contractSupport/priceQuote.d.ts +1 -0
- package/src/contractSupport/priceQuote.d.ts.map +1 -1
- package/src/contractSupport/priceQuote.js +6 -1
- package/src/contractSupport/recorder.d.ts +8 -24
- package/src/contractSupport/recorder.d.ts.map +1 -1
- package/src/contractSupport/recorder.js +6 -0
- package/src/contractSupport/types-ambient.d.ts.map +1 -1
- package/src/contractSupport/types-ambient.js +1 -0
- package/src/contractSupport/zoeHelpers.d.ts +11 -2
- package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
- package/src/contractSupport/zoeHelpers.js +7 -2
- package/src/contracts/atomicSwap.d.ts +1 -1
- package/src/contracts/auction/index.d.ts +3 -3
- package/src/contracts/automaticRefund.d.ts +3 -3
- package/src/contracts/autoswap.d.ts +4 -0
- package/src/contracts/autoswap.d.ts.map +1 -1
- package/src/contracts/autoswap.js +4 -0
- package/src/contracts/barterExchange.d.ts +2 -2
- package/src/contracts/callSpread/fundedCallSpread.d.ts +1 -1
- package/src/contracts/callSpread/pricedCallSpread.d.ts +4 -4
- package/src/contracts/coveredCall-durable.d.ts +1 -1
- package/src/contracts/coveredCall.d.ts +1 -1
- package/src/contracts/coveredCall.d.ts.map +1 -1
- package/src/contracts/coveredCall.js +1 -6
- package/src/contracts/loan/index.d.ts +1 -1
- package/src/contracts/loan/types-ambient.d.ts +13 -13
- package/src/contracts/loan/types-ambient.d.ts.map +1 -1
- package/src/contracts/loan/types-ambient.js +17 -17
- package/src/contracts/mintPayments.d.ts +2 -2
- package/src/contracts/oracle.d.ts +3 -0
- package/src/contracts/oracle.d.ts.map +1 -1
- package/src/contracts/oracle.js +1 -0
- package/src/contracts/priceAggregator.d.ts +2 -0
- package/src/contracts/priceAggregator.d.ts.map +1 -1
- package/src/contracts/priceAggregator.js +14 -11
- package/src/contracts/scaledPriceAuthority.d.ts +1 -0
- package/src/contracts/scaledPriceAuthority.d.ts.map +1 -1
- package/src/contracts/scaledPriceAuthority.js +1 -0
- package/src/contracts/sellItems.d.ts +1 -1
- package/src/contracts/simpleExchange.d.ts +5 -0
- package/src/contracts/simpleExchange.d.ts.map +1 -1
- package/src/contracts/simpleExchange.js +4 -0
- package/src/contracts/types-ambient.d.ts +7 -7
- package/src/contracts/types-ambient.d.ts.map +1 -1
- package/src/contracts/types-ambient.js +7 -7
- package/src/contracts/valueVow.contract.d.ts +5 -2
- package/src/contracts/valueVow.contract.d.ts.map +1 -1
- package/src/contracts/valueVow.contract.js +1 -0
- package/src/instanceRecordStorage.d.ts.map +1 -1
- package/src/instanceRecordStorage.js +3 -1
- package/src/internal-types.d.ts +15 -6
- package/src/internal-types.d.ts.map +1 -1
- package/src/internal-types.js +9 -5
- package/src/issuerRecord.d.ts +3 -2
- package/src/issuerRecord.d.ts.map +1 -1
- package/src/issuerRecord.js +6 -2
- package/src/issuerStorage.d.ts +3 -2
- package/src/issuerStorage.d.ts.map +1 -1
- package/src/issuerStorage.js +10 -5
- package/src/typeGuards.d.ts +10 -5
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +9 -6
- package/src/types-ambient.d.ts +0 -40
- package/src/types-ambient.d.ts.map +1 -1
- package/src/types-ambient.js +4 -42
- package/src/types-index.d.ts +4 -0
- package/src/types-index.js +2 -0
- package/src/types.d.ts +29 -0
- package/src/types.d.ts.map +1 -0
- package/src/types.ts +44 -0
- package/src/zoeService/escrowStorage.d.ts.map +1 -1
- package/src/zoeService/escrowStorage.js +4 -0
- package/src/zoeService/feeMint.d.ts +1 -0
- package/src/zoeService/feeMint.d.ts.map +1 -1
- package/src/zoeService/feeMint.js +4 -0
- package/src/zoeService/installationStorage.d.ts +4 -5
- package/src/zoeService/installationStorage.d.ts.map +1 -1
- package/src/zoeService/installationStorage.js +8 -8
- package/src/zoeService/instanceAdminStorage.d.ts +1 -0
- package/src/zoeService/instanceAdminStorage.d.ts.map +1 -1
- package/src/zoeService/instanceAdminStorage.js +4 -0
- package/src/zoeService/internal-types.d.ts +12 -5
- package/src/zoeService/internal-types.d.ts.map +1 -1
- package/src/zoeService/internal-types.js +10 -10
- package/src/zoeService/invitationQueries.d.ts +3 -3
- package/src/zoeService/invitationQueries.js +3 -3
- package/src/zoeService/makeInvitation.d.ts +1 -0
- package/src/zoeService/makeInvitation.d.ts.map +1 -1
- package/src/zoeService/makeInvitation.js +3 -1
- package/src/zoeService/offer/burnInvitation.d.ts +1 -1
- package/src/zoeService/offer/burnInvitation.d.ts.map +1 -1
- package/src/zoeService/offer/burnInvitation.js +3 -2
- package/src/zoeService/offer/offer.d.ts +1 -0
- package/src/zoeService/offer/offer.d.ts.map +1 -1
- package/src/zoeService/offer/offer.js +3 -1
- package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
- package/src/zoeService/originalZoeSeat.js +6 -4
- package/src/zoeService/startInstance.d.ts +1 -1
- package/src/zoeService/startInstance.d.ts.map +1 -1
- package/src/zoeService/startInstance.js +5 -4
- package/src/zoeService/types-ambient.d.ts +0 -220
- package/src/zoeService/types-ambient.d.ts.map +1 -1
- package/src/zoeService/types-ambient.js +4 -323
- package/src/zoeService/types.d.ts +238 -0
- package/src/zoeService/types.d.ts.map +1 -0
- package/src/zoeService/types.ts +307 -0
- package/src/zoeService/utils.d.ts +18 -10
- package/src/zoeService/utils.test-d.ts +1 -0
- package/src/zoeService/zoe.d.ts +11 -1
- package/src/zoeService/zoe.d.ts.map +1 -1
- package/src/zoeService/zoe.js +8 -1
- package/src/zoeService/zoeSeat.d.ts +1 -4
- package/src/zoeService/zoeSeat.d.ts.map +1 -1
- package/src/zoeService/zoeSeat.js +6 -4
- package/src/zoeService/zoeStorageManager.d.ts +5 -5
- package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
- package/src/zoeService/zoeStorageManager.js +4 -3
- package/tools/fakePriceAuthority.d.ts +3 -2
- package/tools/fakePriceAuthority.d.ts.map +1 -1
- package/tools/fakePriceAuthority.js +9 -6
- package/tools/fakeVatAdmin.d.ts +10 -4
- package/tools/fakeVatAdmin.d.ts.map +1 -1
- package/tools/fakeVatAdmin.js +21 -10
- package/tools/manualPriceAuthority.d.ts +6 -2
- package/tools/manualPriceAuthority.d.ts.map +1 -1
- package/tools/manualPriceAuthority.js +8 -6
- package/tools/scriptedOracle.d.ts +7 -3
- package/tools/scriptedOracle.d.ts.map +1 -1
- package/tools/scriptedOracle.js +4 -0
- package/tools/scriptedPriceAuthority.d.ts.map +1 -1
- package/tools/scriptedPriceAuthority.js +6 -5
- package/tools/setup-zoe.d.ts +12 -6
- package/tools/setup-zoe.d.ts.map +1 -1
- package/tools/setup-zoe.js +38 -5
- package/tools/test-utils.d.ts +10 -6
- package/tools/test-utils.d.ts.map +1 -1
- package/tools/test-utils.js +6 -2
- package/tools/types.d.ts +5 -0
- package/tools/types.d.ts.map +1 -1
- package/tools/types.js +5 -0
- package/src/contractFacet/internal-types.d.ts +0 -8
- package/src/contractFacet/internal-types.d.ts.map +0 -1
- package/src/contractFacet/internal-types.js +0 -15
- package/src/contractFacet/types-ambient.js +0 -1
- package/src/contractSupport/ratio.d.ts +0 -37
- package/src/contractSupport/ratio.d.ts.map +0 -1
- package/src/contractSupport/ratio.js +0 -419
- package/src/contractSupport/safeMath.d.ts +0 -11
- package/src/contractSupport/safeMath.d.ts.map +0 -1
- package/src/contractSupport/safeMath.js +0 -49
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAuthorityInitial.d.ts","sourceRoot":"","sources":["priceAuthorityInitial.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"priceAuthorityInitial.d.ts","sourceRoot":"","sources":["priceAuthorityInitial.js"],"names":[],"mappings":"AA+BO,oDAPI,KAAK,kBACL,cAAc,aACd,IAAI,CAAC,KAAK,KAAK,EAAE,gBAAgB,CAAC,CAAC,WACnC,MAAM,KAAK,CAAC,YACZ,MAAM,KAAK,CAAC,GACV,cAAc,CAyF1B;oCAvG4F,4BAA4B;sCAA5B,4BAA4B;0BAFnF,cAAc;2BAAd,cAAc"}
|
|
@@ -7,10 +7,12 @@ import { Far } from '@endo/marshal';
|
|
|
7
7
|
import { makeNotifier } from '@agoric/notifier';
|
|
8
8
|
import { AmountMath } from '@agoric/ertp';
|
|
9
9
|
|
|
10
|
-
import { multiplyBy } from '
|
|
10
|
+
import { multiplyBy } from '@agoric/ertp/src/ratio.js';
|
|
11
11
|
import { mintQuote } from './priceAuthorityTransform.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
+
* @import {Amount, Brand, Mint} from '@agoric/ertp';
|
|
15
|
+
* @import {Notifier} from '@agoric/notifier';
|
|
14
16
|
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
15
17
|
*/
|
|
16
18
|
|
|
@@ -4,6 +4,7 @@ export function getAmountOut(quote: PriceQuote): import("@agoric/ertp").NatAmoun
|
|
|
4
4
|
/** @type {(quote: PriceQuote) => import('@agoric/time').Timestamp} */
|
|
5
5
|
export const getTimestamp: (quote: PriceQuote) => import("@agoric/time").Timestamp;
|
|
6
6
|
export function unitAmount(brand: Brand<"nat">): Promise<import("@agoric/ertp").NatAmount>;
|
|
7
|
+
export function makePriceQuoteIssuer(): IssuerKit<"set", PriceDescription>;
|
|
7
8
|
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
8
9
|
import type { PriceDescription } from '@agoric/zoe/tools/types.js';
|
|
9
10
|
//# sourceMappingURL=priceQuote.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceQuote.d.ts","sourceRoot":"","sources":["priceQuote.js"],"names":[],"mappings":"AAoBO,2CAHI,UAAU,GACR,gBAAgB,CAM5B;AAGM,mCADK,UAAU,oCACiD;AAEhE,oCADK,UAAU,oCACmD;AACzE,sEAAsE;AACtE,2BADW,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,cAAc,EAAE,SAAS,CACQ;AAGnE,kCADK,KAAK,CAAC,KAAK,CAAC,6CAMvB;
|
|
1
|
+
{"version":3,"file":"priceQuote.d.ts","sourceRoot":"","sources":["priceQuote.js"],"names":[],"mappings":"AAoBO,2CAHI,UAAU,GACR,gBAAgB,CAM5B;AAGM,mCADK,UAAU,oCACiD;AAEhE,oCADK,UAAU,oCACmD;AACzE,sEAAsE;AACtE,2BADW,CAAC,KAAK,EAAE,UAAU,KAAK,OAAO,cAAc,EAAE,SAAS,CACQ;AAGnE,kCADK,KAAK,CAAC,KAAK,CAAC,6CAMvB;AAGM,wCACM,SAAS,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAE5C;gCArC0F,4BAA4B;sCAA5B,4BAA4B"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { Fail } from '@endo/errors';
|
|
4
4
|
import { Nat } from '@endo/nat';
|
|
5
5
|
import { E } from '@endo/eventual-send';
|
|
6
|
-
import { AmountMath } from '@agoric/ertp';
|
|
6
|
+
import { AmountMath, AssetKind, makeIssuerKit } from '@agoric/ertp';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
@@ -39,3 +39,8 @@ export const unitAmount = async brand => {
|
|
|
39
39
|
return AmountMath.make(brand, 10n ** Nat(decimalPlaces));
|
|
40
40
|
};
|
|
41
41
|
harden(unitAmount);
|
|
42
|
+
|
|
43
|
+
export const makePriceQuoteIssuer = () =>
|
|
44
|
+
/** @type {IssuerKit<'set', PriceDescription>} */ (
|
|
45
|
+
makeIssuerKit('quote', AssetKind.SET)
|
|
46
|
+
);
|
|
@@ -31,19 +31,9 @@ export function defineERecorderKit({ makeRecorder, makeDurablePublishKit }: {
|
|
|
31
31
|
}): <T>(storageNodeP: ERef<StorageNode>, valueShape?: TypedPattern<T> | undefined) => EventualRecorderKit<T>;
|
|
32
32
|
export function prepareRecorderKit(baggage: import("@agoric/vat-data").Baggage, marshaller: ERef<Marshaller>): <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
33
33
|
export function prepareRecorderKitMakers(baggage: import("@agoric/vat-data").Baggage, marshaller: ERef<Marshaller>): {
|
|
34
|
-
makeDurablePublishKit: (options?: {
|
|
34
|
+
makeDurablePublishKit: <T>(options?: Parameters<(options?: {
|
|
35
35
|
valueDurability?: "mandatory" | undefined;
|
|
36
|
-
}
|
|
37
|
-
publisher: {
|
|
38
|
-
publish(value: any): void;
|
|
39
|
-
finish(finalValue: any): void;
|
|
40
|
-
fail(reason: any): void;
|
|
41
|
-
};
|
|
42
|
-
subscriber: {
|
|
43
|
-
subscribeAfter(publishCount?: bigint): Promise<any>;
|
|
44
|
-
getUpdateSince(updateCount: any): any;
|
|
45
|
-
};
|
|
46
|
-
}>;
|
|
36
|
+
}) => import("@agoric/notifier").DurablePublishKitState>[0]) => PublishKit<T>;
|
|
47
37
|
makeRecorder: (publisher: globalThis.Publisher<unknown>, storageNode: import("@endo/eventual-send").DataOnly<globalThis.StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<globalThis.StorageNode>, globalThis.StorageNode>, valueShape?: TypedPattern<any> | undefined) => import("@endo/exo").Guarded<{
|
|
48
38
|
getStorageNode(): import("@endo/eventual-send").DataOnly<globalThis.StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<globalThis.StorageNode>, globalThis.StorageNode>;
|
|
49
39
|
/**
|
|
@@ -74,19 +64,9 @@ export function prepareMockRecorderKitMakers(): {
|
|
|
74
64
|
storageNode: globalThis.StorageNode & {
|
|
75
65
|
countSetValueCalls: () => number;
|
|
76
66
|
};
|
|
77
|
-
makeDurablePublishKit: (options?: {
|
|
67
|
+
makeDurablePublishKit: <T>(options?: Parameters<(options?: {
|
|
78
68
|
valueDurability?: "mandatory" | undefined;
|
|
79
|
-
}
|
|
80
|
-
publisher: {
|
|
81
|
-
publish(value: any): void;
|
|
82
|
-
finish(finalValue: any): void;
|
|
83
|
-
fail(reason: any): void;
|
|
84
|
-
};
|
|
85
|
-
subscriber: {
|
|
86
|
-
subscribeAfter(publishCount?: bigint): Promise<any>;
|
|
87
|
-
getUpdateSince(updateCount: any): any;
|
|
88
|
-
};
|
|
89
|
-
}>;
|
|
69
|
+
}) => import("@agoric/notifier").DurablePublishKitState>[0]) => PublishKit<T>;
|
|
90
70
|
makeRecorder: (publisher: globalThis.Publisher<unknown>, storageNode: import("@endo/eventual-send").DataOnly<globalThis.StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<globalThis.StorageNode>, globalThis.StorageNode>, valueShape?: TypedPattern<any> | undefined) => import("@endo/exo").Guarded<{
|
|
91
71
|
getStorageNode(): import("@endo/eventual-send").DataOnly<globalThis.StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<globalThis.StorageNode>, globalThis.StorageNode>;
|
|
92
72
|
/**
|
|
@@ -113,6 +93,10 @@ export function prepareMockRecorderKitMakers(): {
|
|
|
113
93
|
makeRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
114
94
|
makeERecorderKit: <T>(storageNodeP: ERef<StorageNode>, valueShape?: TypedPattern<T> | undefined) => EventualRecorderKit<T>;
|
|
115
95
|
};
|
|
96
|
+
export namespace RecorderKitShape {
|
|
97
|
+
let recorder: import("@endo/patterns").Matcher;
|
|
98
|
+
let subscriber: import("@endo/patterns").Matcher;
|
|
99
|
+
}
|
|
116
100
|
export type Recorder<T> = {
|
|
117
101
|
getStorageNode(): Awaited<import("@endo/far").FarRef<StorageNode>>;
|
|
118
102
|
getStoragePath(): Promise<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["recorder.js"],"names":[],"mappings":"AAgDO,yCAHI,OAAO,kBAAkB,EAAE,OAAO,cAClC,IAAI,CAAC,UAAU,CAAC;;IAmCrB;;;;OAIG;sBADU,OAAO,CAAC,MAAM,CAAC;IAa5B;;;;;OAKG;iBAFQ,GAAG,GACD,OAAO,CAAC,IAAI,CAAC;IAa1B;;;;;OAKG;sBAFQ,GAAG,GACD,OAAO,CAAC,IAAI,CAAC;GAkB/B;AAWM,2EAFI;IAAC,YAAY,EAAE,YAAY,CAAC;IAAC,qBAAqB,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;CAAC,IAI5F,CAAC,eACH,WAAW,GAAG,OAAO,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,+CAE5D,WAAW,CAAC,CAAC,CAAC,CAc5B;AAUM,4EAFI;IAAC,YAAY,EAAE,YAAY,CAAC;IAAC,qBAAqB,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;CAAC,IAI5F,CAAC,gBACH,IAAI,CAAC,WAAW,CAAC,+CAEf,mBAAmB,CAAC,CAAC,CAAC,CAepC;AAaM,4CAHI,OAAO,kBAAkB,EAAE,OAAO,cAClC,IAAI,CAAC,UAAU,CAAC,IA1DZ,CAAC,eACH,WAAW,GAAG,OAAO,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,+CAE5D,WAAW,CAAC,CAAC,CAAC,CAgE5B;AAaM,kDAHI,OAAO,kBAAkB,EAAE,OAAO,cAClC,IAAI,CAAC,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["recorder.js"],"names":[],"mappings":"AAgDO,yCAHI,OAAO,kBAAkB,EAAE,OAAO,cAClC,IAAI,CAAC,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export const prepareMockRecorderKitMakers = () => {
|
|
|
262
262
|
storageNode: makeFakeStorage('mock recorder storage'),
|
|
263
263
|
};
|
|
264
264
|
};
|
|
265
|
+
|
|
266
|
+
export const RecorderKitShape = {
|
|
267
|
+
recorder: M.remotable(),
|
|
268
|
+
subscriber: M.remotable(),
|
|
269
|
+
};
|
|
270
|
+
harden(RecorderKitShape);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";UAOc,OAAO;;;;;WACP,mBAAmB;;;;;;;;YAEnB,mBAAmB;;;;;;;;;;;;;;;kBAqBtB,GAAG,YACH,OAAO,aACP,OAAO,KACL,MAAM;;;;;;;;;;uBAcR,GAAG,YACH,OAAO,aACP,OAAO,KACL,MAAM;;;;4BAIN,MAAM,CAAC,OAAO,EAAC,OAAO,CAAC;;;;;;qEAYvB,oBAAoB;;;;;;;mCAWtB,mBAAmB,GAAG,qBAAqB,GAAG,mBAAmB,GAAG,SAAS,kBAC7E,oBAAoB;;eAKjB,MAAM,CAAC,KAAK,CAAC;iBACb,MAAM,CAAC,KAAK,CAAC;;4BAKhB,MAAM,CAAC,KAAK,CAAC,SACb,KAAK,KACH,MAAM,CAAC,KAAK,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {Pattern} from '@endo/patterns';
|
|
3
|
+
* @import {ContractMeta, Invitation, Proposal, ZCF, ZCFSeat} from '@agoric/zoe';
|
|
4
|
+
*/
|
|
1
5
|
export const defaultAcceptanceMsg: "The offer has been accepted. Once the contract has been completed, please check your payout";
|
|
2
6
|
export function assertIssuerKeywords(zcf: any, expected: any): void;
|
|
3
|
-
export function satisfies(
|
|
7
|
+
export function satisfies(_ignored: any, seat: ZcfSeatPartial, update: AmountKeywordRecord): 0 | 1;
|
|
4
8
|
/** @type {Swap} */
|
|
5
9
|
export const swap: Swap;
|
|
6
10
|
/** @type {SwapExact} */
|
|
@@ -11,7 +15,7 @@ export function assertNatAssetKind(zcf: any, brand: any): void;
|
|
|
11
15
|
export const depositToSeatSuccessMsg: "Deposit and reallocation successful.";
|
|
12
16
|
export function depositToSeat(zcf: ZCF, recipientSeat: ZCFSeat, amounts: AmountKeywordRecord, payments: PaymentPKeywordRecord): Promise<string>;
|
|
13
17
|
export function withdrawFromSeat(zcf: ZCF, seat: ZCFSeat, amounts: AmountKeywordRecord): Promise<PaymentPKeywordRecord>;
|
|
14
|
-
export function saveAllIssuers(zcf: ZCF, issuerKeywordRecord?: IssuerKeywordRecord): Promise<(
|
|
18
|
+
export function saveAllIssuers(zcf: ZCF, issuerKeywordRecord?: IssuerKeywordRecord): Promise<(ZoeIssuerRecord<any, import("@endo/patterns").Key> | undefined)[]>;
|
|
15
19
|
/** @type {MapKeywords} */
|
|
16
20
|
export const mapKeywords: MapKeywords;
|
|
17
21
|
export function offerTo<Args extends unknown, Result extends unknown>(zcf: ZCF, invitation: ERef<Invitation<Result, Args>>, keywordMapping: KeywordKeywordRecord | undefined, proposal: Proposal, fromSeat: ZCFSeat, toSeat?: ZCFSeat, offerArgs?: Args): Promise<{
|
|
@@ -27,4 +31,9 @@ export type ExpectedRecord = {
|
|
|
27
31
|
give?: Record<string, null> | undefined;
|
|
28
32
|
exit?: Partial<Record<never, null>> | undefined;
|
|
29
33
|
};
|
|
34
|
+
import type { ZCFSeat } from '@agoric/zoe';
|
|
35
|
+
import type { Pattern } from '@endo/patterns';
|
|
36
|
+
import type { ZCF } from '@agoric/zoe';
|
|
37
|
+
import type { Invitation } from '@agoric/zoe';
|
|
38
|
+
import type { Proposal } from '@agoric/zoe';
|
|
30
39
|
//# sourceMappingURL=zoeHelpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoeHelpers.d.ts","sourceRoot":"","sources":["zoeHelpers.js"],"names":[],"mappings":"AASA,iIAAkI;AAI3H,oEAON;AAuBM
|
|
1
|
+
{"version":3,"file":"zoeHelpers.d.ts","sourceRoot":"","sources":["zoeHelpers.js"],"names":[],"mappings":"AASA;;;GAGG;AAEH,iIAAkI;AAI3H,oEAON;AAuBM,oCALI,GAAG,QACH,cAAc,UACd,mBAAmB,GACjB,CAAC,GAAC,CAAC,CAOf;AAED,mBAAmB;AACnB,mBADW,IAAI,CAkBb;AAEF,wBAAwB;AACxB,wBADW,SAAS,CAqBlB;AAiBK,uCAHI,OAAO,iBACP,OAAO,QAIgD;AAsB3D,0CAHI,OAAO,YACP,cAAc,QA8BxB;AAGM,+DAGN;AAED,6EAA8E;AAavE,mCANI,GAAG,iBACH,OAAO,WACP,mBAAmB,YACnB,qBAAqB,GACnB,OAAO,CAAC,MAAM,CAAC,CA8B3B;AAYM,sCALI,GAAG,QACH,OAAO,WACP,mBAAmB,GACjB,OAAO,CAAC,qBAAqB,CAAC,CAQ1C;AAWM,oCAJI,GAAG,wBACH,mBAAmB,+EAgB7B;AAED,0BAA0B;AAC1B,0BADW,WAAW,CAYpB;AAiDK,wBAHe,IAAI,kBACJ,MAAM,uBA/BjB,GAAG,cAGH,IAAI,CAAC,WAAW,MAAM,EAAE,IAAI,CAAC,CAAC,kBAG9B,oBAAoB,GAAG,SAAS,YAKhC,QAAQ,YAGR,OAAO,WAGP,OAAO,cAIP,IAAI,GAGF,OAAO,CAAC;IAAC,eAAe,EAAE,OAAO,CAAC,SAAS,MAAM,CAAC,CAAC,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;CAAC,CAAC,CA+D1G;;iBAxVa,MAAM,cAAc;0BACpB,MAAM,UAAU;;;;;;;6BAnBqC,aAAa;6BADtD,gBAAgB;yBACyB,aAAa;gCAAb,aAAa;8BAAb,aAAa"}
|
|
@@ -7,6 +7,11 @@ import { fromUniqueEntries } from '@agoric/internal';
|
|
|
7
7
|
import { satisfiesWant } from '../contractFacet/offerSafety.js';
|
|
8
8
|
import { atomicTransfer, fromOnly, toOnly } from './atomicTransfer.js';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* @import {Pattern} from '@endo/patterns';
|
|
12
|
+
* @import {ContractMeta, Invitation, Proposal, ZCF, ZCFSeat} from '@agoric/zoe';
|
|
13
|
+
*/
|
|
14
|
+
|
|
10
15
|
export const defaultAcceptanceMsg = `The offer has been accepted. Once the contract has been completed, please check your payout`;
|
|
11
16
|
|
|
12
17
|
const getKeysSorted = obj => harden(Reflect.ownKeys(obj || {}).sort());
|
|
@@ -36,12 +41,12 @@ export const assertIssuerKeywords = (zcf, expected) => {
|
|
|
36
41
|
* false and 1 for true. When multiples are introduced, any
|
|
37
42
|
* positive return value will mean true.
|
|
38
43
|
*
|
|
39
|
-
* @param {
|
|
44
|
+
* @param {any} _ignored no longer used.
|
|
40
45
|
* @param {ZcfSeatPartial} seat
|
|
41
46
|
* @param {AmountKeywordRecord} update
|
|
42
47
|
* @returns {0|1}
|
|
43
48
|
*/
|
|
44
|
-
export const satisfies = (
|
|
49
|
+
export const satisfies = (_ignored, seat, update) => {
|
|
45
50
|
const currentAllocation = seat.getCurrentAllocation();
|
|
46
51
|
const newAllocation = { ...currentAllocation, ...update };
|
|
47
52
|
const proposal = seat.getProposal();
|
|
@@ -26,8 +26,8 @@ export function start(zcf: ZCF<{
|
|
|
26
26
|
winnerPriceOption?: "first-price" | "second-price";
|
|
27
27
|
bidDuration: bigint;
|
|
28
28
|
}>): {
|
|
29
|
-
creatorInvitation: Promise<Invitation<{
|
|
30
|
-
makeBidInvitation: () => Promise<Invitation<unknown, never>>;
|
|
29
|
+
creatorInvitation: Promise<globalThis.Invitation<{
|
|
30
|
+
makeBidInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
|
|
31
31
|
getSessionDetails: () => {
|
|
32
32
|
auctionedAssets: any;
|
|
33
33
|
minimumBid: any;
|
|
@@ -38,7 +38,7 @@ export function start(zcf: ZCF<{
|
|
|
38
38
|
bids: string | any[];
|
|
39
39
|
};
|
|
40
40
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
41
|
-
makeBidInvitation: () => Promise<Invitation<unknown, never>>;
|
|
41
|
+
makeBidInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
|
|
42
42
|
getSessionDetails: () => {
|
|
43
43
|
auctionedAssets: any;
|
|
44
44
|
minimumBid: any;
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
* @param {ZCF<{}>} zcf
|
|
14
14
|
*/
|
|
15
15
|
export function start(zcf: ZCF<{}>): {
|
|
16
|
-
creatorInvitation: Promise<Invitation<unknown, never>>;
|
|
16
|
+
creatorInvitation: Promise<globalThis.Invitation<unknown, never>>;
|
|
17
17
|
publicFacet: {
|
|
18
18
|
getOffersCount: () => bigint;
|
|
19
|
-
makeInvitation: () => Promise<Invitation<unknown, never>>;
|
|
19
|
+
makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
|
|
20
20
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
21
21
|
getOffersCount: () => bigint;
|
|
22
|
-
makeInvitation: () => Promise<Invitation<unknown, never>>;
|
|
22
|
+
makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
|
|
23
23
|
}>;
|
|
24
24
|
};
|
|
25
25
|
//# sourceMappingURL=automaticRefund.d.ts.map
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @import {OfferHandler, ZCF} from '@agoric/zoe';
|
|
3
|
+
*/
|
|
1
4
|
/**
|
|
2
5
|
* Autoswap is a rewrite of Uniswap. Please see the documentation for
|
|
3
6
|
* more https://agoric.com/documentation/zoe/guide/contracts/autoswap.html
|
|
@@ -40,4 +43,5 @@
|
|
|
40
43
|
export function start(zcf: ZCF): Promise<{
|
|
41
44
|
publicFacet: AutoswapPublicFacet;
|
|
42
45
|
}>;
|
|
46
|
+
import type { ZCF } from '@agoric/zoe';
|
|
43
47
|
//# sourceMappingURL=autoswap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoswap.d.ts","sourceRoot":"","sources":["autoswap.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,2BAFW,GAAG;;GAwVb"}
|
|
1
|
+
{"version":3,"file":"autoswap.d.ts","sourceRoot":"","sources":["autoswap.js"],"names":[],"mappings":"AAeA;;GAEG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,2BAFW,GAAG;;GAwVb;yBAhYmC,aAAa"}
|
|
@@ -13,6 +13,10 @@ import {
|
|
|
13
13
|
calcSecondaryRequired,
|
|
14
14
|
} from '../contractSupport/index.js';
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* @import {OfferHandler, ZCF} from '@agoric/zoe';
|
|
18
|
+
*/
|
|
19
|
+
|
|
16
20
|
/**
|
|
17
21
|
* Autoswap is a rewrite of Uniswap. Please see the documentation for
|
|
18
22
|
* more https://agoric.com/documentation/zoe/guide/contracts/autoswap.html
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
*/
|
|
15
15
|
export function start(zcf: ZCF): {
|
|
16
16
|
publicFacet: {
|
|
17
|
-
makeInvitation: () => Promise<Invitation<unknown, never>>;
|
|
17
|
+
makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
|
|
18
18
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
19
|
-
makeInvitation: () => Promise<Invitation<unknown, never>>;
|
|
19
|
+
makeInvitation: () => Promise<globalThis.Invitation<unknown, never>>;
|
|
20
20
|
}>;
|
|
21
21
|
};
|
|
22
22
|
//# sourceMappingURL=barterExchange.d.ts.map
|
|
@@ -58,7 +58,7 @@ export function start(zcf: ZCF<{
|
|
|
58
58
|
expiration: bigint;
|
|
59
59
|
underlyingAmount: Amount;
|
|
60
60
|
}>): Promise<{
|
|
61
|
-
creatorInvitation: Promise<Invitation<unknown, never>>;
|
|
61
|
+
creatorInvitation: Promise<globalThis.Invitation<unknown, never>>;
|
|
62
62
|
}>;
|
|
63
63
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
64
64
|
//# sourceMappingURL=fundedCallSpread.d.ts.map
|
|
@@ -53,13 +53,13 @@ export function start(zcf: ZCF<{
|
|
|
53
53
|
}>): {
|
|
54
54
|
creatorFacet: {
|
|
55
55
|
makeInvitationPair: (longCollateralShare: any) => {
|
|
56
|
-
longInvitation: Promise<Invitation<unknown, never>>;
|
|
57
|
-
shortInvitation: Promise<Invitation<unknown, never>>;
|
|
56
|
+
longInvitation: Promise<globalThis.Invitation<unknown, never>>;
|
|
57
|
+
shortInvitation: Promise<globalThis.Invitation<unknown, never>>;
|
|
58
58
|
};
|
|
59
59
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
60
60
|
makeInvitationPair: (longCollateralShare: any) => {
|
|
61
|
-
longInvitation: Promise<Invitation<unknown, never>>;
|
|
62
|
-
shortInvitation: Promise<Invitation<unknown, never>>;
|
|
61
|
+
longInvitation: Promise<globalThis.Invitation<unknown, never>>;
|
|
62
|
+
shortInvitation: Promise<globalThis.Invitation<unknown, never>>;
|
|
63
63
|
};
|
|
64
64
|
}>;
|
|
65
65
|
};
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export function start(zcf: ZCF, _privateArgs: unknown, instanceBaggage: import("@agoric/vat-data").Baggage): Promise<{
|
|
17
17
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
18
|
-
makeInvitation(): Promise<Invitation<unknown, never>>;
|
|
18
|
+
makeInvitation(): Promise<globalThis.Invitation<unknown, never>>;
|
|
19
19
|
}>;
|
|
20
20
|
}>;
|
|
21
21
|
//# sourceMappingURL=coveredCall-durable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coveredCall.d.ts","sourceRoot":"","sources":["coveredCall.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,2BAFW,GAAG;;
|
|
1
|
+
{"version":3,"file":"coveredCall.d.ts","sourceRoot":"","sources":["coveredCall.js"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,2BAFW,GAAG;;EAwCb"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fail, q } from '@endo/errors';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
// Eventually will be importable from '@agoric/zoe-contract-support'
|
|
4
4
|
import { swapExact } from '../contractSupport/index.js';
|
|
5
5
|
import { isAfterDeadlineExitRule } from '../typeGuards.js';
|
|
@@ -69,11 +69,6 @@ const start = zcf => {
|
|
|
69
69
|
|
|
70
70
|
/** @type {OfferHandler} */
|
|
71
71
|
const makeOption = sellSeat => {
|
|
72
|
-
mustMatch(
|
|
73
|
-
sellSeat.getProposal(),
|
|
74
|
-
M.splitRecord({ exit: { afterDeadline: M.any() } }),
|
|
75
|
-
'exit afterDeadline',
|
|
76
|
-
);
|
|
77
72
|
const sellSeatExitRule = sellSeat.getProposal().exit;
|
|
78
73
|
if (!isAfterDeadlineExitRule(sellSeatExitRule)) {
|
|
79
74
|
throw Fail`the seller must have an afterDeadline exitRule, but instead had ${q(
|
|
@@ -62,7 +62,7 @@ export function start(zcf: ZCF<{
|
|
|
62
62
|
interestRate: Ratio;
|
|
63
63
|
interestPeriod: bigint;
|
|
64
64
|
}>): Promise<{
|
|
65
|
-
creatorInvitation: Promise<Invitation<unknown, undefined>>;
|
|
65
|
+
creatorInvitation: Promise<globalThis.Invitation<unknown, undefined>>;
|
|
66
66
|
}>;
|
|
67
67
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
68
68
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -39,7 +39,7 @@ type LenderSeatProperty = {
|
|
|
39
39
|
/**
|
|
40
40
|
* The ZCFSeat representing the lender's position in the contract.
|
|
41
41
|
*/
|
|
42
|
-
lenderSeat: ZCFSeat;
|
|
42
|
+
lenderSeat: import("../../types-index").ZCFSeat;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
45
|
* The loan now has a lenderSeat, which is added to the config.
|
|
@@ -50,7 +50,7 @@ type BorrowerConfigProperties = {
|
|
|
50
50
|
* The ZCFSeat holding the collateral in escrow after the borrower
|
|
51
51
|
* escrows it
|
|
52
52
|
*/
|
|
53
|
-
collateralSeat: ZCFSeat;
|
|
53
|
+
collateralSeat: import("../../types-index").ZCFSeat;
|
|
54
54
|
/**
|
|
55
55
|
* A function to get the current debt
|
|
56
56
|
*/
|
|
@@ -66,7 +66,7 @@ type BorrowerConfigPropertiesMinusDebt = {
|
|
|
66
66
|
* The ZCFSeat holding the collateral in escrow after the borrower
|
|
67
67
|
* escrows it
|
|
68
68
|
*/
|
|
69
|
-
collateralSeat: ZCFSeat;
|
|
69
|
+
collateralSeat: import("../../types-index").ZCFSeat;
|
|
70
70
|
/**
|
|
71
71
|
* PromiseKit that includes a promise that resolves to a PriceQuote
|
|
72
72
|
* when liquidation is triggered
|
|
@@ -78,15 +78,15 @@ type BorrowerConfigPropertiesMinusDebt = {
|
|
|
78
78
|
*/
|
|
79
79
|
type LoanConfigWithBorrower = LoanConfigWithLender & BorrowerConfigProperties;
|
|
80
80
|
type LoanConfigWithBorrowerMinusDebt = LoanConfigWithLender & BorrowerConfigPropertiesMinusDebt;
|
|
81
|
-
type ScheduleLiquidation = (zcf: ZCF, config: LoanConfigWithBorrower) => any;
|
|
82
|
-
type MakeLendInvitation = (zcf: ZCF, config: LoanTerms) => Promise<Invitation>;
|
|
83
|
-
type MakeBorrowInvitation = (zcf: ZCF, config: LoanConfigWithLender) => Promise<Invitation>;
|
|
84
|
-
type MakeCloseLoanInvitation = (zcf: ZCF, config: LoanConfigWithBorrower) => Promise<Invitation>;
|
|
81
|
+
type ScheduleLiquidation = (zcf: import("../../types-index").ZCF, config: LoanConfigWithBorrower) => any;
|
|
82
|
+
type MakeLendInvitation = (zcf: import("../../types-index").ZCF, config: LoanTerms) => Promise<import("../../types-index").Invitation>;
|
|
83
|
+
type MakeBorrowInvitation = (zcf: import("../../types-index").ZCF, config: LoanConfigWithLender) => Promise<import("../../types-index").Invitation>;
|
|
84
|
+
type MakeCloseLoanInvitation = (zcf: import("../../types-index").ZCF, config: LoanConfigWithBorrower) => Promise<import("../../types-index").Invitation>;
|
|
85
85
|
/**
|
|
86
86
|
* Allows holder to add collateral to the contract. Exits the seat
|
|
87
87
|
* after adding.
|
|
88
88
|
*/
|
|
89
|
-
type MakeAddCollateralInvitation = (zcf: ZCF, config: LoanConfigWithBorrower) => Promise<Invitation>;
|
|
89
|
+
type MakeAddCollateralInvitation = (zcf: import("../../types-index").ZCF, config: LoanConfigWithBorrower) => Promise<import("../../types-index").Invitation>;
|
|
90
90
|
type MakeDebtCalculator = (debtCalculatorConfig: DebtCalculatorConfig) => any;
|
|
91
91
|
type CalcInterestFn = (oldDebt: Amount<"nat">, interestRate: Ratio) => Amount<"nat">;
|
|
92
92
|
type DebtCalculatorConfig = {
|
|
@@ -108,7 +108,7 @@ type DebtCalculatorConfig = {
|
|
|
108
108
|
* the period at which the outstanding debt increases by the interestRate
|
|
109
109
|
*/
|
|
110
110
|
interestPeriod: import("@agoric/time").RelativeTime;
|
|
111
|
-
zcf: ZCF;
|
|
111
|
+
zcf: import("../../types-index").ZCF;
|
|
112
112
|
configMinusGetDebt: LoanConfigWithBorrowerMinusDebt;
|
|
113
113
|
/**
|
|
114
114
|
* The starting point from which to calculate
|
|
@@ -117,7 +117,7 @@ type DebtCalculatorConfig = {
|
|
|
117
117
|
basetime: import("@agoric/time").Timestamp;
|
|
118
118
|
};
|
|
119
119
|
type ConfigMinusGetDebt = {
|
|
120
|
-
collateralSeat: ZCFSeat;
|
|
120
|
+
collateralSeat: import("../../types-index").ZCFSeat;
|
|
121
121
|
liquidationPromiseKit: PromiseRecord<any>;
|
|
122
122
|
mmr?: bigint | undefined;
|
|
123
123
|
autoswapInstance: Handle<"Instance">;
|
|
@@ -125,18 +125,18 @@ type ConfigMinusGetDebt = {
|
|
|
125
125
|
periodNotifier: PeriodNotifier;
|
|
126
126
|
interestRate: bigint;
|
|
127
127
|
interestPeriod: import("@agoric/time").RelativeTime;
|
|
128
|
-
lenderSeat: ZCFSeat;
|
|
128
|
+
lenderSeat: import("../../types-index").ZCFSeat;
|
|
129
129
|
};
|
|
130
130
|
type BorrowFacet = {
|
|
131
131
|
/**
|
|
132
132
|
* Make an invitation to close the loan by repaying the debt
|
|
133
133
|
* (including interest).
|
|
134
134
|
*/
|
|
135
|
-
makeCloseLoanInvitation: () => Promise<Invitation>;
|
|
135
|
+
makeCloseLoanInvitation: () => Promise<import("../../types-index").Invitation>;
|
|
136
136
|
/**
|
|
137
137
|
* Make an invitation to add collateral to protect against liquidation
|
|
138
138
|
*/
|
|
139
|
-
makeAddCollateralInvitation: () => Promise<Invitation>;
|
|
139
|
+
makeAddCollateralInvitation: () => Promise<import("../../types-index").Invitation>;
|
|
140
140
|
/**
|
|
141
141
|
* Get a promise for a priceQuote that will resolve if liquidation
|
|
142
142
|
* occurs. The priceQuote is for the value of the collateral that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-ambient.d.ts","sourceRoot":"","sources":["types-ambient.js"],"names":[],"mappings":";;;;;;;sBACa,QAAQ,CAAC,OAAO,cAAc,EAAE,eAAe,CAAC;;;;;;;wBAUhD,QAAQ;;;;;;SAUP,KAAK;sBAGL,gBAAgB;;;;;oBAEhB,OAAO,yBAAyB,EAAE,cAAc;oBAKhD,cAAc;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AmB,EAAE,UAAU,CAAC;iDAKjD,oBAAoB;gCAKpB,MAAM,CAAC,KAAK,CAAC,gBACb,KAAK,KACH,MAAM,CAAC,KAAK,CAAC;;;;;;oBAKZ,cAAc;;;;kBAKd,MAAM,CAAC,KAAK,CAAC;;;;oBAIb,cAAc;kBAId,KAAK;;;;oBACL,OAAO,cAAc,EAAE,YAAY;SAInC,OAAO,mBAAmB,EAAE,GAAG;wBAE/B,+BAA+B;;;;;cAC/B,OAAO,cAAc,EAAE,SAAS;;;oBAMhC,OAAO,mBAAmB,EAAE,OAAO;2BACnC,aAAa,CAAC,GAAG,CAAC;;sBAElB,MAAM,CAAC,UAAU,CAAC;oBAClB,OAAO,yBAAyB,EAAE,cAAc;oBAChD,cAAc;kBACd,MAAM;oBACN,OAAO,cAAc,EAAE,YAAY;gBACnC,OAAO,mBAAmB,EAAE,OAAO;;;;;;;6BAMnC,MAAM,OAAO,CAAC,OAAO,mBAAmB,EAAE,UAAU,CAAC;;;;iCAKrD,MAAM,OAAO,CAAC,OAAO,mBAAmB,EAAE,UAAU,CAAC;;;;;;;2BAIrD,MAAM,OAAO,CAAC,OAAO,yBAAyB,EAAE,UAAU,CAAC;;;;iCAO3D,MAAM,OAAO,cAAc,EAAE,SAAS;;;;;qBAItC,MAAM,QAAQ,CAAC,MAAM,CAAC;;;;+BAKtB,MAAM,MAAM"}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* @typedef LenderSeatProperty
|
|
46
|
-
* @property {ZCFSeat} lenderSeat
|
|
46
|
+
* @property {import('../../types-index').ZCFSeat} lenderSeat
|
|
47
47
|
*
|
|
48
48
|
* The ZCFSeat representing the lender's position in the contract.
|
|
49
49
|
*/
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
/**
|
|
58
58
|
* @typedef BorrowerConfigProperties
|
|
59
59
|
*
|
|
60
|
-
* @property {ZCFSeat} collateralSeat
|
|
60
|
+
* @property {import('../../types-index').ZCFSeat} collateralSeat
|
|
61
61
|
*
|
|
62
62
|
* The ZCFSeat holding the collateral in escrow after the borrower
|
|
63
63
|
* escrows it
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
/**
|
|
76
76
|
* @typedef BorrowerConfigPropertiesMinusDebt
|
|
77
77
|
*
|
|
78
|
-
* @property {ZCFSeat} collateralSeat
|
|
78
|
+
* @property {import('../../types-index').ZCFSeat} collateralSeat
|
|
79
79
|
*
|
|
80
80
|
* The ZCFSeat holding the collateral in escrow after the borrower
|
|
81
81
|
* escrows it
|
|
@@ -99,29 +99,29 @@
|
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* @callback ScheduleLiquidation
|
|
102
|
-
* @param {ZCF} zcf
|
|
102
|
+
* @param {import('../../types-index').ZCF} zcf
|
|
103
103
|
* @param {LoanConfigWithBorrower} config
|
|
104
104
|
*/
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
107
|
* @callback MakeLendInvitation
|
|
108
|
-
* @param {ZCF} zcf
|
|
108
|
+
* @param {import('../../types-index').ZCF} zcf
|
|
109
109
|
* @param {LoanTerms} config
|
|
110
|
-
* @returns {Promise<Invitation>} lendInvitation
|
|
110
|
+
* @returns {Promise<import('../../types-index').Invitation>} lendInvitation
|
|
111
111
|
*/
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* @callback MakeBorrowInvitation
|
|
115
|
-
* @param {ZCF} zcf
|
|
115
|
+
* @param {import('../../types-index').ZCF} zcf
|
|
116
116
|
* @param {LoanConfigWithLender} config
|
|
117
|
-
* @returns {Promise<Invitation>} borrowInvitation
|
|
117
|
+
* @returns {Promise<import('../../types-index').Invitation>} borrowInvitation
|
|
118
118
|
*/
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* @callback MakeCloseLoanInvitation
|
|
122
|
-
* @param {ZCF} zcf
|
|
122
|
+
* @param {import('../../types-index').ZCF} zcf
|
|
123
123
|
* @param {LoanConfigWithBorrower} config
|
|
124
|
-
* @returns {Promise<Invitation>} closeLoanInvitation
|
|
124
|
+
* @returns {Promise<import('../../types-index').Invitation>} closeLoanInvitation
|
|
125
125
|
*/
|
|
126
126
|
|
|
127
127
|
/**
|
|
@@ -129,9 +129,9 @@
|
|
|
129
129
|
* after adding.
|
|
130
130
|
*
|
|
131
131
|
* @callback MakeAddCollateralInvitation
|
|
132
|
-
* @param {ZCF} zcf
|
|
132
|
+
* @param {import('../../types-index').ZCF} zcf
|
|
133
133
|
* @param {LoanConfigWithBorrower} config
|
|
134
|
-
* @returns {Promise<Invitation>} addCollateralInvitation
|
|
134
|
+
* @returns {Promise<import('../../types-index').Invitation>} addCollateralInvitation
|
|
135
135
|
*/
|
|
136
136
|
|
|
137
137
|
/**
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
*
|
|
167
167
|
* the period at which the outstanding debt increases by the interestRate
|
|
168
168
|
*
|
|
169
|
-
* @property {ZCF} zcf
|
|
169
|
+
* @property {import('../../types-index').ZCF} zcf
|
|
170
170
|
*
|
|
171
171
|
* @property {LoanConfigWithBorrowerMinusDebt} configMinusGetDebt
|
|
172
172
|
* @property {import('@agoric/time').Timestamp} basetime The starting point from which to calculate
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* @typedef {object} ConfigMinusGetDebt
|
|
178
|
-
* @property {ZCFSeat} collateralSeat
|
|
178
|
+
* @property {import('../../types-index').ZCFSeat} collateralSeat
|
|
179
179
|
* @property {PromiseRecord<any>} liquidationPromiseKit
|
|
180
180
|
* @property {bigint} [mmr]
|
|
181
181
|
* @property {Handle<'Instance'>} autoswapInstance
|
|
@@ -183,18 +183,18 @@
|
|
|
183
183
|
* @property {PeriodNotifier} periodNotifier
|
|
184
184
|
* @property {bigint} interestRate
|
|
185
185
|
* @property {import('@agoric/time').RelativeTime} interestPeriod
|
|
186
|
-
* @property {ZCFSeat} lenderSeat
|
|
186
|
+
* @property {import('../../types-index').ZCFSeat} lenderSeat
|
|
187
187
|
*/
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* @typedef {object} BorrowFacet
|
|
191
191
|
*
|
|
192
|
-
* @property {() => Promise<Invitation>} makeCloseLoanInvitation
|
|
192
|
+
* @property {() => Promise<import('../../types-index').Invitation>} makeCloseLoanInvitation
|
|
193
193
|
*
|
|
194
194
|
* Make an invitation to close the loan by repaying the debt
|
|
195
195
|
* (including interest).
|
|
196
196
|
*
|
|
197
|
-
* @property {() => Promise<Invitation>} makeAddCollateralInvitation
|
|
197
|
+
* @property {() => Promise<import('../../types-index').Invitation>} makeAddCollateralInvitation
|
|
198
198
|
*
|
|
199
199
|
* Make an invitation to add collateral to protect against liquidation
|
|
200
200
|
*
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export function start(zcf: ZCF): Promise<{
|
|
17
17
|
creatorFacet: {
|
|
18
|
-
makeInvitation: (value?: bigint) => Promise<Invitation<string, undefined>>;
|
|
18
|
+
makeInvitation: (value?: bigint) => Promise<globalThis.Invitation<string, undefined>>;
|
|
19
19
|
getTokenIssuer: () => globalThis.Issuer<"nat", import("@endo/patterns").Key>;
|
|
20
20
|
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
21
|
-
makeInvitation: (value?: bigint) => Promise<Invitation<string, undefined>>;
|
|
21
|
+
makeInvitation: (value?: bigint) => Promise<globalThis.Invitation<string, undefined>>;
|
|
22
22
|
getTokenIssuer: () => globalThis.Issuer<"nat", import("@endo/patterns").Key>;
|
|
23
23
|
}>;
|
|
24
24
|
publicFacet: {
|