@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.
Files changed (67) hide show
  1. package/bundles/bundle-contractFacet-js-meta.json +195 -195
  2. package/package.json +14 -14
  3. package/src/contractFacet/vatRoot.d.ts +2 -2
  4. package/src/contractFacet/zcfMint.d.ts +2 -2
  5. package/src/contractFacet/zcfMint.d.ts.map +1 -1
  6. package/src/contractFacet/zcfZygote.d.ts +1 -1
  7. package/src/contractSupport/durability.d.ts +1 -1
  8. package/src/contractSupport/durability.d.ts.map +1 -1
  9. package/src/contractSupport/prepare-ownable.d.ts +2 -2
  10. package/src/contractSupport/prepare-ownable.d.ts.map +1 -1
  11. package/src/contractSupport/priceAuthority.d.ts +3 -3
  12. package/src/contractSupport/priceAuthorityInitial.d.ts +1 -1
  13. package/src/contractSupport/priceAuthorityQuoteMint.d.ts +1 -1
  14. package/src/contractSupport/priceAuthorityTransform.d.ts +7 -7
  15. package/src/contractSupport/priceQuote.d.ts +2 -2
  16. package/src/contractSupport/recorder.d.ts +8 -8
  17. package/src/contractSupport/recorder.d.ts.map +1 -1
  18. package/src/contractSupport/safeMath.d.ts.map +1 -1
  19. package/src/contractSupport/statistics.d.ts +1 -1
  20. package/src/contractSupport/statistics.d.ts.map +1 -1
  21. package/src/contractSupport/topics.d.ts.map +1 -1
  22. package/src/contractSupport/types.d.ts +3 -3
  23. package/src/contractSupport/zoeHelpers.d.ts.map +1 -1
  24. package/src/contracts/auction/index.d.ts +1 -1
  25. package/src/contracts/callSpread/calculateShares.d.ts +1 -1
  26. package/src/contracts/callSpread/calculateShares.d.ts.map +1 -1
  27. package/src/contracts/callSpread/percent.d.ts +2 -2
  28. package/src/contracts/callSpread/percent.d.ts.map +1 -1
  29. package/src/contracts/callSpread/position.d.ts +2 -2
  30. package/src/contracts/callSpread/pricedCallSpread.d.ts +4 -4
  31. package/src/contracts/callSpread/types.d.ts +2 -2
  32. package/src/contracts/coveredCall-durable.d.ts +1 -1
  33. package/src/contracts/loan/types.d.ts +10 -10
  34. package/src/contracts/otcDesk.d.ts +2 -2
  35. package/src/contracts/priceAggregator.d.ts +4 -4
  36. package/src/contracts/priceAggregatorTypes.d.ts +1 -1
  37. package/src/contracts/scaledPriceAuthority.d.ts +1 -1
  38. package/src/contracts/sellItems.d.ts +1 -1
  39. package/src/instanceRecordStorage.d.ts +1 -1
  40. package/src/internal-types.d.ts +8 -8
  41. package/src/issuerRecord.d.ts +1 -1
  42. package/src/issuerRecord.d.ts.map +1 -1
  43. package/src/issuerStorage.d.ts +3 -3
  44. package/src/issuerStorage.d.ts.map +1 -1
  45. package/src/makeHandle.d.ts.map +1 -1
  46. package/src/types.d.ts +1 -1
  47. package/src/zoeService/escrowStorage.d.ts +1 -1
  48. package/src/zoeService/feeMint.d.ts +1 -1
  49. package/src/zoeService/installationStorage.d.ts +2 -2
  50. package/src/zoeService/instanceAdminStorage.d.ts +2 -2
  51. package/src/zoeService/internal-types.d.ts +8 -8
  52. package/src/zoeService/makeInvitation.d.ts +1 -1
  53. package/src/zoeService/originalZoeSeat.d.ts +1 -1
  54. package/src/zoeService/startInstance.d.ts +2 -2
  55. package/src/zoeService/types.d.ts +19 -19
  56. package/src/zoeService/types.d.ts.map +1 -1
  57. package/src/zoeService/zoeSeat.d.ts +1 -1
  58. package/src/zoeService/zoeStorageManager.d.ts +1 -1
  59. package/tools/fakePriceAuthority.d.ts +2 -2
  60. package/tools/fakeVatAdmin.d.ts +3 -3
  61. package/tools/manualPriceAuthority.d.ts +3 -3
  62. package/tools/manualTimer.d.ts +1 -1
  63. package/tools/scriptedOracle.d.ts +1 -1
  64. package/tools/scriptedOracle.d.ts.map +1 -1
  65. package/tools/setup-zoe.d.ts.map +1 -1
  66. package/tools/types-ambient.d.ts +18 -18
  67. 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-de2008a.0+de2008a",
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-de2008a.0+de2008a",
47
- "@agoric/base-zone": "0.1.1-dev-de2008a.0+de2008a",
48
- "@agoric/ertp": "0.16.3-dev-de2008a.0+de2008a",
49
- "@agoric/internal": "0.3.3-dev-de2008a.0+de2008a",
50
- "@agoric/notifier": "0.6.3-dev-de2008a.0+de2008a",
51
- "@agoric/store": "0.9.3-dev-de2008a.0+de2008a",
52
- "@agoric/swingset-liveslots": "0.10.3-dev-de2008a.0+de2008a",
53
- "@agoric/swingset-vat": "0.32.3-dev-de2008a.0+de2008a",
54
- "@agoric/time": "0.3.3-dev-de2008a.0+de2008a",
55
- "@agoric/vat-data": "0.5.3-dev-de2008a.0+de2008a",
56
- "@agoric/zone": "0.2.3-dev-de2008a.0+de2008a",
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-de2008a.0+de2008a",
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": "de2008a11a0347ac9e920d79f56324d20a789ec0"
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<'set'>;
11
+ invitationIssuer: Issuer<"set">;
12
12
  privateArgs?: any;
