@paraswap/dex-lib 2.42.26-smardex → 2.42.26

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 (66) hide show
  1. package/.vscode/launch.json +54 -0
  2. package/.vscode/settings.json +2 -0
  3. package/.vscode/tasks.json +15 -0
  4. package/build/config.js +10 -20
  5. package/build/config.js.map +1 -1
  6. package/build/dex/index.js +0 -2
  7. package/build/dex/index.js.map +1 -1
  8. package/build/types.d.ts +0 -1
  9. package/package.json +2 -3
  10. package/src/config.ts +10 -21
  11. package/src/dex/index.ts +0 -2
  12. package/src/types.ts +0 -1
  13. package/tests/constants-e2e.ts +1 -26
  14. package/build/abi/smardex/all/smardex-router.json +0 -648
  15. package/build/abi/smardex/layer-1/smardex-factory.json +0 -242
  16. package/build/abi/smardex/layer-1/smardex-pool.json +0 -506
  17. package/build/abi/smardex/layer-2/smardex-factory.json +0 -185
  18. package/build/abi/smardex/layer-2/smardex-pool.json +0 -578
  19. package/build/dex/smardex/config.d.ts +0 -4
  20. package/build/dex/smardex/config.js +0 -64
  21. package/build/dex/smardex/config.js.map +0 -1
  22. package/build/dex/smardex/constants.d.ts +0 -18
  23. package/build/dex/smardex/constants.js +0 -33
  24. package/build/dex/smardex/constants.js.map +0 -1
  25. package/build/dex/smardex/sdk/constants.d.ts +0 -6
  26. package/build/dex/smardex/sdk/constants.js +0 -13
  27. package/build/dex/smardex/sdk/constants.js.map +0 -1
  28. package/build/dex/smardex/sdk/core.d.ts +0 -113
  29. package/build/dex/smardex/sdk/core.js +0 -499
  30. package/build/dex/smardex/sdk/core.js.map +0 -1
  31. package/build/dex/smardex/sdk/errors.d.ts +0 -15
  32. package/build/dex/smardex/sdk/errors.js +0 -22
  33. package/build/dex/smardex/sdk/errors.js.map +0 -1
  34. package/build/dex/smardex/sdk/types.d.ts +0 -62
  35. package/build/dex/smardex/sdk/types.js +0 -3
  36. package/build/dex/smardex/sdk/types.js.map +0 -1
  37. package/build/dex/smardex/sdk/utils.d.ts +0 -44
  38. package/build/dex/smardex/sdk/utils.js +0 -133
  39. package/build/dex/smardex/sdk/utils.js.map +0 -1
  40. package/build/dex/smardex/smardex-event-pool.d.ts +0 -28
  41. package/build/dex/smardex/smardex-event-pool.js +0 -119
  42. package/build/dex/smardex/smardex-event-pool.js.map +0 -1
  43. package/build/dex/smardex/smardex.d.ts +0 -65
  44. package/build/dex/smardex/smardex.js +0 -519
  45. package/build/dex/smardex/smardex.js.map +0 -1
  46. package/build/dex/smardex/types.d.ts +0 -55
  47. package/build/dex/smardex/types.js +0 -3
  48. package/build/dex/smardex/types.js.map +0 -1
  49. package/src/abi/smardex/all/smardex-router.json +0 -648
  50. package/src/abi/smardex/layer-1/smardex-factory.json +0 -242
  51. package/src/abi/smardex/layer-1/smardex-pool.json +0 -506
  52. package/src/abi/smardex/layer-2/smardex-factory.json +0 -185
  53. package/src/abi/smardex/layer-2/smardex-pool.json +0 -578
  54. package/src/dex/smardex/config.ts +0 -67
  55. package/src/dex/smardex/constants.ts +0 -35
  56. package/src/dex/smardex/sdk/constants.ts +0 -10
  57. package/src/dex/smardex/sdk/core.ts +0 -832
  58. package/src/dex/smardex/sdk/errors.ts +0 -18
  59. package/src/dex/smardex/sdk/types.ts +0 -68
  60. package/src/dex/smardex/sdk/utils.ts +0 -156
  61. package/src/dex/smardex/smardex-e2e.test.ts +0 -275
  62. package/src/dex/smardex/smardex-event-pool.ts +0 -164
  63. package/src/dex/smardex/smardex-events.test.ts +0 -297
  64. package/src/dex/smardex/smardex-integration.test.ts +0 -258
  65. package/src/dex/smardex/smardex.ts +0 -770
  66. package/src/dex/smardex/types.ts +0 -69
