@agoric/zoe 0.26.3-dev-d6fae11.0.d6fae11 → 0.26.3-dev-64cee5a.0.64cee5a
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 +238 -238
- package/bundles/bundle-contractFacet.js +1 -1
- package/package.json +14 -14
- package/src/contractFacet/vatRoot.d.ts +4 -2
- package/src/contractFacet/vatRoot.d.ts.map +1 -1
- package/src/contractFacet/vatRoot.js +2 -1
- package/src/contractFacet/zcfMint.d.ts +2 -1
- package/src/contractFacet/zcfMint.d.ts.map +1 -1
- package/src/contractFacet/zcfMint.js +2 -1
- package/src/contractSupport/durability.d.ts +3 -2
- package/src/contractSupport/durability.d.ts.map +1 -1
- package/src/contractSupport/durability.js +3 -2
- package/src/contractSupport/prepare-ownable.d.ts +2 -1
- package/src/contractSupport/prepare-ownable.d.ts.map +1 -1
- package/src/contractSupport/prepare-ownable.js +5 -1
- package/src/contractSupport/priceAuthority.d.ts +2 -1
- package/src/contractSupport/priceAuthority.d.ts.map +1 -1
- package/src/contractSupport/priceAuthority.js +2 -1
- package/src/contractSupport/priceAuthorityQuoteMint.d.ts +2 -1
- package/src/contractSupport/priceAuthorityQuoteMint.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityQuoteMint.js +2 -1
- package/src/contractSupport/priceAuthorityTransform.d.ts +3 -1
- package/src/contractSupport/priceAuthorityTransform.d.ts.map +1 -1
- package/src/contractSupport/priceAuthorityTransform.js +4 -2
- package/src/contractSupport/priceQuote.d.ts +3 -2
- package/src/contractSupport/priceQuote.d.ts.map +1 -1
- package/src/contractSupport/priceQuote.js +2 -1
- package/src/contractSupport/recorder.d.ts +4 -3
- package/src/contractSupport/recorder.d.ts.map +1 -1
- package/src/contractSupport/recorder.js +4 -3
- package/src/contractSupport/topics.d.ts +3 -1
- package/src/contractSupport/topics.d.ts.map +1 -1
- package/src/contractSupport/topics.js +3 -1
- package/src/contracts/auction/index.d.ts +10 -6
- package/src/contracts/auction/index.d.ts.map +1 -1
- package/src/contracts/auction/index.js +5 -1
- package/src/contracts/coveredCall-durable.d.ts +3 -2
- package/src/contracts/coveredCall-durable.d.ts.map +1 -1
- package/src/contracts/coveredCall-durable.js +5 -1
- package/src/contracts/loan/types-ambient.d.ts.map +1 -1
- package/src/contracts/loan/types-ambient.js +1 -0
- package/src/contracts/loan/updateDebt.d.ts +3 -0
- package/src/contracts/loan/updateDebt.d.ts.map +1 -1
- package/src/contracts/loan/updateDebt.js +5 -1
- package/src/contracts/mintAndSellNFT.d.ts +3 -0
- package/src/contracts/mintAndSellNFT.d.ts.map +1 -1
- package/src/contracts/mintAndSellNFT.js +5 -1
- package/src/contracts/otcDesk.d.ts +6 -2
- package/src/contracts/otcDesk.d.ts.map +1 -1
- package/src/contracts/otcDesk.js +5 -1
- package/src/contracts/priceAggregator.d.ts +11 -10
- package/src/contracts/priceAggregator.d.ts.map +1 -1
- package/src/contracts/priceAggregator.js +17 -13
- package/src/contracts/priceAggregatorTypes.d.ts +2 -1
- package/src/contracts/priceAggregatorTypes.d.ts.map +1 -1
- package/src/contracts/priceAggregatorTypes.js +5 -1
- package/src/contracts/scaledPriceAuthority.d.ts +2 -1
- package/src/contracts/scaledPriceAuthority.d.ts.map +1 -1
- package/src/contracts/scaledPriceAuthority.js +2 -1
- package/src/contracts/types-ambient.d.ts.map +1 -1
- package/src/contracts/types-ambient.js +1 -0
- package/src/issuerStorage.d.ts +2 -1
- package/src/issuerStorage.d.ts.map +1 -1
- package/src/issuerStorage.js +2 -1
- package/src/typeGuards.d.ts +8 -4
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +5 -3
- package/src/zoeService/escrowStorage.d.ts +2 -1
- package/src/zoeService/escrowStorage.d.ts.map +1 -1
- package/src/zoeService/escrowStorage.js +2 -1
- package/src/zoeService/instanceAdminStorage.d.ts +3 -2
- package/src/zoeService/instanceAdminStorage.d.ts.map +1 -1
- package/src/zoeService/instanceAdminStorage.js +5 -4
- package/src/zoeService/internal-types.d.ts +12 -8
- package/src/zoeService/internal-types.d.ts.map +1 -1
- package/src/zoeService/internal-types.js +12 -8
- package/src/zoeService/invitationQueries.d.ts +6 -3
- package/src/zoeService/invitationQueries.d.ts.map +1 -1
- package/src/zoeService/invitationQueries.js +9 -3
- package/src/zoeService/originalZoeSeat.d.ts +2 -1
- package/src/zoeService/originalZoeSeat.d.ts.map +1 -1
- package/src/zoeService/originalZoeSeat.js +5 -1
- package/src/zoeService/startInstance.d.ts +2 -1
- package/src/zoeService/startInstance.d.ts.map +1 -1
- package/src/zoeService/startInstance.js +8 -5
- package/src/zoeService/zoeSeat.d.ts +2 -1
- package/src/zoeService/zoeSeat.d.ts.map +1 -1
- package/src/zoeService/zoeSeat.js +5 -1
- package/src/zoeService/zoeStorageManager.d.ts.map +1 -1
- package/tools/fakePriceAuthority.d.ts +6 -4
- package/tools/fakePriceAuthority.d.ts.map +1 -1
- package/tools/fakePriceAuthority.js +9 -6
- package/tools/manualPriceAuthority.d.ts +4 -2
- package/tools/manualPriceAuthority.d.ts.map +1 -1
- package/tools/manualPriceAuthority.js +2 -1
- package/tools/manualTimer.d.ts +4 -2
- package/tools/manualTimer.d.ts.map +1 -1
- package/tools/manualTimer.js +4 -2
- package/tools/scriptedOracle.d.ts +7 -3
- package/tools/scriptedOracle.d.ts.map +1 -1
- package/tools/scriptedOracle.js +4 -2
- package/tools/scriptedPriceAuthority.d.ts +1 -0
- package/tools/scriptedPriceAuthority.d.ts.map +1 -1
- package/tools/scriptedPriceAuthority.js +2 -1
- package/tools/types.d.ts +9 -5
- package/tools/types.d.ts.map +1 -1
- package/tools/types.js +9 -5
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-64cee5a.0.64cee5a",
|
|
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/base-zone": "0.1.1-dev-
|
|
47
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
48
|
-
"@agoric/internal": "0.3.3-dev-
|
|
49
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
50
|
-
"@agoric/store": "0.9.3-dev-
|
|
51
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
52
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
53
|
-
"@agoric/time": "0.3.3-dev-
|
|
54
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
55
|
-
"@agoric/vow": "0.1.1-dev-
|
|
56
|
-
"@agoric/zone": "0.2.3-dev-
|
|
46
|
+
"@agoric/base-zone": "0.1.1-dev-64cee5a.0.64cee5a",
|
|
47
|
+
"@agoric/ertp": "0.16.3-dev-64cee5a.0.64cee5a",
|
|
48
|
+
"@agoric/internal": "0.3.3-dev-64cee5a.0.64cee5a",
|
|
49
|
+
"@agoric/notifier": "0.6.3-dev-64cee5a.0.64cee5a",
|
|
50
|
+
"@agoric/store": "0.9.3-dev-64cee5a.0.64cee5a",
|
|
51
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-64cee5a.0.64cee5a",
|
|
52
|
+
"@agoric/swingset-vat": "0.32.3-dev-64cee5a.0.64cee5a",
|
|
53
|
+
"@agoric/time": "0.3.3-dev-64cee5a.0.64cee5a",
|
|
54
|
+
"@agoric/vat-data": "0.5.3-dev-64cee5a.0.64cee5a",
|
|
55
|
+
"@agoric/vow": "0.1.1-dev-64cee5a.0.64cee5a",
|
|
56
|
+
"@agoric/zone": "0.2.3-dev-64cee5a.0.64cee5a",
|
|
57
57
|
"@endo/bundle-source": "^4.1.2",
|
|
58
58
|
"@endo/captp": "^4.4.8",
|
|
59
59
|
"@endo/common": "^1.2.13",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"yargs-parser": "^21.1.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
73
|
+
"@agoric/kmarshal": "0.1.1-dev-64cee5a.0.64cee5a",
|
|
74
74
|
"@endo/init": "^1.1.12",
|
|
75
75
|
"ava": "^5.3.0",
|
|
76
76
|
"c8": "^10.1.3",
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"typeCoverage": {
|
|
101
101
|
"atLeast": 84.74
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "64cee5ae5d1a3488a30ce042d6f3f561ac2a6e82"
|
|
104
104
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @import {ZoeService} from '@agoric/zoe';
|
|
3
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
3
4
|
*/
|
|
4
5
|
/**
|
|
5
6
|
* @param {VatPowers & { testJigSetter: ( {zcf}: {zcf: ZCF} ) => void }} powers
|
|
6
7
|
* @param {{contractBundleCap: BundleCap, zoeService: ZoeService, invitationIssuer: Issuer<'set'>, privateArgs?: any}} vatParameters
|
|
7
|
-
* @param {
|
|
8
|
+
* @param {Baggage} baggage
|
|
8
9
|
*/
|
|
9
10
|
export function buildRootObject(powers: VatPowers & {
|
|
10
11
|
testJigSetter: ({ zcf }: {
|
|
@@ -15,6 +16,7 @@ export function buildRootObject(powers: VatPowers & {
|
|
|
15
16
|
zoeService: ZoeService;
|
|
16
17
|
invitationIssuer: Issuer<"set">;
|
|
17
18
|
privateArgs?: any;
|
|
18
|
-
}, baggage:
|
|
19
|
+
}, baggage: Baggage): Promise<RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>>;
|
|
19
20
|
import type { ZoeService } from '@agoric/zoe';
|
|
21
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
20
22
|
//# sourceMappingURL=vatRoot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vatRoot.d.ts","sourceRoot":"","sources":["vatRoot.js"],"names":[],"mappings":"AAeA
|
|
1
|
+
{"version":3,"file":"vatRoot.d.ts","sourceRoot":"","sources":["vatRoot.js"],"names":[],"mappings":"AAeA;;;GAGG;AAEH;;;;GAIG;AACH,wCAJW,SAAS,GAAG;IAAE,aAAa,EAAE,CAAE,EAAC,GAAG,EAAC,EAAE;QAAC,GAAG,EAAE,GAAG,CAAA;KAAC,KAAM,IAAI,CAAA;CAAE,iBAC5D;IAAC,iBAAiB,EAAE,SAAS,CAAC;IAAC,UAAU,EAAE,UAAU,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,WAAW,CAAC,EAAE,GAAG,CAAA;CAAC,WAC1G,OAAO,yGA8DjB;gCArE4B,aAAa;6BAChB,kBAAkB"}
|
|
@@ -15,12 +15,13 @@ import { makeZCFZygote } from './zcfZygote.js';
|
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @import {ZoeService} from '@agoric/zoe';
|
|
18
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
18
19
|
*/
|
|
19
20
|
|
|
20
21
|
/**
|
|
21
22
|
* @param {VatPowers & { testJigSetter: ( {zcf}: {zcf: ZCF} ) => void }} powers
|
|
22
23
|
* @param {{contractBundleCap: BundleCap, zoeService: ZoeService, invitationIssuer: Issuer<'set'>, privateArgs?: any}} vatParameters
|
|
23
|
-
* @param {
|
|
24
|
+
* @param {Baggage} baggage
|
|
24
25
|
*/
|
|
25
26
|
export async function buildRootObject(powers, vatParameters, baggage) {
|
|
26
27
|
// Currently, there is only one function, `executeContract` called
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export function sumAmountKeywordRecord(amr: AmountKeywordRecord, issuerRecord: ZoeIssuerRecord): Amount;
|
|
2
|
-
export function prepareZcMint(zcfBaggage:
|
|
2
|
+
export function prepareZcMint(zcfBaggage: Baggage, recordIssuer: {
|
|
3
3
|
(keyword: string, issuerRecord: ZoeIssuerRecord): void;
|
|
4
4
|
}, getAssetKindByBrand: GetAssetKindByBrand, makeEmptySeatKit: (exit?: undefined) => {
|
|
5
5
|
zcfSeat: any;
|
|
6
6
|
userSeat: Promise<UserSeat>;
|
|
7
7
|
}, reallocator: ZcfMintReallocator): (keyword: string, zoeMintP: ERef<ZoeMint<K>>) => Promise<ZCFMint<K>>;
|
|
8
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
8
9
|
import type { ZCFMint } from '@agoric/zoe';
|
|
9
10
|
//# sourceMappingURL=zcfMint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zcfMint.d.ts","sourceRoot":"","sources":["zcfMint.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zcfMint.d.ts","sourceRoot":"","sources":["zcfMint.js"],"names":[],"mappings":"AAoBO,4CAJI,mBAAmB,gBACnB,eAAe,GACb,MAAM,CAYlB;AASM,0CANI,OAAO,gBACP;IAAE,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,eAAe,GAAG,IAAI,CAAA;CAAE,uBAC1D,mBAAmB,oBACnB,CAAC,IAAI,CAAC,EAAE,SAAS,KAAK;IAAE,OAAO,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAA;CAAE,eACnE,kBAAkB,IA0Gb,SAJH,MAIU,EAAE,UAHZ,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAGK,KAFlB,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAWjC;6BA5IyB,kBAAkB;6BADT,aAAa"}
|
|
@@ -10,6 +10,7 @@ import { ZcfMintI } from './typeGuards.js';
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @import {ZCFMint, ZCFSeat} from '@agoric/zoe';
|
|
13
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
13
14
|
*/
|
|
14
15
|
|
|
15
16
|
/**
|
|
@@ -30,7 +31,7 @@ export const sumAmountKeywordRecord = (amr, issuerRecord) => {
|
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
|
-
* @param {
|
|
34
|
+
* @param {Baggage} zcfBaggage
|
|
34
35
|
* @param {{ (keyword: string, issuerRecord: ZoeIssuerRecord): void }} recordIssuer
|
|
35
36
|
* @param {GetAssetKindByBrand} getAssetKindByBrand
|
|
36
37
|
* @param {(exit?: undefined) => { zcfSeat: any; userSeat: Promise<UserSeat> }} makeEmptySeatKit
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export function makeEphemeraProvider<E extends {}, K extends WeakKey>(init: (key: K) => E): (key: K) => E;
|
|
2
|
-
export function provideEmptySeat(zcf: ZCF, baggage:
|
|
2
|
+
export function provideEmptySeat(zcf: ZCF, baggage: Baggage, name: string): ZCFSeat;
|
|
3
3
|
export function provideAll<T extends Record<string, () => ERef<any>>>(baggage: MapStore<string, any>, thunks: T): Promise<{ [K in keyof T]: Awaited<ReturnType<T[K]>>; }>;
|
|
4
|
-
export function provideSingleton<T extends () => ERef<any>>(mapStore:
|
|
4
|
+
export function provideSingleton<T extends () => ERef<any>>(mapStore: Baggage, key: string, makeValue: T, withValue?: (value: Awaited<ReturnType<T>>) => void): Promise<Awaited<ReturnType<T>>>;
|
|
5
|
+
import type { Baggage } from '@agoric/swingset-liveslots';
|
|
5
6
|
import type { MapStore } from '@agoric/swingset-liveslots';
|
|
6
7
|
//# sourceMappingURL=durability.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durability.d.ts","sourceRoot":"","sources":["durability.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"durability.d.ts","sourceRoot":"","sources":["durability.js"],"names":[],"mappings":"AAkBO,qCAJW,CAAC,SAAN,EAAI,EACM,CAAC,SAAV,OAAQ,QACX,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,eASA,CAAC,CAWxB;AAWM,sCALI,GAAG,WACH,OAAO,QACP,MAAM,GACJ,OAAO,CAInB;AAiCM,2BALwC,CAAC,SAAlC,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,CAAC,GAAG,CAAC,CAAE,WACnC,SAAS,MAAM,EAAE,GAAG,CAAC,UACrB,CAAC,GACC,OAAO,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAE,CAAC,CAuBlE;AAgBM,iCAPwB,CAAC,SAAnB,MAAO,IAAI,CAAC,GAAG,CAAE,YACnB,OAAO,OACP,MAAM,aACN,CAAC,cACD,CAAC,KAAK,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,GACrC,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAc3C;6BA7HyB,4BAA4B;8BAD3B,4BAA4B"}
|
|
@@ -4,6 +4,7 @@ import { E } from '@endo/eventual-send';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @import {MapStore} from '@agoric/swingset-liveslots';
|
|
7
|
+
* @import {Baggage} from '@agoric/swingset-liveslots';
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
/**
|
|
@@ -40,7 +41,7 @@ harden(makeEphemeraProvider);
|
|
|
40
41
|
* Provide an empty ZCF seat.
|
|
41
42
|
*
|
|
42
43
|
* @param {ZCF} zcf
|
|
43
|
-
* @param {
|
|
44
|
+
* @param {Baggage} baggage
|
|
44
45
|
* @param {string} name
|
|
45
46
|
* @returns {ZCFSeat}
|
|
46
47
|
*/
|
|
@@ -110,7 +111,7 @@ harden(provideAll);
|
|
|
110
111
|
* @see {makeAtomicProvider}
|
|
111
112
|
* @see {AtomicProvider}
|
|
112
113
|
* @template {() => ERef<any>} T
|
|
113
|
-
* @param {
|
|
114
|
+
* @param {Baggage} mapStore
|
|
114
115
|
* @param {string} key
|
|
115
116
|
* @param {T} makeValue
|
|
116
117
|
* @param {(value: Awaited<ReturnType<T>>) => void} [withValue]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function prepareOwnable<MN extends (string | symbol)[]>(zone:
|
|
1
|
+
export function prepareOwnable<MN extends (string | symbol)[]>(zone: Zone, makeInvitation: ZCF["makeInvitation"], uKindName: string, uMethodNames: MN, options?: OwnableOptions): <U>(underlying: U) => Partial<U> & {
|
|
2
2
|
makeTransferInvitation: () => Invitation<U>;
|
|
3
3
|
};
|
|
4
4
|
export type OwnableOptions = {
|
|
@@ -8,4 +8,5 @@ export type OwnableOptions = {
|
|
|
8
8
|
*/
|
|
9
9
|
uInterfaceName?: string | undefined;
|
|
10
10
|
};
|
|
11
|
+
import type { Zone } from '@agoric/base-zone';
|
|
11
12
|
//# sourceMappingURL=prepare-ownable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-ownable.d.ts","sourceRoot":"","sources":["prepare-ownable.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prepare-ownable.d.ts","sourceRoot":"","sources":["prepare-ownable.js"],"names":[],"mappings":"AA8CO,+BAlB4B,EAAE,SAAvB,CAAC,MAAM,GAAG,MAAM,CAAC,EAAG,QACvB,IAAI,kBACJ,GAAG,CAAC,gBAAgB,CAAC,aAQrB,MAAM,gBAEN,EAAE,YAGF,cAAc,GACZ,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG;IAAC,sBAAsB,EAAE,MAAM,UAAU,CAAC,CAAC,CAAC,CAAA;CAAC,CA6D5F;;;;;;;;0BApGsB,mBAAmB"}
|
|
@@ -2,6 +2,10 @@ import { M } from '@endo/patterns';
|
|
|
2
2
|
import { prepareRevocableMakerKit } from '@agoric/base-zone/zone-helpers.js';
|
|
3
3
|
import { OfferHandlerI } from '../typeGuards.js';
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* @import {Zone} from '@agoric/base-zone';
|
|
7
|
+
*/
|
|
8
|
+
|
|
5
9
|
const TransferProposalShape = M.splitRecord({
|
|
6
10
|
give: {},
|
|
7
11
|
want: {},
|
|
@@ -23,7 +27,7 @@ const TransferProposalShape = M.splitRecord({
|
|
|
23
27
|
* allowlist of method names.
|
|
24
28
|
*
|
|
25
29
|
* @template {(string | symbol)[]} MN Method names
|
|
26
|
-
* @param {
|
|
30
|
+
* @param {Zone} zone
|
|
27
31
|
* @param {ZCF['makeInvitation']} makeInvitation
|
|
28
32
|
* A function with the same behavior as `zcf.makeInvitation`.
|
|
29
33
|
* A contract will normally just extract it from its own zcf using the
|
|
@@ -17,7 +17,7 @@ export const PriceAuthorityI: import("@endo/patterns").InterfaceGuard<{
|
|
|
17
17
|
export function makeOnewayPriceAuthorityKit(opts: {
|
|
18
18
|
quoteIssuer: Issuer<"set", PriceDescription>;
|
|
19
19
|
notifier: ERef<Notifier<unknown>>;
|
|
20
|
-
timer: ERef<
|
|
20
|
+
timer: ERef<TimerService>;
|
|
21
21
|
createQuote: PriceQuoteCreate;
|
|
22
22
|
actualBrandIn: Brand<"nat">;
|
|
23
23
|
actualBrandOut: Brand<"nat">;
|
|
@@ -25,6 +25,7 @@ export function makeOnewayPriceAuthorityKit(opts: {
|
|
|
25
25
|
export type CompareAmount = (amount: Amount, amountLimit: Amount) => boolean;
|
|
26
26
|
export type Trigger = (createInstantQuote: PriceQuoteCreate) => Promise<void>;
|
|
27
27
|
import type { PriceDescription } from '@agoric/zoe/tools/types.js';
|
|
28
|
+
import type { TimerService } from '@agoric/time';
|
|
28
29
|
import type { PriceQuoteCreate } from '@agoric/zoe/tools/types.js';
|
|
29
30
|
import type { PriceAuthorityKit } from '@agoric/zoe/tools/types.js';
|
|
30
31
|
//# sourceMappingURL=priceAuthority.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAuthority.d.ts","sourceRoot":"","sources":["priceAuthority.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"priceAuthority.d.ts","sourceRoot":"","sources":["priceAuthority.js"],"names":[],"mappings":"AA8CA;;;;;;;;;;;;;;;GAiBG;AAYI,kDARJ;IAA8C,WAAW,EAAjD,MAAM,CAAC,KAAK,EAAE,gBAAgB,CAAC;IACD,QAAQ,EAAtC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACE,KAAK,EAA9B,IAAI,CAAC,YAAY,CAAC;IACK,WAAW,EAAlC,gBAAgB;IACG,aAAa,EAAhC,KAAK,CAAC,KAAK,CAAC;IACO,cAAc,EAAjC,KAAK,CAAC,KAAK,CAAC;CACpB,GAAU,iBAAiB,CAwT7B;qCA7WU,MAAM,eACN,MAAM,KACJ,OAAO;2CAiBT,gBAAgB,KACd,OAAO,CAAC,IAAI,CAAC;sCA5ByI,4BAA4B;kCAChK,cAAc;sCADsH,4BAA4B;uCAA5B,4BAA4B"}
|
|
@@ -11,6 +11,7 @@ import { M } from '@agoric/store';
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery, PriceQuoteCreate, PriceAuthorityKit, PriceQuoteTrigger, MutableQuote,} from '@agoric/zoe/tools/types.js';
|
|
14
|
+
* @import {TimerService} from '@agoric/time';
|
|
14
15
|
*/
|
|
15
16
|
|
|
16
17
|
const trace = makeTracer('PA', false);
|
|
@@ -66,7 +67,7 @@ export const PriceAuthorityI = M.interface('PriceAuthority', {
|
|
|
66
67
|
* @param {object} opts
|
|
67
68
|
* @param {Issuer<'set', PriceDescription>} opts.quoteIssuer
|
|
68
69
|
* @param {ERef<Notifier<unknown>>} opts.notifier
|
|
69
|
-
* @param {ERef<
|
|
70
|
+
* @param {ERef<TimerService>} opts.timer
|
|
70
71
|
* @param {PriceQuoteCreate} opts.createQuote
|
|
71
72
|
* @param {Brand<'nat'>} opts.actualBrandIn
|
|
72
73
|
* @param {Brand<'nat'>} opts.actualBrandOut
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export function provideQuoteMint(baggage:
|
|
1
|
+
export function provideQuoteMint(baggage: Baggage): ERef<Mint<"set", PriceDescription>>;
|
|
2
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
2
3
|
import type { PriceDescription } from '@agoric/zoe/tools/types.js';
|
|
3
4
|
//# sourceMappingURL=priceAuthorityQuoteMint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAuthorityQuoteMint.d.ts","sourceRoot":"","sources":["priceAuthorityQuoteMint.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"priceAuthorityQuoteMint.d.ts","sourceRoot":"","sources":["priceAuthorityQuoteMint.js"],"names":[],"mappings":"AAcO,0CAHI,OAAO,GACL,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAkB/C;6BAxByB,kBAAkB;sCAD+D,4BAA4B"}
|
|
@@ -4,11 +4,12 @@ import { provideDurableMapStore } from '@agoric/vat-data';
|
|
|
4
4
|
/**
|
|
5
5
|
* @import {EOnly} from '@endo/eventual-send';
|
|
6
6
|
* @import {MutableQuote, PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
|
|
7
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
7
8
|
*/
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
*
|
|
11
|
-
* @param {
|
|
12
|
+
* @param {Baggage} baggage
|
|
12
13
|
* @returns {ERef<Mint<'set', PriceDescription>>}
|
|
13
14
|
*/
|
|
14
15
|
export const provideQuoteMint = baggage => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function mintQuote(quoteBrand: Brand<"set">, amountIn: Amount<"nat">, amountOut: Amount<"nat">, timer:
|
|
1
|
+
export function mintQuote(quoteBrand: Brand<"set">, amountIn: Amount<"nat">, amountOut: Amount<"nat">, timer: TimerService, timestamp: TimestampRecord, quoteMint: ERef<Mint<"set", PriceDescription>>): Promise<PriceQuote>;
|
|
2
2
|
export function makePriceAuthorityTransform({ quoteMint, sourcePriceAuthority, sourceBrandIn, sourceBrandOut, actualBrandIn, actualBrandOut, makeSourceAmountIn, makeSourceAmountOut, transformSourceAmountIn, transformSourceAmountOut, }: {
|
|
3
3
|
quoteMint: ERef<Mint<"set", PriceDescription>>;
|
|
4
4
|
sourcePriceAuthority: ERef<PriceAuthority>;
|
|
@@ -11,6 +11,8 @@ export function makePriceAuthorityTransform({ quoteMint, sourcePriceAuthority, s
|
|
|
11
11
|
transformSourceAmountIn?: ((sourceAmountIn: Amount<"nat">) => Amount<"nat">) | undefined;
|
|
12
12
|
transformSourceAmountOut?: ((sourceAmountOut: Amount<"nat">) => Amount<"nat">) | undefined;
|
|
13
13
|
}): Promise<PriceAuthority>;
|
|
14
|
+
import type { TimerService } from '@agoric/time';
|
|
15
|
+
import type { TimestampRecord } from '@agoric/time';
|
|
14
16
|
import type { PriceDescription } from '@agoric/zoe/tools/types.js';
|
|
15
17
|
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
16
18
|
import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceAuthorityTransform.d.ts","sourceRoot":"","sources":["priceAuthorityTransform.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"priceAuthorityTransform.d.ts","sourceRoot":"","sources":["priceAuthorityTransform.js"],"names":[],"mappings":"AAsBO,sCARI,KAAK,CAAC,KAAK,CAAC,YACZ,MAAM,CAAC,KAAK,CAAC,aACb,MAAM,CAAC,KAAK,CAAC,SACb,YAAY,aACZ,eAAe,aACf,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,GACjC,OAAO,CAAC,UAAU,CAAC,CAmB/B;AAeM,4OAXJ;IAAkD,SAAS,EAAnD,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;IACR,oBAAoB,EAA/C,IAAI,CAAC,cAAc,CAAC;IACD,aAAa,EAAhC,KAAK,CAAC,KAAK,CAAC;IACO,cAAc,EAAjC,KAAK,CAAC,KAAK,CAAC;IACQ,aAAa;IACb,cAAc;IACgB,kBAAkB,eAAzD,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC;IACS,mBAAmB,gBAA1D,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC;IACa,uBAAuB,qBAA9D,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC;IACS,wBAAwB,sBAA/D,MAAM,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,KAAK,CAAC;CAAiC,2BA4N5F;kCAvQ8B,cAAc;qCACX,cAAc;sCAF8B,4BAA4B;gCAA5B,4BAA4B;oCAA5B,4BAA4B"}
|
|
@@ -7,14 +7,16 @@ import { makeNotifier } from '@agoric/notifier';
|
|
|
7
7
|
/**
|
|
8
8
|
* @import {EOnly} from '@endo/eventual-send';
|
|
9
9
|
* @import {MutableQuote, PriceAuthority, PriceQuote, PriceDescription,} from '@agoric/zoe/tools/types.js';
|
|
10
|
+
* @import {TimerService} from '@agoric/time';
|
|
11
|
+
* @import {TimestampRecord} from '@agoric/time';
|
|
10
12
|
*/
|
|
11
13
|
|
|
12
14
|
/**
|
|
13
15
|
* @param {Brand<'set'>} quoteBrand
|
|
14
16
|
* @param {Amount<'nat'>} amountIn
|
|
15
17
|
* @param {Amount<'nat'>} amountOut
|
|
16
|
-
* @param {
|
|
17
|
-
* @param {
|
|
18
|
+
* @param {TimerService} timer
|
|
19
|
+
* @param {TimestampRecord} timestamp
|
|
18
20
|
* @param {ERef<Mint<'set', PriceDescription>>} quoteMint
|
|
19
21
|
* @returns {Promise<PriceQuote>}
|
|
20
22
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
export function getPriceDescription(quote: PriceQuote): PriceDescription;
|
|
2
2
|
export function getAmountIn(quote: PriceQuote): import("@agoric/ertp").NatAmount;
|
|
3
3
|
export function getAmountOut(quote: PriceQuote): import("@agoric/ertp").NatAmount;
|
|
4
|
-
/** @type {(quote: PriceQuote) =>
|
|
5
|
-
export const getTimestamp: (quote: PriceQuote) =>
|
|
4
|
+
/** @type {(quote: PriceQuote) => Timestamp} */
|
|
5
|
+
export const getTimestamp: (quote: PriceQuote) => Timestamp;
|
|
6
6
|
export function unitAmount(brand: Brand<"nat">): Promise<import("@agoric/ertp").NatAmount>;
|
|
7
7
|
export function makePriceQuoteIssuer(): IssuerKit<"set", PriceDescription>;
|
|
8
8
|
import type { PriceQuote } from '@agoric/zoe/tools/types.js';
|
|
9
9
|
import type { PriceDescription } from '@agoric/zoe/tools/types.js';
|
|
10
|
+
import type { Timestamp } from '@agoric/time';
|
|
10
11
|
//# sourceMappingURL=priceQuote.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceQuote.d.ts","sourceRoot":"","sources":["priceQuote.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"priceQuote.d.ts","sourceRoot":"","sources":["priceQuote.js"],"names":[],"mappings":"AAqBO,2CAHI,UAAU,GACR,gBAAgB,CAM5B;AAGM,mCADK,UAAU,oCACiD;AAEhE,oCADK,UAAU,oCACmD;AACzE,+CAA+C;AAC/C,2BADW,CAAC,KAAK,EAAE,UAAU,KAAK,SAAS,CAC+B;AAGnE,kCADK,KAAK,CAAC,KAAK,CAAC,6CAMvB;AAGM,wCACM,SAAS,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAE5C;gCAtC0F,4BAA4B;sCAA5B,4BAA4B;+BAC7F,cAAc"}
|
|
@@ -7,6 +7,7 @@ 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';
|
|
10
|
+
* @import {Timestamp} from '@agoric/time';
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
// PriceAuthorities return quotes as a pair of an amount and a payment, both
|
|
@@ -28,7 +29,7 @@ export const getPriceDescription = quote => {
|
|
|
28
29
|
export const getAmountIn = quote => getPriceDescription(quote).amountIn;
|
|
29
30
|
/** @param {PriceQuote} quote */
|
|
30
31
|
export const getAmountOut = quote => getPriceDescription(quote).amountOut;
|
|
31
|
-
/** @type {(quote: PriceQuote) =>
|
|
32
|
+
/** @type {(quote: PriceQuote) => Timestamp} */
|
|
32
33
|
export const getTimestamp = quote => getPriceDescription(quote).timestamp;
|
|
33
34
|
|
|
34
35
|
/** @param {Brand<'nat'>} brand */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function prepareRecorder(baggage:
|
|
1
|
+
export function prepareRecorder(baggage: Baggage, marshaller: ERemote<EMarshaller>): (publisher: globalThis.Publisher<unknown>, storageNode: Remote<globalThis.StorageNode>, valueShape?: TypedPattern<any> | undefined) => import("@endo/exo").Guarded<{
|
|
2
2
|
getStorageNode(): Remote<globalThis.StorageNode>;
|
|
3
3
|
/**
|
|
4
4
|
* Memoizes the remote call to the storage node
|
|
@@ -29,8 +29,8 @@ export function defineERecorderKit({ makeRecorder, makeDurablePublishKit }: {
|
|
|
29
29
|
makeRecorder: MakeRecorder;
|
|
30
30
|
makeDurablePublishKit: ReturnType<typeof prepareDurablePublishKit>;
|
|
31
31
|
}): <T>(storageNodeP: ERemote<StorageNode>, valueShape?: TypedPattern<T> | undefined) => EventualRecorderKit<T>;
|
|
32
|
-
export function prepareRecorderKit(baggage:
|
|
33
|
-
export function prepareRecorderKitMakers(baggage:
|
|
32
|
+
export function prepareRecorderKit(baggage: Baggage, marshaller: ERemote<EMarshaller>): <T>(storageNode: Remote<StorageNode>, valueShape?: TypedPattern<T> | undefined) => RecorderKit<T>;
|
|
33
|
+
export function prepareRecorderKitMakers(baggage: Baggage, marshaller: ERemote<EMarshaller>): {
|
|
34
34
|
makeDurablePublishKit: <T>(options?: Parameters<(options?: {
|
|
35
35
|
valueDurability?: "mandatory" | undefined;
|
|
36
36
|
}) => import("@agoric/notifier").DurablePublishKitState>[0]) => PublishKit<T>;
|
|
@@ -112,6 +112,7 @@ export type EventualRecorderKit<T> = Pick<PublishKit<T>, "subscriber"> & {
|
|
|
112
112
|
export type MakeRecorder = ReturnType<typeof prepareRecorder>;
|
|
113
113
|
export type MakeRecorderKit = ReturnType<typeof defineRecorderKit>;
|
|
114
114
|
export type MakeERecorderKit = ReturnType<typeof defineERecorderKit>;
|
|
115
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
115
116
|
import type { EMarshaller } from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
116
117
|
import type { ERemote } from '@agoric/internal';
|
|
117
118
|
import type { Remote } from '@agoric/internal';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["recorder.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"recorder.d.ts","sourceRoot":"","sources":["recorder.js"],"names":[],"mappings":"AAkDO,yCAHI,OAAO,cACP,QAAQ,WAAW,CAAC;;IAmCzB;;;;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,OAAO,WAAW,CAAC,+CAEjB,WAAW,CAAC,CAAC,CAAC,CAQ5B;AAUM,4EAFI;IAAC,YAAY,EAAE,YAAY,CAAC;IAAC,qBAAqB,EAAE,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAA;CAAC,IAI5F,CAAC,gBACH,QAAQ,WAAW,CAAC,+CAElB,mBAAmB,CAAC,CAAC,CAAC,CAUpC;AAaM,4CAHI,OAAO,cACP,QAAQ,WAAW,CAAC,IA/ChB,CAAC,eACH,OAAO,WAAW,CAAC,+CAEjB,WAAW,CAAC,CAAC,CAAC,CAqD5B;AAaM,kDAHI,OAAO,cACP,QAAQ,WAAW,CAAC;;;;;;QAvIzB;;;;WAIG;0BADU,OAAO,CAAC,MAAM,CAAC;QAa5B;;;;;WAKG;qBAFQ,GAAG,GACD,OAAO,CAAC,IAAI,CAAC;QAa1B;;;;;WAKG;0BAFQ,GAAG,GACD,OAAO,CAAC,IAAI,CAAC;;sBA+BjB,CAAC,eACH,OAAO,WAAW,CAAC,+CAEjB,WAAW,CAAC,CAAC,CAAC;uBAoBd,CAAC,gBACH,QAAQ,WAAW,CAAC,+CAElB,mBAAmB,CAAC,CAAC,CAAC;EAiEpC;AAKM;;;;;;;;;QApKD;;;;WAIG;0BADU,OAAO,CAAC,MAAM,CAAC;QAa5B;;;;;WAKG;qBAFQ,GAAG,GACD,OAAO,CAAC,IAAI,CAAC;QAa1B;;;;;WAKG;0BAFQ,GAAG,GACD,OAAO,CAAC,IAAI,CAAC;;sBA+BjB,CAAC,eACH,OAAO,WAAW,CAAC,+CAEjB,WAAW,CAAC,CAAC,CAAC;uBAoBd,CAAC,gBACH,QAAQ,WAAW,CAAC,+CAElB,mBAAmB,CAAC,CAAC,CAAC;EA6EpC;;;;;qBAhOY,CAAC,IACD;IAAE,cAAc,IAAI,OAAO,WAAW,CAAC,CAAC;IAAC,cAAc,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAAC,KAAK,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAAC,UAAU,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE;wBAIjJ,CAAC,IACD,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAA;CAAE;gCAI7D,CAAC,IACD,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,YAAY,CAAC,GAAG;IAAE,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE;2BAmGnE,UAAU,CAAC,OAAO,eAAe,CAAC;8BAuBlC,UAAU,CAAC,OAAO,iBAAiB,CAAC;+BA0BpC,UAAU,CAAC,OAAO,kBAAkB,CAAC;6BA/KzB,kBAAkB;iCADd,iDAAiD;6BAD/B,kBAAkB;4BAAlB,kBAAkB;kCAAlB,kBAAkB;yCAVzB,kBAAkB"}
|
|
@@ -12,6 +12,7 @@ import { E } from '@endo/eventual-send';
|
|
|
12
12
|
/**
|
|
13
13
|
* @import {TypedPattern, ERemote, Remote} from '@agoric/internal';
|
|
14
14
|
* @import {EMarshaller} from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
15
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -44,7 +45,7 @@ import { E } from '@endo/eventual-send';
|
|
|
44
45
|
/**
|
|
45
46
|
* Wrap a Publisher to record all the values to chain storage.
|
|
46
47
|
*
|
|
47
|
-
* @param {
|
|
48
|
+
* @param {Baggage} baggage
|
|
48
49
|
* @param {ERemote<EMarshaller>} marshaller
|
|
49
50
|
*/
|
|
50
51
|
export const prepareRecorder = (baggage, marshaller) => {
|
|
@@ -194,7 +195,7 @@ harden(defineERecorderKit);
|
|
|
194
195
|
* this should only be used when there is no need for an EventualRecorderKit.
|
|
195
196
|
* When there is, prepare the kinds separately and pass to the kit definers.
|
|
196
197
|
*
|
|
197
|
-
* @param {
|
|
198
|
+
* @param {Baggage} baggage
|
|
198
199
|
* @param {ERemote<EMarshaller>} marshaller
|
|
199
200
|
*/
|
|
200
201
|
export const prepareRecorderKit = (baggage, marshaller) => {
|
|
@@ -214,7 +215,7 @@ export const prepareRecorderKit = (baggage, marshaller) => {
|
|
|
214
215
|
* `makeRecorderKit` is suitable for making a durable `RecorderKit` which can be held in Exo state.
|
|
215
216
|
* `makeERecorderKit` is for closures that must return a `subscriber` synchronously but can defer the `recorder`.
|
|
216
217
|
*
|
|
217
|
-
* @param {
|
|
218
|
+
* @param {Baggage} baggage
|
|
218
219
|
* @param {ERemote<EMarshaller>} marshaller
|
|
219
220
|
*/
|
|
220
221
|
export const prepareRecorderKitMakers = (baggage, marshaller) => {
|
|
@@ -21,7 +21,7 @@ export const PublicTopicShape: import("@endo/patterns").Matcher;
|
|
|
21
21
|
* }} ResolvedPublicTopic
|
|
22
22
|
*/
|
|
23
23
|
export const TopicsRecordShape: import("@endo/patterns").Matcher;
|
|
24
|
-
export function makeRecorderTopic<T>(description: string, recorderKit:
|
|
24
|
+
export function makeRecorderTopic<T>(description: string, recorderKit: RecorderKit<T> | EventualRecorderKit<T>): PublicTopic<T>;
|
|
25
25
|
export type PublicTopic<T extends unknown> = {
|
|
26
26
|
description?: string;
|
|
27
27
|
subscriber: Subscriber<T>;
|
|
@@ -44,5 +44,7 @@ export type ResolvedTopicsRecord = {
|
|
|
44
44
|
[topicName: string]: ResolvedPublicTopic<unknown>;
|
|
45
45
|
};
|
|
46
46
|
import { SubscriberShape } from '@agoric/notifier';
|
|
47
|
+
import type { RecorderKit } from './recorder.js';
|
|
48
|
+
import type { EventualRecorderKit } from './recorder.js';
|
|
47
49
|
import type { Remote } from '@agoric/internal';
|
|
48
50
|
//# sourceMappingURL=topics.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topics.d.ts","sourceRoot":"","sources":["topics.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"topics.d.ts","sourceRoot":"","sources":["topics.js"],"names":[],"mappings":";AAYA,gEAME;AAEF;;;;;;;GAOG;AAEH;;;;;;;;;;;GAWG;AAEH,iEAA0E;AAoBnE,kCALM,CAAC,eACH,MAAM,eACN,YAAY,CAAC,CAAC,GAAG,oBAAoB,CAAC,CAAC,GACrC,WAAW,CAAC,CAAC,CAAC,CAU1B;wBAjDqB,CAAC,oBACV;IACR,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAC1B,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;CAC3B;;;;;;gCAQkB,CAAC,oBACV;IACR,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;CACrB;2BAMS;IACZ,CAAK,SAAS,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;CAC3C;mCAIS;IACZ,CAAK,SAAS,EAAE,MAAM,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;CACnD;gCArD4B,kBAAkB;iCAMpB,eAAe;yCACP,eAAe;4BAF5B,kBAAkB"}
|
|
@@ -4,6 +4,8 @@ import { E } from '@endo/far';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @import {Remote} from '@agoric/internal';
|
|
7
|
+
* @import {RecorderKit} from './recorder.js';
|
|
8
|
+
* @import {EventualRecorderKit} from './recorder.js';
|
|
7
9
|
*/
|
|
8
10
|
|
|
9
11
|
export { SubscriberShape };
|
|
@@ -55,7 +57,7 @@ export const TopicsRecordShape = M.recordOf(M.string(), PublicTopicShape);
|
|
|
55
57
|
/**
|
|
56
58
|
* @template T
|
|
57
59
|
* @param {string} description
|
|
58
|
-
* @param {
|
|
60
|
+
* @param {RecorderKit<T> | EventualRecorderKit<T>} recorderKit
|
|
59
61
|
* @returns {PublicTopic<T>}
|
|
60
62
|
*/
|
|
61
63
|
export const makeRecorderTopic = (description, recorderKit) => {
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
* null } want: { Asset: null } }.
|
|
17
17
|
*
|
|
18
18
|
* @param {ZCF<{
|
|
19
|
-
* timeAuthority:
|
|
19
|
+
* timeAuthority: TimerService,
|
|
20
20
|
* winnerPriceOption?: FIRST_PRICE | SECOND_PRICE,
|
|
21
21
|
* bidDuration: bigint,
|
|
22
22
|
* }>} zcf
|
|
23
23
|
*/
|
|
24
24
|
export function start(zcf: ZCF<{
|
|
25
|
-
timeAuthority:
|
|
25
|
+
timeAuthority: TimerService;
|
|
26
26
|
winnerPriceOption?: "first-price" | "second-price";
|
|
27
27
|
bidDuration: bigint;
|
|
28
28
|
}>): {
|
|
@@ -34,7 +34,7 @@ export function start(zcf: ZCF<{
|
|
|
34
34
|
winnerPriceOption: string;
|
|
35
35
|
closesAfter: any;
|
|
36
36
|
bidDuration: bigint;
|
|
37
|
-
timeAuthority:
|
|
37
|
+
timeAuthority: TimerService;
|
|
38
38
|
bids: string | any[];
|
|
39
39
|
};
|
|
40
40
|
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
@@ -45,7 +45,7 @@ export function start(zcf: ZCF<{
|
|
|
45
45
|
winnerPriceOption: string;
|
|
46
46
|
closesAfter: any;
|
|
47
47
|
bidDuration: bigint;
|
|
48
|
-
timeAuthority:
|
|
48
|
+
timeAuthority: TimerService;
|
|
49
49
|
bids: string | any[];
|
|
50
50
|
};
|
|
51
51
|
}>, undefined>>;
|
|
@@ -57,7 +57,7 @@ export function start(zcf: ZCF<{
|
|
|
57
57
|
winnerPriceOption: string;
|
|
58
58
|
closesAfter: any;
|
|
59
59
|
bidDuration: bigint;
|
|
60
|
-
timeAuthority:
|
|
60
|
+
timeAuthority: TimerService;
|
|
61
61
|
bids: string | any[];
|
|
62
62
|
};
|
|
63
63
|
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
@@ -68,11 +68,15 @@ export function start(zcf: ZCF<{
|
|
|
68
68
|
winnerPriceOption: string;
|
|
69
69
|
closesAfter: any;
|
|
70
70
|
bidDuration: bigint;
|
|
71
|
-
timeAuthority:
|
|
71
|
+
timeAuthority: TimerService;
|
|
72
72
|
bids: string | any[];
|
|
73
73
|
};
|
|
74
74
|
}>;
|
|
75
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* @import {TimerService} from '@agoric/time';
|
|
78
|
+
*/
|
|
76
79
|
export const FIRST_PRICE: "first-price";
|
|
77
80
|
export const SECOND_PRICE: "second-price";
|
|
81
|
+
import type { TimerService } from '@agoric/time';
|
|
78
82
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,2BANW,GAAG,CAAC;IACZ,aAAa,EAAE,YAAY,CAAC;IAC5B,iBAAiB,CAAC,EAAE,8BAA0B,CAAC;IAC/C,WAAW,EAAE,MAAM,CAAC;CACnB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyHJ;AArJD;;GAEG;AAEH,0BAAoB,aAAa,CAAC;AAClC,2BAAqB,cAAc,CAAC;kCAJL,cAAc"}
|
|
@@ -14,6 +14,10 @@ import * as secondPriceLogic from './secondPriceLogic.js';
|
|
|
14
14
|
import * as firstPriceLogic from './firstPriceLogic.js';
|
|
15
15
|
import { assertBidSeat } from './assertBidSeat.js';
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* @import {TimerService} from '@agoric/time';
|
|
19
|
+
*/
|
|
20
|
+
|
|
17
21
|
const FIRST_PRICE = 'first-price';
|
|
18
22
|
const SECOND_PRICE = 'second-price';
|
|
19
23
|
|
|
@@ -35,7 +39,7 @@ const SECOND_PRICE = 'second-price';
|
|
|
35
39
|
* null } want: { Asset: null } }.
|
|
36
40
|
*
|
|
37
41
|
* @param {ZCF<{
|
|
38
|
-
* timeAuthority:
|
|
42
|
+
* timeAuthority: TimerService,
|
|
39
43
|
* winnerPriceOption?: FIRST_PRICE | SECOND_PRICE,
|
|
40
44
|
* bidDuration: bigint,
|
|
41
45
|
* }>} zcf
|
|
@@ -11,11 +11,12 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @param {ZCF} zcf
|
|
13
13
|
* @param {unknown} _privateArgs
|
|
14
|
-
* @param {
|
|
14
|
+
* @param {Baggage} instanceBaggage
|
|
15
15
|
*/
|
|
16
|
-
export function start(zcf: ZCF, _privateArgs: unknown, instanceBaggage:
|
|
16
|
+
export function start(zcf: ZCF, _privateArgs: unknown, instanceBaggage: Baggage): Promise<{
|
|
17
17
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
18
18
|
makeInvitation(): Promise<globalThis.Invitation<unknown, never>>;
|
|
19
19
|
}>;
|
|
20
20
|
}>;
|
|
21
|
+
import type { Baggage } from '@agoric/vat-data';
|
|
21
22
|
//# sourceMappingURL=coveredCall-durable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coveredCall-durable.d.ts","sourceRoot":"","sources":["coveredCall-durable.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coveredCall-durable.d.ts","sourceRoot":"","sources":["coveredCall-durable.js"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;GAcG;AACH,2BAJW,GAAG,gBACH,OAAO,mBACP,OAAO;;;;GA6EjB;6BA/FyB,kBAAkB"}
|
|
@@ -4,6 +4,10 @@ import { prepareExo, prepareExoClass } from '@agoric/vat-data';
|
|
|
4
4
|
import { swapExact } from '../contractSupport/index.js';
|
|
5
5
|
import { isAfterDeadlineExitRule, OfferHandlerI } from '../typeGuards.js';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* @import {Baggage} from '@agoric/vat-data';
|
|
9
|
+
*/
|
|
10
|
+
|
|
7
11
|
const sellSeatExpiredMsg = 'The covered call option is expired.';
|
|
8
12
|
|
|
9
13
|
/**
|
|
@@ -19,7 +23,7 @@ const sellSeatExpiredMsg = 'The covered call option is expired.';
|
|
|
19
23
|
*
|
|
20
24
|
* @param {ZCF} zcf
|
|
21
25
|
* @param {unknown} _privateArgs
|
|
22
|
-
* @param {
|
|
26
|
+
* @param {Baggage} instanceBaggage
|
|
23
27
|
*/
|
|
24
28
|
const start = async (zcf, _privateArgs, instanceBaggage) => {
|
|
25
29
|
// for use by upgraded versions.
|