13
- }, baggage: import('@agoric/vat-data').Baggage): Promise<import("@endo/eventual-send").RemotableBrand<{}, {}>>;
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>): globalThis.Amount<K>;
2
- export function prepareZcMint(zcfBaggage: import('@agoric/vat-data').Baggage, recordIssuer: {
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,uDAc7B;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,qDAalB"}
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<'set'>, testJigSetter: TestJigSetter, contractBundleCap: any, zcfBaggage?: import('@agoric/vat-data').Baggage): Promise<ZCFZygote>;
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('@agoric/vat-data').Baggage, key: string, makeValue: T, withValue?: ((value: Awaited<ReturnType<T>>) => void) | undefined): Promise<Awaited<ReturnType<T>>>;
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,uDAoBjB;AAWM,sCALI,GAAG,wCAEH,MAAM,GACJ,OAAO,CAInB;AAiCM,2BAFmD,CAAC,6CAFhD,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,sEAyB/B;AAgBM,iCAFiC,CAAC,8BAJ9B,OAAO,kBAAkB,EAAE,OAAO,OAClC,MAAM,gEAE6B,IAAI,gDAejD"}
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('@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, undefined>;
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,4DAMkF,CAAC;;EA0DnG"}
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<'set'>;
18
+ quoteIssuer: Issuer<"set">;
19
19
  notifier: ERef<Notifier<unknown>>;
20
20
  timer: ERef<TimerService>;
21
21
  createQuote: PriceQuoteCreate;
22
- actualBrandIn: Brand<'nat'>;
23
- actualBrandOut: Brand<'nat'>;
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<'nat'>, brandOut: Brand<'nat'>): PriceAuthority;
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('@agoric/vat-data').Baggage): ERef<globalThis.Mint<"set">>;
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<'set'>, amountIn: Amount<'nat'>, amountOut: Amount<'nat'>, timer: ERef<TimerService>, timestamp: import('@agoric/time').Timestamp, quoteMint: ERef<globalThis.Mint<"set">>): Promise<PriceQuote>;
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<'nat'>;
6
- sourceBrandOut: Brand<'nat'>;
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<'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;
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('@agoric/time').Timestamp;
6
- export function unitAmount(brand: Brand<'nat'>): Promise<globalThis.Amount<"nat">>;
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('@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<{
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('@endo/far').FarRef<StorageNode>>, valueShape?: TypedMatcher<T> | undefined) => RecorderKit<T>;
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('@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>>): {
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('@endo/far').FarRef<StorageNode>>, valueShape?: TypedMatcher<T> | undefined) => RecorderKit<T>;
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('@endo/far').FarRef<StorageNode>>, valueShape?: TypedMatcher<T> | undefined) => RecorderKit<T>;
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('@endo/far').FarRef<StorageNode>>;
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>, 'subscriber'> & {
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,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AAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,QAAQ"}
@@ -1,4 +1,4 @@
1
- export function calculateMedian<T>(samples: T[], math: TypedMath<T>): T | undefined;
1
+ export function calculateMedian<T>(samples: Array<T>, math: TypedMath<T>): T | undefined;
2
2
  export type TypedMath<T> = {
3
3
  add: (a: T, b: T) => T;
4
4
  divide: (a: T, b: bigint) => T;
@@ -1 +1 @@
1
- {"version":3,"file":"statistics.d.ts","sourceRoot":"","sources":["statistics.js"],"names":[],"mappings":"AAgBO,gCAFM,CAAC,mDA0Bb;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
+ {"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,wHAYhB;wBA3B2B,CAAC;kBADV,MAAM;gBACR,UAAU,CAAC,CAAC,CAAC;;;2BAQjB;IACZ,CAAK,SAAS,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;CAC3C;gCA5B4B,kBAAkB"}
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<'nat'>;
60
- denominator: Amount<'nat'>;
59
+ numerator: Amount<"nat">;
60
+ denominator: Amount<"nat">;
61
61
  };
62
- type ScaleAmount = (amount: Amount<'nat'>, ratio: Ratio) => Amount<'nat'>;
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;A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BAA0B;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"}
@@ -22,7 +22,7 @@
22
22
  * }>} zcf
