@agoric/inter-protocol 0.16.2-dev-a3bdfb1.0 → 0.16.2-dev-fa844b5.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 (39) hide show
  1. package/package.json +17 -17
  2. package/src/auction/auctionBook.d.ts +2 -2
  3. package/src/auction/auctioneer.d.ts +4 -4
  4. package/src/auction/offerBook.d.ts +2 -2
  5. package/src/auction/params.d.ts +4 -4
  6. package/src/contractSupport.d.ts +3 -3
  7. package/src/contractSupport.d.ts.map +1 -1
  8. package/src/econCommitteeCharter.d.ts +2 -2
  9. package/src/feeDistributor.d.ts +47 -31
  10. package/src/feeDistributor.d.ts.map +1 -1
  11. package/src/feeDistributor.js +5 -1
  12. package/src/price/fluxAggregatorContract.d.ts +6 -6
  13. package/src/price/fluxAggregatorKit.d.ts +4 -4
  14. package/src/price/priceOracleKit.d.ts +1 -1
  15. package/src/price/roundsManager.d.ts +7 -7
  16. package/src/proposals/econ-behaviors.d.ts +83 -83
  17. package/src/proposals/price-feed-proposal.d.ts +2 -2
  18. package/src/proposals/utils.d.ts +1 -1
  19. package/src/provisionPool.d.ts +22 -22
  20. package/src/provisionPoolKit.d.ts +120 -118
  21. package/src/provisionPoolKit.d.ts.map +1 -1
  22. package/src/provisionPoolKit.js +7 -2
  23. package/src/psm/psm.d.ts +7 -7
  24. package/src/reserve/assetReserve.d.ts +6 -6
  25. package/src/reserve/assetReserveKit.d.ts +2 -2
  26. package/src/vaultFactory/burn.d.ts +1 -1
  27. package/src/vaultFactory/burn.d.ts.map +1 -1
  28. package/src/vaultFactory/liquidation.d.ts +32 -32
  29. package/src/vaultFactory/math.d.ts +4 -4
  30. package/src/vaultFactory/orderedVaultStore.d.ts +55 -55
  31. package/src/vaultFactory/params.d.ts +18 -18
  32. package/src/vaultFactory/prioritizedVaults.d.ts +132 -132
  33. package/src/vaultFactory/types.d.ts +15 -15
  34. package/src/vaultFactory/vault.d.ts +24 -24
  35. package/src/vaultFactory/vaultDirector.d.ts +49 -49
  36. package/src/vaultFactory/vaultFactory.d.ts +37 -37
  37. package/src/vaultFactory/vaultHolder.d.ts +36 -36
  38. package/src/vaultFactory/vaultKit.d.ts +15 -15
  39. package/src/vaultFactory/vaultManager.d.ts +89 -89
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/inter-protocol",
3
- "version": "0.16.2-dev-a3bdfb1.0+a3bdfb1",
3
+ "version": "0.16.2-dev-fa844b5.0+fa844b5",
4
4
  "description": "Core cryptoeconomy contracts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -31,29 +31,29 @@
31
31
  },
32
32
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
33
33
  "dependencies": {
34
- "@agoric/assert": "0.6.1-dev-a3bdfb1.0+a3bdfb1",
35
- "@agoric/ertp": "0.16.3-dev-a3bdfb1.0+a3bdfb1",
36
- "@agoric/governance": "0.10.4-dev-a3bdfb1.0+a3bdfb1",
37
- "@agoric/internal": "0.3.3-dev-a3bdfb1.0+a3bdfb1",
38
- "@agoric/notifier": "0.6.3-dev-a3bdfb1.0+a3bdfb1",
39
- "@agoric/store": "0.9.3-dev-a3bdfb1.0+a3bdfb1",
40
- "@agoric/time": "0.3.3-dev-a3bdfb1.0+a3bdfb1",
41
- "@agoric/vat-data": "0.5.3-dev-a3bdfb1.0+a3bdfb1",
42
- "@agoric/vats": "0.15.2-dev-a3bdfb1.0+a3bdfb1",
43
- "@agoric/zoe": "0.26.3-dev-a3bdfb1.0+a3bdfb1",
34
+ "@agoric/assert": "0.6.1-dev-fa844b5.0+fa844b5",
35
+ "@agoric/ertp": "0.16.3-dev-fa844b5.0+fa844b5",
36
+ "@agoric/governance": "0.10.4-dev-fa844b5.0+fa844b5",
37
+ "@agoric/internal": "0.3.3-dev-fa844b5.0+fa844b5",
38
+ "@agoric/notifier": "0.6.3-dev-fa844b5.0+fa844b5",
39
+ "@agoric/store": "0.9.3-dev-fa844b5.0+fa844b5",
40
+ "@agoric/time": "0.3.3-dev-fa844b5.0+fa844b5",
41
+ "@agoric/vat-data": "0.5.3-dev-fa844b5.0+fa844b5",
42
+ "@agoric/vats": "0.15.2-dev-fa844b5.0+fa844b5",
43
+ "@agoric/zoe": "0.26.3-dev-fa844b5.0+fa844b5",
44
44
  "@endo/captp": "^4.1.0",
45
45
  "@endo/eventual-send": "^1.2.0",
46
46
  "@endo/far": "^1.1.0",
47
47
  "@endo/marshal": "^1.4.0",
48
48
  "@endo/nat": "^5.0.5",
49
49
  "@endo/promise-kit": "^1.1.0",
50
- "jessie.js": "^0.3.2"
50
+ "jessie.js": "^0.3.4"
51
51
  },
