@agoric/inter-protocol 0.17.0-u20.0 → 0.17.0-u21.0.1

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 (56) hide show
  1. package/package.json +23 -22
  2. package/src/auction/auctioneer.d.ts +1 -1
  3. package/src/auction/auctioneer.d.ts.map +1 -1
  4. package/src/auction/auctioneer.js +1 -1
  5. package/src/auction/offerBook.d.ts.map +1 -1
  6. package/src/auction/offerBook.js +1 -0
  7. package/src/auction/params.d.ts +1 -0
  8. package/src/auction/params.d.ts.map +1 -1
  9. package/src/auction/params.js +1 -0
  10. package/src/auction/scheduler.d.ts +1 -1
  11. package/src/auction/util.d.ts +1 -1
  12. package/src/auction/util.d.ts.map +1 -1
  13. package/src/c.log +1 -0
  14. package/src/feeDistributor.d.ts +17 -17
  15. package/src/price/fluxAggregatorContract.d.ts +2 -2
  16. package/src/price/fluxAggregatorContract.d.ts.map +1 -1
  17. package/src/price/fluxAggregatorKit.d.ts +1 -1
  18. package/src/price/roundsManager.d.ts +1 -1
  19. package/src/proposals/econ-behaviors.js +10 -1
  20. package/src/provisionPool.d.ts +3 -3
  21. package/src/provisionPool.d.ts.map +1 -1
  22. package/src/provisionPool.js +11 -9
  23. package/src/provisionPoolKit.d.ts +2 -2
  24. package/src/provisionPoolKit.d.ts.map +1 -1
  25. package/src/provisionPoolKit.js +93 -45
  26. package/src/psm/psm.d.ts +1 -1
  27. package/src/psm/psm.d.ts.map +1 -1
  28. package/src/reserve/assetReserve.d.ts +7 -0
  29. package/src/reserve/assetReserve.d.ts.map +1 -1
  30. package/src/reserve/assetReserve.js +3 -0
  31. package/src/reserve/assetReserveKit.d.ts +27 -0
  32. package/src/reserve/assetReserveKit.d.ts.map +1 -1
  33. package/src/reserve/assetReserveKit.js +108 -2
  34. package/src/vaultFactory/liquidation.d.ts +2 -0
  35. package/src/vaultFactory/liquidation.d.ts.map +1 -1
  36. package/src/vaultFactory/liquidation.js +5 -5
  37. package/src/vaultFactory/orderedVaultStore.d.ts +1 -0
  38. package/src/vaultFactory/orderedVaultStore.d.ts.map +1 -1
  39. package/src/vaultFactory/orderedVaultStore.js +4 -2
  40. package/src/vaultFactory/params.d.ts +4 -1
  41. package/src/vaultFactory/params.d.ts.map +1 -1
  42. package/src/vaultFactory/params.js +4 -1
  43. package/src/vaultFactory/prioritizedVaults.d.ts +4 -3
  44. package/src/vaultFactory/prioritizedVaults.d.ts.map +1 -1
  45. package/src/vaultFactory/prioritizedVaults.js +5 -2
  46. package/src/vaultFactory/storeUtils.d.ts +2 -2
  47. package/src/vaultFactory/storeUtils.d.ts.map +1 -1
  48. package/src/vaultFactory/vaultDirector.d.ts +43 -44
  49. package/src/vaultFactory/vaultDirector.d.ts.map +1 -1
  50. package/src/vaultFactory/vaultDirector.js +2 -1
  51. package/src/vaultFactory/vaultFactory.d.ts +6 -6
  52. package/src/vaultFactory/vaultFactory.d.ts.map +1 -1
  53. package/src/vaultFactory/vaultHolder.d.ts.map +1 -1
  54. package/src/vaultFactory/vaultManager.d.ts +2 -0
  55. package/src/vaultFactory/vaultManager.d.ts.map +1 -1
  56. package/src/vaultFactory/vaultManager.js +3 -2
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@agoric/inter-protocol",
3
- "version": "0.17.0-u20.0",
3
+ "version": "0.17.0-u21.0.1",
4
4
  "description": "Core cryptoeconomy contracts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "engines": {
8
- "node": "^18.12 || ^20.9"
8
+ "node": "^20.9 || ^22.11"
9
9
  },