23
23
  */
24
24
  export function start(zcf: ZCF<{
25
- timeAuthority: import('@agoric/time').TimerService;
25
+ timeAuthority: import("@agoric/time").TimerService;
26
26
  winnerPriceOption?: "first-price" | "second-price";
27
27
  bidDuration: bigint;
28
28
  }>): {
@@ -1,2 +1,2 @@
1
- export function calculateShares(collateralBrand: globalThis.Brand, price: globalThis.Amount<"nat">, strikePrice1: globalThis.Amount<"nat">, strikePrice2: globalThis.Amount<"nat">): CalculateSharesReturn;
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":"AAeM,2MAyBN"}
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: globalThis.Brand): Ratio;
2
- export function make0Percent(brand: globalThis.Brand): Ratio;
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":"AAe+9B,+DAAsE;AAAW,6DAAoE"}
1
+ {"version":3,"file":"percent.d.ts","sourceRoot":"","sources":["percent.js"],"names":[],"mappings":"sCAemgC,KAAK;oCAA0E,KAAK"}
@@ -4,7 +4,7 @@
4
4
  * @type {{ LONG: 'long', SHORT: 'short' }}
5
5
  */
6
6
  export const Position: {
7
- LONG: 'long';
8
- SHORT: 'short';
7
+ LONG: "long";
8
+ SHORT: "short";
9
9
  };
10
10
  //# sourceMappingURL=position.d.ts.map
@@ -44,12 +44,12 @@
44
44
  * }>} zcf
45
45
  */
46
46
  export function start(zcf: ZCF<{
47
- strikePrice1: Amount<'nat'>;
48
- strikePrice2: Amount<'nat'>;
49
- settlementAmount: Amount<'nat'>;
47
+ strikePrice1: Amount<"nat">;
48
+ strikePrice2: Amount<"nat">;
49
+ settlementAmount: Amount<"nat">;
50
50
  priceAuthority: PriceAuthority;
51
51
  expiration: bigint;
52
- underlyingAmount: Amount<'nat'>;
52
+ underlyingAmount: Amount<"nat">;
53
53
  }>): {
54
54
  creatorFacet: {
55
55
  makeInvitationPair: (longCollateralShare: any) => {
@@ -1,4 +1,4 @@
1
- type PositionKind = 'long' | 'short';
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<'nat'>, strikePrice1: Amount<'nat'>, strikePrice2: Amount<'nat'>) => CalculateSharesReturn;
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('@agoric/vat-data').Baggage): Promise<{
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('@agoric/time').TimestampRecord>;
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('@agoric/time').RelativeTime;
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<'nat'>;
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<'nat'>, interestRate: Ratio) => Amount<'nat'>;
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<'nat'>;
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('@agoric/time').RelativeTime;
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('@agoric/time').Timestamp;
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<'Instance'>;
123
+ autoswapInstance: Handle<"Instance">;
124
124
  priceAuthority: PriceAuthority;
125
125
  periodNotifier: PeriodNotifier;
126
126
  interestRate: bigint;
127
- interestPeriod: import('@agoric/time').RelativeTime;
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('@agoric/time').Timestamp;
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('@agoric/time').TimerService, deadline: any) => Promise<Payment>;
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('@agoric/time').TimerService, deadline: any) => Promise<Payment>;
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('@agoric/time').TimerService;
28
+ timer: import("@agoric/time").TimerService;
29
29
  POLL_INTERVAL: bigint;
30
- brandIn: Brand<'nat'>;
31
- brandOut: Brand<'nat'>;
32
- unitAmountIn: Amount<'nat'>;
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, 'creatorFacet' | 'publicFacet'>;
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('@agoric/vat-data').Baggage): Promise<{
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<'nat'>;
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('@agoric/vat-data').Baggage): (ir: InstanceRecord) => InstanceState;
1
+ export function makeInstanceRecordStorage(baggage: import("@agoric/vat-data").Baggage): (ir: InstanceRecord) => InstanceState;
2
2
  //# sourceMappingURL=instanceRecordStorage.d.ts.map
@@ -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('@agoric/vat-data').Baggage) => ZoeSeatAdminKit;
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('@agoric/swingset-vat').ShutdownWithFailure;
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('@agoric/swingset-vat').ShutdownWithFailure;
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('@agoric/swingset-vat').ShutdownWithFailure;
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<'nat'>;
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<'Seat'>;
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('@agoric/swingset-vat').ShutdownWithFailure, zcfBaggage: import('@agoric/vat-data').Baggage) => {
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
  };