@agoric/inter-protocol 0.13.4-dev-d32a66a.0 → 0.13.4-pismo-dev-f760927.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 (140) hide show
  1. package/README.md +20 -26
  2. package/bundles/bundle-amm-meta.js +618 -0
  3. package/bundles/bundle-amm.js +1 -0
  4. package/bundles/bundle-feeDistributor-meta.js +346 -0
  5. package/bundles/bundle-feeDistributor.js +1 -1
  6. package/bundles/bundle-interchainPool-meta.js +534 -0
  7. package/bundles/bundle-interchainPool.js +1 -0
  8. package/bundles/bundle-liquidateIncrementally-meta.js +442 -0
  9. package/bundles/bundle-liquidateIncrementally.js +1 -0
  10. package/bundles/bundle-liquidateMinimum-meta.js +442 -0
  11. package/bundles/bundle-liquidateMinimum.js +1 -0
  12. package/bundles/bundle-psm-meta.js +538 -0
  13. package/bundles/bundle-psm.js +1 -1
  14. package/bundles/bundle-psmCharter-meta.js +418 -0
  15. package/bundles/bundle-psmCharter.js +1 -0
  16. package/bundles/bundle-reserve-meta.js +542 -0
  17. package/bundles/bundle-reserve.js +1 -1
  18. package/bundles/bundle-scaledPriceAuthority-meta.js +442 -0
  19. package/bundles/bundle-scaledPriceAuthority.js +1 -1
  20. package/bundles/bundle-stakeFactory-meta.js +574 -0
  21. package/bundles/bundle-stakeFactory.js +1 -0
  22. package/bundles/bundle-vaultFactory-meta.js +598 -0
  23. package/bundles/bundle-vaultFactory.js +1 -1
  24. package/exported.js +2 -0
  25. package/package.json +31 -34
  26. package/scripts/add-collateral-core.js +4 -14
  27. package/scripts/add-initial-liquidity.js +180 -0
  28. package/scripts/build-bundles.js +2 -9
  29. package/scripts/deploy-contracts.js +4 -1
  30. package/scripts/init-core.js +38 -20
  31. package/scripts/invite-committee-core.js +1 -1
  32. package/scripts/manual-price-feed.js +2 -2
  33. package/scripts/price-feed-core.js +6 -7
  34. package/src/collect.js +13 -0
  35. package/src/collectFees.js +14 -8
  36. package/src/contractSupport.js +68 -24
  37. package/src/econCommitteeCharter.js +77 -161
  38. package/src/feeDistributor.js +20 -60
  39. package/src/index.js +0 -2
  40. package/src/interchainPool.js +135 -0
  41. package/src/interest-math.js +4 -1
  42. package/src/interest.js +13 -20
  43. package/src/makeTracer.js +36 -0
  44. package/src/my-lien.js +85 -0
  45. package/src/proposals/addAssetToVault.js +94 -89
  46. package/src/proposals/committee-proposal.js +40 -141
  47. package/src/proposals/core-proposal.js +167 -100
  48. package/src/proposals/demoIssuers.js +685 -0
  49. package/src/proposals/econ-behaviors.js +564 -320
  50. package/src/proposals/price-feed-proposal.js +78 -175
  51. package/src/proposals/sim-behaviors.js +40 -0
  52. package/src/proposals/startEconCommittee.js +12 -25
  53. package/src/proposals/startPSM.js +211 -231
  54. package/src/proposals/utils.js +17 -31
  55. package/src/psm/psm.js +160 -272
  56. package/src/psm/psmCharter.js +139 -0
  57. package/src/psm/types.js +0 -2
  58. package/src/reserve/assetReserve.js +413 -56
  59. package/src/reserve/doc.md +3 -1
  60. package/src/reserve/params.js +5 -2
  61. package/src/stakeFactory/README.md +62 -0
  62. package/src/stakeFactory/attestation.js +267 -0
  63. package/src/stakeFactory/attestationTool.js +66 -0
  64. package/src/stakeFactory/constants.js +16 -0
  65. package/src/stakeFactory/params.js +31 -0
  66. package/src/stakeFactory/stakeFactory.js +236 -0
  67. package/src/stakeFactory/stakeFactoryKit.js +455 -0
  68. package/src/stakeFactory/stakeFactoryManager.js +296 -0
  69. package/src/stakeFactory/types.js +42 -0
  70. package/src/vaultFactory/burn.js +1 -2
  71. package/src/vaultFactory/liquidateIncrementally.js +350 -0
  72. package/src/vaultFactory/liquidateMinimum.js +100 -0
  73. package/src/vaultFactory/liquidation.js +108 -270
  74. package/src/vaultFactory/orderedVaultStore.js +1 -0
  75. package/src/vaultFactory/params.js +112 -133
  76. package/src/vaultFactory/prioritizedVaults.js +79 -36
  77. package/src/vaultFactory/storeUtils.js +9 -67
  78. package/src/vaultFactory/type-imports.js +0 -2
  79. package/src/vaultFactory/types.js +26 -22
  80. package/src/vaultFactory/vault.js +709 -772
  81. package/src/vaultFactory/vaultDirector.js +483 -480
  82. package/src/vaultFactory/vaultFactory.js +60 -99
  83. package/src/vaultFactory/vaultHolder.js +95 -121
  84. package/src/vaultFactory/vaultKit.js +31 -39
  85. package/src/vaultFactory/vaultManager.js +868 -1249
  86. package/src/vpool-xyk-amm/AttackersGuide.md +89 -0
  87. package/src/vpool-xyk-amm/addLiquidity.js +222 -0
  88. package/src/vpool-xyk-amm/addPool.js +197 -0
  89. package/src/vpool-xyk-amm/constantProduct/AMM-Trade.jpeg +0 -0
  90. package/src/vpool-xyk-amm/constantProduct/README.md +204 -0
  91. package/src/vpool-xyk-amm/constantProduct/calcFees.js +99 -0
  92. package/src/vpool-xyk-amm/constantProduct/calcSwapPrices.js +85 -0
  93. package/src/vpool-xyk-amm/constantProduct/core.js +153 -0
  94. package/src/vpool-xyk-amm/constantProduct/defaults.js +5 -0
  95. package/src/vpool-xyk-amm/constantProduct/getXY.js +52 -0
  96. package/src/vpool-xyk-amm/constantProduct/internal-types.js +116 -0
  97. package/src/vpool-xyk-amm/constantProduct/invariants.js +43 -0
  98. package/src/vpool-xyk-amm/constantProduct/swap.js +272 -0
  99. package/src/vpool-xyk-amm/constantProduct/types.js +32 -0
  100. package/src/vpool-xyk-amm/doublePool.js +194 -0
  101. package/src/vpool-xyk-amm/estimate.js +155 -0
  102. package/src/vpool-xyk-amm/multipoolMarketMaker.js +520 -0
  103. package/src/vpool-xyk-amm/params.js +61 -0
  104. package/src/vpool-xyk-amm/pool.js +396 -0
  105. package/src/vpool-xyk-amm/priceAuthority.js +94 -0
  106. package/src/vpool-xyk-amm/removeLiquidity.js +31 -0
  107. package/src/vpool-xyk-amm/singlePool.js +73 -0
  108. package/src/vpool-xyk-amm/swap.js +69 -0
  109. package/src/vpool-xyk-amm/types.js +154 -0
  110. package/bundles/bundle-auctioneer-js-meta.json +0 -722
  111. package/bundles/bundle-auctioneer.js +0 -1
  112. package/bundles/bundle-econCommitteeCharter-js-meta.json +0 -514
  113. package/bundles/bundle-econCommitteeCharter.js +0 -1
  114. package/bundles/bundle-feeDistributor-js-meta.json +0 -458
  115. package/bundles/bundle-fluxAggregatorKit-js-meta.json +0 -674
  116. package/bundles/bundle-fluxAggregatorKit.js +0 -1
  117. package/bundles/bundle-psm-js-meta.json +0 -666
  118. package/bundles/bundle-reserve-js-meta.json +0 -662
  119. package/bundles/bundle-scaledPriceAuthority-js-meta.json +0 -542
  120. package/bundles/bundle-vaultFactory-js-meta.json +0 -786
  121. package/scripts/start-local-chain.sh +0 -84
  122. package/src/auction/auctionBook.js +0 -755
  123. package/src/auction/auctioneer.js +0 -720
  124. package/src/auction/offerBook.js +0 -221
  125. package/src/auction/params.js +0 -174
  126. package/src/auction/scheduleMath.js +0 -167
  127. package/src/auction/scheduler.js +0 -370
  128. package/src/auction/sortedOffers.js +0 -136
  129. package/src/auction/util.js +0 -55
  130. package/src/clientSupport.js +0 -324
  131. package/src/price/README.md +0 -57
  132. package/src/price/fluxAggregatorContract.js +0 -190
  133. package/src/price/fluxAggregatorKit.js +0 -375
  134. package/src/price/priceOracleKit.js +0 -127
  135. package/src/price/roundsManager.js +0 -726
  136. package/src/psm/README.md +0 -71
  137. package/src/reserve/assetReserveKit.js +0 -303
  138. package/src/typeGuards.js +0 -13
  139. package/src/vaultFactory/Liquidation.md +0 -100
  140. package/src/vaultFactory/math.js +0 -95