10
10
  "scripts": {
11
11
  "build": "yarn build:bundles",
12
12
  "build:bundles": "node ./scripts/build-bundles.js",
13
- "prepack": "tsc --build tsconfig.build.json",
13
+ "prepack": "yarn run -T tsc --build tsconfig.build.json",
14
14
  "postpack": "git clean -f '*.d.ts*' '*.tsbuildinfo'",
15
15
  "test": "ava",
16
16
  "test:c8": "c8 --all $C8_OPTIONS ava",
17
17
  "test:xs": "exit 0",
18
18
  "lint-fix": "yarn lint:eslint --fix",
19
- "lint": "run-s --continue-on-error lint:*",
20
- "lint:eslint": "eslint .",
21
- "lint:types": "tsc"
19
+ "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
20
+ "lint:eslint": "yarn run -T eslint .",
21
+ "lint:types": "yarn run -T tsc"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
@@ -31,16 +31,17 @@
31
31
  },
32
32
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
33
33
  "dependencies": {
34
- "@agoric/ertp": "^0.16.3-u20.0",
35
- "@agoric/governance": "^0.10.4-u20.0",
36
- "@agoric/internal": "^0.4.0-u20.0",
37
- "@agoric/notifier": "^0.7.0-u20.0",
38
- "@agoric/store": "^0.9.3-u20.0",
39
- "@agoric/time": "^0.3.3-u20.0",
40
- "@agoric/vat-data": "^0.5.3-u20.0",
41
- "@agoric/vats": "^0.16.0-u20.0",
42
- "@agoric/zoe": "^0.27.0-u20.0",
43
- "@agoric/zone": "^0.3.0-u20.0",
34
+ "@agoric/base-zone": "0.1.1-u21.0.1",
35
+ "@agoric/ertp": "0.16.3-u21.0.1",
36
+ "@agoric/governance": "0.10.4-u21.0.1",
37
+ "@agoric/internal": "0.4.0-u21.0.1",
38
+ "@agoric/notifier": "0.7.0-u21.0.1",
39
+ "@agoric/store": "0.9.3-u21.0.1",
40
+ "@agoric/time": "0.3.3-u21.0.1",
41
+ "@agoric/vat-data": "0.5.3-u21.0.1",
42
+ "@agoric/vats": "0.16.0-u21.0.1",
43
+ "@agoric/zoe": "0.27.0-u21.0.1",
44
+ "@agoric/zone": "0.3.0-u21.0.1",
44
45
  "@endo/captp": "^4.4.5",
45
46
  "@endo/errors": "^1.2.10",
46
47
  "@endo/eventual-send": "^1.3.1",
@@ -51,15 +52,15 @@
51
52
  "jessie.js": "^0.3.4"
52
53
  },
53
54
  "devDependencies": {
54
- "@agoric/smart-wallet": "^0.5.4-u20.0",
55
- "@agoric/swingset-liveslots": "^0.10.3-u20.0",
56
- "@agoric/swingset-vat": "^0.33.0-u20.0",
55
+ "@agoric/smart-wallet": "0.5.4-u21.0.1",
56
+ "@agoric/swingset-liveslots": "0.10.3-u21.0.1",
57
+ "@agoric/swingset-vat": "0.33.0-u21.0.1",
57
58
  "@endo/bundle-source": "^4.0.0",
58
59
  "@endo/init": "^1.1.9",
59
60
  "@endo/promise-kit": "^1.1.10",
60
61
  "@fast-check/ava": "^1.1.5",
61
62
  "ava": "^5.3.0",
62
- "c8": "^10.1.2",
63
+ "c8": "^10.1.3",
63
64
  "deep-object-diff": "^1.1.9",
64
65
  "import-meta-resolve": "^4.1.0"
65
66
  },
@@ -82,7 +83,7 @@
82
83
  "access": "public"
83
84
  },
84
85
  "typeCoverage": {
85
- "atLeast": 95.68
86
+ "atLeast": 95.72
86
87
  },
87
- "gitHead": "8e4207fa19dabf76c1f91f8779b5b5b93570ecea"
88
+ "gitHead": "16519b2de1eb2afda2b4ec866f55eadd4bb18223"
88
89
  }
