@agoric/zoe 0.26.3-dev-de2008a.0 → 0.26.3-dev-9d7a377.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 +195 -195
- package/package.json +14 -14
- package/src/contractFacet/vatRoot.d.ts +2 -2
- package/src/contractFacet/zcfMint.d.ts +2 -2
- package/src/contractFacet/zcfMint.d.ts.map +1 -1
- package/src/contractFacet/zcfZygote.d.ts +1 -1
- package/src/contractSupport/durability.d.ts +1 -1
- package/src/contractSupport/durability.d.ts.map +1 -1
- package/src/contractSupport/prepare-ownable.d.ts +2 -2
- package/src/contractSupport/prepare-ownable.d.ts.map +1 -1
- package/src/contractSupport/priceAuthority.d.ts +3 -3
- package/src/contractSupport/priceAuthorityInitial.d.ts +1 -1
- package/src/contractSupport/priceAuthorityQuoteMint.d.ts +1 -1
- package/src/contractSupport/priceAuthorityTransform.d.ts +7 -7
- package/src/contractSupport/priceQuote.d.ts +2 -2
- package/src/contractSupport/recorder.d.ts +8 -8
- package/src/contractSupport/recorder.d.ts.map +1 -1
- package/src/contractSupport/safeMath.d.ts.map +1 -1
- package/src/contractSupport/statistics.d.ts +1 -1
- package/src/contractSupport/statistics.d.ts.map +1 -1
- package/src/contractSupport/topics.d.ts.map +1 -1
- package/src/contractSupport/types.d.ts +3 -3
- package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
- package/src/contracts/auction/index.d.ts +1 -1
- package/src/contracts/callSpread/calculateShares.d.ts +1 -1
- package/src/contracts/callSpread/calculateShares.d.ts.map +1 -1
- package/src/contracts/callSpread/percent.d.ts +2 -2
- package/src/contracts/callSpread/percent.d.ts.map +1 -1
- package/src/contracts/callSpread/position.d.ts +2 -2
- package/src/contracts/callSpread/pricedCallSpread.d.ts +4 -4
- package/src/contracts/callSpread/types.d.ts +2 -2
- package/src/contracts/coveredCall-durable.d.ts +1 -1
- package/src/contracts/loan/types.d.ts +10 -10
- package/src/contracts/otcDesk.d.ts +2 -2
- package/src/contracts/priceAggregator.d.ts +4 -4
- package/src/contracts/priceAggregatorTypes.d.ts +1 -1
- package/src/contracts/scaledPriceAuthority.d.ts +1 -1
- package/src/contracts/sellItems.d.ts +1 -1
- package/src/instanceRecordStorage.d.ts +1 -1
- package/src/internal-types.d.ts +8 -8
- package/src/issuerRecord.d.ts +1 -1
- package/src/issuerRecord.d.ts.map +1 -1
- package/src/issuerStorage.d.ts +3 -3
- package/src/issuerStorage.d.ts.map +1 -1
- package/src/makeHandle.d.ts.map +1 -1
- package/src/types.d.ts +1 -1
- package/src/zoeService/escrowStorage.d.ts +1 -1
- package/src/zoeService/feeMint.d.ts +1 -1
- package/src/zoeService/installationStorage.d.ts +2 -2
- package/src/zoeService/instanceAdminStorage.d.ts +2 -2
- package/src/zoeService/internal-types.d.ts +8 -8
- package/src/zoeService/makeInvitation.d.ts +1 -1
- package/src/zoeService/originalZoeSeat.d.ts +1 -1
- package/src/zoeService/startInstance.d.ts +2 -2
- package/src/zoeService/types.d.ts +19 -19
- package/src/zoeService/types.d.ts.map +1 -1
- package/src/zoeService/zoeSeat.d.ts +1 -1
- package/src/zoeService/zoeStorageManager.d.ts +1 -1
- package/tools/fakePriceAuthority.d.ts +2 -2
- package/tools/fakeVatAdmin.d.ts +3 -3
- package/tools/manualPriceAuthority.d.ts +3 -3
- package/tools/manualTimer.d.ts +1 -1
- package/tools/scriptedOracle.d.ts +1 -1
- package/tools/scriptedOracle.d.ts.map +1 -1
- package/tools/setup-zoe.d.ts.map +1 -1
- package/tools/types-ambient.d.ts +18 -18
- package/tools/types.d.ts +18 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/zoe",
|
|
3
|
-
"version": "0.26.3-dev-
|
|
3
|
+
"version": "0.26.3-dev-9d7a377.0+9d7a377",
|
|
4
4
|
"description": "Zoe: the Smart Contract Framework for Offer Enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/zoeService/zoe.js",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
},
|
|
44
44
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@agoric/assert": "0.6.1-dev-
|
|
47
|
-
"@agoric/base-zone": "0.1.1-dev-
|
|
48
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
49
|
-
"@agoric/internal": "0.3.3-dev-
|
|
50
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
51
|
-
"@agoric/store": "0.9.3-dev-
|
|
52
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
53
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
54
|
-
"@agoric/time": "0.3.3-dev-
|
|
55
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-dev-
|
|
46
|
+
"@agoric/assert": "0.6.1-dev-9d7a377.0+9d7a377",
|
|
47
|
+
"@agoric/base-zone": "0.1.1-dev-9d7a377.0+9d7a377",
|
|
48
|
+
"@agoric/ertp": "0.16.3-dev-9d7a377.0+9d7a377",
|
|
49
|
+
"@agoric/internal": "0.3.3-dev-9d7a377.0+9d7a377",
|
|
50
|
+
"@agoric/notifier": "0.6.3-dev-9d7a377.0+9d7a377",
|
|
51
|
+
"@agoric/store": "0.9.3-dev-9d7a377.0+9d7a377",
|
|
52
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-9d7a377.0+9d7a377",
|
|
53
|
+
"@agoric/swingset-vat": "0.32.3-dev-9d7a377.0+9d7a377",
|
|
54
|
+
"@agoric/time": "0.3.3-dev-9d7a377.0+9d7a377",
|
|
55
|
+
"@agoric/vat-data": "0.5.3-dev-9d7a377.0+9d7a377",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-9d7a377.0+9d7a377",
|
|
57
57
|
"@endo/bundle-source": "^3.2.2",
|
|
58
58
|
"@endo/captp": "^4.1.1",
|
|
59
59
|
"@endo/common": "^1.2.1",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"yargs-parser": "^21.1.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
71
|
+
"@agoric/kmarshal": "0.1.1-dev-9d7a377.0+9d7a377",
|
|
72
72
|
"@endo/init": "^1.1.1",
|
|
73
73
|
"ava": "^5.3.0",
|
|
74
74
|
"c8": "^9.1.0",
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
"typeCoverage": {
|
|
142
142
|
"atLeast": 84.9
|
|
143
143
|
},
|
|
144
|
-
"gitHead": "
|
|
144
|
+
"gitHead": "9d7a377c6315b72bafcede22ec58c52fb2a5adae"
|
|
145
145
|
}
|
|
@@ -8,7 +8,7 @@ export function buildRootObject(powers: * TerminationVatPowers & {
|
|
|
8
8
|
}, vatParameters: {
|
|
9
9
|
contractBundleCap: any;
|
|
10
10
|
zoeService: ZoeService;
|
|
11
|
-
invitationIssuer: Issuer<
|
|
11
|
+
invitationIssuer: Issuer<"set">;
|
|
12
12
|
privateArgs?: any;
|
|
13
|
-
}, baggage: import(
|
|
13
|
+
}, baggage: import("@agoric/vat-data").Baggage): Promise<import("@endo/eventual-send").RemotableBrand<{}, {}>>;
|
|
14
14
|
//# sourceMappingURL=vatRoot.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export function sumAmountKeywordRecord<K extends globalThis.AssetKind>(amr: AmountKeywordRecord, issuerRecord: IssuerRecord<K>):
|
|
2
|
-
export function prepareZcMint(zcfBaggage: import(
|
|
1
|
+
export function sumAmountKeywordRecord<K extends globalThis.AssetKind>(amr: AmountKeywordRecord, issuerRecord: IssuerRecord<K>): Amount<K>;
|
|
2
|
+
export function prepareZcMint(zcfBaggage: import("@agoric/vat-data").Baggage, recordIssuer: {
|
|
3
3
|
(keyword: string, issuerRecord: IssuerRecord): void;
|
|
4
4
|
}, getAssetKindByBrand: GetAssetKindByBrand, makeEmptySeatKit: (exit?: undefined) => {
|
|
5
5
|
zcfSeat: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zcfMint.d.ts","sourceRoot":"","sources":["zcfMint.js"],"names":[],"mappings":"AAsBO,uCAFa,CAAC,oCAFV,mBAAmB,
|
|
1
|
+
{"version":3,"file":"zcfMint.d.ts","sourceRoot":"","sources":["zcfMint.js"],"names":[],"mappings":"AAsBO,uCAFa,CAAC,oCAFV,mBAAmB,gBACnB,YAAY,CACH,CAAC,AADI,CAAC,GACb,MAAM,CAAC,CAAC,CAAC,CAYrB;AASM,0CANI,OAAO,kBAAkB,EAAE,OAAO,gBAClC;IAAE,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI,CAAA;CAAE,uBACvD,mBAAmB,oBACnB,CAAC,IAAI,CAAC,EAAE,SAAS,KAAK;IAAE,OAAO,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;CAAE,eACnE,kBAAkB,IAoHE,CAAC,wCAFnB,MAAM,iCAEJ,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAWjC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function makeZCFZygote(powers: * TerminationVatPowers, zoeService: ERef<ZoeService>, invitationIssuer: Issuer<
|
|
1
|
+
export function makeZCFZygote(powers: * TerminationVatPowers, zoeService: ERef<ZoeService>, invitationIssuer: Issuer<"set">, testJigSetter: TestJigSetter, contractBundleCap: any, zcfBaggage?: import("@agoric/vat-data").Baggage): Promise<ZCFZygote>;
|
|
2
2
|
//# sourceMappingURL=zcfZygote.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export function makeEphemeraProvider<E extends {}, K extends {} = any>(init: (key: K) => E): (key: K) => E;
|
|
2
2
|
export function provideEmptySeat(zcf: ZCF, baggage: MapStore<string, any>, name: string): ZCFSeat;
|
|
3
3
|
export function provideAll<T extends Record<string, () => any>>(baggage: MapStore<string, any>, thunks: T): Promise<{ [K in keyof T]: Awaited<ReturnType<T[K]>>; }>;
|
|
4
|
-
export function provideSingleton<T extends () => any>(mapStore: import(
|
|
4
|
+
export function provideSingleton<T extends () => any>(mapStore: import("@agoric/vat-data").Baggage, key: string, makeValue: T, withValue?: ((value: Awaited<ReturnType<T>>) => void) | undefined): Promise<Awaited<ReturnType<T>>>;
|
|
5
5
|
//# sourceMappingURL=durability.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durability.d.ts","sourceRoot":"","sources":["durability.js"],"names":[],"mappings":"AAaO,qCAOiB,CAAC,aATR,CAAC,
|
|
1
|
+
{"version":3,"file":"durability.d.ts","sourceRoot":"","sources":["durability.js"],"names":[],"mappings":"AAaO,qCAOiB,CAAC,aATR,CAAC,yBAAP,CAAC,GAAG,EAAE,CAAC,KASM,CAAC,AATD,eASA,CAAC,CAWxB;AAWM,sCALI,GAAG,wCAEH,MAAM,GACJ,OAAO,CAInB;AAiCM,2BAFmD,CAAC,6CAFhD,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,UAE0B,CAAC,AAD/C,GACC,OAAO,CAAC,GAAG,CAAC,IAAI,MAA6B,CAAC,AAAvB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAE,CAAC,CAuBlE;AAgBM,iCAFiC,CAAC,8BAJ9B,OAAO,kBAAkB,EAAE,OAAO,OAClC,MAAM,aAGuB,CAAC,AAF7B,uBACO,OAAO,CAAC,UAAU,CACG,CAAC,AADF,CAAC,CAAC,KAAK,IAAI,gBACrC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAc3C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export function prepareOwnable<MN extends (string | symbol)[]>(zone: import(
|
|
2
|
-
makeTransferInvitation: () => Invitation<U
|
|
1
|
+
export function prepareOwnable<MN extends (string | symbol)[]>(zone: import("@agoric/base-zone").Zone, makeInvitation: ZCF["makeInvitation"], uKindName: string, uMethodNames: MN, options?: OwnableOptions | undefined): <U>(underlying: U) => Pick<U, MN[number]> & {
|
|
2
|
+
makeTransferInvitation: () => Invitation<U>;
|
|
3
3
|
};
|
|
4
4
|
export type OwnableOptions = {
|
|
5
5
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-ownable.d.ts","sourceRoot":"","sources":["prepare-ownable.js"],"names":[],"mappings":"AAsCO,+BAFoC,EAAE,oCAflC,OAAO,mBAAmB,EAAE,IAAI,kBAChC,GAAG,CAAC,gBAAgB,CAAC,aAQrB,MAAM,
|
|
1
|
+
{"version":3,"file":"prepare-ownable.d.ts","sourceRoot":"","sources":["prepare-ownable.js"],"names":[],"mappings":"AAsCO,+BAFoC,EAAE,oCAflC,OAAO,mBAAmB,EAAE,IAAI,kBAChC,GAAG,CAAC,gBAAgB,CAAC,aAQrB,MAAM,gBAM0B,EAAE,AAJhC,yCAIA,CAAC,CAAC,EAAE,UAAU,EAAwE,CAAC,AAAtE,KAAK,IAAI,CAA4D,CAAC,AAA3D,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,GAAG;IAAC,sBAAsB,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,CAAA;CAAC,CA0DrG"}
|
|
@@ -15,12 +15,12 @@ export const PriceAuthorityI: import("@endo/patterns").InterfaceGuard<{
|
|
|
15
15
|
mutableQuoteWhenGT: import("@endo/patterns").MethodGuard;
|
|
16
16
|
}>;
|
|
17
17
|
export function makeOnewayPriceAuthorityKit(opts: {
|
|
18
|
-
quoteIssuer: Issuer<
|
|
18
|
+
quoteIssuer: Issuer<"set">;
|
|
19
19
|
notifier: ERef<Notifier<unknown>>;
|
|
20
20
|
timer: ERef<TimerService>;
|
|
21
21
|
createQuote: PriceQuoteCreate;
|
|
22
|
-
actualBrandIn: Brand<
|
|
23
|
-
actualBrandOut: Brand<
|
|
22
|
+
actualBrandIn: Brand<"nat">;
|
|
23
|
+
actualBrandOut: Brand<"nat">;
|
|
24
24
|
}): PriceAuthorityKit;
|
|
25
25
|
export type CompareAmount = (amount: Amount, amountLimit: Amount) => boolean;
|
|
26
26
|
export type Trigger = (createInstantQuote: PriceQuoteCreate) => Promise<void>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function makeInitialTransform(priceOutPerIn: Ratio, priceAuthority: PriceAuthority, quoteMint: ERef<globalThis.Mint<"set">>, brandIn: Brand<
|
|
1
|
+
export function makeInitialTransform(priceOutPerIn: Ratio, priceAuthority: PriceAuthority, quoteMint: ERef<globalThis.Mint<"set">>, brandIn: Brand<"nat">, brandOut: Brand<"nat">): PriceAuthority;
|
|
2
2
|
//# sourceMappingURL=priceAuthorityInitial.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function provideQuoteMint(baggage: import(
|
|
1
|
+
export function provideQuoteMint(baggage: import("@agoric/vat-data").Baggage): ERef<globalThis.Mint<"set">>;
|
|
2
2
|
//# sourceMappingURL=priceAuthorityQuoteMint.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export function mintQuote(quoteBrand: Brand<
|
|
1
|
+
export function mintQuote(quoteBrand: Brand<"set">, amountIn: Amount<"nat">, amountOut: Amount<"nat">, timer: ERef<TimerService>, timestamp: import("@agoric/time").Timestamp, quoteMint: ERef<globalThis.Mint<"set">>): Promise<PriceQuote>;
|
|
2
2
|
export function makePriceAuthorityTransform({ quoteMint, sourcePriceAuthority, sourceBrandIn, sourceBrandOut, actualBrandIn, actualBrandOut, makeSourceAmountIn, makeSourceAmountOut, transformSourceAmountIn, transformSourceAmountOut, }: {
|
|
3
3
|
quoteMint: ERef<globalThis.Mint<"set">>;
|
|
4
4
|
sourcePriceAuthority: ERef<PriceAuthority>;
|
|
5
|
-
sourceBrandIn: Brand<
|
|
6
|
-
sourceBrandOut: Brand<
|
|
5
|
+
sourceBrandIn: Brand<"nat">;
|
|
6
|
+
sourceBrandOut: Brand<"nat">;
|
|
7
7
|
actualBrandIn?: globalThis.Brand<"nat"> | undefined;
|
|
8
8
|
actualBrandOut?: globalThis.Brand<"nat"> | undefined;
|
|
9
|
-
makeSourceAmountIn?: ((amountIn: Amount<
|
|
10
|
-
makeSourceAmountOut?: ((amountOut: Amount<
|
|
11
|
-
transformSourceAmountIn?: ((sourceAmountIn: Amount<
|
|
12
|
-
transformSourceAmountOut?: ((sourceAmountOut: Amount<
|
|
9
|
+
makeSourceAmountIn?: ((amountIn: Amount<"nat">) => Amount<"nat">) | undefined;
|
|
10
|
+
makeSourceAmountOut?: ((amountOut: Amount<"nat">) => Amount<"nat">) | undefined;
|
|
11
|
+
transformSourceAmountIn?: ((sourceAmountIn: Amount<"nat">) => Amount<"nat">) | undefined;
|
|
12
|
+
transformSourceAmountOut?: ((sourceAmountOut: Amount<"nat">) => Amount<"nat">) | undefined;
|
|
13
13
|
}): Promise<PriceAuthority>;
|
|
14
14
|
//# sourceMappingURL=priceAuthorityTransform.d.ts.map
|
|
@@ -2,6 +2,6 @@ export function getPriceDescription(quote: PriceQuote): PriceDescription;
|
|
|
2
2
|
export function getAmountIn(quote: PriceQuote): globalThis.Amount<"nat">;
|
|
3
3
|
export function getAmountOut(quote: PriceQuote): globalThis.Amount<"nat">;
|
|
4
4
|
/** @type {(quote: PriceQuote) => import('@agoric/time').Timestamp} */
|
|
5
|
-
export const getTimestamp: (quote: PriceQuote) => import(
|
|
6
|
-
export function unitAmount(brand: Brand<
|
|
5
|
+
export const getTimestamp: (quote: PriceQuote) => import("@agoric/time").Timestamp;
|
|
6
|
+
export function unitAmount(brand: Brand<"nat">): Promise<globalThis.Amount<"nat">>;
|
|
7
7
|
//# sourceMappingURL=priceQuote.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function prepareRecorder(baggage: import(
|
|
1
|
+
export function prepareRecorder(baggage: import("@agoric/vat-data").Baggage, marshaller: ERef<Marshaller<unknown>>): (publisher: Publisher<unknown>, storageNode: import("@endo/eventual-send").DataOnly<StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<StorageNode>, StorageNode>, valueShape?: TypedMatcher<unknown> | undefined) => import("@endo/exo").Guarded<{
|
|
2
2
|
getStorageNode(): import("@endo/eventual-send").DataOnly<StorageNode> & import("@endo/eventual-send").RemotableBrand<import("@endo/eventual-send").DataOnly<StorageNode>, StorageNode>;
|
|
3
3
|
/**
|
|
4
4
|
* Memoizes the remote call to the storage node
|
|
@@ -24,13 +24,13 @@ export function prepareRecorder(baggage: import('@agoric/vat-data').Baggage, mar
|
|
|
24
24
|
export function defineRecorderKit({ makeRecorder, makeDurablePublishKit }: {
|
|
25
25
|
makeRecorder: MakeRecorder;
|
|
26
26
|
makeDurablePublishKit: ReturnType<typeof prepareDurablePublishKit>;
|
|
27
|
-
}): <T>(storageNode: StorageNode | Awaited<import(
|
|
27
|
+
}): <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: TypedMatcher<T> | undefined) => RecorderKit<T>;
|
|
28
28
|
export function defineERecorderKit({ makeRecorder, makeDurablePublishKit }: {
|
|
29
29
|
makeRecorder: MakeRecorder;
|
|
30
30
|
makeDurablePublishKit: ReturnType<typeof prepareDurablePublishKit>;
|
|
31
31
|
}): <T>(storageNodeP: ERef<StorageNode>, valueShape?: TypedMatcher<T> | undefined) => EventualRecorderKit<T>;
|
|
32
|
-
export function prepareRecorderKit(baggage: import(
|
|
33
|
-
export function prepareRecorderKitMakers(baggage: import(
|
|
32
|
+
export function prepareRecorderKit(baggage: import("@agoric/vat-data").Baggage, marshaller: ERef<Marshaller<unknown>>): <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: TypedMatcher<T> | undefined) => RecorderKit<T>;
|
|
33
|
+
export function prepareRecorderKitMakers(baggage: import("@agoric/vat-data").Baggage, marshaller: ERef<Marshaller<unknown>>): {
|
|
34
34
|
makeDurablePublishKit: (options?: {
|
|
35
35
|
valueDurability?: "mandatory" | undefined;
|
|
36
36
|
} | undefined) => import("@endo/exo").GuardedKit<{
|
|
@@ -67,7 +67,7 @@ export function prepareRecorderKitMakers(baggage: import('@agoric/vat-data').Bag
|
|
|
67
67
|
*/
|
|
68
68
|
writeFinal(value: unknown): Promise<void>;
|
|
69
69
|
}>;
|
|
70
|
-
makeRecorderKit: <T>(storageNode: StorageNode | Awaited<import(
|
|
70
|
+
makeRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: TypedMatcher<T> | undefined) => RecorderKit<T>;
|
|
71
71
|
makeERecorderKit: <T_1>(storageNodeP: ERef<StorageNode>, valueShape?: TypedMatcher<T_1> | undefined) => EventualRecorderKit<T_1>;
|
|
72
72
|
};
|
|
73
73
|
export function prepareMockRecorderKitMakers(): {
|
|
@@ -110,16 +110,16 @@ export function prepareMockRecorderKitMakers(): {
|
|
|
110
110
|
*/
|
|
111
111
|
writeFinal(value: unknown): Promise<void>;
|
|
112
112
|
}>;
|
|
113
|
-
makeRecorderKit: <T>(storageNode: StorageNode | Awaited<import(
|
|
113
|
+
makeRecorderKit: <T>(storageNode: StorageNode | Awaited<import("@endo/far").FarRef<StorageNode>>, valueShape?: TypedMatcher<T> | undefined) => RecorderKit<T>;
|
|
114
114
|
makeERecorderKit: <T_1>(storageNodeP: ERef<StorageNode>, valueShape?: TypedMatcher<T_1> | undefined) => EventualRecorderKit<T_1>;
|
|
115
115
|
};
|
|
116
116
|
export type Recorder<T> = {
|
|
117
|
-
getStorageNode(): Awaited<import(
|
|
117
|
+
getStorageNode(): Awaited<import("@endo/far").FarRef<StorageNode>>;
|
|
118
118
|
getStoragePath(): Promise<string>;
|
|
119
119
|
write(value: T): Promise<void>;
|
|
120
120
|
writeFinal(value: T): Promise<void>;
|
|
121
121
|
};
|
|
122
|
-
export type RecorderKit<T> = Pick<PublishKit<T>,
|
|
122
|
+
export type RecorderKit<T> = Pick<PublishKit<T>, "subscriber"> & {
|
|
123
123
|
recorder: Recorder<T>;
|
|
124
124
|
};
|
|
125
125
|
export type EventualRecorderKit<T> = Pick<PublishKit<T>, "subscriber"> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["recorder.js"],"names":[],"mappings":"AA4CO,yCAHI,OAAO,kBAAkB,EAAE,OAAO;;IAoCvC;;;;OAIG;sBADU,OAAO,CAAC,MAAM,CAAC;IAa5B;;;;;OAKG;iBAFQ,OAAO,GACL,OAAO,CAAC,IAAI,CAAC;IAa1B;;;;;OAKG;sBAFQ,OAAO,GACL,OAAO,CAAC,IAAI,CAAC;GAkB/B;AAWM,2EAFI;IAAC,YAAY,EAAE,YAAY,CAAC;IAAC,qBAAqB,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;CAAC,IAOhF,CAAC,eAFf,WAAW,GAAG,OAAO,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["recorder.js"],"names":[],"mappings":"AA4CO,yCAHI,OAAO,kBAAkB,EAAE,OAAO;;IAoCvC;;;;OAIG;sBADU,OAAO,CAAC,MAAM,CAAC;IAa5B;;;;;OAKG;iBAFQ,OAAO,GACL,OAAO,CAAC,IAAI,CAAC;IAa1B;;;;;OAKG;sBAFQ,OAAO,GACL,OAAO,CAAC,IAAI,CAAC;GAkB/B;AAWM,2EAFI;IAAC,YAAY,EAAE,YAAY,CAAC;IAAC,qBAAqB,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;CAAC,IAOhF,CAAC,eAFf,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,IAOxE,CAAC,gFAArB,mBAAmB,CAAC,CAAC,CAAC,CAepC;AAaM,4CAHI,OAAO,kBAAkB,EAAE,OAAO,2CAtDlB,CAAC,eAFf,WAAW,GAAG,OAAO,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,+CAE5D,WAAW,CAAC,CAAC,CAAC,CAgE5B;AAaM,kDAHI,OAAO,kBAAkB,EAAE,OAAO;;;;;;;;;;;;;;;;QAjJvC;;;;WAIG;0BADU,OAAO,CAAC,MAAM,CAAC;QAa5B;;;;;WAKG;qBAFQ,OAAO,GACL,OAAO,CAAC,IAAI,CAAC;QAa1B;;;;;WAKG;0BAFQ,OAAO,GACL,OAAO,CAAC,IAAI,CAAC;;sBAkCL,CAAC,eAFf,WAAW,GAAG,OAAO,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,+CAE5D,WAAW,CAAC,CAAC,CAAC;uBA6BM,GAAC,kFAArB,mBAAmB,CAAC,GAAC,CAAC;EAsEpC;AAKM;;;;;;;;;;;;;;;;;;;QA/KD;;;;WAIG;0BADU,OAAO,CAAC,MAAM,CAAC;QAa5B;;;;;WAKG;qBAFQ,OAAO,GACL,OAAO,CAAC,IAAI,CAAC;QAa1B;;;;;WAKG;0BAFQ,OAAO,GACL,OAAO,CAAC,IAAI,CAAC;;sBAkCL,CAAC,eAFf,WAAW,GAAG,OAAO,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,+CAE5D,WAAW,CAAC,CAAC,CAAC;uBA6BM,GAAC,kFAArB,mBAAmB,CAAC,GAAC,CAAC;EAkFpC;qBA1OuK,CAAC,IAA5J;IAAE,cAAc,IAAI,OAAO,CAAC,OAAO,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;IAAC,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAAC,KAAK,CAAC,KAAK,EAAuC,CAAC,AAArC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAAC,UAAU,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE;wBAKrH,CAAC,IAA1D,IAAI,CAAC,UAAU,CAA0C,CAAC,AAAzC,CAAC,EAAE,YAAY,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAA;CAAE;gCAKE,CAAC;;;2BAmG/D,UAAU,CAAC,OAAO,eAAe,CAAC;8BA6BlC,UAAU,CAAC,OAAO,iBAAiB,CAAC;+BA+BpC,UAAU,CAAC,OAAO,kBAAkB,CAAC;;;;;;;;yBA2EpB,CAAC,IAAnB;IAAE,aAAa,CAAC,EAAE,CAAC,CAAA;CAAE;wBAKrB,EAAE,8BAAF,EAAE,SAAS,YAAY,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK;yCAhRhB,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safeMath.d.ts","sourceRoot":"","sources":["safeMath.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"safeMath.d.ts","sourceRoot":"","sources":["safeMath.js"],"names":[],"mappings":";;;;;;;mBA8CiB,MAAM,GAAG,MAAM,KAAK,MAAM,GAAG,MAAM;;oBA5CtC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statistics.d.ts","sourceRoot":"","sources":["statistics.js"],"names":[],"mappings":"AAgBO,gCAFM,CAAC,
|
|
1
|
+
{"version":3,"file":"statistics.d.ts","sourceRoot":"","sources":["statistics.js"],"names":[],"mappings":"AAgBO,gCAFM,CAAC,WAFH,KAAK,CAEH,CAAC,AAFI,CAAC,QACR,SAAS,CACP,CAAC,AADQ,CAAC,GACV,CAAC,GAAG,SAAS,CA0BzB;sBAnCuB,CAAC;SAFX,CAAC,CAAC,EAEQ,CAAC,AAFN,EAAE,CAAC,EAEE,CAAC,AAFA,KAED,CAAC,AAFM;YACjB,CAAC,CAAC,EACQ,CAAC,AADN,EAAE,CAAC,EAAE,MAAM,KACN,CAAC,AADW;WACtB,CAAC,CAAC,EAAQ,CAAC,AAAN,EAAE,CAAC,EAAE,CAAC,KAAK,OAAO"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topics.d.ts","sourceRoot":"","sources":["topics.js"],"names":[],"mappings":";AAMA,gEAME;AAEF;;;;;;;GAOG;AAEH,iEAA0E;AAcnE,kCAFkB,CAAC,eAFf,MAAM,
|
|
1
|
+
{"version":3,"file":"topics.d.ts","sourceRoot":"","sources":["topics.js"],"names":[],"mappings":";AAMA,gEAME;AAEF;;;;;;;GAOG;AAEH,iEAA0E;AAcnE,kCAFkB,CAAC,eAFf,MAAM,eACN,OAAO,eAAe,EAAE,WAAW,CACrB,CAAC,AADsB,CAAC,GAAG,OAAO,eAAe,EAAE,mBAAmB,CACtE,CAAC,AADuE,CAAC,GACrF,WAAW,CAAC,CAAC,CAAC,CAU1B;wBA3B2B,CAAC;kBADV,MAAM;gBACR,UAAU,CAAC,CAAC,CAAC;;;2BAQjB;IACZ,CAAK,SAAS,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;CAC3C;gCA5B4B,kBAAkB"}
|
|
@@ -56,8 +56,8 @@ type Reverse = (keywordRecord?: KeywordKeywordRecord | undefined) => KeywordKeyw
|
|
|
56
56
|
*/
|
|
57
57
|
type MapKeywords = (keywordRecord: AmountKeywordRecord | PaymentPKeywordRecord | IssuerKeywordRecord | undefined, keywordMapping: KeywordKeywordRecord) => any;
|
|
58
58
|
type Ratio = {
|
|
59
|
-
numerator: Amount<
|
|
60
|
-
denominator: Amount<
|
|
59
|
+
numerator: Amount<"nat">;
|
|
60
|
+
denominator: Amount<"nat">;
|
|
61
61
|
};
|
|
62
|
-
type ScaleAmount = (amount: Amount<
|
|
62
|
+
type ScaleAmount = (amount: Amount<"nat">, ratio: Ratio) => Amount<"nat">;
|
|
63
63
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zoeHelpers.d.ts","sourceRoot":"","sources":["zoeHelpers.js"],"names":[],"mappings":"AASA,iIAAkI;AAM3H,oEAON;AAuBM,+BALI,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,QA+BxB;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,8CAgB7B;AAED,0BAA0B;AAC1B,0BADW,WAAW,CAYpB;AAiDK,wBA9B4B,IAAI,kBAqBiB,MAAM,uBAxBnD,GAAG,8DAMH,oBAAoB,GAAG,SAAS,YAKhC,QAAQ,YAGR,OAAO
|
|
1
|
+
{"version":3,"file":"zoeHelpers.d.ts","sourceRoot":"","sources":["zoeHelpers.js"],"names":[],"mappings":"AASA,iIAAkI;AAM3H,oEAON;AAuBM,+BALI,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,QA+BxB;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,8CAgB7B;AAED,0BAA0B;AAC1B,0BADW,WAAW,CAYpB;AAiDK,wBA9B4B,IAAI,kBAqBiB,MAAM,uBAxBnD,GAAG,8DAMH,oBAAoB,GAAG,SAAS,YAKhC,QAAQ,YAGR,OAAO,+DAUL,OAAO,CAAC;IAAC,eAAe,EAAE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAA;CAAC,CAAC,CA+D1G;;iBAzVa,MAAM,cAAc;0BACpB,MAAM,UAAU"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function calculateShares(collateralBrand:
|
|
1
|
+
export function calculateShares(collateralBrand: Brand, price: Amount<"nat">, strikePrice1: Amount<"nat">, strikePrice2: Amount<"nat">): CalculateSharesReturn;
|
|
2
2
|
//# sourceMappingURL=calculateShares.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calculateShares.d.ts","sourceRoot":"","sources":["calculateShares.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"calculateShares.d.ts","sourceRoot":"","sources":["calculateShares.js"],"names":[],"mappings":"iDA+BgB,KAAK,SACF,OACd,KAAK,CAAC,gBACF,OAAO,KAAK,CAAC,gBAEF,OAAO,KAAK,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export function make100Percent(brand:
|
|
2
|
-
export function make0Percent(brand:
|
|
1
|
+
export function make100Percent(brand: Brand): Ratio;
|
|
2
|
+
export function make0Percent(brand: Brand): Ratio;
|
|
3
3
|
//# sourceMappingURL=percent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"percent.d.ts","sourceRoot":"","sources":["percent.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"percent.d.ts","sourceRoot":"","sources":["percent.js"],"names":[],"mappings":"sCAemgC,KAAK;oCAA0E,KAAK"}
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
* }>} zcf
|
|
45
45
|
*/
|
|
46
46
|
export function start(zcf: ZCF<{
|
|
47
|
-
strikePrice1: Amount<
|
|
48
|
-
strikePrice2: Amount<
|
|
49
|
-
settlementAmount: Amount<
|
|
47
|
+
strikePrice1: Amount<"nat">;
|
|
48
|
+
strikePrice2: Amount<"nat">;
|
|
49
|
+
settlementAmount: Amount<"nat">;
|
|
50
50
|
priceAuthority: PriceAuthority;
|
|
51
51
|
expiration: bigint;
|
|
52
|
-
underlyingAmount: Amount<
|
|
52
|
+
underlyingAmount: Amount<"nat">;
|
|
53
53
|
}>): {
|
|
54
54
|
creatorFacet: {
|
|
55
55
|
makeInvitationPair: (longCollateralShare: any) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type PositionKind =
|
|
1
|
+
type PositionKind = "long" | "short";
|
|
2
2
|
type MakeOptionInvitation = (positionKind: PositionKind) => Promise<Invitation>;
|
|
3
3
|
type PayoffHandler = {
|
|
4
4
|
schedulePayoffs: () => void;
|
|
@@ -24,7 +24,7 @@ type CalculateSharesReturn = {
|
|
|
24
24
|
* 100% reflecting the position of the price in the range from strikePrice1 to
|
|
25
25
|
* strikePrice2.
|
|
26
26
|
*/
|
|
27
|
-
type CalculateShares = (collateralBrand: Brand, price: Amount<
|
|
27
|
+
type CalculateShares = (collateralBrand: Brand, price: Amount<"nat">, strikePrice1: Amount<"nat">, strikePrice2: Amount<"nat">) => CalculateSharesReturn;
|
|
28
28
|
type Make100Percent = (brand: Brand) => Ratio;
|
|
29
29
|
type Make0Percent = (brand: Brand) => Ratio;
|
|
30
30
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @param {unknown} _privateArgs
|
|
14
14
|
* @param {import('@agoric/vat-data').Baggage} instanceBaggage
|
|
15
15
|
*/
|
|
16
|
-
export function start(zcf: ZCF, _privateArgs: unknown, instanceBaggage: import(
|
|
16
|
+
export function start(zcf: ZCF, _privateArgs: unknown, instanceBaggage: import("@agoric/vat-data").Baggage): Promise<{
|
|
17
17
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
18
18
|
makeInvitation(): Promise<Invitation<unknown, never>>;
|
|
19
19
|
}>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* any times have been missed. Compound interest will be calculated
|
|
6
6
|
* using the interestRate.
|
|
7
7
|
*/
|
|
8
|
-
type PeriodNotifier = Notifier<import(
|
|
8
|
+
type PeriodNotifier = Notifier<import("@agoric/time").TimestampRecord>;
|
|
9
9
|
/**
|
|
10
10
|
* The running contract instance for an Autoswap installation. The
|
|
11
11
|
* publicFacet from the Autoswap
|
|
@@ -31,7 +31,7 @@ type LoanTerms = {
|
|
|
31
31
|
* every period to compound interest.
|
|
32
32
|
*/
|
|
33
33
|
interestRate: Ratio;
|
|
34
|
-
interestPeriod: import(
|
|
34
|
+
interestPeriod: import("@agoric/time").RelativeTime;
|
|
35
35
|
loanBrand: Brand;
|
|
36
36
|
collateralBrand: Brand;
|
|
37
37
|
};
|
|
@@ -54,7 +54,7 @@ type BorrowerConfigProperties = {
|
|
|
54
54
|
/**
|
|
55
55
|
* A function to get the current debt
|
|
56
56
|
*/
|
|
57
|
-
getDebt: () => Amount<
|
|
57
|
+
getDebt: () => Amount<"nat">;
|
|
58
58
|
/**
|
|
59
59
|
* PromiseKit that includes a promise that resolves to a PriceQuote
|
|
60
60
|
* when liquidation is triggered
|
|
@@ -88,7 +88,7 @@ type MakeCloseLoanInvitation = (zcf: ZCF, config: LoanConfigWithBorrower) => Pro
|
|
|
88
88
|
*/
|
|
89
89
|
type MakeAddCollateralInvitation = (zcf: ZCF, config: LoanConfigWithBorrower) => Promise<Invitation>;
|
|
90
90
|
type MakeDebtCalculator = (debtCalculatorConfig: DebtCalculatorConfig) => any;
|
|
91
|
-
type CalcInterestFn = (oldDebt: Amount<
|
|
91
|
+
type CalcInterestFn = (oldDebt: Amount<"nat">, interestRate: Ratio) => Amount<"nat">;
|
|
92
92
|
type DebtCalculatorConfig = {
|
|
93
93
|
/**
|
|
94
94
|
* A function to calculate the interest, given the debt value and an
|
|
@@ -98,7 +98,7 @@ type DebtCalculatorConfig = {
|
|
|
98
98
|
/**
|
|
99
99
|
* The debt at the start of the loan, in Loan brand
|
|
100
100
|
*/
|
|
101
|
-
originalDebt: Amount<
|
|
101
|
+
originalDebt: Amount<"nat">;
|
|
102
102
|
/**
|
|
103
103
|
* The AsyncIterable to notify when a period has occurred
|
|
104
104
|
*/
|
|
@@ -107,24 +107,24 @@ type DebtCalculatorConfig = {
|
|
|
107
107
|
/**
|
|
108
108
|
* the period at which the outstanding debt increases by the interestRate
|
|
109
109
|
*/
|
|
110
|
-
interestPeriod: import(
|
|
110
|
+
interestPeriod: import("@agoric/time").RelativeTime;
|
|
111
111
|
zcf: ZCF;
|
|
112
112
|
configMinusGetDebt: LoanConfigWithBorrowerMinusDebt;
|
|
113
113
|
/**
|
|
114
114
|
* The starting point from which to calculate
|
|
115
115
|
* interest.
|
|
116
116
|
*/
|
|
117
|
-
basetime: import(
|
|
117
|
+
basetime: import("@agoric/time").Timestamp;
|
|
118
118
|
};
|
|
119
119
|
type ConfigMinusGetDebt = {
|
|
120
120
|
collateralSeat: ZCFSeat;
|
|
121
121
|
liquidationPromiseKit: PromiseRecord<any>;
|
|
122
122
|
mmr?: bigint | undefined;
|
|
123
|
-
autoswapInstance: Handle<
|
|
123
|
+
autoswapInstance: Handle<"Instance">;
|
|
124
124
|
priceAuthority: PriceAuthority;
|
|
125
125
|
periodNotifier: PeriodNotifier;
|
|
126
126
|
interestRate: bigint;
|
|
127
|
-
interestPeriod: import(
|
|
127
|
+
interestPeriod: import("@agoric/time").RelativeTime;
|
|
128
128
|
lenderSeat: ZCFSeat;
|
|
129
129
|
};
|
|
130
130
|
type BorrowFacet = {
|
|
@@ -147,7 +147,7 @@ type BorrowFacet = {
|
|
|
147
147
|
/**
|
|
148
148
|
* Get the timestamp at which the debt was most recently recalculated.
|
|
149
149
|
*/
|
|
150
|
-
getLastCalculationTimestamp: () => import(
|
|
150
|
+
getLastCalculationTimestamp: () => import("@agoric/time").Timestamp;
|
|
151
151
|
/**
|
|
152
152
|
* Get a Notifier that will be updated when the current debt (an Amount with the Loan
|
|
153
153
|
* Brand) changes. This will increase as interest is added.
|
|
@@ -55,7 +55,7 @@ export function start(zcf: ZCF<Record<string, any>>): {
|
|
|
55
55
|
* @returns {Promise<Payment>}
|
|
56
56
|
*/
|
|
57
57
|
makeRemoveInventoryInvitation: () => Promise<Payment>;
|
|
58
|
-
makeQuote: (price: AmountKeywordRecord, assets: AmountKeywordRecord, timeAuthority: import(
|
|
58
|
+
makeQuote: (price: AmountKeywordRecord, assets: AmountKeywordRecord, timeAuthority: import("@agoric/time").TimerService, deadline: any) => Promise<Payment>;
|
|
59
59
|
} & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
60
60
|
/**
|
|
61
61
|
* The inventory can be added in bulk before any quotes are made
|
|
@@ -73,7 +73,7 @@ export function start(zcf: ZCF<Record<string, any>>): {
|
|
|
73
73
|
* @returns {Promise<Payment>}
|
|
74
74
|
*/
|
|
75
75
|
makeRemoveInventoryInvitation: () => Promise<Payment>;
|
|
76
|
-
makeQuote: (price: AmountKeywordRecord, assets: AmountKeywordRecord, timeAuthority: import(
|
|
76
|
+
makeQuote: (price: AmountKeywordRecord, assets: AmountKeywordRecord, timeAuthority: import("@agoric/time").TimerService, deadline: any) => Promise<Payment>;
|
|
77
77
|
}>;
|
|
78
78
|
};
|
|
79
79
|
//# sourceMappingURL=otcDesk.d.ts.map
|
|
@@ -25,11 +25,11 @@ export type PriceAggregatorContract = ContractOf<typeof start>;
|
|
|
25
25
|
* }} privateArgs
|
|
26
26
|
*/
|
|
27
27
|
export function start(zcf: ZCF<{
|
|
28
|
-
timer: import(
|
|
28
|
+
timer: import("@agoric/time").TimerService;
|
|
29
29
|
POLL_INTERVAL: bigint;
|
|
30
|
-
brandIn: Brand<
|
|
31
|
-
brandOut: Brand<
|
|
32
|
-
unitAmountIn: Amount<
|
|
30
|
+
brandIn: Brand<"nat">;
|
|
31
|
+
brandOut: Brand<"nat">;
|
|
32
|
+
unitAmountIn: Amount<"nat">;
|
|
33
33
|
}>, privateArgs: {
|
|
34
34
|
marshaller: Marshaller;
|
|
35
35
|
quoteMint?: ERef<globalThis.Mint<"set">> | undefined;
|
|
@@ -9,7 +9,7 @@ type OracleAdmin<R extends unknown> = {
|
|
|
9
9
|
pushResult: (result: R) => Promise<void>;
|
|
10
10
|
};
|
|
11
11
|
type OracleKey = {} | string;
|
|
12
|
-
type PriceAggregatorKit = Pick<import("./priceAggregator").PriceAggregatorContract,
|
|
12
|
+
type PriceAggregatorKit = Pick<import("./priceAggregator").PriceAggregatorContract, "creatorFacet" | "publicFacet">;
|
|
13
13
|
type OracleQuery = Record<string, unknown> & {
|
|
14
14
|
kind?: string;
|
|
15
15
|
increment?: bigint;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function prepare(zcf: ZCF<ScaledPriceAuthorityOpts>, privateArgs: object, baggage: import(
|
|
1
|
+
export function prepare(zcf: ZCF<ScaledPriceAuthorityOpts>, privateArgs: object, baggage: import("@agoric/vat-data").Baggage): Promise<{
|
|
2
2
|
publicFacet: import("@endo/exo").Guarded<{
|
|
3
3
|
getPriceAuthority: () => Promise<PriceAuthority>;
|
|
4
4
|
}>;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* @param {ZCF<{pricePerItem: Amount<'nat'>}>} zcf
|
|
22
22
|
*/
|
|
23
23
|
export function start(zcf: ZCF<{
|
|
24
|
-
pricePerItem: Amount<
|
|
24
|
+
pricePerItem: Amount<"nat">;
|
|
25
25
|
}>): {
|
|
26
26
|
creatorFacet: SellItemsCreatorFacet;
|
|
27
27
|
creatorInvitation: Promise<Invitation<string, undefined>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function makeInstanceRecordStorage(baggage: import(
|
|
1
|
+
export function makeInstanceRecordStorage(baggage: import("@agoric/vat-data").Baggage): (ir: InstanceRecord) => InstanceState;
|
|
2
2
|
//# sourceMappingURL=instanceRecordStorage.d.ts.map
|
package/src/internal-types.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ type ZoeSeatAdminKit = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Make the Zoe seat admin, user seat and a notifier
|
|
24
24
|
*/
|
|
25
|
-
type MakeZoeSeatAdminKit = (initialAllocation: Allocation, instanceAdminHelper: InstanceAdminHelper, proposal: ProposalRecord, withdrawFacet: WithdrawFacet, exitObj: ERef<ExitObj>, offerResult?: unknown, baggage: import(
|
|
25
|
+
type MakeZoeSeatAdminKit = (initialAllocation: Allocation, instanceAdminHelper: InstanceAdminHelper, proposal: ProposalRecord, withdrawFacet: WithdrawFacet, exitObj: ERef<ExitObj>, offerResult?: unknown, baggage: import("@agoric/vat-data").Baggage) => ZoeSeatAdminKit;
|
|
26
26
|
type ZoeSeatAdminExit = (completion?: Completion) => void;
|
|
27
27
|
type ZoeSeatAdmin = {
|
|
28
28
|
replaceAllocation: (allocation: Allocation) => void;
|
|
@@ -31,7 +31,7 @@ type ZoeSeatAdmin = {
|
|
|
31
31
|
* called with the reason
|
|
32
32
|
* for calling fail on this seat, where reason is normally an instanceof Error.
|
|
33
33
|
*/
|
|
34
|
-
fail: import(
|
|
34
|
+
fail: import("@agoric/swingset-vat").ShutdownWithFailure;
|
|
35
35
|
getExitSubscriber: () => Subscriber<AmountKeywordRecord>;
|
|
36
36
|
};
|
|
37
37
|
type HandleOfferResult = {
|
|
@@ -55,7 +55,7 @@ type InstanceAdmin = {
|
|
|
55
55
|
getOfferFilter: () => string[];
|
|
56
56
|
getInstallation: () => Installation;
|
|
57
57
|
exitAllSeats: (completion: Completion) => void;
|
|
58
|
-
failAllSeats: import(
|
|
58
|
+
failAllSeats: import("@agoric/swingset-vat").ShutdownWithFailure;
|
|
59
59
|
stopAcceptingOffers: () => void;
|
|
60
60
|
isBlocked: (string: string) => boolean;
|
|
61
61
|
initDelayedState: (handleOfferObj: HandleOfferObj, publicFacet: unknown) => void;
|
|
@@ -78,7 +78,7 @@ type ZoeInstanceAdmin = {
|
|
|
78
78
|
makeNoEscrowSeat: MakeNoEscrowSeat;
|
|
79
79
|
replaceAllocations: ReplaceAllocations;
|
|
80
80
|
exitAllSeats: (completion: Completion) => void;
|
|
81
|
-
failAllSeats: import(
|
|
81
|
+
failAllSeats: import("@agoric/swingset-vat").ShutdownWithFailure;
|
|
82
82
|
exitSeat: (seatHandle: SeatHandle, completion: Completion) => void;
|
|
83
83
|
failSeat: (seatHandle: SeatHandle, reason: Error) => void;
|
|
84
84
|
stopAcceptingOffers: () => void;
|
|
@@ -87,11 +87,11 @@ type ZoeInstanceAdmin = {
|
|
|
87
87
|
getExitSubscriber: (seatHandle: SeatHandle) => Subscriber<AmountKeywordRecord>;
|
|
88
88
|
repairContractCompletionWatcher: () => void;
|
|
89
89
|
};
|
|
90
|
-
type RegisterFeeMint = (keyword: Keyword, allegedFeeMintAccess: FeeMintAccess) => ZoeMint<
|
|
90
|
+
type RegisterFeeMint = (keyword: Keyword, allegedFeeMintAccess: FeeMintAccess) => ZoeMint<"nat">;
|
|
91
91
|
type WrapIssuerKitWithZoeMint = (keyword: Keyword, localIssuerKit: IssuerKit) => any;
|
|
92
92
|
type MakeZoeMint = (keyword: Keyword, assetKind?: globalThis.AssetKind | undefined, displayInfo?: globalThis.AdditionalDisplayInfo | undefined, options?: Partial<{
|
|
93
93
|
elementShape: any;
|
|
94
|
-
recoverySetsOption: import("@agoric/ertp/exported").RecoverySetsOption;
|
|
94
|
+
recoverySetsOption: import("@agoric/ertp/exported.js").RecoverySetsOption;
|
|
95
95
|
}> | undefined) => ZoeMint;
|
|
96
96
|
type MakeNoEscrowSeat = (initialAllocation: Allocation, proposal: ProposalRecord, exitObj: ExitObj, seatHandle: SeatHandle) => UserSeat;
|
|
97
97
|
type ReplaceAllocations = (seatHandleAllocations: SeatHandleAllocation[]) => any;
|
|
@@ -126,7 +126,7 @@ type MakeExitObj = (proposal: ProposalRecord, zoeSeatAdmin: ZCFSeat) => ExitObj;
|
|
|
126
126
|
type ExitObj = {
|
|
127
127
|
exit: () => void;
|
|
128
128
|
};
|
|
129
|
-
type SeatHandle = Handle<
|
|
129
|
+
type SeatHandle = Handle<"Seat">;
|
|
130
130
|
/**
|
|
131
131
|
* Get the assetKind for a brand known by Zoe
|
|
132
132
|
*
|
|
@@ -152,7 +152,7 @@ type ZcfMintReallocator = {
|
|
|
152
152
|
* The SeatManager holds the active zcfSeats and can reallocate and
|
|
153
153
|
* make new zcfSeats.
|
|
154
154
|
*/
|
|
155
|
-
type CreateSeatManager = (zoeInstanceAdmin: ERef<ZoeInstanceAdmin>, getAssetKindByBrand: GetAssetKindByBrand, shutdownWithFailure: import(
|
|
155
|
+
type CreateSeatManager = (zoeInstanceAdmin: ERef<ZoeInstanceAdmin>, getAssetKindByBrand: GetAssetKindByBrand, shutdownWithFailure: import("@agoric/swingset-vat").ShutdownWithFailure, zcfBaggage: import("@agoric/vat-data").Baggage) => {
|
|
156
156
|
seatManager: ZcfSeatManager;
|
|
157
157
|
zcfMintReallocator: ZcfMintReallocator;
|
|
158
158
|
};
|