@paraswap/dex-lib 4.7.22-log-handling.1 → 4.7.22-native-blacklist.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.
@@ -1,10 +1,9 @@
1
1
  [
2
2
  {
3
3
  "inputs": [
4
- { "internalType": "bytes32", "name": "ilk_", "type": "bytes32" },
5
- { "internalType": "address", "name": "gem_", "type": "address" },
4
+ { "internalType": "address", "name": "gemJoin_", "type": "address" },
6
5
  { "internalType": "address", "name": "daiJoin_", "type": "address" },
7
- { "internalType": "address", "name": "pocket_", "type": "address" }
6
+ { "internalType": "address", "name": "vow_", "type": "address" }
8
7
  ],
9
8
  "stateMutability": "nonpayable",
10
9
  "type": "constructor"
@@ -39,59 +38,14 @@
39
38
  "inputs": [
40
39
  {
41
40
  "indexed": false,
42
- "internalType": "uint256",
43
- "name": "wad",
44
- "type": "uint256"
45
- }
46
- ],
47
- "name": "Chug",
48
- "type": "event"
49
- },
50
- {
51
- "anonymous": false,
52
- "inputs": [
53
- {
54
- "indexed": true,
55
41
  "internalType": "address",
56
- "name": "usr",
42
+ "name": "user",
57
43
  "type": "address"
58
44
  }
59
45
  ],
60
46
  "name": "Deny",
61
47
  "type": "event"
62
48
  },
63
- {
64
- "anonymous": false,
65
- "inputs": [
66
- {
67
- "indexed": true,
68
- "internalType": "address",
69
- "name": "usr",
70
- "type": "address"
71
- }
72
- ],
73
- "name": "Diss",
74
- "type": "event"
75
- },
76
- {
77
- "anonymous": false,
78
- "inputs": [
79
- {
80
- "indexed": true,
81
- "internalType": "bytes32",
82
- "name": "what",
83
- "type": "bytes32"
84
- },
85
- {
86
- "indexed": false,
87
- "internalType": "address",
88
- "name": "data",
89
- "type": "address"
90
- }
91
- ],
92
- "name": "File",
93
- "type": "event"
94
- },
95
49
  {
96
50
  "anonymous": false,
97
51
  "inputs": [
@@ -116,34 +70,8 @@
116
70
  "inputs": [
117
71
  {
118
72
  "indexed": false,
119
- "internalType": "uint256",
120
- "name": "wad",
121
- "type": "uint256"
122
- }
123
- ],
124
- "name": "Fill",
125
- "type": "event"
126
- },
127
- {
128
- "anonymous": false,
129
- "inputs": [
130
- {
131
- "indexed": true,
132
- "internalType": "address",
133
- "name": "usr",
134
- "type": "address"
135
- }
136
- ],
137
- "name": "Kiss",
138
- "type": "event"
139
- },
140
- {
141
- "anonymous": false,
142
- "inputs": [
143
- {
144
- "indexed": true,
145
73
  "internalType": "address",
146
- "name": "usr",
74
+ "name": "user",
147
75
  "type": "address"
148
76
  }
149
77
  ],
@@ -175,87 +103,21 @@
175
103
  "name": "SellGem",
176
104
  "type": "event"
177
105
  },
178
- {
179
- "anonymous": false,
180
- "inputs": [
181
- {
182
- "indexed": false,
183
- "internalType": "uint256",
184
- "name": "wad",
185
- "type": "uint256"
186
- }
187
- ],
188
- "name": "Trim",
189
- "type": "event"
190
- },
191
- {
192
- "inputs": [],
193
- "name": "HALTED",
194
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
195
- "stateMutability": "view",
196
- "type": "function"
197
- },
198
- {
199
- "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
200
- "name": "bud",
201
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
202
- "stateMutability": "view",
203
- "type": "function"
204
- },
205
- {
206
- "inputs": [],
207
- "name": "buf",
208
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
209
- "stateMutability": "view",
210
- "type": "function"
211
- },
212
106
  {
213
107
  "inputs": [
214
108
  { "internalType": "address", "name": "usr", "type": "address" },
215
109
  { "internalType": "uint256", "name": "gemAmt", "type": "uint256" }
216
110
  ],
217
111
  "name": "buyGem",
218
- "outputs": [
219
- { "internalType": "uint256", "name": "daiInWad", "type": "uint256" }
220
- ],
221
- "stateMutability": "nonpayable",
222
- "type": "function"
223
- },
224
- {
225
- "inputs": [
226
- { "internalType": "address", "name": "usr", "type": "address" },
227
- { "internalType": "uint256", "name": "gemAmt", "type": "uint256" }
228
- ],
229
- "name": "buyGemNoFee",
230
- "outputs": [
231
- { "internalType": "uint256", "name": "daiInWad", "type": "uint256" }
232
- ],
233
- "stateMutability": "nonpayable",
234
- "type": "function"
235
- },
236
- {
237
- "inputs": [],
238
- "name": "chug",
239
- "outputs": [
240
- { "internalType": "uint256", "name": "wad", "type": "uint256" }
241
- ],
112
+ "outputs": [],
242
113
  "stateMutability": "nonpayable",
243
114
  "type": "function"
244
115
  },
245
- {
246
- "inputs": [],
247
- "name": "cut",
248
- "outputs": [
249
- { "internalType": "uint256", "name": "wad", "type": "uint256" }
250
- ],
251
- "stateMutability": "view",
252
- "type": "function"
253
- },
254
116
  {
255
117
  "inputs": [],
256
118
  "name": "dai",
257
119
  "outputs": [
258
- { "internalType": "contract GemLike", "name": "", "type": "address" }
120
+ { "internalType": "contract DaiAbstract", "name": "", "type": "address" }
259
121
  ],
260
122
  "stateMutability": "view",
261
123
  "type": "function"
@@ -264,18 +126,15 @@
264
126
  "inputs": [],
265
127
  "name": "daiJoin",
266
128
  "outputs": [
267
- { "internalType": "contract DaiJoinLike", "name": "", "type": "address" }
129
+ {
130
+ "internalType": "contract DaiJoinAbstract",
131
+ "name": "",
132
+ "type": "address"
133
+ }
268
134
  ],
269
135
  "stateMutability": "view",
270
136
  "type": "function"
271
137
  },
272
- {
273
- "inputs": [],
274
- "name": "dec",
275
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
276
- "stateMutability": "view",
277
- "type": "function"
278
- },
279
138
  {
280
139
  "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }],
281
140
  "name": "deny",
@@ -283,13 +142,6 @@
283
142
  "stateMutability": "nonpayable",
284
143
  "type": "function"
285
144
  },
286
- {
287
- "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }],
288
- "name": "diss",
289
- "outputs": [],
290
- "stateMutability": "nonpayable",
291
- "type": "function"
292
- },
293
145
  {
294
146
  "inputs": [
295
147
  { "internalType": "bytes32", "name": "what", "type": "bytes32" },
@@ -300,48 +152,24 @@
300
152
  "stateMutability": "nonpayable",
301
153
  "type": "function"
302
154
  },
303
- {
304
- "inputs": [
305
- { "internalType": "bytes32", "name": "what", "type": "bytes32" },
306
- { "internalType": "address", "name": "data", "type": "address" }
307
- ],
308
- "name": "file",
309
- "outputs": [],
310
- "stateMutability": "nonpayable",
311
- "type": "function"
312
- },
313
- {
314
- "inputs": [],
315
- "name": "fill",
316
- "outputs": [
317
- { "internalType": "uint256", "name": "wad", "type": "uint256" }
318
- ],
319
- "stateMutability": "nonpayable",
320
- "type": "function"
321
- },
322
155
  {
323
156
  "inputs": [],
324
- "name": "gem",
157
+ "name": "gemJoin",
325
158
  "outputs": [
326
- { "internalType": "contract GemLike", "name": "", "type": "address" }
159
+ {
160
+ "internalType": "contract AuthGemJoinAbstract",
161
+ "name": "",
162
+ "type": "address"
163
+ }
327
164
  ],
328
165
  "stateMutability": "view",
329
166
  "type": "function"
330
167
  },
331
168
  {
332
- "inputs": [],
333
- "name": "gemJoin",
334
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
335
- "stateMutability": "view",
336
- "type": "function"
337
- },
338
- {
339
- "inputs": [],
340
- "name": "gush",
341
- "outputs": [
342
- { "internalType": "uint256", "name": "wad", "type": "uint256" }
343
- ],
344
- "stateMutability": "view",
169
+ "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }],
170
+ "name": "hope",
171
+ "outputs": [],
172
+ "stateMutability": "nonpayable",
345
173
  "type": "function"
346
174
  },
347
175
  {
@@ -353,25 +181,11 @@
353
181
  },
354
182
  {
355
183
  "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }],
356
- "name": "kiss",
184
+ "name": "nope",
357
185
  "outputs": [],
358
186
  "stateMutability": "nonpayable",
359
187
  "type": "function"
360
188
  },
361
- {
362
- "inputs": [],
363
- "name": "live",
364
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
365
- "stateMutability": "view",
366
- "type": "function"
367
- },
368
- {
369
- "inputs": [],
370
- "name": "pocket",
371
- "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
372
- "stateMutability": "view",
373
- "type": "function"
374
- },
375
189
  {
376
190
  "inputs": [{ "internalType": "address", "name": "usr", "type": "address" }],
377
191
  "name": "rely",
@@ -379,15 +193,6 @@
379
193
  "stateMutability": "nonpayable",
380
194
  "type": "function"
381
195
  },
382
- {
383
- "inputs": [],
384
- "name": "rush",
385
- "outputs": [
386
- { "internalType": "uint256", "name": "wad", "type": "uint256" }
387
- ],
388
- "stateMutability": "view",
389
- "type": "function"
390
- },
391
196
  {
392
197
  "inputs": [
393
198
  { "internalType": "address", "name": "usr", "type": "address" },
@@ -400,18 +205,6 @@
400
205
  "stateMutability": "nonpayable",
401
206
  "type": "function"
402
207
  },
403
- {
404
- "inputs": [
405
- { "internalType": "address", "name": "usr", "type": "address" },
406
- { "internalType": "uint256", "name": "gemAmt", "type": "uint256" }
407
- ],
408
- "name": "sellGemNoFee",
409
- "outputs": [
410
- { "internalType": "uint256", "name": "daiOutWad", "type": "uint256" }
411
- ],
412
- "stateMutability": "nonpayable",
413
- "type": "function"
414
- },
415
208
  {
416
209
  "inputs": [],
417
210
  "name": "tin",
@@ -419,13 +212,6 @@
419
212
  "stateMutability": "view",
420
213
  "type": "function"
421
214
  },
422
- {
423
- "inputs": [],
424
- "name": "to18ConversionFactor",
425
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
426
- "stateMutability": "view",
427
- "type": "function"
428
- },
429
215
  {
430
216
  "inputs": [],
431
217
  "name": "tout",
@@ -433,20 +219,11 @@
433
219
  "stateMutability": "view",
434
220
  "type": "function"
435
221
  },
436
- {
437
- "inputs": [],
438
- "name": "trim",
439
- "outputs": [
440
- { "internalType": "uint256", "name": "wad", "type": "uint256" }
441
- ],
442
- "stateMutability": "nonpayable",
443
- "type": "function"
444
- },
445
222
  {
446
223
  "inputs": [],
447
224
  "name": "vat",
448
225
  "outputs": [
449
- { "internalType": "contract VatLike", "name": "", "type": "address" }
226
+ { "internalType": "contract VatAbstract", "name": "", "type": "address" }
450
227
  ],
451
228
  "stateMutability": "view",
452
229
  "type": "function"
@@ -164,21 +164,9 @@
164
164
  "internalType": "address",
165
165
  "name": "user",
166
166
  "type": "address"
167
- },
168
- {
169
- "indexed": false,
170
- "internalType": "uint256",
171
- "name": "amount",
172
- "type": "uint256"
173
- },
174
- {
175
- "indexed": false,
176
- "internalType": "address",
177
- "name": "assetRecipient",
178
- "type": "address"
179
167
  }
180
168
  ],
181
- "name": "BondUnwrapped",
169
+ "name": "BondEarlyUnlockDisabled",
182
170
  "type": "event"
183
171
  },
184
172
  {
@@ -212,67 +200,36 @@
212
200
  {
213
201
  "indexed": false,
214
202
  "internalType": "uint256",
215
- "name": "usd0ppAmount",
203
+ "name": "amount",
216
204
  "type": "uint256"
217
205
  }
218
206
  ],
219
- "name": "BondUnwrappedEarlyWithUsualBurn",
207
+ "name": "BondUnwrappedDuringEarlyUnlock",
220
208
  "type": "event"
221
209
  },
222
210
  {
223
211
  "anonymous": false,
224
- "inputs": [
225
- {
226
- "indexed": true,
227
- "internalType": "address",
228
- "name": "user",
229
- "type": "address"
230
- },
231
- {
232
- "indexed": false,
233
- "internalType": "uint256",
234
- "name": "amount",
235
- "type": "uint256"
236
- },
237
- {
238
- "indexed": false,
239
- "internalType": "uint256",
240
- "name": "remainingAllowance",
241
- "type": "uint256"
242
- }
243
- ],
244
- "name": "CappedUnwrap",
212
+ "inputs": [],
213
+ "name": "EIP712DomainChanged",
245
214
  "type": "event"
246
215
  },
247
216
  {
248
217
  "anonymous": false,
249
218
  "inputs": [
250
- {
251
- "indexed": true,
252
- "internalType": "address",
253
- "name": "user",
254
- "type": "address"
255
- },
256
219
  {
257
220
  "indexed": false,
258
- "internalType": "uint256",
259
- "name": "amount",
260
- "type": "uint256"
261
- },
262
- {
263
- "indexed": false,
264
- "internalType": "address",
265
- "name": "bAssetRecipient",
266
- "type": "address"
221
+ "internalType": "address[]",
222
+ "name": "addressesToAllocateTo",
223
+ "type": "address[]"
267
224
  },
268
225
  {
269
226
  "indexed": false,
270
- "internalType": "address",
271
- "name": "rAssetRecipient",
272
- "type": "address"
227
+ "internalType": "uint256[]",
228
+ "name": "earlyUnlockBalances",
229
+ "type": "uint256[]"
273
230
  }
274
231
  ],
275
- "name": "Deconstructed",
232
+ "name": "EarlyUnlockBalancesSet",
276
233
  "type": "event"
277
234
  },
278
235
  {
@@ -281,36 +238,17 @@
281
238
  {
282
239
  "indexed": false,
283
240
  "internalType": "uint256",
284
- "name": "newFactor",
241
+ "name": "earlyUnlockStart",
285
242
  "type": "uint256"
286
- }
287
- ],
288
- "name": "DurationCostFactorSet",
289
- "type": "event"
290
- },
291
- {
292
- "anonymous": false,
293
- "inputs": [],
294
- "name": "EIP712DomainChanged",
295
- "type": "event"
296
- },
297
- {
298
- "anonymous": false,
299
- "inputs": [
300
- {
301
- "indexed": true,
302
- "internalType": "address",
303
- "name": "account",
304
- "type": "address"
305
243
  },
306
244
  {
307
245
  "indexed": false,
308
246
  "internalType": "uint256",
309
- "name": "balance",
247
+ "name": "earlyUnlockEnd",
310
248
  "type": "uint256"
311
249
  }
312
250
  ],
313
- "name": "EmergencyWithdraw",
251
+ "name": "EarlyUnlockPeriodSet",
314
252
  "type": "event"
315
253
  },