@@ -0,0 +1,346 @@
1
+ {
2
+ "bundleFileName": "bundle-feeDistributor.js",
3
+ "bundleTime": "2023-06-09T02:01:34.208Z",
4
+ "moduleSource": {
5
+ "relative": "../../src/feeDistributor.js",
6
+ "absolute": "/home/runner/work/agoric-sdk/agoric-sdk/packages/inter-protocol/src/feeDistributor.js"
7
+ },
8
+ "contents": [
9
+ {
10
+ "relativePath": "",
11
+ "mtime": "2023-06-09T01:59:26.122Z"
12
+ },
13
+ {
14
+ "relativePath": "../../../ERTP/src/index.js",
15
+ "mtime": "2023-06-09T01:59:26.062Z"
16
+ },
17
+ {
18
+ "relativePath": "../../../notifier/src/index.js",
19
+ "mtime": "2023-06-09T01:59:26.142Z"
20
+ },
21
+ {
22
+ "relativePath": "../../../store/src/index.js",
23
+ "mtime": "2023-06-09T01:59:26.150Z"
24
+ },
25
+ {
26
+ "relativePath": "../../../../node_modules/@endo/far/src/index.js",
27
+ "mtime": "2023-06-09T01:59:52.850Z"
28
+ },
29
+ {
30
+ "relativePath": "../../../ERTP/src/amountMath.js",
31
+ "mtime": "2023-06-09T01:59:26.062Z"
32
+ },
33
+ {
34
+ "relativePath": "../../../ERTP/src/issuerKit.js",
35
+ "mtime": "2023-06-09T01:59:26.062Z"
36
+ },
37
+ {
38
+ "relativePath": "../../../ERTP/src/typeGuards.js",
39
+ "mtime": "2023-06-09T01:59:26.062Z"
40
+ },
41
+ {
42
+ "relativePath": "../../../notifier/src/asyncIterableAdaptor.js",
43
+ "mtime": "2023-06-09T01:59:26.142Z"
44
+ },
45
+ {
46
+ "relativePath": "../../../notifier/src/notifier.js",
47
+ "mtime": "2023-06-09T01:59:26.142Z"
48
+ },
49
+ {
50
+ "relativePath": "../../../notifier/src/publish-kit.js",
51
+ "mtime": "2023-06-09T01:59:26.142Z"
52
+ },
53
+ {
54
+ "relativePath": "../../../notifier/src/storesub.js",
55
+ "mtime": "2023-06-09T01:59:26.142Z"
56
+ },
57
+ {
58
+ "relativePath": "../../../notifier/src/subscriber.js",
59
+ "mtime": "2023-06-09T01:59:26.142Z"
60
+ },
61
+ {
62
+ "relativePath": "../../../store/src/keys/checkKey.js",
63
+ "mtime": "2023-06-09T01:59:26.150Z"
64
+ },
65
+ {
66
+ "relativePath": "../../../store/src/keys/compareKeys.js",
67
+ "mtime": "2023-06-09T01:59:26.150Z"
68
+ },
69
+ {
70
+ "relativePath": "../../../store/src/keys/copyBag.js",
71
+ "mtime": "2023-06-09T01:59:26.150Z"
72
+ },
73
+ {
74
+ "relativePath": "../../../store/src/keys/copySet.js",
75
+ "mtime": "2023-06-09T01:59:26.150Z"
76
+ },
77
+ {
78
+ "relativePath": "../../../store/src/keys/merge-bag-operators.js",
79
+ "mtime": "2023-06-09T01:59:26.150Z"
80
+ },
81
+ {
82
+ "relativePath": "../../../store/src/keys/merge-set-operators.js",
83
+ "mtime": "2023-06-09T01:59:26.150Z"
84
+ },
85
+ {
86
+ "relativePath": "../../../store/src/legacy/legacyMap.js",
87
+ "mtime": "2023-06-09T01:59:26.150Z"
88
+ },
89
+ {
90
+ "relativePath": "../../../store/src/legacy/legacyWeakMap.js",
91
+ "mtime": "2023-06-09T01:59:26.150Z"
92
+ },
93
+ {
94
+ "relativePath": "../../../store/src/patterns/encodePassable.js",
95
+ "mtime": "2023-06-09T01:59:26.150Z"
96
+ },
97
+ {
98
+ "relativePath": "../../../store/src/patterns/interface-tools.js",
99
+ "mtime": "2023-06-09T01:59:26.150Z"
100
+ },
101
+ {
102
+ "relativePath": "../../../store/src/patterns/patternMatchers.js",
103
+ "mtime": "2023-06-09T01:59:26.150Z"
104
+ },
105
+ {
106
+ "relativePath": "../../../store/src/patterns/rankOrder.js",
107
+ "mtime": "2023-06-09T01:59:26.150Z"
108
+ },
109
+ {
110
+ "relativePath": "../../../store/src/stores/scalarMapStore.js",
111
+ "mtime": "2023-06-09T01:59:26.150Z"
112
+ },
113
+ {
114
+ "relativePath": "../../../store/src/stores/scalarSetStore.js",
115
+ "mtime": "2023-06-09T01:59:26.150Z"
116
+ },
117
+ {
118
+ "relativePath": "../../../store/src/stores/scalarWeakMapStore.js",
119
+ "mtime": "2023-06-09T01:59:26.150Z"
120
+ },
121
+ {
122
+ "relativePath": "../../../store/src/stores/scalarWeakSetStore.js",
123
+ "mtime": "2023-06-09T01:59:26.150Z"
124
+ },
125
+ {
126
+ "relativePath": "../../../store/src/stores/store-utils.js",
127
+ "mtime": "2023-06-09T01:59:26.150Z"
128
+ },
129
+ {
130
+ "relativePath": "../../../../node_modules/@endo/eventual-send/src/no-shim.js",
131
+ "mtime": "2023-06-09T01:59:53.986Z"
132
+ },
133
+ {
134
+ "relativePath": "../../../../node_modules/@endo/marshal/index.js",
135
+ "mtime": "2023-06-09T01:59:53.063Z"
136
+ },
137
+ {
138
+ "relativePath": "../../../ERTP/src/mathHelpers/copyBagMathHelpers.js",
139
+ "mtime": "2023-06-09T01:59:26.062Z"
140
+ },
141
+ {
142
+ "relativePath": "../../../ERTP/src/mathHelpers/copySetMathHelpers.js",
143
+ "mtime": "2023-06-09T01:59:26.062Z"
144
+ },
145
+ {
146
+ "relativePath": "../../../ERTP/src/mathHelpers/natMathHelpers.js",
147
+ "mtime": "2023-06-09T01:59:26.062Z"
148
+ },
149
+ {
150
+ "relativePath": "../../../ERTP/src/mathHelpers/setMathHelpers.js",
151
+ "mtime": "2023-06-09T01:59:26.062Z"
152
+ },
153
+ {
154
+ "relativePath": "../../../ERTP/src/types.js",
155
+ "mtime": "2023-06-09T01:59:26.062Z"
156
+ },
157
+ {
158
+ "relativePath": "../../../ERTP/src/displayInfo.js",
159
+ "mtime": "2023-06-09T01:59:26.062Z"
160
+ },
161
+ {
162
+ "relativePath": "../../../ERTP/src/paymentLedger.js",
163
+ "mtime": "2023-06-09T01:59:26.062Z"
164
+ },
165
+ {
166
+ "relativePath": "../../../assert/src/assert.js",
167
+ "mtime": "2023-06-09T01:59:26.102Z"
168
+ },
169
+ {
170
+ "relativePath": "../../../vat-data/src/index.js",
171
+ "mtime": "2023-06-09T01:59:26.162Z"
172
+ },
173
+ {
174
+ "relativePath": "../../../notifier/src/types.js",
175
+ "mtime": "2023-06-09T01:59:26.142Z"
176
+ },
177
+ {
178
+ "relativePath": "../../../../node_modules/@endo/promise-kit/index.js",
179
+ "mtime": "2023-06-09T01:59:53.069Z"
180
+ },
181
+ {
182
+ "relativePath": "../../../store/src/types.js",
183
+ "mtime": "2023-06-09T01:59:26.150Z"
184
+ },
185
+ {
186
+ "relativePath": "../../../internal/src/index.js",
187
+ "mtime": "2023-06-09T01:59:26.142Z"
188
+ },
189
+ {
190
+ "relativePath": "../../../../node_modules/@endo/eventual-send/src/E.js",
191
+ "mtime": "2023-06-09T01:59:53.986Z"
192
+ },
193
+ {
194
+ "relativePath": "../../../../node_modules/@endo/marshal/src/deeplyFulfilled.js",
195
+ "mtime": "2023-06-09T01:59:53.063Z"
196
+ },
197
+ {
198
+ "relativePath": "../../../../node_modules/@endo/marshal/src/encodeToCapData.js",
199
+ "mtime": "2023-06-09T01:59:53.063Z"
200
+ },
201
+ {
202
+ "relativePath": "../../../../node_modules/@endo/marshal/src/helpers/error.js",
203
+ "mtime": "2023-06-09T01:59:53.063Z"
204
+ },
205
+ {
206
+ "relativePath": "../../../../node_modules/@endo/marshal/src/helpers/iter-helpers.js",
207
+ "mtime": "2023-06-09T01:59:53.063Z"
208
+ },
209
+ {
210
+ "relativePath": "../../../../node_modules/@endo/marshal/src/helpers/passStyle-helpers.js",
211
+ "mtime": "2023-06-09T01:59:53.063Z"
212
+ },
213
+ {
214
+ "relativePath": "../../../../node_modules/@endo/marshal/src/helpers/remotable.js",
215
+ "mtime": "2023-06-09T01:59:53.063Z"
216
+ },
217
+ {
218
+ "relativePath": "../../../../node_modules/@endo/marshal/src/helpers/symbol.js",
219
+ "mtime": "2023-06-09T01:59:53.063Z"
220
+ },
221
+ {
222
+ "relativePath": "../../../../node_modules/@endo/marshal/src/make-far.js",
223
+ "mtime": "2023-06-09T01:59:53.063Z"
224
+ },
225
+ {
226
+ "relativePath": "../../../../node_modules/@endo/marshal/src/makeTagged.js",
227
+ "mtime": "2023-06-09T01:59:53.063Z"
228
+ },
229
+ {
230
+ "relativePath": "../../../../node_modules/@endo/marshal/src/marshal-justin.js",
231
+ "mtime": "2023-06-09T01:59:53.063Z"
232
+ },
233
+ {
234
+ "relativePath": "../../../../node_modules/@endo/marshal/src/marshal-stringify.js",
235
+ "mtime": "2023-06-09T01:59:53.063Z"
236
+ },
237
+ {
238
+ "relativePath": "../../../../node_modules/@endo/marshal/src/marshal.js",
239
+ "mtime": "2023-06-09T01:59:53.063Z"
240
+ },
241
+ {
242
+ "relativePath": "../../../../node_modules/@endo/marshal/src/passStyleOf.js",
243
+ "mtime": "2023-06-09T01:59:53.063Z"
244
+ },
245
+ {
246
+ "relativePath": "../../../../node_modules/@endo/marshal/src/typeGuards.js",
247
+ "mtime": "2023-06-09T01:59:53.063Z"
248
+ },
249
+ {
250
+ "relativePath": "../../../../node_modules/@endo/marshal/src/types.js",
251
+ "mtime": "2023-06-09T01:59:53.063Z"
252
+ },
253
+ {
254
+ "relativePath": "../../../../node_modules/@agoric/nat/dist/nat.esm.js",
255
+ "mtime": "2023-06-09T01:59:52.071Z"
256
+ },
257
+ {
258
+ "relativePath": "../../../ERTP/src/payment.js",
259
+ "mtime": "2023-06-09T01:59:26.062Z"
260
+ },
261
+ {
262
+ "relativePath": "../../../ERTP/src/purse.js",
263
+ "mtime": "2023-06-09T01:59:26.062Z"
264
+ },
265
+ {
266
+ "relativePath": "../../../store/exported.js",
267
+ "mtime": "2023-06-09T01:59:26.150Z"
268
+ },
269
+ {
270
+ "relativePath": "../../../assert/src/types.js",
271
+ "mtime": "2023-06-09T01:59:26.102Z"
272
+ },
273
+ {
274
+ "relativePath": "../../../vat-data/src/far-class-utils.js",
275
+ "mtime": "2023-06-09T01:59:26.162Z"
276
+ },
277
+ {
278
+ "relativePath": "../../../vat-data/src/kind-utils.js",
279
+ "mtime": "2023-06-09T01:59:26.162Z"
280
+ },
281
+ {
282
+ "relativePath": "../../../vat-data/src/vat-data-bindings.js",
283
+ "mtime": "2023-06-09T01:59:26.162Z"
284
+ },
285
+ {
286
+ "relativePath": "../../../../node_modules/@endo/promise-kit/src/is-promise.js",
287
+ "mtime": "2023-06-09T01:59:53.069Z"
288
+ },
289
+ {
290
+ "relativePath": "../../../../node_modules/@endo/promise-kit/src/memo-race.js",
291
+ "mtime": "2023-06-09T01:59:53.069Z"
292
+ },
293
+ {
294
+ "relativePath": "../../../../node_modules/@endo/promise-kit/src/promise-executor-kit.js",
295
+ "mtime": "2023-06-09T01:59:53.069Z"
296
+ },
297
+ {
298
+ "relativePath": "../../../../node_modules/@endo/promise-kit/src/types.js",
299
+ "mtime": "2023-06-09T01:59:53.069Z"
300
+ },
301
+ {
302
+ "relativePath": "../../../internal/src/config.js",
303
+ "mtime": "2023-06-09T01:59:26.142Z"
304
+ },
305
+ {
306
+ "relativePath": "../../../internal/src/utils.js",
307
+ "mtime": "2023-06-09T01:59:26.142Z"
308
+ },
309
+ {
310
+ "relativePath": "../../../../node_modules/@endo/eventual-send/src/track-turns.js",
311
+ "mtime": "2023-06-09T01:59:53.986Z"
312
+ },
313
+ {
314
+ "relativePath": "../../../../node_modules/@endo/nat/src/index.js",
315
+ "mtime": "2023-06-09T01:59:54.083Z"
316
+ },
317
+ {
318
+ "relativePath": "../../../../node_modules/@endo/marshal/src/encodeToSmallcaps.js",
319
+ "mtime": "2023-06-09T01:59:53.063Z"
320
+ },
321
+ {
322
+ "relativePath": "../../../../node_modules/@endo/marshal/src/helpers/copyArray.js",
323
+ "mtime": "2023-06-09T01:59:53.063Z"
324
+ },
325
+ {
326
+ "relativePath": "../../../../node_modules/@endo/marshal/src/helpers/copyRecord.js",
327
+ "mtime": "2023-06-09T01:59:53.063Z"
328
+ },
329
+ {
330
+ "relativePath": "../../../../node_modules/@endo/marshal/src/helpers/safe-promise.js",
331
+ "mtime": "2023-06-09T01:59:53.063Z"
332
+ },
333
+ {
334
+ "relativePath": "../../../../node_modules/@endo/marshal/src/helpers/tagged.js",
335
+ "mtime": "2023-06-09T01:59:53.063Z"
336
+ },
337
+ {
338
+ "relativePath": "../../../ERTP/src/transientNotifier.js",
339
+ "mtime": "2023-06-09T01:59:26.062Z"
340
+ },
341
+ {
342
+ "relativePath": "../../../store/src/patterns/internal-types.js",
343
+ "mtime": "2023-06-09T01:59:26.150Z"
344
+ }
345
+ ]
346
+ }