@@ -46,7 +46,7 @@ export function start(zcf: ZCF<GovernanceTerms<typeof auctioneerParamTypes> & {
46
46
  addBrand(issuer: Issuer<"nat">, kwd: Keyword): Promise<void>;
47
47
  /** @returns {Promise<import('./scheduler.js').FullSchedule>} */
48
48
  getSchedule(): Promise<import("./scheduler.js").FullSchedule>;
49
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
49
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
50
50
  /**
51
51
  * @param {Issuer<'nat'>} issuer
52
52
  * @param {Keyword} kwd
@@ -1 +1 @@
1
- {"version":3,"file":"auctioneer.d.ts","sourceRoot":"","sources":["auctioneer.js"],"names":[],"mappings":"AAoLO,yEAXI,MAAM,CAAC,KAAK,CAAC,YACb,MAAM,CAAC,KAAK,CAAC,YACb;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CA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;IAAC,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;CAAE,EAAE,kBAC/D,OAAO,kBACP,OAAO,qBAEP,MAAM,eAEN,OAAO,SACP,KAAK,6BAgNf;AAiBM,2BAdI,GAAG,CACT,eAAe,CAAC,OAAO,oBAAoB,CAAC,GAAG;IAC7C,YAAY,EAAE,OAAO,cAAc,EAAE,YAAY,CAAC;IAClD,kBAAkB,EAAE,uBAAuB,CAAC;IAC5C,cAAc,EAAE,cAAc,CAAC;CAChC,CACF,eACO;IACN,sBAAsB,EAAE,UAAU,CAAC;IACnC,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,UAAU,CAAC;CACxB,WACO,OAAO;;;;;;;;;;QAqOZ,4CAA4C;2CAAhC,KAAK,CAAC,KAAK,CAAC;;;;;;;;;;;;;kBApCT,MAAM,CAAC,KAAK,CAAC;;;;QAkG5B;;;WAGG;yBAFQ,MAAM,CAAC,KAAK,CAAC,OACb,OAAO;QAwBlB,gEAAgE;uBAAlD,OAAO,CAAC,OAAO,gBAAgB,EAAE,YAAY,CAAC;;QA1B5D;;;WAGG;yBAFQ,MAAM,CAAC,KAAK,CAAC,OACb,OAAO;QAwBlB,gEAAgE;uBAAlD,OAAO,CAAC,OAAO,gBAAgB,EAAE,YAAY,CAAC;;GAQjE;AAED,6DAA6D;AAC7D,yEAAyE;AACzE,2EAA2E;AAE3E,8DAAkE;iCAJpD,WAAW,OAAO,KAAK,CAAC;oCACxB,kBAAkB,CAAC,aAAa,CAAC;qCACjC,kBAAkB,CAAC,cAAc,CAAC;qCA1rBX,aAAa;oCAS2C,4BAA4B;6BAF/F,kBAAkB;gCACf,qCAAqC"}
@@ -36,8 +36,8 @@ import { AuctionState } from './util.js';
36
36
 
37
37
  /**
38
38
  * @import {TypedPattern} from '@agoric/internal';
39
+ * @import {MapStore} from '@agoric/store';
39
40
  * @import {Baggage} from '@agoric/vat-data';
40
- * @import {AdminFacet, InvitationAmount} from '@agoric/zoe';
41
41
  * @import {ContractOf} from '@agoric/zoe/src/zoeService/utils.js';
42
42
  * @import {PriceAuthority, PriceDescription, PriceQuote, PriceQuoteValue, PriceQuery,} from '@agoric/zoe/tools/types.js';
43
43
  */
@@ -1 +1 @@
1
- {"version":3,"file":"offerBook.d.ts","sourceRoot":"","sources":["offerBook.js"],"names":[],"mappings":"AAqDO,8CAFI,OAAO;IAkBZ;;;;;OAKG;cAJQ,OAAO,cACP,KAAK,UACL,MAAM,CAAC,KAAK,CAAC,gBACb,OAAO;IAsBlB,gCAAgC;4BAApB,KAAK;;;;;GAqCpB;AAcI,0CAFI,OAAO;IAkBZ;;;;;OAKG;cAJQ,OAAO,SACP,KAAK,UACL,MAAM,CAAC,KAAK,CAAC,gBACb,OAAO;;;;;;GA0DrB;2BAnMU;IACR,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACtB,MAAM,EAAE,QAAQ,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CACzB,GAAG;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,GAAG,CAC1B;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GACzC;IAAE,UAAU,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAC1C;6BAtBoB,kBAAkB;6BACb,gBAAgB"}
1
+ {"version":3,"file":"offerBook.d.ts","sourceRoot":"","sources":["offerBook.js"],"names":[],"mappings":"AAsDO,8CAFI,OAAO;IAkBZ;;;;;OAKG;cAJQ,OAAO,cACP,KAAK,UACL,MAAM,CAAC,KAAK,CAAC,gBACb,OAAO;IAsBlB,gCAAgC;4BAApB,KAAK;;;;;GAqCpB;AAcI,0CAFI,OAAO;IAkBZ;;;;;OAKG;cAJQ,OAAO,SACP,KAAK,UACL,MAAM,CAAC,KAAK,CAAC,gBACb,OAAO;;;;;;GA0DrB;2BAnMU;IACR,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;IACtB,MAAM,EAAE,QAAQ,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CACzB,GAAG;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,GAAG,CAC1B;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GACzC;IAAE,UAAU,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAC1C;6BAtBoB,kBAAkB;6BACb,gBAAgB"}
@@ -13,6 +13,7 @@ import {
13
13
  } from './sortedOffers.js';
14
14
 
15
15
  /**
16
+ * @import {MapStore} from '@agoric/store';
16
17
  * @import {Baggage} from '@agoric/vat-data';
17
18
  * @import {Key, Pattern} from '@endo/patterns';
18
19
  */
@@ -139,6 +139,7 @@ export type AuctionParams = {
139
139
  PriceLockPeriod: RelativeTime;
140
140
  TimerBrand: import("@agoric/time").TimerBrand;
141
141
  };
142
+ export type AuctionParamRecord = ReturnType<typeof makeAuctioneerParams>;
142
143
  export type AuctionParamManager = ReturnType<typeof makeAuctioneerParamManager>;
143
144
  import type { PriceAuthority } from '@agoric/zoe/tools/types.js';
144
145
  //# sourceMappingURL=params.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["params.js"],"names":[],"mappings":"AAQA;;;;GAIG;AAGH,+DAAyD;AAEzD;;;;;;GAMG;AACH,8BAA+B,gBAAgB,CAAC;AAChD,gDAAgD;AAChD,yBAA0B,WAAW,CAAC;AACtC,iFAAiF;AACjF,+BAAgC,cAAc,CAAC;AAC/C,4DAA4D;AAC5D,6BAA8B,YAAY,CAAC;AAC3C,4EAA4E;AAC5E,+BAAgC,cAAc,CAAC;AAC/C;;;GAGG;AACH,kCAAmC,mBAAmB,C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AO,kBAAkB,EAAE,kBAAkB,CAAC,2BAA2B,CAAC,OAC1E,GAAG,WACH,aAAa;;;;;;;;;GA0BvB;AAWM,0FANI;IAAE,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAAC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAA;CAAE,SAChE,IAAI,CAAC,OAAO,cAAc,EAAE,YAAY,CAAC,kBACzC,IAAI,CAAC,cAAc,CAAC,sBACpB,IAAI,CAAC,uBAAuB,CAAC,UAC7B,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBvB;;gCAzGa,MAAM,CAAC,KAAK,CAAC;oBACb,YAAY;eACZ,YAAY;kBACZ,MAAM;gBACN,MAAM;kBACN,MAAM;uBACN,YAAY;qBACZ,YAAY;gBACZ,OAAO,cAAc,EAAE,UAAU;;iCA0EjC,UAAU,CAAC,OAAO,oBAAoB,CAAC;kCA0BvC,UAAU,CAAC,OAAO,0BAA0B,CAAC;oCApKkC,4BAA4B"}
@@ -147,6 +147,7 @@ export const makeAuctioneerParamManager = (publisherKit, zcf, initial) => {
147
147
  );
148
148
  };
149
149
  harden(makeAuctioneerParamManager);
150
+ /** @typedef {ReturnType<typeof makeAuctioneerParams>} AuctionParamRecord */
150
151
 
151
152
  /**
152
153
  * @param {{ storageNode: ERef<StorageNode>; marshaller: ERef<Marshaller> }} caps
@@ -4,7 +4,7 @@ export function makeScheduler(auctionDriver: AuctionDriver, timer: import("@agor
4
4
  nextAuctionSchedule: Schedule | null;
5
5
  };
6
6
  getAuctionState: () => AuctionState;
7
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
7
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
8
8
  getSchedule: () => {
9
9
  liveAuctionSchedule: Schedule | null;
10
10
  nextAuctionSchedule: Schedule | null;
@@ -25,7 +25,7 @@ export function makeBrandedRatioPattern(numeratorAmountShape: {
25
25
  export function isScaledBidPriceHigher(bidScaling: Ratio, currentPrice: Ratio, oraclePrice: Ratio): boolean;
26
26
  /** @type {(quote: PriceQuote) => Ratio} */
27
27
  export const priceFrom: (quote: PriceQuote) => Ratio;
28
- export function makeCancelTokenMaker(name: any): () => import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>;
28
+ export function makeCancelTokenMaker(name: any): () => RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {}>;
29
29
  import type { Pattern } from '@endo/patterns';
30
30
  import type { PriceQuote } from '@agoric/zoe/tools/types.js';
31
31
  //# sourceMappingURL=util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":";;;2BAiBU,CAAC,OAAO,YAAY,EAAE,MAAM,OAAO,YAAY,CAAC;;;;;AAYnD,8DAHI;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,0BAChC;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE;;eADvB,KAAK;eAAS,OAAO;;;eACrB,KAAK;eAAS,OAAO;;EAUxC;AASM,mDANI,KAAK,gBACL,KAAK,eACL,KAAK,GACH,OAAO,CAI6C;AAEjE,2CAA2C;AAC3C,wBADW,CAAC,KAAK,EAAE,UAAU,KAAK,KAAK,CAKnC;AAEG,+KAIN;6BAlD8B,gBAAgB;gCAC8C,4BAA4B"}
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["util.js"],"names":[],"mappings":";;;2BAiBU,CAAC,OAAO,YAAY,EAAE,MAAM,OAAO,YAAY,CAAC;;;;;AAYnD,8DAHI;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,0BAChC;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE;;eADvB,KAAK;eAAS,OAAO;;;eACrB,KAAK;eAAS,OAAO;;EAUxC;AASM,mDANI,KAAK,gBACL,KAAK,eACL,KAAK,GACH,OAAO,CAI6C;AAEjE,2CAA2C;AAC3C,wBADW,CAAC,KAAK,EAAE,UAAU,KAAK,KAAK,CAKnC;AAEG,oJAIN;6BAlD8B,gBAAgB;gCAC8C,4BAA4B"}
package/src/c.log ADDED
@@ -0,0 +1 @@
1
+ make: *** No rule to make target `scenario2-run-chain'. Stop.
@@ -2,7 +2,7 @@
2
2
  export const meta: ContractMeta<typeof start>;
3
3
  export function makeContractFeeCollector(zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>): {
4
4
  collectFees: () => Promise<globalThis.Payment<any, any>>;
5
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
5
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
6
6
  collectFees: () => Promise<globalThis.Payment<any, any>>;
7
7
  }>;
8
8
  export function startDistributing(schedulePayments: () => Promise<unknown>, timerService: ERef<TimerService>, collectionInterval?: RelativeTime): void;
@@ -22,7 +22,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
22
22
  creatorFacet: {
23
23
  makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
24
24
  collectFees: () => Promise<globalThis.Payment<any, any>>;
25
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
25
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
26
26
  collectFees: () => Promise<globalThis.Payment<any, any>>;
27
27
  }>;
28
28
  /**
@@ -39,7 +39,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
39
39
  */
40
40
  makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/src/types.js").DepositFacet>) => {
41
41
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
42
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
42
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
43
43
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
44
44
  }>;
45
45
  /**
@@ -53,17 +53,17 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
53
53
  */
54
54
  makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
55
55
  pushPayment: (payment: any, issuer: any) => Promise<any>;
56
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
56
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
57
57
  pushPayment: (payment: any, issuer: any) => Promise<any>;
58
58
  }>;
59
59
  /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
60
60
  setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
61
61
  /** @param {Record<Keyword, bigint>} newShares */
62
62
  setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
63
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
63
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
64
64
  makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
65
65
  collectFees: () => Promise<globalThis.Payment<any, any>>;
66
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
66
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
67
67
  collectFees: () => Promise<globalThis.Payment<any, any>>;
68
68
  }>;
69
69
  /**
@@ -80,7 +80,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
80
80
  */
81
81
  makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/src/types.js").DepositFacet>) => {
82
82
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
83
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
83
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
84
84
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
85
85
  }>;
86
86
  /**
@@ -94,7 +94,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
94
94
  */
95
95
  makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
96
96
  pushPayment: (payment: any, issuer: any) => Promise<any>;
97
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
97
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
98
98
  pushPayment: (payment: any, issuer: any) => Promise<any>;
99
99
  }>;
100
100
  /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
@@ -105,7 +105,7 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
105
105
  publicFacet: {
106
106
  distributeFees: (payment: Payment<"nat">) => Promise<void>;
107
107
  getKeywordShares: () => Record<string, bigint>;
108
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
108
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
109
109
  distributeFees: (payment: Payment<"nat">) => Promise<void>;
110
110
  getKeywordShares: () => Record<string, bigint>;
111
111
  }>;
@@ -114,7 +114,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
114
114
  creatorFacet: {
115
115
  makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
116
116
  collectFees: () => Promise<globalThis.Payment<any, any>>;
117
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
117
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
118
118
  collectFees: () => Promise<globalThis.Payment<any, any>>;
119
119
  }>;
120
120
  /**
@@ -131,7 +131,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
131
131
  */
132
132
  makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/src/types.js").DepositFacet>) => {
133
133
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
134
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
134
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
135
135
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
136
136
  }>;
137
137
  /**
@@ -145,17 +145,17 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
145
145
  */
146
146
  makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
147
147
  pushPayment: (payment: any, issuer: any) => Promise<any>;
148
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
148
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
149
149
  pushPayment: (payment: any, issuer: any) => Promise<any>;
150
150
  }>;
151
151
  /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
152
152
  setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
153
153
  /** @param {Record<Keyword, bigint>} newShares */
154
154
  setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
155
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
155
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
156
156
  makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
157
157
  collectFees: () => Promise<globalThis.Payment<any, any>>;
158
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
158
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
159
159
  collectFees: () => Promise<globalThis.Payment<any, any>>;
160
160
  }>;
161
161
  /**
@@ -172,7 +172,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
172
172
  */
173
173
  makeDepositFacetDestination: (depositFacet: import("@endo/far").EOnly<import("@agoric/ertp/src/types.js").DepositFacet>) => {
174
174
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
175
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
175
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
176
176
  pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
177
177
  }>;
178
178
  /**
@@ -186,7 +186,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
186
186
  */
187
187
  makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[]) => {
188
188
  pushPayment: (payment: any, issuer: any) => Promise<any>;
189
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
189
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
190
190
  pushPayment: (payment: any, issuer: any) => Promise<any>;
191
191
  }>;
192
192
  /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
@@ -197,7 +197,7 @@ export function start(zcf: ZCF<Parameters<typeof makeFeeDistributor>[1]>): Promi
197
197
  publicFacet: {
198
198
  distributeFees: (payment: Payment<"nat">) => Promise<void>;
199
199
  getKeywordShares: () => Record<string, bigint>;
200
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
200
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
201
201
  distributeFees: (payment: Payment<"nat">) => Promise<void>;
202
202
  getKeywordShares: () => Record<string, bigint>;
203
203
  }>;
@@ -22,7 +22,7 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
22
22
  get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
23
23
  Electorate: "invitation";
24
24
  }>;
25
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
25
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
26
26
  get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
27
27
  Electorate: "invitation";
28
28
  }>;
@@ -32,7 +32,7 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
32
32
  makeOracleInvitation(oracleId: string): Promise<globalThis.Invitation<{
33
33
  invitationMakers: {
34
34
  PushPrice(result: import("./roundsManager.js").PriceRound): Promise<globalThis.Invitation<void, undefined>>;
35
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
35
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
36
36
  PushPrice(result: import("./roundsManager.js").PriceRound): Promise<globalThis.Invitation<void, undefined>>;
37
37
  }>;
38
38
  oracle: import("@endo/exo").Guarded<{
@@ -1 +1 @@
1
- {"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;GAGG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK,2BAlBI,GAAG,CACb,OAAW,wBAAwB,EAAE,eAAe,GAAG;IACjD,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC9B,CACF,eACO;IACN,0BAA0B,CAAC,EAAE,OAAO,0CAA0C,EAAE,sBAAsB,CAAC;IACvG,sBAAsB,EAAE,UAAU,CAAC;IACnC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7B,mBAAmB,EAAE,IAAI,CAAC,OAAO,cAAc,EAAE,SAAS,CAAC,CAAC;IAC5D,WAAW,EAAE,WAAW,CAAC;CAC1B,WACO,OAAO;;;;;;;;;;;;;;;6CAyIywF,oBAAoB;;6CAApB,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAJ9yF;0BAGa,OAAO,KAAK;kCAtLK,cAAc;6BADnB,kBAAkB"}
1
+ {"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAcA;;;GAGG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK,2BAlBI,GAAG,CACb,OAAW,wBAAwB,EAAE,eAAe,GAAG;IACjD,KAAK,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;CAC9B,CACF,eACO;IACN,0BAA0B,CAAC,EAAE,OAAO,0CAA0C,EAAE,sBAAsB,CAAC;IACvG,sBAAsB,EAAE,UAAU,CAAC;IACnC,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC7B,mBAAmB,EAAE,IAAI,CAAC,OAAO,cAAc,EAAE,SAAS,CAAC,CAAC;IAC5D,WAAW,EAAE,WAAW,CAAC;CAC1B,WACO,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqIjB;0BAGa,OAAO,KAAK;kCAtLK,cAAc;6BADnB,kBAAkB"}
@@ -20,7 +20,7 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
20
20
  invitationMakers: {
21
21
  /** @param {import('./roundsManager.js').PriceRound} result */
22
22
  PushPrice(result: import("./roundsManager.js").PriceRound): Promise<globalThis.Invitation<void, undefined>>;
23
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
23
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
24
24
  /** @param {import('./roundsManager.js').PriceRound} result */
25
25
  PushPrice(result: import("./roundsManager.js").PriceRound): Promise<globalThis.Invitation<void, undefined>>;
26
26
  }>;
@@ -92,7 +92,7 @@ export function prepareRoundsManagerKit(baggage: any): (args_0: Readonly<import(
92
92
  }): ((priceQuery: any) => Promise<{
93
93
  quoteAmount: import("@agoric/ertp").SetAmount<PriceDescription>;
94
94
  quotePayment: globalThis.Payment<"set", PriceDescription>;
95
- }> | undefined) & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (priceQuery: any) => Promise<{
95
+ }> | undefined) & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (priceQuery: any) => Promise<{
96
96
  quoteAmount: import("@agoric/ertp").SetAmount<PriceDescription>;
97
97
  quotePayment: globalThis.Payment<"set", PriceDescription>;
98
98
  }> | undefined>;
@@ -11,8 +11,17 @@ import { makeReserveTerms } from '../reserve/params.js';
11
11
  import { makeGovernedTerms as makeGovernedVFTerms } from '../vaultFactory/params.js';
12
12
 
13
13
  /**
14
+ * @import {GovernorCreatorFacet, GovernanceFacetKit, GovernorStartedInstallationKit} from '@agoric/governance/src/types.js';
14
15
  * @import {StartedInstanceKit} from '@agoric/zoe/src/zoeService/utils.js';
15
- * @import {AdminFacet, ContractOf, InvitationAmount, ZCFMint} from '@agoric/zoe';
16
+ * @import {AdminFacet} from '@agoric/zoe';
17
+ */
18
+
19
+ // Duplicated from vaultFactory/types-ambient.js to solve a CI problem.
20
+ // Not worth refactoring to DRY because vaultFactory is going away.
21
+ /**
22
+ * @typedef {object} InterestTiming
23
+ * @property {import('@agoric/time').RelativeTime} chargingPeriod in seconds
24
+ * @property {import('@agoric/time').RelativeTime} recordingPeriod in seconds
16
25
  */
17
26
 
18
27
  const trace = makeTracer('RunEconBehaviors', true);
@@ -21,7 +21,7 @@ export function start(zcf: ZCF<ProvisionTerms>, privateArgs: {
21
21
  } & {
22
22
  Electorate: "invitation";
23
23
  }>;
24
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
24
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
25
25
  get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
26
26
  PerAccountInitialAmount: "amount";
27
27
  } & {
@@ -48,8 +48,8 @@ export function start(zcf: ZCF<ProvisionTerms>, privateArgs: {
48
48
  getUnknown: (name: string) => any;
49
49
  getSubscription: () => globalThis.StoredSubscription<globalThis.GovernanceSubscriptionState>;
50
50
  getGovernedParams: () => globalThis.ERef<globalThis.ParamStateRecord>;
51
- getMetrics(): any;
52
- getPublicTopics(): any;
51
+ getMetrics(): Promise<any>;
52
+ getPublicTopics(): Promise<any>;
53
53
  }>;
54
54
  }>;
55
55
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"provisionPool.d.ts","sourceRoot":"","sources":["provisionPool.js"],"names":[],"mappings":"AAmBA;;;;;GAKG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAerB;AAsBK,2BAbI,IAAI,cAAc,CAAC,eACnB;IACN,QAAQ,EAAE,OAAO,WAAW,EAAE,IAAI,CACtC,OAAa,8BAA8B,EAAE,IAAI,CAC5C,CAAC;IACF,sBAAsB,EAAE,UAAU,CAAC;IACnC,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,QAAQ,GAAG,CAAC,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,uBAAuB,EAAE,mBAAmB,CAAC;IACtE,sBAAsB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7D,WACO,OAAO,kBAAkB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+CA2EguT,cAAc;kDAAuE,cAAc;;;;;;;GAH/2T;;;;6BAxFY,aAAa,GACzB,gBAAoB;IACd,uBAAuB,EAAE,QAAQ,CAAC;CACnC,CAAC;kCA1BwD,aAAa;yBAAb,aAAa;gCAAb,aAAa;6BAFlD,eAAe;4BACO,cAAc;2BAAd,cAAc;mCACC,aAAa;qCAC1C,iCAAiC"}
1
+ {"version":3,"file":"provisionPool.d.ts","sourceRoot":"","sources":["provisionPool.js"],"names":[],"mappings":"AAmBA;;;;;GAKG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAerB;AAsBK,2BAbI,IAAI,cAAc,CAAC,eACnB;IACN,QAAQ,EAAE,OAAO,WAAW,EAAE,IAAI,CACtC,OAAa,8BAA8B,EAAE,IAAI,CAC5C,CAAC;IACF,sBAAsB,EAAE,UAAU,CAAC;IACnC,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,QAAQ,GAAG,CAAC,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,uBAAuB,EAAE,mBAAmB,CAAC;IACtE,sBAAsB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CAC7D,WACO,OAAO,kBAAkB,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0E5C;;;;6BA1FY,aAAa,GACzB,gBAAoB;IACd,uBAAuB,EAAE,QAAQ,CAAC;CACnC,CAAC;kCA1BwD,aAAa;yBAAb,aAAa;gCAAb,aAAa;6BAFlD,eAAe;4BACO,cAAc;2BAAd,cAAc;mCACC,aAAa;qCAC1C,iCAAiC"}
@@ -93,33 +93,35 @@ export const start = async (zcf, privateArgs, baggage) => {
93
93
  makeBridgeProvisionTool,
94
94
  });
95
95
 
96
+ const poolBrand = /** @type {Brand<'nat'>} */ (
97
+ params.getPerAccountInitialAmount().brand
98
+ );
96
99
  const provisionPoolKit = await provideSingleton(
97
100
  baggage,
98
101
  'provisionPoolKit',
99
102
  () =>
100
103
  makeProvisionPoolKit({
101
- // XXX governance can change the brand of the amount but should only be able to change the value
102
- // NB: changing the brand will break this pool
103
- // @ts-expect-error XXX Brand AssetKind
104
- poolBrand: params.getPerAccountInitialAmount().brand,
104
+ poolBrand,
105
105
  storageNode: privateArgs.storageNode,
106
106
  }),
107
- kit => kit.helper.start({ metrics: metricsOverride }),
108
107
  );
108
+ provisionPoolKit.helper.start(poolBrand, { metrics: metricsOverride });
109
109
 
110
110
  const publicFacet = prepareExo(
111
111
  baggage,
112
112
  'Provisioning Pool public',
113
113
  M.interface('ProvisionPool', {
114
- getMetrics: M.call().returns(M.remotable('MetricsSubscriber')),
115
- getPublicTopics: M.call().returns(TopicsRecordShape),
114
+ getMetrics: M.callWhen().returns(M.remotable('MetricsSubscriber')),
115
+ getPublicTopics: M.callWhen().returns(TopicsRecordShape),
116
116
  ...publicMixinAPI,
117
117
  }),
118
118
  {
119
- getMetrics() {
119
+ async getMetrics() {
120
+ await null;
120
121
  return provisionPoolKit.public.getPublicTopics().metrics.subscriber;
121
122
  },
122
- getPublicTopics() {
123
+ async getPublicTopics() {
124
+ await null;
123
125
  return provisionPoolKit.public.getPublicTopics();
124
126
  },
125
127
  ...publicMixin,
@@ -40,7 +40,7 @@ export type PsmInstance = import("@agoric/zoe/src/zoeService/utils.js").Instance
40
40
  initialPoserInvitation: Invitation;
41
41
  storageNode: StorageNode;
42
42
  marshaller: Marshaller;
43
- }, baggage: import("@agoric/vat-data").Baggage) => Promise<{
43
+ }, baggage: Baggage) => Promise<{
44
44
  creatorFacet: import("@endo/exo").Guarded<{
45
45
  getParamMgrRetriever: () => {
46
46
  get: () => import("@agoric/governance/src/contractGovernance/typedParamManager").TypedParamManager<{
@@ -50,7 +50,7 @@ export type PsmInstance = import("@agoric/zoe/src/zoeService/utils.js").Instance
50
50
  } & {
51
51
  Electorate: "invitation";
52
52
  }>;
53
- } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
53
+ } & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
54
54
  get: () => import("@agoric/governance/src/contractGovernance/typedParamManager").TypedParamManager<{
55
55
  GiveMintedFee: "ratio";
56
56
  MintLimit: "amount";
@@ -1 +1 @@
1
- {"version":3,"file":"provisionPoolKit.d.ts","sourceRoot":"","sources":["provisionPoolKit.js"],"names":[],"mappings":"AAkFO,iDAFI,OAAO,cAAc,EAAE,IAAI;;yFA+d09B,WAAW,eAA6B,cAA2B;;;eAAo8C,CAAC;;;;0DAxS//E,8BAAwB,0CAEV,cACR,uCAGT,sCACO;;IArKP,iCAAiC;oBAArB,aAAa;GA6B5B;AAY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