316
254
  {
@@ -319,23 +257,17 @@
319
257
  {
320
258
  "indexed": true,
321
259
  "internalType": "address",
322
- "name": "caller",
323
- "type": "address"
324
- },
325
- {
326
- "indexed": true,
327
- "internalType": "address",
328
- "name": "collector",
260
+ "name": "account",
329
261
  "type": "address"
330
262
  },
331
263
  {
332
264
  "indexed": false,
333
265
  "internalType": "uint256",
334
- "name": "amount",
266
+ "name": "balance",
335
267
  "type": "uint256"
336
268
  }
337
269
  ],
338
- "name": "FeeSwept",
270
+ "name": "EmergencyWithdraw",
339
271
  "type": "event"
340
272
  },
341
273
  {
@@ -364,19 +296,6 @@
364
296
  "name": "Initialized",
365
297
  "type": "event"
366
298
  },
367
- {
368
- "anonymous": false,
369
- "inputs": [
370
- {
371
- "indexed": false,
372
- "internalType": "address",
373
- "name": "account",
374
- "type": "address"
375
- }
376
- ],
377
- "name": "Paused",
378
- "type": "event"
379
- },
380
299
  {
381
300
  "anonymous": false,
382
301
  "inputs": [
@@ -391,15 +310,22 @@
391
310
  "internalType": "uint256",
392
311
  "name": "amount",
393
312
  "type": "uint256"
394
- },
313
+ }
314
+ ],
315
+ "name": "PARMechanismActivated",
316
+ "type": "event"
317
+ },
318
+ {
319
+ "anonymous": false,
320
+ "inputs": [
395
321
  {
396
322
  "indexed": false,
397
323
  "internalType": "address",
398
- "name": "assetRecipient",
324
+ "name": "account",
399
325
  "type": "address"
400
326
  }
401
327
  ],
402
- "name": "Reconstructed",
328
+ "name": "Paused",
403
329
  "type": "event"
404
330
  },