@@ -1,242 +0,0 @@
1
- [
2
- { "inputs": [], "name": "EmptyPair", "type": "error" },
3
- { "inputs": [], "name": "WhitelistNotClosed", "type": "error" },
4
- { "inputs": [], "name": "WhitelistNotOpen", "type": "error" },
5
- {
6
- "anonymous": false,
7
- "inputs": [
8
- {
9
- "indexed": true,
10
- "internalType": "address",
11
- "name": "previousFeeTo",
12
- "type": "address"
13
- },
14
- {
15
- "indexed": true,
16
- "internalType": "address",
17
- "name": "newFeeTo",
18
- "type": "address"
19
- }
20
- ],
21
- "name": "FeeToUpdated",
22
- "type": "event"
23
- },
24
- {
25
- "anonymous": false,
26
- "inputs": [
27
- {
28
- "indexed": true,
29
- "internalType": "uint256",
30
- "name": "feesLP",
31
- "type": "uint256"
32
- },
33
- {
34
- "indexed": true,
35
- "internalType": "uint256",
36
- "name": "feesPool",
37
- "type": "uint256"
38
- }
39
- ],
40
- "name": "FeesChanged",
41
- "type": "event"
42
- },
43
- {
44
- "anonymous": false,
45
- "inputs": [
46
- {
47
- "indexed": true,
48
- "internalType": "address",
49
- "name": "previousOwner",
50
- "type": "address"
51
- },
52
- {
53
- "indexed": true,
54
- "internalType": "address",
55
- "name": "newOwner",
56
- "type": "address"
57
- }
58
- ],
59
- "name": "OwnershipTransferred",
60
- "type": "event"
61
- },
62
- {
63
- "anonymous": false,
64
- "inputs": [
65
- {
66
- "indexed": true,
67
- "internalType": "address",
68
- "name": "token0",
69
- "type": "address"
70
- },
71
- {
72
- "indexed": true,
73
- "internalType": "address",
74
- "name": "token1",
75
- "type": "address"
76
- },
77
- {
78
- "indexed": false,
79
- "internalType": "address",
80
- "name": "pair",
81
- "type": "address"
82
- },
83
- {
84
- "indexed": false,
85
- "internalType": "uint256",
86
- "name": "totalPair",
87
- "type": "uint256"
88
- }
89
- ],
90
- "name": "PairAdded",
91
- "type": "event"
92
- },
93
- {
94
- "anonymous": false,
95
- "inputs": [
96
- {
97
- "indexed": true,
98
- "internalType": "address",
99
- "name": "token0",
100
- "type": "address"
101
- },
102
- {
103
- "indexed": true,
104
- "internalType": "address",
105
- "name": "token1",
106
- "type": "address"
107
- },
108
- {
109
- "indexed": false,
110
- "internalType": "address",
111
- "name": "pair",
112
- "type": "address"
113
- },
114
- {
115
- "indexed": false,
116
- "internalType": "uint256",
117
- "name": "totalPair",
118
- "type": "uint256"
119
- }
120
- ],
121
- "name": "PairCreated",
122
- "type": "event"
123
- },
124
- {
125
- "inputs": [
126
- { "internalType": "address", "name": "_pair", "type": "address" }
127
- ],
128
- "name": "addPair",
129
- "outputs": [],
130
- "stateMutability": "nonpayable",
131
- "type": "function"
132
- },
133
- {
134
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
135
- "name": "allPairs",
136
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
137
- "stateMutability": "view",
138
- "type": "function"
139
- },
140
- {
141
- "inputs": [],
142
- "name": "allPairsLength",
143
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
144
- "stateMutability": "view",
145
- "type": "function"
146
- },
147
- {
148
- "inputs": [],
149
- "name": "closeWhitelist",
150
- "outputs": [],
151
- "stateMutability": "nonpayable",
152
- "type": "function"
153
- },
154
- {
155
- "inputs": [
156
- { "internalType": "address", "name": "_tokenA", "type": "address" },
157
- { "internalType": "address", "name": "_tokenB", "type": "address" }
158
- ],
159
- "name": "createPair",
160
- "outputs": [
161
- { "internalType": "address", "name": "pair_", "type": "address" }
162
- ],
163
- "stateMutability": "nonpayable",
164
- "type": "function"
165
- },
166
- {
167
- "inputs": [],
168
- "name": "feeTo",
169
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
170
- "stateMutability": "view",
171
- "type": "function"
172
- },
173
- {
174
- "inputs": [],
175
- "name": "getDefaultFees",
176
- "outputs": [
177
- { "internalType": "uint128", "name": "feesLP_", "type": "uint128" },
178
- { "internalType": "uint128", "name": "feesPool_", "type": "uint128" }
179
- ],
180
- "stateMutability": "view",
181
- "type": "function"
182
- },
183
- {
184
- "inputs": [
185
- { "internalType": "address", "name": "", "type": "address" },
186
- { "internalType": "address", "name": "", "type": "address" }
187
- ],
188
- "name": "getPair",
189
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
190
- "stateMutability": "view",
191
- "type": "function"
192
- },
193
- {
194
- "inputs": [],
195
- "name": "owner",
196
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
197
- "stateMutability": "view",
198
- "type": "function"
199
- },
200
- {
201
- "inputs": [],
202
- "name": "renounceOwnership",
203
- "outputs": [],
204
- "stateMutability": "nonpayable",
205
- "type": "function"
206
- },
207
- {
208
- "inputs": [
209
- { "internalType": "address", "name": "_feeTo", "type": "address" }
210
- ],
211
- "name": "setFeeTo",
212
- "outputs": [],
213
- "stateMutability": "nonpayable",
214
- "type": "function"
215
- },
216
- {
217
- "inputs": [
218
- { "internalType": "uint128", "name": "_feesLP", "type": "uint128" },
219
- { "internalType": "uint128", "name": "_feesPool", "type": "uint128" }
220
- ],
221
- "name": "setFees",
222
- "outputs": [],
223
- "stateMutability": "nonpayable",
224
- "type": "function"
225
- },
226
- {
227
- "inputs": [
228
- { "internalType": "address", "name": "newOwner", "type": "address" }
229
- ],
230
- "name": "transferOwnership",
231
- "outputs": [],
232
- "stateMutability": "nonpayable",
233
- "type": "function"
234
- },
235
- {
236
- "inputs": [],
237
- "name": "whitelistOpen",
238
- "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
239
- "stateMutability": "view",
240
- "type": "function"
241
- }
242
- ]