@paraswap/dex-lib 2.37.2 → 2.37.3

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 (135) hide show
  1. package/build/abi/pancakeswap-v3/PancakeswapV3Factory.abi.json +300 -0
  2. package/build/abi/uniswap-v3/UniswapV3Factory.abi.json +148 -0
  3. package/build/dex/algebra/algebra-factory.d.ts +25 -0
  4. package/build/dex/algebra/algebra-factory.js +43 -0
  5. package/build/dex/algebra/algebra-factory.js.map +1 -0
  6. package/build/dex/algebra/algebra.d.ts +3 -0
  7. package/build/dex/algebra/algebra.js +27 -5
  8. package/build/dex/algebra/algebra.js.map +1 -1
  9. package/build/dex/algebra/config.js +0 -1
  10. package/build/dex/algebra/config.js.map +1 -1
  11. package/build/dex/algebra/types.d.ts +1 -1
  12. package/build/dex/{woo-fi → hello}/config.d.ts +1 -1
  13. package/build/dex/{test-dex → hello}/config.js +3 -3
  14. package/build/dex/hello/config.js.map +1 -0
  15. package/build/dex/{test-dex/test-dex-pool.d.ts → hello/hello-pool.d.ts} +4 -4
  16. package/build/dex/{test-dex/test-dex-pool.js → hello/hello-pool.js} +9 -8
  17. package/build/dex/hello/hello-pool.js.map +1 -0
  18. package/build/dex/{test-dex/test-dex.d.ts → hello/hello.d.ts} +8 -8
  19. package/build/dex/{test-dex/test-dex.js → hello/hello.js} +7 -7
  20. package/build/dex/hello/hello.js.map +1 -0
  21. package/build/dex/{test-dex → hello}/types.d.ts +1 -1
  22. package/build/dex/{woo-fi → hello}/types.js.map +1 -1
  23. package/build/dex/{test-dex → my-test-dex}/config.d.ts +1 -1
  24. package/build/dex/my-test-dex/config.js +15 -0
  25. package/build/dex/my-test-dex/config.js.map +1 -0
  26. package/build/dex/my-test-dex/my-test-dex-pool.d.ts +39 -0
  27. package/build/dex/my-test-dex/my-test-dex-pool.js +64 -0
  28. package/build/dex/my-test-dex/my-test-dex-pool.js.map +1 -0
  29. package/build/dex/my-test-dex/my-test-dex.d.ts +37 -0
  30. package/build/dex/my-test-dex/my-test-dex.js +126 -0
  31. package/build/dex/my-test-dex/my-test-dex.js.map +1 -0
  32. package/build/dex/my-test-dex/types.d.ts +6 -0
  33. package/build/dex/{test-dex → my-test-dex}/types.js.map +1 -1
  34. package/build/dex/pancakeswap-v3/pancakeswap-v3-factory.d.ts +26 -0
  35. package/build/dex/pancakeswap-v3/pancakeswap-v3-factory.js +44 -0
  36. package/build/dex/pancakeswap-v3/pancakeswap-v3-factory.js.map +1 -0
  37. package/build/dex/pancakeswap-v3/pancakeswap-v3.d.ts +3 -0
  38. package/build/dex/pancakeswap-v3/pancakeswap-v3.js +26 -2
  39. package/build/dex/pancakeswap-v3/pancakeswap-v3.js.map +1 -1
  40. package/build/dex/uniswap-v3/types.d.ts +1 -0
  41. package/build/dex/uniswap-v3/types.js.map +1 -1
  42. package/build/dex/uniswap-v3/uniswap-v3-factory.d.ts +26 -0
  43. package/build/dex/uniswap-v3/uniswap-v3-factory.js +44 -0
  44. package/build/dex/uniswap-v3/uniswap-v3-factory.js.map +1 -0
  45. package/build/dex/uniswap-v3/uniswap-v3.d.ts +3 -0
  46. package/build/dex/uniswap-v3/uniswap-v3.js +26 -2
  47. package/build/dex/uniswap-v3/uniswap-v3.js.map +1 -1
  48. package/build/dex-helper/dummy-dex-helper.js +3 -0
  49. package/build/dex-helper/dummy-dex-helper.js.map +1 -1
  50. package/build/dex-helper/icache.d.ts +1 -0
  51. package/package.json +1 -1
  52. package/src/abi/pancakeswap-v3/PancakeswapV3Factory.abi.json +300 -0
  53. package/src/dex/algebra/algebra-factory.ts +70 -0
  54. package/src/dex/algebra/algebra.ts +47 -6
  55. package/src/dex/algebra/config.ts +0 -1
  56. package/src/dex/algebra/types.ts +2 -1
  57. package/src/dex/pancakeswap-v3/pancakeswap-v3-factory.ts +73 -0
  58. package/src/dex/pancakeswap-v3/pancakeswap-v3.ts +50 -2
  59. package/src/dex/uniswap-v3/types.ts +2 -0
  60. package/src/dex/uniswap-v3/uniswap-v3-factory.ts +73 -0
  61. package/src/dex/uniswap-v3/uniswap-v3.ts +47 -2
  62. package/src/dex-helper/dummy-dex-helper.ts +4 -0
  63. package/src/dex-helper/icache.ts +2 -0
  64. package/build/abi/quickPerps/fast-price-events.json +0 -70
  65. package/build/abi/quickPerps/fast-price-feed.json +0 -748
  66. package/build/abi/quickPerps/reader.json +0 -313
  67. package/build/abi/quickPerps/vault-price-feed.json +0 -477
  68. package/build/abi/quickPerps/vault.json +0 -1953
  69. package/build/abi/uniswap-v3/UniswapV3Quoter.abi.json +0 -193
  70. package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3QuoterV2.abi.json +0 -285
  71. package/build/abi/uniswap-v3/pancakeswap-v3/PancakeswapV3Router.abi.json +0 -583
  72. package/build/abi/woo-fi/WooFeeManager.abi.json +0 -318
  73. package/build/abi/woo-fi/WooPP.abi.json +0 -548
  74. package/build/abi/woo-fi/Wooracle.abi.json +0 -260
  75. package/build/dex/aave-v3/tokens/arbitrum.json +0 -50
  76. package/build/dex/aave-v3/tokens/avalanche.json +0 -74
  77. package/build/dex/aave-v3/tokens/fantom.json +0 -62
  78. package/build/dex/aave-v3/tokens/optimism.json +0 -50
  79. package/build/dex/aave-v3/tokens/polygon.json +0 -116
  80. package/build/dex/balancer-v2/LinearMath.d.ts +0 -19
  81. package/build/dex/balancer-v2/LinearMath.js +0 -179
  82. package/build/dex/balancer-v2/LinearMath.js.map +0 -1
  83. package/build/dex/balancer-v2/LinearPool.d.ts +0 -47
  84. package/build/dex/balancer-v2/LinearPool.js +0 -324
  85. package/build/dex/balancer-v2/LinearPool.js.map +0 -1
  86. package/build/dex/balancer-v2/PhantomStablePool.d.ts +0 -47
  87. package/build/dex/balancer-v2/PhantomStablePool.js +0 -294
  88. package/build/dex/balancer-v2/PhantomStablePool.js.map +0 -1
  89. package/build/dex/balancer-v2/StableMath.d.ts +0 -9
  90. package/build/dex/balancer-v2/StableMath.js +0 -272
  91. package/build/dex/balancer-v2/StableMath.js.map +0 -1
  92. package/build/dex/balancer-v2/balancer-v2-pool.d.ts +0 -75
  93. package/build/dex/balancer-v2/balancer-v2-pool.js +0 -417
  94. package/build/dex/balancer-v2/balancer-v2-pool.js.map +0 -1
  95. package/build/dex/maverick-v1/scripts/event-sequence.d.ts +0 -1
  96. package/build/dex/maverick-v1/scripts/event-sequence.js +0 -110
  97. package/build/dex/maverick-v1/scripts/event-sequence.js.map +0 -1
  98. package/build/dex/quickswap/camelot-v3.d.ts +0 -6
  99. package/build/dex/quickswap/camelot-v3.js +0 -19
  100. package/build/dex/quickswap/camelot-v3.js.map +0 -1
  101. package/build/dex/quickswap/zyberswap-v3.d.ts +0 -6
  102. package/build/dex/quickswap/zyberswap-v3.js +0 -19
  103. package/build/dex/quickswap/zyberswap-v3.js.map +0 -1
  104. package/build/dex/quickswap-v3.d.ts +0 -21
  105. package/build/dex/quickswap-v3.js +0 -40
  106. package/build/dex/quickswap-v3.js.map +0 -1
  107. package/build/dex/test-dex/config.js.map +0 -1
  108. package/build/dex/test-dex/test-dex-pool.js.map +0 -1
  109. package/build/dex/test-dex/test-dex.js.map +0 -1
  110. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.d.ts +0 -12
  111. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js +0 -23
  112. package/build/dex/uniswap-v3/forks/pancakeswap-v3/pancakeswap-v3.js.map +0 -1
  113. package/build/dex/woo-fi/config.js +0 -141
  114. package/build/dex/woo-fi/config.js.map +0 -1
  115. package/build/dex/woo-fi/constants.d.ts +0 -5
  116. package/build/dex/woo-fi/constants.js +0 -20
  117. package/build/dex/woo-fi/constants.js.map +0 -1
  118. package/build/dex/woo-fi/types.d.ts +0 -48
  119. package/build/dex/woo-fi/woo-fi-decimal-math.d.ts +0 -14
  120. package/build/dex/woo-fi/woo-fi-decimal-math.js +0 -42
  121. package/build/dex/woo-fi/woo-fi-decimal-math.js.map +0 -1
  122. package/build/dex/woo-fi/woo-fi-math.d.ts +0 -31
  123. package/build/dex/woo-fi/woo-fi-math.js +0 -300
  124. package/build/dex/woo-fi/woo-fi-math.js.map +0 -1
  125. package/build/dex/woo-fi/woo-fi.d.ts +0 -65
  126. package/build/dex/woo-fi/woo-fi.js +0 -480
  127. package/build/dex/woo-fi/woo-fi.js.map +0 -1
  128. package/build/dex/woo-fi-v2/woo-fi-math.d.ts +0 -16
  129. package/build/dex/woo-fi-v2/woo-fi-math.js +0 -137
  130. package/build/dex/woo-fi-v2/woo-fi-math.js.map +0 -1
  131. package/build/workers.d.ts +0 -0
  132. package/build/workers.js +0 -2
  133. package/build/workers.js.map +0 -1
  134. /package/build/dex/{test-dex → hello}/types.js +0 -0
  135. /package/build/dex/{woo-fi → my-test-dex}/types.js +0 -0