405
331
  {
@@ -440,25 +366,6 @@
440
366
  "name": "Unpaused",
441
367
  "type": "event"
442
368
  },
443
- {
444
- "anonymous": false,
445
- "inputs": [
446
- {
447
- "indexed": true,
448
- "internalType": "address",
449
- "name": "user",
450
- "type": "address"
451
- },
452
- {
453
- "indexed": false,
454
- "internalType": "uint256",
455
- "name": "cap",
456
- "type": "uint256"
457
- }
458
- ],
459
- "name": "UnwrapCapSet",
460
- "type": "event"
461
- },
462
369
  {
463
370
  "anonymous": false,
464
371
  "inputs": [
@@ -484,19 +391,6 @@
484
391
  "name": "Usd0ppUnlockedFloorPrice",
485
392
  "type": "event"
486
393
  },
487
- {
488
- "anonymous": false,
489
- "inputs": [
490
- {
491
- "indexed": false,
492
- "internalType": "uint256",
493
- "name": "newRate",
494
- "type": "uint256"
495
- }
496
- ],
497
- "name": "UsualDistributionPerUsd0ppSet",
498
- "type": "event"
499
- },
500
394
  {
501
395
  "inputs": [],
502
396
  "name": "DOMAIN_SEPARATOR",
@@ -22,7 +22,7 @@ exports.AlgebraIntegralConfig = {
22
22
  BlackholeCL: {
23
23
  [constants_1.Network.AVALANCHE]: {
24
24
  factory: '0x512eb749541B7cf294be882D636218c84a5e9E5F',
25
- subgraphURL: 'https://api.goldsky.com/api/public/project_cm8gyxv0x02qv01uphvy69ey6/subgraphs/poap-subgraph-core/avax-main/gn',
25
+ subgraphURL: 'https://api.goldsky.com/api/public/project_cm8gyxv0x02qv01uphvy69ey6/subgraphs/poap-subgraph-core/mainnet-1.0.2/gn',
26
26
  quoter: '0x3e182bcf14Be6142b9217847ec1112e3c39Eb689',
27
27
  router: '0xaBfc48e8BED7b26762745f3139555F320119709d',
28
28
  chunksCount: 10,
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/algebra-integral/config.ts"],"names":[],"mappings":";;;AAEA,+CAA0C;AAE7B,QAAA,qBAAqB,GAA4B;IAC5D,WAAW,EAAE;QACX,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE;YACjB,OAAO,EAAE,4CAA4C;YACrD,WAAW,EAAE,8CAA8C;YAC3D,MAAM,EAAE,4CAA4C;YACpD,MAAM,EAAE,4CAA4C;YACpD,WAAW,EAAE,EAAE;SAChB;QACD,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE;YACd,OAAO,EAAE,4CAA4C;YACrD,WAAW,EAAE,6CAA6C;YAC1D,MAAM,EAAE,4CAA4C;YACpD,MAAM,EAAE,4CAA4C;YACpD,WAAW,EAAE,EAAE;SAChB;KACF;IACD,WAAW,EAAE;QACX,CAAC,mBAAO,CAAC,SAAS,CAAC,EAAE;YACnB,OAAO,EAAE,4CAA4C;YACrD,WAAW,EACT,gHAAgH;YAClH,MAAM,EAAE,4CAA4C;YACpD,MAAM,EAAE,4CAA4C;YACpD,WAAW,EAAE,EAAE;SAChB;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/algebra-integral/config.ts"],"names":[],"mappings":";;;AAEA,+CAA0C;AAE7B,QAAA,qBAAqB,GAA4B;IAC5D,WAAW,EAAE;QACX,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE;YACjB,OAAO,EAAE,4CAA4C;YACrD,WAAW,EAAE,8CAA8C;YAC3D,MAAM,EAAE,4CAA4C;YACpD,MAAM,EAAE,4CAA4C;YACpD,WAAW,EAAE,EAAE;SAChB;QACD,CAAC,mBAAO,CAAC,IAAI,CAAC,EAAE;YACd,OAAO,EAAE,4CAA4C;YACrD,WAAW,EAAE,6CAA6C;YAC1D,MAAM,EAAE,4CAA4C;YACpD,MAAM,EAAE,4CAA4C;YACpD,WAAW,EAAE,EAAE;SAChB;KACF;IACD,WAAW,EAAE;QACX,CAAC,mBAAO,CAAC,SAAS,CAAC,EAAE;YACnB,OAAO,EAAE,4CAA4C;YACrD,WAAW,EACT,oHAAoH;YACtH,MAAM,EAAE,4CAA4C;YACpD,MAAM,EAAE,4CAA4C;YACpD,WAAW,EAAE,EAAE;SAChB;KACF;CACF,CAAC"}
@@ -410,7 +410,11 @@ class Cables extends simple_exchange_with_restrictions_1.SimpleExchangeWithRestr
410
410
  return result;
411
411
  }
412
412
  catch (e) {
413
- this.logger.error(`Error_getPricesVolume ${srcToken.symbol ?? srcToken.address}-${destToken.symbol ?? destToken.address} on ${side}:`, e);
413
+ this.logger.error(`Error in getPricesVolume`, {
414
+ srcToken: srcToken.address || srcToken.symbol,
415
+ destToken: destToken.address || destToken.symbol,
416
+ side,
417
+ }, e);
414
418
  return null;
415
419
  }
416
420
  }