52
52
  "devDependencies": {
53
- "@agoric/smart-wallet": "0.5.4-dev-a3bdfb1.0+a3bdfb1",
54
- "@agoric/swingset-liveslots": "0.10.3-dev-a3bdfb1.0+a3bdfb1",
55
- "@agoric/swingset-vat": "0.32.3-dev-a3bdfb1.0+a3bdfb1",
56
- "@agoric/zone": "0.2.3-dev-a3bdfb1.0+a3bdfb1",
53
+ "@agoric/smart-wallet": "0.5.4-dev-fa844b5.0+fa844b5",
54
+ "@agoric/swingset-liveslots": "0.10.3-dev-fa844b5.0+fa844b5",
55
+ "@agoric/swingset-vat": "0.32.3-dev-fa844b5.0+fa844b5",
56
+ "@agoric/zone": "0.2.3-dev-fa844b5.0+fa844b5",
57
57
  "@endo/bundle-source": "^3.2.1",
58
58
  "@endo/init": "^1.1.0",
59
59
  "@endo/promise-kit": "^1.1.0",
@@ -85,5 +85,5 @@
85
85
  "typeCoverage": {
86
86
  "atLeast": 95.9
87
87
  },
88
- "gitHead": "a3bdfb1c173ae46a9979322269aa45aa75c2343b"
88
+ "gitHead": "fa844b51a10ab02af61af19207c164c99c2d8d8c"
89
89
  }
@@ -1,5 +1,5 @@
1
1
  export function makeOfferSpecShape(bidBrand: Brand<'nat'>, collateralBrand: Brand<'nat'>): import("@endo/patterns").Matcher;