@@ -1,318 +0,0 @@
1
- [
2
- {
3
- "inputs": [
4
- { "internalType": "address", "name": "newQuoteToken", "type": "address" },
5
- {
6
- "internalType": "address",
7
- "name": "newRebateManager",
8
- "type": "address"
9
- },
10
- {
11
- "internalType": "address",
12
- "name": "newVaultManager",
13
- "type": "address"
14
- },
15
- {
16
- "internalType": "address",
17
- "name": "newAccessManager",
18
- "type": "address"
19
- },
20
- { "internalType": "address", "name": "newTreasury", "type": "address" }
21
- ],
22
- "stateMutability": "nonpayable",
23
- "type": "constructor"
24
- },
25
- {
26
- "anonymous": false,
27
- "inputs": [
28
- {
29
- "indexed": true,
30
- "internalType": "address",
31
- "name": "token",
32
- "type": "address"
33
- },
34
- {
35
- "indexed": false,
36
- "internalType": "uint256",
37
- "name": "newFeeRate",
38
- "type": "uint256"
39
- }
40
- ],
41
- "name": "FeeRateUpdated",
42
- "type": "event"
43
- },
44
- {
45
- "anonymous": false,
46
- "inputs": [
47
- {
48
- "indexed": true,
49
- "internalType": "address",
50
- "name": "previousOwner",
51
- "type": "address"
52
- },
53
- {
54
- "indexed": true,
55
- "internalType": "address",
56
- "name": "newOwner",
57
- "type": "address"
58
- }
59
- ],
60
- "name": "OwnershipTransferPrepared",
61
- "type": "event"
62
- },
63
- {
64
- "anonymous": false,
65
- "inputs": [
66
- {
67
- "indexed": true,
68
- "internalType": "address",
69
- "name": "previousOwner",
70
- "type": "address"
71
- },
72
- {
73
- "indexed": true,
74
- "internalType": "address",
75
- "name": "newOwner",
76
- "type": "address"
77
- }
78
- ],
79
- "name": "OwnershipTransferred",
80
- "type": "event"
81
- },
82
- {
83
- "anonymous": false,
84
- "inputs": [
85
- {
86
- "indexed": true,
87
- "internalType": "address",
88
- "name": "token",
89
- "type": "address"
90
- },
91
- {
92
- "indexed": true,
93
- "internalType": "address",
94
- "name": "to",
95
- "type": "address"
96
- },
97
- {
98
- "indexed": false,
99
- "internalType": "uint256",
100
- "name": "amount",
101
- "type": "uint256"
102
- }
103
- ],
104
- "name": "Withdraw",
105
- "type": "event"
106
- },
107
- {
108
- "inputs": [],
109
- "name": "_NEW_OWNER_",
110
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
111
- "stateMutability": "view",
112
- "type": "function"
113
- },
114
- {
115
- "inputs": [],
116
- "name": "_OWNER_",
117
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
118
- "stateMutability": "view",
119
- "type": "function"
120
- },
121
- {
122
- "inputs": [],
123
- "name": "accessManager",
124
- "outputs": [
125
- {
126
- "internalType": "contract IWooAccessManager",
127
- "name": "",
128
- "type": "address"
129
- }
130
- ],
131
- "stateMutability": "view",
132
- "type": "function"
133
- },
134
- {
135
- "inputs": [],
136
- "name": "claimOwnership",
137
- "outputs": [],
138
- "stateMutability": "nonpayable",
139
- "type": "function"
140
- },
141
- {
142
- "inputs": [
143
- { "internalType": "uint256", "name": "amount", "type": "uint256" },
144
- { "internalType": "address", "name": "brokerAddr", "type": "address" }
145
- ],
146
- "name": "collectFee",
147
- "outputs": [],
148
- "stateMutability": "nonpayable",
149
- "type": "function"
150
- },
151
- {
152
- "inputs": [],
153
- "name": "distributeFees",
154
- "outputs": [],
155
- "stateMutability": "nonpayable",
156
- "type": "function"
157
- },
158
- {
159
- "inputs": [
160
- { "internalType": "address", "name": "token", "type": "address" },
161
- { "internalType": "address", "name": "to", "type": "address" }
162
- ],
163
- "name": "emergencyWithdraw",
164
- "outputs": [],
165
- "stateMutability": "nonpayable",
166
- "type": "function"
167
- },
168
- {
169
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
170
- "name": "feeRate",
171
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
172
- "stateMutability": "view",
173
- "type": "function"
174
- },
175
- {
176
- "inputs": [
177
- { "internalType": "address", "name": "newOwner", "type": "address" }
178
- ],
179
- "name": "initOwner",
180
- "outputs": [],
181
- "stateMutability": "nonpayable",
182
- "type": "function"
183
- },
184
- {
185
- "inputs": [],
186
- "name": "quoteToken",
187
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
188
- "stateMutability": "view",
189
- "type": "function"
190
- },
191
- {
192
- "inputs": [],
193
- "name": "rebateAmount",
194
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
195
- "stateMutability": "view",
196
- "type": "function"
197
- },
198
- {
199
- "inputs": [],
200
- "name": "rebateManager",
201
- "outputs": [
202
- {
203
- "internalType": "contract IWooRebateManager",
204
- "name": "",
205
- "type": "address"
206
- }
207
- ],
208
- "stateMutability": "view",
209
- "type": "function"
210
- },
211
- {
212
- "inputs": [
213
- {
214
- "internalType": "address",
215
- "name": "newAccessManager",
216
- "type": "address"
217
- }
218
- ],
219
- "name": "setAccessManager",
220
- "outputs": [],
221
- "stateMutability": "nonpayable",
222
- "type": "function"
223
- },
224
- {
225
- "inputs": [
226
- { "internalType": "address", "name": "token", "type": "address" },
227
- { "internalType": "uint256", "name": "newFeeRate", "type": "uint256" }
228
- ],
229
- "name": "setFeeRate",
230
- "outputs": [],
231
- "stateMutability": "nonpayable",
232
- "type": "function"
233
- },
234
- {
235
- "inputs": [
236
- {
237
- "internalType": "address",
238
- "name": "newRebateManager",
239
- "type": "address"
240
- }
241
- ],
242
- "name": "setRebateManager",
243
- "outputs": [],
244
- "stateMutability": "nonpayable",
245
- "type": "function"
246
- },
247
- {
248
- "inputs": [
249
- { "internalType": "address", "name": "newTreasury", "type": "address" }
250
- ],
251
- "name": "setTreasury",
252
- "outputs": [],
253
- "stateMutability": "nonpayable",
254
- "type": "function"
255
- },
256
- {
257
- "inputs": [
258
- {
259
- "internalType": "address",
260
- "name": "newVaultManager",
261
- "type": "address"
262
- }
263
- ],
264
- "name": "setVaultManager",
265
- "outputs": [],
266
- "stateMutability": "nonpayable",
267
- "type": "function"
268
- },
269
- {
270
- "inputs": [
271
- {
272
- "internalType": "uint256",
273
- "name": "newVaultRewardRate",
274
- "type": "uint256"
275
- }
276
- ],
277
- "name": "setVaultRewardRate",
278
- "outputs": [],
279
- "stateMutability": "nonpayable",
280
- "type": "function"
281
- },
282
- {
283
- "inputs": [
284
- { "internalType": "address", "name": "newOwner", "type": "address" }
285
- ],
286
- "name": "transferOwnership",
287
- "outputs": [],
288
- "stateMutability": "nonpayable",
289
- "type": "function"
290
- },
291
- {
292
- "inputs": [],
293
- "name": "treasury",
294
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
295
- "stateMutability": "view",
296
- "type": "function"
297
- },
298
- {
299
- "inputs": [],
300
- "name": "vaultManager",
301
- "outputs": [
302
- {
303
- "internalType": "contract IWooVaultManager",
304
- "name": "",
305
- "type": "address"
306
- }
307
- ],
308
- "stateMutability": "view",
309
- "type": "function"
310
- },
311
- {
312
- "inputs": [],
313
- "name": "vaultRewardRate",
314
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
315
- "stateMutability": "view",
316
- "type": "function"
317
- }
318
- ]