@agoric/inter-protocol 0.16.2-dev-7cc5def.0 → 0.16.2-u11.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 (176) hide show
  1. package/CHANGELOG.md +1041 -0
  2. package/bundles/bundle-auctioneer-js-meta.json +722 -0
  3. package/bundles/bundle-auctioneer.js +1 -0
  4. package/bundles/bundle-econCommitteeCharter-js-meta.json +222 -242
  5. package/bundles/bundle-econCommitteeCharter.js +1 -1
  6. package/bundles/bundle-feeDistributor-js-meta.json +458 -0
  7. package/bundles/bundle-feeDistributor.js +1 -0
  8. package/bundles/bundle-fluxAggregatorKit-js-meta.json +327 -343
  9. package/bundles/bundle-fluxAggregatorKit.js +1 -1
  10. package/bundles/bundle-psm-js-meta.json +308 -328
  11. package/bundles/bundle-psm.js +1 -1
  12. package/bundles/bundle-reserve-js-meta.json +662 -0
  13. package/bundles/bundle-reserve.js +1 -0
  14. package/bundles/bundle-scaledPriceAuthority-js-meta.json +542 -0
  15. package/bundles/bundle-scaledPriceAuthority.js +1 -0
  16. package/bundles/bundle-vaultFactory-js-meta.json +790 -0
  17. package/bundles/bundle-vaultFactory.js +1 -0
  18. package/package.json +31 -31
  19. package/scripts/add-collateral-core.js +112 -0
  20. package/scripts/build-bundles.js +21 -5
  21. package/scripts/deploy-contracts.js +100 -0
  22. package/scripts/init-core.js +198 -0
  23. package/scripts/invite-committee-core.js +42 -0
  24. package/scripts/manual-price-feed.js +117 -0
  25. package/scripts/price-feed-core.js +104 -0
  26. package/scripts/start-local-chain.sh +84 -0
  27. package/src/auction/auctionBook.js +56 -68
  28. package/src/auction/auctioneer.js +44 -56
  29. package/src/auction/offerBook.js +11 -12
  30. package/src/auction/params.js +5 -3
  31. package/src/auction/scheduleMath.js +13 -13
  32. package/src/auction/scheduler.js +32 -22
  33. package/src/auction/sortedOffers.js +7 -8
  34. package/src/auction/util.js +4 -4
  35. package/src/clientSupport.js +96 -152
  36. package/src/contractSupport.js +5 -5
  37. package/src/econCommitteeCharter.js +15 -16
  38. package/src/feeDistributor.js +33 -34
  39. package/src/interest.js +14 -20
  40. package/src/price/fluxAggregatorContract.js +45 -51
  41. package/src/price/fluxAggregatorKit.js +32 -47
  42. package/src/price/priceOracleKit.js +13 -11
  43. package/src/price/roundsManager.js +64 -52
  44. package/src/proposals/addAssetToVault.js +3 -15
  45. package/src/proposals/committee-proposal.js +9 -5
  46. package/src/proposals/core-proposal.js +7 -7
  47. package/src/proposals/econ-behaviors.js +32 -57
  48. package/src/proposals/price-feed-proposal.js +26 -59
  49. package/src/proposals/startEconCommittee.js +1 -1
  50. package/src/proposals/startPSM.js +22 -32
  51. package/src/proposals/utils.js +7 -26
  52. package/src/psm/psm.js +63 -69
  53. package/src/reserve/assetReserve.js +18 -27
  54. package/src/reserve/assetReserveKit.js +22 -14
  55. package/src/typeGuards.js +13 -0
  56. package/src/vaultFactory/liquidation.js +17 -30
  57. package/src/vaultFactory/math.js +9 -8
  58. package/src/vaultFactory/orderedVaultStore.js +9 -6
  59. package/src/vaultFactory/params.js +18 -24
  60. package/src/vaultFactory/prioritizedVaults.js +2 -2
  61. package/src/vaultFactory/proceeds.js +18 -24
  62. package/src/vaultFactory/storeUtils.js +12 -8
  63. package/src/vaultFactory/types.js +28 -38
  64. package/src/vaultFactory/vault.js +89 -88
  65. package/src/vaultFactory/vaultDirector.js +41 -33
  66. package/src/vaultFactory/vaultFactory.js +26 -33
  67. package/src/vaultFactory/vaultHolder.js +13 -8
  68. package/src/vaultFactory/vaultKit.js +2 -3
  69. package/src/vaultFactory/vaultManager.js +120 -138
  70. package/src/auction/auctionBook.d.ts +0 -83
  71. package/src/auction/auctionBook.d.ts.map +0 -1
  72. package/src/auction/auctioneer.d.ts +0 -75
  73. package/src/auction/auctioneer.d.ts.map +0 -1
  74. package/src/auction/offerBook.d.ts +0 -72
  75. package/src/auction/offerBook.d.ts.map +0 -1
  76. package/src/auction/params.d.ts +0 -142
  77. package/src/auction/params.d.ts.map +0 -1
  78. package/src/auction/scheduleMath.d.ts +0 -4
  79. package/src/auction/scheduleMath.d.ts.map +0 -1
  80. package/src/auction/scheduler.d.ts +0 -49
  81. package/src/auction/scheduler.d.ts.map +0 -1
  82. package/src/auction/sortedOffers.d.ts +0 -8
  83. package/src/auction/sortedOffers.d.ts.map +0 -1
  84. package/src/auction/util.d.ts +0 -30
  85. package/src/auction/util.d.ts.map +0 -1
  86. package/src/clientSupport.d.ts +0 -167
  87. package/src/clientSupport.d.ts.map +0 -1
  88. package/src/collectFees.d.ts +0 -2
  89. package/src/collectFees.d.ts.map +0 -1
  90. package/src/contractSupport.d.ts +0 -33
  91. package/src/contractSupport.d.ts.map +0 -1
  92. package/src/econCommitteeCharter.d.ts +0 -41
  93. package/src/econCommitteeCharter.d.ts.map +0 -1
  94. package/src/feeDistributor.d.ts +0 -212
  95. package/src/feeDistributor.d.ts.map +0 -1
  96. package/src/index.d.ts +0 -2
  97. package/src/index.d.ts.map +0 -1
  98. package/src/interest-math.d.ts +0 -3
  99. package/src/interest-math.d.ts.map +0 -1
  100. package/src/interest.d.ts +0 -29
  101. package/src/interest.d.ts.map +0 -1
  102. package/src/price/fluxAggregatorContract.d.ts +0 -112
  103. package/src/price/fluxAggregatorContract.d.ts.map +0 -1
  104. package/src/price/fluxAggregatorKit.d.ts +0 -155
  105. package/src/price/fluxAggregatorKit.d.ts.map +0 -1
  106. package/src/price/priceOracleKit.d.ts +0 -52
  107. package/src/price/priceOracleKit.d.ts.map +0 -1
  108. package/src/price/roundsManager.d.ts +0 -330
  109. package/src/price/roundsManager.d.ts.map +0 -1
  110. package/src/proposals/addAssetToVault.d.ts +0 -155
  111. package/src/proposals/addAssetToVault.d.ts.map +0 -1
  112. package/src/proposals/committee-proposal.d.ts +0 -121
  113. package/src/proposals/committee-proposal.d.ts.map +0 -1
  114. package/src/proposals/core-proposal.d.ts +0 -149
  115. package/src/proposals/core-proposal.d.ts.map +0 -1
  116. package/src/proposals/econ-behaviors.d.ts +0 -201
  117. package/src/proposals/econ-behaviors.d.ts.map +0 -1
  118. package/src/proposals/price-feed-proposal.d.ts +0 -83
  119. package/src/proposals/price-feed-proposal.d.ts.map +0 -1
  120. package/src/proposals/startEconCommittee.d.ts +0 -34
  121. package/src/proposals/startEconCommittee.d.ts.map +0 -1
  122. package/src/proposals/startPSM.d.ts +0 -61
  123. package/src/proposals/startPSM.d.ts.map +0 -1
  124. package/src/proposals/utils.d.ts +0 -15
  125. package/src/proposals/utils.d.ts.map +0 -1
  126. package/src/provisionPool.d.ts +0 -165
  127. package/src/provisionPool.d.ts.map +0 -1
  128. package/src/provisionPool.js +0 -119
  129. package/src/provisionPoolKit.d.ts +0 -379
  130. package/src/provisionPoolKit.d.ts.map +0 -1
  131. package/src/provisionPoolKit.js +0 -461
  132. package/src/psm/psm.d.ts +0 -178
  133. package/src/psm/psm.d.ts.map +0 -1
  134. package/src/psm/types.d.ts +0 -2
  135. package/src/psm/types.d.ts.map +0 -1
  136. package/src/reserve/assetReserve.d.ts +0 -44
  137. package/src/reserve/assetReserve.d.ts.map +0 -1
  138. package/src/reserve/assetReserveKit.d.ts +0 -114
  139. package/src/reserve/assetReserveKit.d.ts.map +0 -1
  140. package/src/reserve/params.d.ts +0 -10
  141. package/src/reserve/params.d.ts.map +0 -1
  142. package/src/tokens.d.ts +0 -3
  143. package/src/tokens.d.ts.map +0 -1
  144. package/src/tokens.js +0 -5
  145. package/src/vaultFactory/burn.d.ts +0 -2
  146. package/src/vaultFactory/burn.d.ts.map +0 -1
  147. package/src/vaultFactory/liquidation.d.ts +0 -24
  148. package/src/vaultFactory/liquidation.d.ts.map +0 -1
  149. package/src/vaultFactory/math.d.ts +0 -10
  150. package/src/vaultFactory/math.d.ts.map +0 -1
  151. package/src/vaultFactory/orderedVaultStore.d.ts +0 -94
  152. package/src/vaultFactory/orderedVaultStore.d.ts.map +0 -1
  153. package/src/vaultFactory/params.d.ts +0 -159
  154. package/src/vaultFactory/params.d.ts.map +0 -1
  155. package/src/vaultFactory/prioritizedVaults.d.ts +0 -279
  156. package/src/vaultFactory/prioritizedVaults.d.ts.map +0 -1
  157. package/src/vaultFactory/proceeds.d.ts +0 -34
  158. package/src/vaultFactory/proceeds.d.ts.map +0 -1
  159. package/src/vaultFactory/storeUtils.d.ts +0 -25
  160. package/src/vaultFactory/storeUtils.d.ts.map +0 -1
  161. package/src/vaultFactory/type-imports.d.ts +0 -2
  162. package/src/vaultFactory/type-imports.d.ts.map +0 -1
  163. package/src/vaultFactory/types.d.ts +0 -137
  164. package/src/vaultFactory/types.d.ts.map +0 -1
  165. package/src/vaultFactory/vault.d.ts +0 -529
  166. package/src/vaultFactory/vault.d.ts.map +0 -1
  167. package/src/vaultFactory/vaultDirector.d.ts +0 -560
  168. package/src/vaultFactory/vaultDirector.d.ts.map +0 -1
  169. package/src/vaultFactory/vaultFactory.d.ts +0 -162
  170. package/src/vaultFactory/vaultFactory.d.ts.map +0 -1
  171. package/src/vaultFactory/vaultHolder.d.ts +0 -201
  172. package/src/vaultFactory/vaultHolder.d.ts.map +0 -1
  173. package/src/vaultFactory/vaultKit.d.ts +0 -32
  174. package/src/vaultFactory/vaultKit.d.ts.map +0 -1
  175. package/src/vaultFactory/vaultManager.d.ts +0 -554
  176. package/src/vaultFactory/vaultManager.d.ts.map +0 -1