2
- export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit): (bidBrand: Brand<"nat">, collateralBrand: Brand<"nat">, pAuthority: PriceAuthority, node: StorageNode) => import("@endo/exo/src/exo-makers.js").Guarded<{
2
+ export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorderKit): (bidBrand: globalThis.Brand<"nat">, collateralBrand: globalThis.Brand<"nat">, pAuthority: PriceAuthority, node: StorageNode) => import("@endo/exo").Guarded<{
3
3
  /**
4
4
  * @param {Amount<'nat'>} assetAmount
5
5
  * @param {ZCFSeat} sourceSeat
@@ -9,7 +9,7 @@ export function prepareAuctionBook(baggage: Baggage, zcf: ZCF, makeRecorderKit:
9
9
  * sell more if there is more than one supplier of collateral, and
10
10
  * they request inconsistent limits.
11
11
  */
12
- addAssets(assetAmount: Amount<'nat'>, sourceSeat: ZCFSeat, proceedsGoal?: Amount<"nat"> | undefined): void;
12
+ addAssets(assetAmount: Amount<'nat'>, sourceSeat: ZCFSeat, proceedsGoal?: globalThis.Amount<"nat"> | undefined): void;
13
13
  /** @type {(reduction: Ratio) => void} */
14
14
  settleAtNewRate(reduction: Ratio): void;
15
15
  getCurrentPrice(): Ratio | null;
@@ -14,7 +14,7 @@ export function start(zcf: ZCF<GovernanceTerms<{
14
14
  PriceLockPeriod: "relativeTime";
15
15
  }> & {
16
16
  timerService: import('@agoric/time').TimerService;
17
- reservePublicFacet: GovernedPublicFacet<import("@endo/exo/src/exo-makers.js").Guarded<{
17
+ reservePublicFacet: GovernedPublicFacet<import("@endo/exo").Guarded<{
18
18
  makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
19
19
  getPublicTopics(): {
20
20
  metrics: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("../reserve/assetReserveKit.js").MetricsNotification>;
@@ -27,7 +27,7 @@ export function start(zcf: ZCF<GovernanceTerms<{
27
27
  marshaller: Marshaller;
28
28
  }, baggage: Baggage): Promise<{
29
29
  publicFacet: GovernedPublicFacet<{
30
- getElectorate: () => Amount<"set">;
30
+ getElectorate: () => globalThis.Amount<"set">;
31
31
  getStartFrequency: () => RelativeTime;
32
32
  getClockStep: () => RelativeTime;
33
33
  getStartingRate: () => bigint;
@@ -37,13 +37,13 @@ export function start(zcf: ZCF<GovernanceTerms<{
37
37
  getPriceLockPeriod: () => RelativeTime;
38
38
  /** @param {Brand<'nat'>} collateralBrand */
39
39
  makeBidInvitation(collateralBrand: Brand<'nat'>): Promise<Invitation<string, ({
40
- maxBuy: Amount<"nat">;
40
+ maxBuy: globalThis.Amount<"nat">;
41
41
  } & {
42
42
  exitAfterBuy?: boolean | undefined;
43
43
  } & {
44
44
  offerPrice: Ratio;
45
45
  }) | ({
46
- maxBuy: Amount<"nat">;
46
+ maxBuy: globalThis.Amount<"nat">;
47
47
  } & {
48
48
  exitAfterBuy?: boolean | undefined;
49
49
  } & {
@@ -1,4 +1,4 @@
1
- export function prepareScaledBidBook(baggage: Baggage): (bidScalingPattern: any, collateralBrand: Brand<AssetKind>) => import("@endo/exo/src/exo-makers.js").Guarded<{
1
+ export function prepareScaledBidBook(baggage: Baggage): (bidScalingPattern: any, collateralBrand: globalThis.Brand) => import("@endo/exo").Guarded<{
2
2
  /**
3
3
  * @param {ZCFSeat} seat
4
4
  * @param {Ratio} bidScaling
@@ -13,7 +13,7 @@ export function prepareScaledBidBook(baggage: Baggage): (bidScalingPattern: any,
13
13
  updateReceived(key: any, sold: any): void;
14
14
  exitAllSeats(): void;
15
15
  }>;
16
- export function preparePriceBook(baggage: Baggage): (priceRatioPattern: any, collateralBrand: Brand<AssetKind>) => import("@endo/exo/src/exo-makers.js").Guarded<{
16
+ export function preparePriceBook(baggage: Baggage): (priceRatioPattern: any, collateralBrand: globalThis.Brand) => import("@endo/exo").Guarded<{
17
17
  /**
18
18
  * @param {ZCFSeat} seat
19
19
  * @param {Ratio} price
@@ -37,7 +37,7 @@ export namespace auctioneerParamTypes {
37
37
  export function makeAuctioneerParams({ ElectorateInvitationAmount, StartFrequency, ClockStep, LowestRate, StartingRate, DiscountStep, AuctionStartDelay, PriceLockPeriod, TimerBrand, }: AuctionParams): {
38
38
  Electorate: {
39
39
  type: "invitation";
40
- value: Amount<"set">;
40
+ value: globalThis.Amount<"set">;
41
41
  };
42
42
  StartFrequency: {
43
43
  type: "relativeTime";
@@ -81,14 +81,14 @@ export function makeAuctioneerParamManager(publisherKit: import('@agoric/notifie
81
81
  export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _marshaller }: {
82
82
  storageNode: ERef<StorageNode>;
83
83
  marshaller: ERef<Marshaller<unknown>>;
84
- }, timer: ERef<import("@agoric/time").TimerService>, priceAuthority: ERef<PriceAuthority>, reservePublicFacet: ERef<GovernedPublicFacet<import("@endo/exo/src/exo-makers").Guarded<{
84
+ }, timer: ERef<import("@agoric/time").TimerService>, priceAuthority: ERef<PriceAuthority>, reservePublicFacet: ERef<GovernedPublicFacet<import("@endo/exo").Guarded<{
85
85
  makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
86
86
  getPublicTopics(): {
87
87
  metrics: import("@agoric/zoe/src/contractSupport").PublicTopic<import("../reserve/assetReserveKit").MetricsNotification>;
88
88
  };
89
89
  }>>>, params: AuctionParams): {
90
90
  priceAuthority: ERef<PriceAuthority>;
91
- reservePublicFacet: ERef<GovernedPublicFacet<import("@endo/exo/src/exo-makers").Guarded<{
91
+ reservePublicFacet: ERef<GovernedPublicFacet<import("@endo/exo").Guarded<{
92
92
  makeAddCollateralInvitation(): Promise<Invitation<string, never>>;
93
93
  getPublicTopics(): {
94
94
  metrics: import("@agoric/zoe/src/contractSupport").PublicTopic<import("../reserve/assetReserveKit").MetricsNotification>;
@@ -98,7 +98,7 @@ export function makeGovernedTerms({ storageNode: _storageNode, marshaller: _mars
98
98
  governedParams: {
99
99
  Electorate: {
100
100
  type: "invitation";
101
- value: Amount<"set">;
101
+ value: globalThis.Amount<"set">;
102
102
  };
103
103
  StartFrequency: {
104
104
  type: "relativeTime";
@@ -6,13 +6,13 @@ export namespace ratioPattern {
6
6
  export { amountPattern as numerator };
7
7
  export { amountPattern as denominator };
8
8
  }
9
- export function addSubtract<K extends AssetKind>(base: Amount<K>, gain: Amount<K>, loss: Amount<K>): Amount<K>;
10
- export function subtractToEmpty<T extends Amount<AssetKind>>(left: T, right: T): T;
9
+ export function addSubtract<K extends globalThis.AssetKind>(base: globalThis.Amount<K>, gain: globalThis.Amount<K>, loss: globalThis.Amount<K>): globalThis.Amount<K>;
10
+ export function subtractToEmpty<T extends globalThis.Amount>(left: T, right: T): T;
11
11
  export function assertOnlyKeys(proposal: ProposalRecord, keys: string[]): void;
12
12
  export function allEmpty(amounts: Amount[]): boolean;
13
13
  export function checkDebtLimit(debtLimit: Amount<'nat'>, totalDebt: Amount<'nat'>, toMint: Amount<'nat'>): void;
14
14
  export function makeNatAmountShape(brand: Brand, min?: bigint | undefined): {
15
- brand: Brand<AssetKind>;
15
+ brand: globalThis.Brand;
16
16
  value: import("@endo/patterns").Matcher;
17
17
  };
18
18
  export function quoteAsRatio(quoteAmount: Pick<PriceDescription, 'amountIn' | 'amountOut'>): Ratio;
@@ -1 +1 @@
1
- {"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AA2BO,+GACgD;AAQhD,mFAGkD;AAQlD,yCAHI,cAAc,QACd,MAAM,EAAE,QAQlB;AAMM,kCAHI,MAAM,EAAE,GACN,OAAO,CAInB;AAQM,0CALI,OAAO,KAAK,CAAC,aACb,OAAO,KAAK,CAAC,UACb,OAAO,KAAK,CAAC,QASvB;AAoBM,0CAHI,KAAK;;;EAIsC;AAG/C,0CADK,KAAK,gBAAgB,EAAE,UAAU,GAAG,WAAW,CAAC,SAEO;;;;;wBApBrD,kBAAkB,CAAC,CAAC;yBACpB,mBAAmB,CAAC,CAAC;;;;;;sBAMrB,UAAU,CAAC,CAAC;uBACZ,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"contractSupport.d.ts","sourceRoot":"","sources":["contractSupport.js"],"names":[],"mappings":";;;;;;;;AA2BO,sKACgD;AAQhD,mFAGkD;AAQlD,yCAHI,cAAc,QACd,MAAM,EAAE,QAQlB;AAMM,kCAHI,MAAM,EAAE,GACN,OAAO,CAInB;AAQM,0CALI,OAAO,KAAK,CAAC,aACb,OAAO,KAAK,CAAC,UACb,OAAO,KAAK,CAAC,QASvB;AAoBM,0CAHI,KAAK;;;EAIsC;AAG/C,0CADK,KAAK,gBAAgB,EAAE,UAAU,GAAG,WAAW,CAAC,SAEO;;;;;wBApBrD,kBAAkB,CAAC,CAAC;yBACpB,mBAAmB,CAAC,CAAC;;;;;;sBAMrB,UAAU,CAAC,CAAC;uBACZ,iBAAiB,CAAC,CAAC"}
@@ -10,7 +10,7 @@ export const meta: ContractMeta;
10
10
  export function start(zcf: ZCF<{
11
11
  binaryVoteCounterInstallation: Installation;
12
12
  }>, privateArgs: undefined, baggage: import('@agoric/vat-data').Baggage): Promise<{
13
- creatorFacet: import("@endo/exo/src/exo-makers").Guarded<{
13
+ creatorFacet: import("@endo/exo").Guarded<{
14
14
  /**
15
15
  * @param {Instance} governedInstance
16
16
  * @param {GovernorCreatorFacet<any>} governorFacet
@@ -18,7 +18,7 @@ export function start(zcf: ZCF<{
18
18
  */
19
19
  addInstance: (governedInstance: Instance, governorFacet: GovernorCreatorFacet<any>, label?: string | undefined) => void;
20
20
  makeCharterMemberInvitation: () => Promise<Invitation<{
21
- invitationMakers: import("@endo/exo/src/exo-makers").Guarded<{
21
+ invitationMakers: import("@endo/exo").Guarded<{
22
22
  VoteOnParamChange: () => Promise<Invitation<ContractGovernanceVoteResult, ParamChangesOfferArgs>>;
23
23
  VoteOnPauseOffers: (instance: any, strings: any, deadline: any) => Promise<Invitation<ContractGovernanceVoteResult, undefined>>;
24
24
  VoteOnApiCall: (instance: Instance, methodName: string, methodArgs: string[], deadline: import('@agoric/time').TimestampValue) => Promise<Invitation<ContractGovernanceVoteResult, undefined>>;
@@ -1,9 +1,9 @@
1
1
  /** @type {ContractMeta} */
2
2
  export const meta: ContractMeta;
3
3
  export function makeContractFeeCollector(zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>): {
4
- collectFees: () => Promise<Payment<any>>;
4
+ collectFees: () => Promise<globalThis.Payment<any>>;
5
5
  } & import("@endo/eventual-send").RemotableBrand<{}, {
6
- collectFees: () => Promise<Payment<any>>;
6
+ collectFees: () => Promise<globalThis.Payment<any>>;
7
7
  }>;
8
8
  export function startDistributing(schedulePayments: () => Promise<unknown>, timerService: ERef<TimerService>, collectionInterval?: RelativeTime | undefined): void;
9
9
  export function makeShareConfig(destinations?: Record<string, ERef<FeeDestination>> | undefined, keywordShares?: Record<string, bigint> | undefined): {
@@ -13,17 +13,17 @@ export function makeShareConfig(destinations?: Record<string, ERef<FeeDestinatio
13
13
  }[];
14
14
  totalShares: bigint;
15
15
  };
16
- export function sharePayment(payment: Payment<'nat'>, issuer: ERef<Issuer<"nat">>, { shares, totalShares }: ShareConfig): Promise<void>;
17
- export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
16
+ export function sharePayment(payment: Payment<'nat'>, issuer: ERef<globalThis.Issuer<"nat">>, { shares, totalShares }: ShareConfig): Promise<void>;
17
+ export function makeFeeDistributor(feeIssuer: ERef<globalThis.Issuer<"nat">>, terms: {
18
18
  keywordShares: Record<Keyword, NatValue>;
19
19
  timerService: ERef<TimerService>;
20
20
  collectionInterval: RelativeTime;
21
21
  }): {
22
22
  creatorFacet: {
23
23
  makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
24
- collectFees: () => Promise<Payment<any>>;
24
+ collectFees: () => Promise<globalThis.Payment<any>>;
25
25
  } & import("@endo/eventual-send").RemotableBrand<{}, {
26
- collectFees: () => Promise<Payment<any>>;
26
+ collectFees: () => Promise<globalThis.Payment<any>>;
27
27
  }>;
28
28
  /**
29
29
  * Start distributing fees from this collector.
@@ -32,11 +32,15 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
32
32
  * @param {ERef<FeeCollector>} collectorP
33
33
  */
34
34
  startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
35
- /** @param {import('@endo/far').EOnly<DepositFacet>} depositFacet */
36
- makeDepositFacetDestination: (depositFacet: import('@endo/far').EOnly<DepositFacet>) => {
37
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
35
+ /**
36
+ * @param {import('@endo/far').EOnly<
37
+ * import('@agoric/ertp/exported.js').DepositFacet
38
+ * >} depositFacet
39
+ */
40
+ makeDepositFacetDestination: (depositFacet: import('@endo/far').EOnly<import('@agoric/ertp/exported.js').DepositFacet>) => {
41
+ pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
38
42
  } & import("@endo/eventual-send").RemotableBrand<{}, {
39
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
43
+ pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
40
44
  }>;
41
45
  /**
42
46
  * Create a destination that generates invitations and makes Zoe offers.
@@ -58,9 +62,9 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
58
62
  setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
59
63
  } & import("@endo/eventual-send").RemotableBrand<{}, {
60
64
  makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
61
- collectFees: () => Promise<Payment<any>>;
65
+ collectFees: () => Promise<globalThis.Payment<any>>;
62
66
  } & import("@endo/eventual-send").RemotableBrand<{}, {
63
- collectFees: () => Promise<Payment<any>>;
67
+ collectFees: () => Promise<globalThis.Payment<any>>;
64
68
  }>;
65
69
  /**
66
70
  * Start distributing fees from this collector.
@@ -69,11 +73,15 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
69
73
  * @param {ERef<FeeCollector>} collectorP
70
74
  */
71
75
  startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
72
- /** @param {import('@endo/far').EOnly<DepositFacet>} depositFacet */
73
- makeDepositFacetDestination: (depositFacet: import('@endo/far').EOnly<DepositFacet>) => {
74
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
76
+ /**
77
+ * @param {import('@endo/far').EOnly<
78
+ * import('@agoric/ertp/exported.js').DepositFacet
79
+ * >} depositFacet
80
+ */
81
+ makeDepositFacetDestination: (depositFacet: import('@endo/far').EOnly<import('@agoric/ertp/exported.js').DepositFacet>) => {
82
+ pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
75
83
  } & import("@endo/eventual-send").RemotableBrand<{}, {
76
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
84
+ pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
77
85
  }>;
78
86
  /**
79
87
  * Create a destination that generates invitations and makes Zoe offers.
@@ -102,16 +110,16 @@ export function makeFeeDistributor(feeIssuer: ERef<Issuer<"nat">>, terms: {
102
110
  getKeywordShares: () => Record<string, bigint>;
103
111
  }>;
104
112
  };
105
- export function start(zcf: ZCF<[feeIssuer: ERef<Issuer<"nat">>, terms: {
113
+ export function start(zcf: ZCF<[feeIssuer: ERef<globalThis.Issuer<"nat">>, terms: {
106
114
  keywordShares: Record<Keyword, NatValue>;
107
115
  timerService: ERef<TimerService>;
108
116
  collectionInterval: RelativeTime;
109
117
  }][1]>): Promise<{
110
118
  creatorFacet: {
111
119
  makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
112
- collectFees: () => Promise<Payment<any>>;
120
+ collectFees: () => Promise<globalThis.Payment<any>>;
113
121
  } & import("@endo/eventual-send").RemotableBrand<{}, {
114
- collectFees: () => Promise<Payment<any>>;
122
+ collectFees: () => Promise<globalThis.Payment<any>>;
115
123
  }>;
116
124
  /**
117
125
  * Start distributing fees from this collector.
@@ -120,11 +128,15 @@ export function start(zcf: ZCF<[feeIssuer: ERef<Issuer<"nat">>, terms: {
120
128
  * @param {ERef<FeeCollector>} collectorP
121
129
  */
122
130
  startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
123
- /** @param {import('@endo/far').EOnly<DepositFacet>} depositFacet */
124
- makeDepositFacetDestination: (depositFacet: import('@endo/far').EOnly<DepositFacet>) => {
125
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
131
+ /**
132
+ * @param {import('@endo/far').EOnly<
133
+ * import('@agoric/ertp/exported.js').DepositFacet
134
+ * >} depositFacet
135
+ */
136
+ makeDepositFacetDestination: (depositFacet: import('@endo/far').EOnly<import('@agoric/ertp/exported.js').DepositFacet>) => {
137
+ pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
126
138
  } & import("@endo/eventual-send").RemotableBrand<{}, {
127
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
139
+ pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
128
140
  }>;
129
141
  /**
130
142
  * Create a destination that generates invitations and makes Zoe offers.
@@ -146,9 +158,9 @@ export function start(zcf: ZCF<[feeIssuer: ERef<Issuer<"nat">>, terms: {
146
158
  setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
147
159
  } & import("@endo/eventual-send").RemotableBrand<{}, {
148
160
  makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
149
- collectFees: () => Promise<Payment<any>>;
161
+ collectFees: () => Promise<globalThis.Payment<any>>;
150
162
  } & import("@endo/eventual-send").RemotableBrand<{}, {
151
- collectFees: () => Promise<Payment<any>>;
163
+ collectFees: () => Promise<globalThis.Payment<any>>;
152
164
  }>;
153
165
  /**
154
166
  * Start distributing fees from this collector.
@@ -157,11 +169,15 @@ export function start(zcf: ZCF<[feeIssuer: ERef<Issuer<"nat">>, terms: {
157
169
  * @param {ERef<FeeCollector>} collectorP
158
170
  */
159
171
  startPeriodicCollection: (debugName: string, collectorP: ERef<FeeCollector>) => Promise<PeriodicFeeCollector>;
160
- /** @param {import('@endo/far').EOnly<DepositFacet>} depositFacet */
161
- makeDepositFacetDestination: (depositFacet: import('@endo/far').EOnly<DepositFacet>) => {
162
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
172
+ /**
173
+ * @param {import('@endo/far').EOnly<
174
+ * import('@agoric/ertp/exported.js').DepositFacet
175
+ * >} depositFacet
176
+ */
177
+ makeDepositFacetDestination: (depositFacet: import('@endo/far').EOnly<import('@agoric/ertp/exported.js').DepositFacet>) => {
178
+ pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
163
179
  } & import("@endo/eventual-send").RemotableBrand<{}, {
164
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
180
+ pushPayment: (payment: any, _issuer: any) => Promise<globalThis.Amount>;
165
181
  }>;
166
182
  /**
167
183
  * Create a destination that generates invitations and makes Zoe offers.
@@ -191,7 +207,7 @@ export function start(zcf: ZCF<[feeIssuer: ERef<Issuer<"nat">>, terms: {
191
207
  }>;
192
208
  }>;
193
209
  export type FeeCollector = {
194
- collectFees: () => ERef<Payment<"nat">>;
210
+ collectFees: () => ERef<globalThis.Payment<"nat">>;
195
211
  };
196
212
  export type PeriodicFeeCollector = {
197
213
  getCollector: () => FeeCollector;
@@ -202,7 +218,7 @@ export type CollectibleContractFacet = {
202
218
  makeCollectFeesInvitation: () => Promise<Invitation<string, never>>;
203
219
  };
204
220
  export type FeeDestination = {
205
- pushPayment: (payment: Payment, issuer: ERef<Issuer<AssetKind>>) => Promise<Amount>;
221
+ pushPayment: (payment: Payment, issuer: ERef<globalThis.Issuer>) => Promise<Amount>;
206
222
  };
207
223
  export type ShareConfig = ReturnType<typeof makeShareConfig>;
208
224
  export type Fe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/D,WAAW,sBAAsB,CAAC;yCAiOlC,WAAW,yBAAyB,CAAC,CAAC,cAAc,CAAC;wCACrD,WAAW,yBAAyB,CAAC,CAAC,aAAa,CAAC;kCAvUnC,cAAc;kCADd,cAAc"}
@@ -267,7 +267,11 @@ export const makeFeeDistributor = (feeIssuer, terms) => {
267
267
  return periodicCollector;
268
268
  },
269
269
 
270
- /** @param {import('@endo/far').EOnly<DepositFacet>} depositFacet */
270
+ /**
271
+ * @param {import('@endo/far').EOnly<
272
+ * import('@agoric/ertp/exported.js').DepositFacet
273
+ * >} depositFacet
274
+ */
271
275
  makeDepositFacetDestination: depositFacet => {
272
276
  return Far(`DepositFacetDestination`, {
273
277
  pushPayment: async (payment, _issuer) => {
@@ -9,7 +9,7 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
9
9
  brandIn: Brand<'nat'>;
10
10
  brandOut: Brand<'nat'>;
11
11
  description: string;
12
- unitAmountIn?: Amount<"nat"> | undefined;
12
+ unitAmountIn?: globalThis.Amount<"nat"> | undefined;
13
13
  }>, privateArgs: {
14
14
  highPrioritySendersManager?: ({
15
15
  add: (rawNamespace: string, address: string) => Promise<void>;
@@ -23,7 +23,7 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
23
23
  namesByAddressAdmin: ERef<import("@agoric/vats").NameAdmin>;
24
24
  storageNode: StorageNode;
25
25
  }, baggage: Baggage): Promise<{
26
- creatorFacet: import("@endo/exo/src/exo-makers.js").Guarded<{
26
+ creatorFacet: import("@endo/exo").Guarded<{
27
27
  getParamMgrRetriever: () => {
28
28
  get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
29
29
  Electorate: "invitation";
@@ -34,21 +34,21 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
34
34
  }>;
35
35
  }>;
36
36
  getInvitation: (name: any) => Promise<Invitation<unknown, undefined>>;
37
- getLimitedCreatorFacet: () => import("@endo/exo/src/exo-makers.js").Guarded<{
37
+ getLimitedCreatorFacet: () => import("@endo/exo").Guarded<{
38
38
  makeOracleInvitation(oracleId: string): Promise<Invitation<{
39
39
  invitationMakers: {
40
40
  PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
41
41
  } & import("@endo/eventual-send").RemotableBrand<{}, {
42
42
  PushPrice(result: import("./roundsManager.js").PriceRound): Promise<Invitation<void, undefined>>;
43
43
  }>;
44
- oracle: import("@endo/exo/src/exo-makers.js").Guarded<{
44
+ oracle: import("@endo/exo").Guarded<{
45
45
  pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
46
46
  getStatus(): import("./priceOracleKit.js").OracleStatus;
47
47
  }>;
48
48
  }, undefined>>;
49
49
  removeOracle(oracleId: string): Promise<void>;
50
50
  getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
51
- initOracle(oracleId: string): Promise<import("@endo/exo/src/exo-makers.js").GuardedKit<{
51
+ initOracle(oracleId: string): Promise<import("@endo/exo").GuardedKit<{
52
52
  admin: {
53
53
  disable(): void;
54
54
  };
@@ -63,7 +63,7 @@ export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig
63
63
  getGovernedApiNames: () => string[];
64
64
  setOfferFilter: (strings: any) => Promise<void>;
65
65
  }>;
66
- publicFacet: import("@endo/exo/src/exo-makers.js").Guarded<{
66
+ publicFacet: import("@endo/exo").Guarded<{
67
67
  getPriceAuthority(): PriceAuthority;
68
68
  getPublicTopics(): {
69
69
  quotes: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<PriceDescription>;
@@ -3,8 +3,8 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
3
3
  timer: TimerService;
4
4
  brandIn: Brand<'nat'>;
5
5
  brandOut: Brand<'nat'>;
6
- unitAmountIn?: Amount<"nat"> | undefined;
7
- }>, timerPresence: TimerService, quoteKit: import('./roundsManager.js').QuoteKit, storageNode: StorageNode, makeDurablePublishKit: () => PublishKit<any>, makeRecorder: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder): Promise<() => import("@endo/exo/src/exo-makers.js").GuardedKit<{
6
+ unitAmountIn?: globalThis.Amount<"nat"> | undefined;
7
+ }>, timerPresence: TimerService, quoteKit: import('./roundsManager.js').QuoteKit, storageNode: StorageNode, makeDurablePublishKit: () => PublishKit<any>, makeRecorder: import('@agoric/zoe/src/contractSupport/recorder.js').MakeRecorder): Promise<() => import("@endo/exo").GuardedKit<{
8
8
  creator: {
9
9
  /**
10
10
  * An "oracle invitation" is an invitation to be able to submit data to
@@ -24,7 +24,7 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
24
24
  /** @param {import('./roundsManager.js').PriceRound} result */
25
25
  PushPrice(result: import('./roundsManager.js').PriceRound): Promise<Invitation<void, undefined>>;
26
26
  }>;
27
- oracle: import("@endo/exo/src/exo-makers.js").Guarded<{
27
+ oracle: import("@endo/exo").Guarded<{
28
28
  pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
29
29
  getStatus(): import("./priceOracleKit.js").OracleStatus;
30
30
  }>;
@@ -33,7 +33,7 @@ export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkCon
33
33
  removeOracle(oracleId: string): Promise<void>;
34
34
  getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
35
35
  /** @param {string} oracleId */
36
- initOracle(oracleId: string): Promise<import("@endo/exo/src/exo-makers.js").GuardedKit<{
36
+ initOracle(oracleId: string): Promise<import("@endo/exo").GuardedKit<{
37
37
  admin: {
38
38
  disable(): void;
39
39
  };
@@ -1,5 +1,5 @@
1
1
  export const INVITATION_MAKERS_DESC: "oracle invitation";
2
- export function prepareOracleAdminKit(baggage: any): (args_0: HeldParams) => import("@endo/exo/src/exo-makers.js").GuardedKit<{
2
+ export function prepareOracleAdminKit(baggage: any): (args_0: HeldParams) => import("@endo/exo").GuardedKit<{
3
3
  admin: {
4
4
  disable(): void;
5
5
  };
@@ -9,7 +9,7 @@ export function prepareRoundsManagerKit(baggage: any): (args_0: Readonly<import(
9
9
  timerPresence: TimerService;
10
10
  }> & {
11
11
  unitAmountIn: Amount<'nat'>;
12
- }) => import("@endo/exo/src/exo-makers.js").GuardedKit<{
12
+ }) => import("@endo/exo").GuardedKit<{
13
13
  helper: {
14
14
  /** @param {bigint} roundId */
15
15
  acceptingSubmissions(roundId: bigint): boolean;
@@ -78,8 +78,8 @@ export function prepareRoundsManagerKit(baggage: any): (args_0: Readonly<import(
78
78
  contract: {
79
79
  /** @param {PriceQuoteValue} quote */
80
80
  authenticateQuote(quote: PriceQuoteValue): Promise<{
81
- quoteAmount: Amount<"set">;
82
- quotePayment: Payment<"set">;
81
+ quoteAmount: globalThis.Amount<"set">;
82
+ quotePayment: globalThis.Payment<"set">;
83
83
  }>;
84
84
  /**
85
85
  * @param {object} param0
@@ -90,11 +90,11 @@ export function prepareRoundsManagerKit(baggage: any): (args_0: Readonly<import(
90
90
  overrideValueOut?: number | undefined;
91
91
  timestamp?: Timestamp | undefined;
92
92
  }): ((priceQuery: any) => Promise<{
93
- quoteAmount: Amount<"set">;
94
- quotePayment: Payment<"set">;
93
+ quoteAmount: globalThis.Amount<"set">;
94
+ quotePayment: globalThis.Payment<"set">;
95
95
  }> | undefined) & import("@endo/eventual-send").RemotableBrand<{}, (priceQuery: any) => Promise<{
96
- quoteAmount: Amount<"set">;
97
- quotePayment: Payment<"set">;
96
+ quoteAmount: globalThis.Amount<"set">;
97
+ quotePayment: globalThis.Payment<"set">;
98
98
  }> | undefined>;
99
99
  /**
100
100
  * @param {OracleStatus} status