@@ -1,212 +0,0 @@
1
- /** @type {ContractMeta} */
2
- export const meta: ContractMeta;
3
- export function makeContractFeeCollector(zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>): {
4
- collectFees: () => Promise<Payment<any>>;
5
- } & import("@endo/eventual-send").RemotableBrand<{}, {
6
- collectFees: () => Promise<Payment<any>>;
7
- }>;
8
- export function startDistributing(schedulePayments: () => Promise<unknown>, timerService: ERef<TimerService>, collectionInterval?: import("@agoric/time/src/types").RelativeTime | undefined): void;
9
- export function makeShareConfig(destinations?: Record<string, ERef<FeeDestination>> | undefined, keywordShares?: Record<string, bigint> | undefined): {
10
- shares: {
11
- share: bigint;
12
- destination: ERef<FeeDestination>;
13
- }[];
14
- totalShares: bigint;
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: {
18
- keywordShares: Record<Keyword, NatValue>;
19
- timerService: ERef<TimerService>;
20
- collectionInterval: RelativeTime;
21
- }): {
22
- creatorFacet: {
23
- makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
24
- collectFees: () => Promise<Payment<any>>;
25
- } & import("@endo/eventual-send").RemotableBrand<{}, {
26
- collectFees: () => Promise<Payment<any>>;
27
- }>;
28
- /**
29
- * Start distributing fees from this collector.
30
- *
31
- * @param {string} debugName
32
- * @param {ERef<FeeCollector>} collectorP
33
- */
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>>;
38
- } & import("@endo/eventual-send").RemotableBrand<{}, {
39
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
40
- }>;
41
- /**
42
- * Create a destination that generates invitations and makes Zoe offers.
43
- *
44
- * @param {ERef<ZoeService>} zoe
45
- * @param {string} keyword
46
- * @param {unknown} target
47
- * @param {PropertyKey} makeInvitationMethod
48
- * @param {unknown[]} [args]
49
- */
50
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
51
- pushPayment: (payment: any, issuer: any) => Promise<any>;
52
- } & import("@endo/eventual-send").RemotableBrand<{}, {
53
- pushPayment: (payment: any, issuer: any) => Promise<any>;
54
- }>;
55
- /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
56
- setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
57
- /** @param {Record<Keyword, bigint>} newShares */
58
- setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
59
- } & import("@endo/eventual-send").RemotableBrand<{}, {
60
- makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
61
- collectFees: () => Promise<Payment<any>>;
62
- } & import("@endo/eventual-send").RemotableBrand<{}, {
63
- collectFees: () => Promise<Payment<any>>;
64
- }>;
65
- /**
66
- * Start distributing fees from this collector.
67
- *
68
- * @param {string} debugName
69
- * @param {ERef<FeeCollector>} collectorP
70
- */
71
- 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>>;
75
- } & import("@endo/eventual-send").RemotableBrand<{}, {
76
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
77
- }>;
78
- /**
79
- * Create a destination that generates invitations and makes Zoe offers.
80
- *
81
- * @param {ERef<ZoeService>} zoe
82
- * @param {string} keyword
83
- * @param {unknown} target
84
- * @param {PropertyKey} makeInvitationMethod
85
- * @param {unknown[]} [args]
86
- */
87
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
88
- pushPayment: (payment: any, issuer: any) => Promise<any>;
89
- } & import("@endo/eventual-send").RemotableBrand<{}, {
90
- pushPayment: (payment: any, issuer: any) => Promise<any>;
91
- }>;
92
- /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
93
- setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
94
- /** @param {Record<Keyword, bigint>} newShares */
95
- setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
96
- }>;
97
- publicFacet: {
98
- distributeFees: (payment: Payment<'nat'>) => Promise<void>;
99
- getKeywordShares: () => Record<string, bigint>;
100
- } & import("@endo/eventual-send").RemotableBrand<{}, {
101
- distributeFees: (payment: Payment<'nat'>) => Promise<void>;
102
- getKeywordShares: () => Record<string, bigint>;
103
- }>;
104
- };
105
- export function start(zcf: ZCF<[feeIssuer: ERef<Issuer<"nat">>, terms: {
106
- keywordShares: Record<Keyword, NatValue>;
107
- timerService: ERef<TimerService>;
108
- collectionInterval: RelativeTime;
109
- }][1]>): Promise<{
110
- creatorFacet: {
111
- makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
112
- collectFees: () => Promise<Payment<any>>;
113
- } & import("@endo/eventual-send").RemotableBrand<{}, {
114
- collectFees: () => Promise<Payment<any>>;
115
- }>;
116
- /**
117
- * Start distributing fees from this collector.
118
- *
119
- * @param {string} debugName
120
- * @param {ERef<FeeCollector>} collectorP
121
- */
122
- 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>>;
126
- } & import("@endo/eventual-send").RemotableBrand<{}, {
127
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
128
- }>;
129
- /**
130
- * Create a destination that generates invitations and makes Zoe offers.
131
- *
132
- * @param {ERef<ZoeService>} zoe
133
- * @param {string} keyword
134
- * @param {unknown} target
135
- * @param {PropertyKey} makeInvitationMethod
136
- * @param {unknown[]} [args]
137
- */
138
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
139
- pushPayment: (payment: any, issuer: any) => Promise<any>;
140
- } & import("@endo/eventual-send").RemotableBrand<{}, {
141
- pushPayment: (payment: any, issuer: any) => Promise<any>;
142
- }>;
143
- /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
144
- setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
145
- /** @param {Record<Keyword, bigint>} newShares */
146
- setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
147
- } & import("@endo/eventual-send").RemotableBrand<{}, {
148
- makeContractFeeCollector: (zoe: ERef<ZoeService>, creatorFacet: ERef<CollectibleContractFacet>) => {
149
- collectFees: () => Promise<Payment<any>>;
150
- } & import("@endo/eventual-send").RemotableBrand<{}, {
151
- collectFees: () => Promise<Payment<any>>;
152
- }>;
153
- /**
154
- * Start distributing fees from this collector.
155
- *
156
- * @param {string} debugName
157
- * @param {ERef<FeeCollector>} collectorP
158
- */
159
- 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>>;
163
- } & import("@endo/eventual-send").RemotableBrand<{}, {
164
- pushPayment: (payment: any, _issuer: any) => Promise<Amount<AssetKind>>;
165
- }>;
166
- /**
167
- * Create a destination that generates invitations and makes Zoe offers.
168
- *
169
- * @param {ERef<ZoeService>} zoe
170
- * @param {string} keyword
171
- * @param {unknown} target
172
- * @param {PropertyKey} makeInvitationMethod
173
- * @param {unknown[]} [args]
174
- */
175
- makeOfferDestination: (zoe: ERef<ZoeService>, keyword: string, target: unknown, makeInvitationMethod: PropertyKey, args?: unknown[] | undefined) => {
176
- pushPayment: (payment: any, issuer: any) => Promise<any>;
177
- } & import("@endo/eventual-send").RemotableBrand<{}, {
178
- pushPayment: (payment: any, issuer: any) => Promise<any>;
179
- }>;
180
- /** @param {Record<Keyword, ERef<FeeDestination>>} newDestinations */
181
- setDestinations: (newDestinations: Record<Keyword, ERef<FeeDestination>>) => Promise<void>;
182
- /** @param {Record<Keyword, bigint>} newShares */
183
- setKeywordShares: (newShares: Record<Keyword, bigint>) => void;
184
- }>;
185
- publicFacet: {
186
- distributeFees: (payment: Payment<'nat'>) => Promise<void>;
187
- getKeywordShares: () => Record<string, bigint>;
188
- } & import("@endo/eventual-send").RemotableBrand<{}, {
189
- distributeFees: (payment: Payment<'nat'>) => Promise<void>;
190
- getKeywordShares: () => Record<string, bigint>;
191
- }>;
192
- }>;
193
- export type RelativeTime = import('@agoric/time/src/types').RelativeTime;
194
- export type TimerService = import('@agoric/time/src/types').TimerService;
195
- export type FeeCollector = {
196
- collectFees: () => ERef<Payment<'nat'>>;
197
- };
198
- export type PeriodicFeeCollector = {
199
- getCollector: () => FeeCollector;
200
- collectAndDistributeNow: () => Promise<void>;
201
- stop: () => void;
202
- };
203
- export type CollectibleContractFacet = {
204
- makeCollectFeesInvitation: () => Promise<Invitation<string, never>>;
205
- };
206
- export type FeeDestination = {
207
- pushPayment: (payment: Payment, issuer: ERef<Issuer>) => Promise<Amount>;
208
- };
209
- export type ShareConfig = ReturnType<typeof makeShareConfig>;
210
- export type FeeDistributorCreatorFacet = ReturnType<typeof makeFeeDistributor>['creatorFacet'];
211
- export type FeeDistributorPublicFacet = ReturnType<typeof makeFeeDistributor>['publicFacet'];
212
- //# sourceMappingURL=feeDistributor.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feeDistributor.d.ts","sourceRoot":"","sources":["feeDistributor.js"],"names":[],"mappings":"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"}
package/src/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { calculateCurrentDebt } from "./interest-math.js";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export function calculateCurrentDebt(debtSnapshot: Amount<'nat'>, interestSnapshot: Ratio, currentCompoundedInterest: Ratio): Amount<'nat'>;
2
- export function reverseInterest(debt: Amount<'nat'>, interestApplied: Ratio): Amount<'nat'>;
3
- //# sourceMappingURL=interest-math.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interest-math.d.ts","sourceRoot":"","sources":["interest-math.js"],"names":[],"mappings":"AAgCO,mDALI,OAAO,KAAK,CAAC,oBACb,KAAK,6BACL,KAAK,GACH,OAAO,KAAK,CAAC,CAiBzB;AAOM,sCAJI,OAAO,KAAK,CAAC,mBACb,KAAK,GACH,OAAO,KAAK,CAAC,CAIzB"}
package/src/interest.d.ts DELETED
@@ -1,29 +0,0 @@
1
- /**
2
- * @typedef {import('@agoric/time/src/types').Timestamp} Timestamp
3
- *
4
- * @typedef {import('@agoric/time/src/types').RelativeTime} RelativeTime
5
- */
6
- export const SECONDS_PER_YEAR: bigint;
7
- export function makeInterestCalculator(annualRate: Ratio, chargingPeriod: RelativeTime, recordingPeriod: RelativeTime): CalculatorKit;
8
- export function calculateCompoundedInterest(priorCompoundedInterest: Ratio, priorDebt: NatValue, newDebt: NatValue): Ratio;
9
- export function chargeInterest(powers: {
10
- mint: ZCFMint<'nat'>;
11
- mintAndTransferWithFee: MintAndTransfer;
12
- poolIncrementSeat: ZCFSeat;
13
- seatAllocationKeyword: Keyword;
14
- }, params: {
15
- interestRate: Ratio;
16
- chargingPeriod: RelativeTime;
17
- recordingPeriod: RelativeTime;
18
- }, prior: {
19
- latestInterestUpdate: Timestamp;
20
- compoundedInterest: Ratio;
21
- totalDebt: Amount<'nat'>;
22
- }, accruedUntil: Timestamp): {
23
- compoundedInterest: Ratio;
24
- latestInterestUpdate: Timestamp;
25
- totalDebt: Amount<'nat'>;
26
- };
27
- export type Timestamp = import('@agoric/time/src/types').Timestamp;
28
- export type RelativeTime = import('@agoric/time/src/types').RelativeTime;
29
- //# sourceMappingURL=interest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interest.d.ts","sourceRoot":"","sources":["interest.js"],"names":[],"mappings":"AAYA;;;;GAIG;AAEH,sCAAuD;AAchD,mDALI,KAAK,kBACL,YAAY,mBACZ,YAAY,GACV,aAAa,CA+EzB;AASM,qEAJI,KAAK,aACL,QAAQ,WACR,QAAQ,SAalB;AAyCM,uCAvBI;IACV,IAAQ,EAAE,QAAQ,KAAK,CAAC,CAAC;IACzB,sBAA0B,EAAE,eAAe,CAAC;IAC5C,iBAAqB,EAAE,OAAO,CAAC;IAC/B,qBAAyB,EAAE,OAAO,CAAC;CAChC,UACO;IACV,YAAgB,EAAE,KAAK,CAAC;IACxB,cAAkB,EAAE,YAAY,CAAC;IACjC,eAAmB,EAAE,YAAY,CAAC;CAC/B;0BAEuB,SAAS;wBACX,KAAK;eACd,OAAO,KAAK,CAAC;iBAElB,SAAS;wBAEK,KAAK;0BACH,SAAS;eACpB,OAAO,KAAK,CAAC;EA+D5B;wBAzNY,OAAO,wBAAwB,EAAE,SAAS;2BAE1C,OAAO,wBAAwB,EAAE,YAAY"}
@@ -1,112 +0,0 @@
1
- /**
2
- * @typedef {import('@agoric/vat-data').Baggage} Baggage
3
- *
4
- * @typedef {import('@agoric/time/src/types').TimerService} TimerService
5
- */
6
- /** @type {ContractMeta} */
7
- export const meta: ContractMeta;
8
- export function start(zcf: ZCF<import("./fluxAggregatorKit.js").ChainlinkConfig & {
9
- timer: TimerService;
10
- brandIn: Brand<'nat'>;
11
- brandOut: Brand<'nat'>;
12
- description: string;
13
- unitAmountIn?: Amount<"nat"> | undefined;
14
- }>, privateArgs: {
15
- highPrioritySendersManager?: ({
16
- add: (rawNamespace: string, address: string) => Promise<void>;
17
- remove: (rawNamespace: string, address: string) => Promise<void>;
18
- } & import("@endo/eventual-send").RemotableBrand<{}, {
19
- add: (rawNamespace: string, address: string) => Promise<void>;
20
- remove: (rawNamespace: string, address: string) => Promise<void>;
21
- }>) | undefined;
22
- initialPoserInvitation: Invitation;
23
- marshaller: ERef<Marshaller>;
24
- namesByAddressAdmin: ERef<import('@agoric/vats').NameAdmin>;
25
- storageNode: StorageNode;
26
- }, baggage: Baggage): Promise<{
27
- creatorFacet: {
28
- getParamMgrRetriever: () => {
29
- get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
30
- Electorate: "invitation";
31
- }>;
32
- } & import("@endo/eventual-send").RemotableBrand<{}, {
33
- get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
34
- Electorate: "invitation";
35
- }>;
36
- }>;
37
- getInvitation: (name: any) => Promise<Invitation<R, A>>;
38
- getLimitedCreatorFacet: () => {
39
- makeOracleInvitation(oracleId: string): Promise<Invitation<R, A>>;
40
- removeOracle(oracleId: string): Promise<void>;
41
- getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
42
- initOracle(oracleId: string): Promise<{
43
- admin: {
44
- disable(): void;
45
- };
46
- oracle: {
47
- pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
48
- getStatus(): import("./priceOracleKit.js").OracleStatus;
49
- };
50
- } & import("@endo/eventual-send").RemotableBrand<{}, {
51
- admin: {
52
- disable(): void;
53
- };
54
- oracle: {
55
- pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
56
- getStatus(): import("./priceOracleKit.js").OracleStatus;
57
- };
58
- }>>;
59
- oracleRoundState(oracleId: string, queriedRoundId: bigint): Promise<import("./fluxAggregatorKit.js").RoundState>;
60
- };
61
- getGovernedApis: () => GovernedApis;
62
- getGovernedApiNames: () => string[];
63
- setOfferFilter: (strings: any) => Promise<void>;
64
- } & import("@endo/eventual-send").RemotableBrand<{}, {
65
- getParamMgrRetriever: () => {
66
- get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
67
- Electorate: "invitation";
68
- }>;
69
- } & import("@endo/eventual-send").RemotableBrand<{}, {
70
- get: () => import("@agoric/governance/src/contractGovernance/typedParamManager.js").TypedParamManager<{
71
- Electorate: "invitation";
72
- }>;
73
- }>;
74
- getInvitation: (name: any) => Promise<Invitation<R, A>>;
75
- getLimitedCreatorFacet: () => {
76
- makeOracleInvitation(oracleId: string): Promise<Invitation<R, A>>;
77
- removeOracle(oracleId: string): Promise<void>;
78
- getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
79
- initOracle(oracleId: string): Promise<{
80
- admin: {
81
- disable(): void;
82
- };
83
- oracle: {
84
- pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
85
- getStatus(): import("./priceOracleKit.js").OracleStatus;
86
- };
87
- } & import("@endo/eventual-send").RemotableBrand<{}, {
88
- admin: {
89
- disable(): void;
90
- };
91
- oracle: {
92
- pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
93
- getStatus(): import("./priceOracleKit.js").OracleStatus;
94
- };
95
- }>>;
96
- oracleRoundState(oracleId: string, queriedRoundId: bigint): Promise<import("./fluxAggregatorKit.js").RoundState>;
97
- };
98
- getGovernedApis: () => GovernedApis;
99
- getGovernedApiNames: () => string[];
100
- setOfferFilter: (strings: any) => Promise<void>;
101
- }>;
102
- publicFacet: {
103
- getPriceAuthority(): PriceAuthority;
104
- getPublicTopics(): {
105
- quotes: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<PriceDescription>;
106
- latestRound: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./roundsManager.js").LatestRound>;
107
- };
108
- };
109
- }>;
110
- export type Baggage = import('@agoric/vat-data').Baggage;
111
- export type TimerService = import('@agoric/time/src/types').TimerService;
112
- //# sourceMappingURL=fluxAggregatorContract.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fluxAggregatorContract.d.ts","sourceRoot":"","sources":["fluxAggregatorContract.js"],"names":[],"mappings":"AAkBA;;;;GAIG;AAEH,2BAA2B;AAC3B,mBADW,YAAY,CAmBrB;AA0BK;WAhBO,YAAY;aACV,MAAM,KAAK,CAAC;cACX,MAAM,KAAK,CAAC;iBACT,MAAM;;;;;;;;;;4BAMG,UAAU;gBACtB,KAAK,UAAU,CAAC;yBACP,KAAK,OAAO,cAAc,EAAE,SAAS,CAAC;iBAC9C,WAAW;YAElB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+HjB;sBA/KY,OAAO,kBAAkB,EAAE,OAAO;2BAElC,OAAO,wBAAwB,EAAE,YAAY"}
@@ -1,155 +0,0 @@
1
- export const INVITATION_MAKERS_DESC: "oracle invitation";
2
- export function prepareFluxAggregatorKit(baggage: Baggage, zcf: ZCF<ChainlinkConfig & {
3
- timer: TimerService;
4
- brandIn: Brand<'nat'>;
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<() => {
8
- creator: {
9
- /**
10
- * An "oracle invitation" is an invitation to be able to submit data to
11
- * include in the priceAggregator's results.
12
- *
13
- * The offer result from this invitation is a OracleAdmin, which can be
14
- * used directly to manage the price submissions as well as to terminate
15
- * the relationship.
16
- *
17
- * @param {string} oracleId unique per contract instance
18
- */
19
- makeOracleInvitation(oracleId: string): Promise<Invitation<R, A>>;
20
- /** @param {string} oracleId */
21
- removeOracle(oracleId: string): Promise<void>;
22
- getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
23
- /** @param {string} oracleId */
24
- initOracle(oracleId: string): Promise<{
25
- admin: {
26
- disable(): void;
27
- };
28
- oracle: {
29
- pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
30
- getStatus(): import("./priceOracleKit.js").OracleStatus;
31
- };
32
- } & import("@endo/eventual-send").RemotableBrand<{}, {
33
- admin: {
34
- disable(): void;
35
- };
36
- oracle: {
37
- pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
38
- getStatus(): import("./priceOracleKit.js").OracleStatus;
39
- };
40
- }>>;
41
- /**
42
- * a method to provide all current info oracleStatuses need. Intended
43
- * only only to be callable by oracleStatuses. Not for use by contracts
44
- * to read state.
45
- *
46
- * @param {string} oracleId
47
- * @param {bigint} queriedRoundId
48
- * @returns {Promise<RoundState>}
49
- */
50
- oracleRoundState(oracleId: string, queriedRoundId: bigint): Promise<RoundState>;
51
- };
52
- public: {
53
- getPriceAuthority(): PriceAuthority;
54
- getPublicTopics(): {
55
- quotes: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<PriceDescription>;
56
- latestRound: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./roundsManager.js").LatestRound>;
57
- };
58
- };
59
- } & import("@endo/eventual-send").RemotableBrand<{}, {
60
- creator: {
61
- /**
62
- * An "oracle invitation" is an invitation to be able to submit data to
63
- * include in the priceAggregator's results.
64
- *
65
- * The offer result from this invitation is a OracleAdmin, which can be
66
- * used directly to manage the price submissions as well as to terminate
67
- * the relationship.
68
- *
69
- * @param {string} oracleId unique per contract instance
70
- */
71
- makeOracleInvitation(oracleId: string): Promise<Invitation<R, A>>;
72
- /** @param {string} oracleId */
73
- removeOracle(oracleId: string): Promise<void>;
74
- getRoundData: (roundIdRaw: any) => Promise<import("./roundsManager.js").RoundData>;
75
- /** @param {string} oracleId */
76
- initOracle(oracleId: string): Promise<{
77
- admin: {
78
- disable(): void;
79
- };
80
- oracle: {
81
- pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
82
- getStatus(): import("./priceOracleKit.js").OracleStatus;
83
- };
84
- } & import("@endo/eventual-send").RemotableBrand<{}, {
85
- admin: {
86
- disable(): void;
87
- };
88
- oracle: {
89
- pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: import("./priceOracleKit.js").PriceDatum): Promise<void>;
90
- getStatus(): import("./priceOracleKit.js").OracleStatus;
91
- };
92
- }>>;
93
- /**
94
- * a method to provide all current info oracleStatuses need. Intended
95
- * only only to be callable by oracleStatuses. Not for use by contracts
96
- * to read state.
97
- *
98
- * @param {string} oracleId
99
- * @param {bigint} queriedRoundId
100
- * @returns {Promise<RoundState>}
101
- */
102
- oracleRoundState(oracleId: string, queriedRoundId: bigint): Promise<RoundState>;
103
- };
104
- public: {
105
- getPriceAuthority(): PriceAuthority;
106
- getPublicTopics(): {
107
- quotes: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<PriceDescription>;
108
- latestRound: import("@agoric/zoe/src/contractSupport/topics.js").PublicTopic<import("./roundsManager.js").LatestRound>;
109
- };
110
- };
111
- }>>;
112
- export type Baggage = import('@agoric/vat-data').Baggage;
113
- export type Timestamp = import('@agoric/time/src/types').Timestamp;
114
- /**
115
- * //
116
- * TODO: use RelativeTime, not RelativeTimeValue
117
- */
118
- export type RelativeTime = import('@agoric/time/src/types').RelativeTime;
119
- export type RelativeTimeValue = import('@agoric/time/src/types').RelativeTimeValue;
120
- export type TimerService = import('@agoric/time/src/types').TimerService;
121
- export type RoundState = {
122
- eligibleForSpecificRound: boolean;
123
- queriedRoundId: bigint;
124
- latestSubmission: bigint;
125
- startedAt: Timestamp;
126
- roundTimeout: number;
127
- oracleCount: number;
128
- };
129
- export type ChainlinkConfig = {
130
- maxSubmissionCount: number;
131
- minSubmissionCount: number;
132
- /**
133
- * the number of rounds an Oracle has to wait
134
- * before they can initiate a round
135
- */
136
- restartDelay: bigint;
137
- /**
138
- * an immutable check for a lower bound of
139
- * what submission values are accepted from an oracle
140
- */
141
- minSubmissionValue: number;
142
- /**
143
- * an immutable check for an upper bound
144
- * of what submission values are accepted from an oracle
145
- */
146
- maxSubmissionValue: number;
147
- /**
148
- * the number of seconds after the previous round
149
- * that allowed to lapse before allowing an oracle to skip an unfinished
150
- * round
151
- */
152
- timeout: number;
153
- };
154
- export type FluxAggregatorKit = ReturnType<Awaited<ReturnType<typeof prepareFluxAggregatorKit>>>;
155
- //# sourceMappingURL=fluxAggregatorKit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fluxAggregatorKit.d.ts","sourceRoot":"","sources":["fluxAggregatorKit.js"],"names":[],"mappings":"AAsBA,yDAA0D;AAoEnD,kDAfI,OAAO;WAGJ,YAAY;aACV,MAAM,KAAK,CAAC;cACX,MAAM,KAAK,CAAC;;mBAIlB,YAAY,YACZ,OAAO,oBAAoB,EAAE,QAAQ,eACrC,WAAW,yBACX,MAAM,WAAW,GAAG,CAAC,gBACrB,OAAO,6CAA6C,EAAE,YAAY;;QAmJrE;;;;;;;;;WASG;uCADQ,MAAM;QAsCjB,+BAA+B;+BAAnB,MAAM;;QAalB,+BAA+B;6BAAnB,MAAM;;;;;;;;;;;;;;;;;QAoBlB;;;;;;;;WAQG;mCAHQ,MAAM,kBACN,MAAM,GACJ,QAAQ,UAAU,CAAC;;;;;;;;;;;QAtFhC;;;;;;;;;WASG;uCADQ,MAAM;QAsCjB,+BAA+B;+BAAnB,MAAM;;QAalB,+BAA+B;6BAAnB,MAAM;;;;;;;;;;;;;;;;;QAoBlB;;;;;;;;WAQG;mCAHQ,MAAM,kBACN,MAAM,GACJ,QAAQ,UAAU,CAAC;;;;;;;;;IAqDvC;sBA7VY,OAAO,kBAAkB,EAAE,OAAO;wBAElC,OAAO,wBAAwB,EAAE,SAAS;;;;;2BAE1C,OAAO,wBAAwB,EAAE,YAAY;gCAG7C,OAAO,wBAAwB,EAAE,iBAAiB;2BAElD,OAAO,wBAAwB,EAAE,YAAY;;8BAQ5C,OAAO;oBACP,MAAM;sBACN,MAAM;eACN,SAAS;kBACT,MAAM;iBACN,MAAM;;;wBAMN,MAAM;wBACN,MAAM;;;;;kBACN,MAAM;;;;;wBAEN,MAAM;;;;;wBAEN,MAAM;;;;;;aAEN,MAAM;;gCA2TN,WAAW,QAAQ,WAAW,+BAA+B,CAAC,CAAC,CAAC"}
@@ -1,52 +0,0 @@
1
- export const INVITATION_MAKERS_DESC: "oracle invitation";
2
- export function prepareOracleAdminKit(baggage: any): (args_0: HeldParams) => {
3
- admin: {
4
- disable(): void;
5
- };
6
- oracle: {
7
- /**
8
- * push a unitPrice result from this oracle
9
- *
10
- * @param {PriceDatum} datum
11
- */
12
- pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: PriceDatum): Promise<void>;
13
- /** @returns {OracleStatus} */
14
- getStatus(): OracleStatus;
15
- };
16
- } & import("@endo/eventual-send").RemotableBrand<{}, {
17
- admin: {
18
- disable(): void;
19
- };
20
- oracle: {
21
- /**
22
- * push a unitPrice result from this oracle
23
- *
24
- * @param {PriceDatum} datum
25
- */
26
- pushPrice({ roundId: roundIdRaw, unitPrice: valueRaw, }: PriceDatum): Promise<void>;
27
- /** @returns {OracleStatus} */
28
- getStatus(): OracleStatus;
29
- };
30
- }>;
31
- export type HeldParams = {
32
- oracleId: string;
33
- roundPowers: {
34
- handlePush: (status: OracleStatus, result: import('./roundsManager.js').PriceRound) => Promise<OracleStatus>;
35
- };
36
- };
37
- export type PriceDatum = {
38
- roundId: number | undefined;
39
- unitPrice: NatValue;
40
- };
41
- export type OracleStatus = {
42
- disabled?: boolean | undefined;
43
- lastReportedRound: bigint;
44
- lastStartedRound: bigint;
45
- latestSubmission: bigint;
46
- oracleId: string;
47
- };
48
- export type ImmutableState = Readonly<HeldParams & {}>;
49
- export type MutableState = OracleStatus & {};
50
- export type State = ImmutableState & MutableState;
51
- export type OracleKit = ReturnType<ReturnType<typeof prepareOracleAdminKit>>;
52
- //# sourceMappingURL=priceOracleKit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"priceOracleKit.d.ts","sourceRoot":"","sources":["priceOracleKit.js"],"names":[],"mappings":"AAMA,yDAA0D;AA4DnD;;;;;QAcC;;;;WAIG;iEADQ,UAAU;QA0BrB,8BAA8B;qBAAhB,YAAY;;;;;;;QA7B1B;;;;WAIG;iEADQ,UAAU;QA0BrB,8BAA8B;qBAAhB,YAAY;;GAa/B;;cAhHY,MAAM;;6BAGJ,YAAY,UACZ,OAAO,oBAAoB,EAAE,UAAU,KAC5C,QAAQ,YAAY,CAAC;;;yBAKnB;IAAE,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,SAAS,EAAE,QAAQ,CAAA;CAAE;;;uBAKpD,MAAM;sBACN,MAAM;sBACN,MAAM;cACN,MAAM;;6BAGP,SAAS,UAAU,GAAG,EAAE,CAAC;2BAEzB,YAAY,GAAG,EAAE;oBAEhB,cAAc,GAAG,YAAY;wBAyF7B,WAAW,WAAW,4BAA4B,CAAC,CAAC"}