@dhedge/v2-sdk 1.10.3 → 1.10.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhedge/v2-sdk",
3
- "version": "1.10.3",
3
+ "version": "1.10.5",
4
4
  "license": "MIT",
5
5
  "description": "🛠 An SDK for building applications on top of dHEDGE V2",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,486 @@
1
+ [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": true,
7
+ "internalType": "uint256",
8
+ "name": "tokenId",
9
+ "type": "uint256"
10
+ },
11
+ {
12
+ "indexed": false,
13
+ "internalType": "address",
14
+ "name": "recipient",
15
+ "type": "address"
16
+ },
17
+ {
18
+ "indexed": false,
19
+ "internalType": "uint256",
20
+ "name": "amount0",
21
+ "type": "uint256"
22
+ },
23
+ {
24
+ "indexed": false,
25
+ "internalType": "uint256",
26
+ "name": "amount1",
27
+ "type": "uint256"
28
+ }
29
+ ],
30
+ "name": "Collect",
31
+ "type": "event"
32
+ },
33
+ {
34
+ "anonymous": false,
35
+ "inputs": [
36
+ {
37
+ "indexed": true,
38
+ "internalType": "uint256",
39
+ "name": "tokenId",
40
+ "type": "uint256"
41
+ },
42
+ {
43
+ "indexed": false,
44
+ "internalType": "uint128",
45
+ "name": "liquidity",
46
+ "type": "uint128"
47
+ },
48
+ {
49
+ "indexed": false,
50
+ "internalType": "uint256",
51
+ "name": "amount0",
52
+ "type": "uint256"
53
+ },
54
+ {
55
+ "indexed": false,
56
+ "internalType": "uint256",
57
+ "name": "amount1",
58
+ "type": "uint256"
59
+ }
60
+ ],
61
+ "name": "DecreaseLiquidity",
62
+ "type": "event"
63
+ },
64
+ {
65
+ "anonymous": false,
66
+ "inputs": [
67
+ {
68
+ "indexed": true,
69
+ "internalType": "uint256",
70
+ "name": "tokenId",
71
+ "type": "uint256"
72
+ },
73
+ {
74
+ "indexed": false,
75
+ "internalType": "uint128",
76
+ "name": "liquidity",
77
+ "type": "uint128"
78
+ },
79
+ {
80
+ "indexed": false,
81
+ "internalType": "uint256",
82
+ "name": "amount0",
83
+ "type": "uint256"
84
+ },
85
+ {
86
+ "indexed": false,
87
+ "internalType": "uint256",
88
+ "name": "amount1",
89
+ "type": "uint256"
90
+ }
91
+ ],
92
+ "name": "IncreaseLiquidity",
93
+ "type": "event"
94
+ },
95
+ {
96
+ "inputs": [
97
+ {
98
+ "internalType": "uint256",
99
+ "name": "tokenId",
100
+ "type": "uint256"
101
+ }
102
+ ],
103
+ "name": "burn",
104
+ "outputs": [],
105
+ "stateMutability": "payable",
106
+ "type": "function"
107
+ },
108
+ {
109
+ "inputs": [
110
+ {
111
+ "components": [
112
+ {
113
+ "internalType": "uint256",
114
+ "name": "tokenId",
115
+ "type": "uint256"
116
+ },
117
+ {
118
+ "internalType": "address",
119
+ "name": "recipient",
120
+ "type": "address"
121
+ },
122
+ {
123
+ "internalType": "uint128",
124
+ "name": "amount0Max",
125
+ "type": "uint128"
126
+ },
127
+ {
128
+ "internalType": "uint128",
129
+ "name": "amount1Max",
130
+ "type": "uint128"
131
+ }
132
+ ],
133
+ "internalType": "struct IRamsesNonfungiblePositionManager.CollectParams",
134
+ "name": "params",
135
+ "type": "tuple"
136
+ }
137
+ ],
138
+ "name": "collect",
139
+ "outputs": [
140
+ {
141
+ "internalType": "uint256",
142
+ "name": "amount0",
143
+ "type": "uint256"
144
+ },
145
+ {
146
+ "internalType": "uint256",
147
+ "name": "amount1",
148
+ "type": "uint256"
149
+ }
150
+ ],
151
+ "stateMutability": "payable",
152
+ "type": "function"
153
+ },
154
+ {
155
+ "inputs": [
156
+ {
157
+ "components": [
158
+ {
159
+ "internalType": "uint256",
160
+ "name": "tokenId",
161
+ "type": "uint256"
162
+ },
163
+ {
164
+ "internalType": "uint128",
165
+ "name": "liquidity",
166
+ "type": "uint128"
167
+ },
168
+ {
169
+ "internalType": "uint256",
170
+ "name": "amount0Min",
171
+ "type": "uint256"
172
+ },
173
+ {
174
+ "internalType": "uint256",
175
+ "name": "amount1Min",
176
+ "type": "uint256"
177
+ },
178
+ {
179
+ "internalType": "uint256",
180
+ "name": "deadline",
181
+ "type": "uint256"
182
+ }
183
+ ],
184
+ "internalType": "struct IRamsesNonfungiblePositionManager.DecreaseLiquidityParams",
185
+ "name": "params",
186
+ "type": "tuple"
187
+ }
188
+ ],
189
+ "name": "decreaseLiquidity",
190
+ "outputs": [
191
+ {
192
+ "internalType": "uint256",
193
+ "name": "amount0",
194
+ "type": "uint256"
195
+ },
196
+ {
197
+ "internalType": "uint256",
198
+ "name": "amount1",
199
+ "type": "uint256"
200
+ }
201
+ ],
202
+ "stateMutability": "payable",
203
+ "type": "function"
204
+ },
205
+ {
206
+ "inputs": [],
207
+ "name": "factory",
208
+ "outputs": [
209
+ {
210
+ "internalType": "address",
211
+ "name": "",
212
+ "type": "address"
213
+ }
214
+ ],
215
+ "stateMutability": "view",
216
+ "type": "function"
217
+ },
218
+ {
219
+ "inputs": [
220
+ {
221
+ "internalType": "uint256",
222
+ "name": "tokenId",
223
+ "type": "uint256"
224
+ },
225
+ {
226
+ "internalType": "address[]",
227
+ "name": "tokens",
228
+ "type": "address[]"
229
+ }
230
+ ],
231
+ "name": "getReward",
232
+ "outputs": [],
233
+ "stateMutability": "nonpayable",
234
+ "type": "function"
235
+ },
236
+ {
237
+ "inputs": [
238
+ {
239
+ "components": [
240
+ {
241
+ "internalType": "uint256",
242
+ "name": "tokenId",
243
+ "type": "uint256"
244
+ },
245
+ {
246
+ "internalType": "uint256",
247
+ "name": "amount0Desired",
248
+ "type": "uint256"
249
+ },
250
+ {
251
+ "internalType": "uint256",
252
+ "name": "amount1Desired",
253
+ "type": "uint256"
254
+ },
255
+ {
256
+ "internalType": "uint256",
257
+ "name": "amount0Min",
258
+ "type": "uint256"
259
+ },
260
+ {
261
+ "internalType": "uint256",
262
+ "name": "amount1Min",
263
+ "type": "uint256"
264
+ },
265
+ {
266
+ "internalType": "uint256",
267
+ "name": "deadline",
268
+ "type": "uint256"
269
+ }
270
+ ],
271
+ "internalType": "struct IRamsesNonfungiblePositionManager.IncreaseLiquidityParams",
272
+ "name": "params",
273
+ "type": "tuple"
274
+ }
275
+ ],
276
+ "name": "increaseLiquidity",
277
+ "outputs": [
278
+ {
279
+ "internalType": "uint128",
280
+ "name": "liquidity",
281
+ "type": "uint128"
282
+ },
283
+ {
284
+ "internalType": "uint256",
285
+ "name": "amount0",
286
+ "type": "uint256"
287
+ },
288
+ {
289
+ "internalType": "uint256",
290
+ "name": "amount1",
291
+ "type": "uint256"
292
+ }
293
+ ],
294
+ "stateMutability": "payable",
295
+ "type": "function"
296
+ },
297
+ {
298
+ "inputs": [
299
+ {
300
+ "components": [
301
+ {
302
+ "internalType": "address",
303
+ "name": "token0",
304
+ "type": "address"
305
+ },
306
+ {
307
+ "internalType": "address",
308
+ "name": "token1",
309
+ "type": "address"
310
+ },
311
+ {
312
+ "internalType": "uint24",
313
+ "name": "fee",
314
+ "type": "uint24"
315
+ },
316
+ {
317
+ "internalType": "int24",
318
+ "name": "tickLower",
319
+ "type": "int24"
320
+ },
321
+ {
322
+ "internalType": "int24",
323
+ "name": "tickUpper",
324
+ "type": "int24"
325
+ },
326
+ {
327
+ "internalType": "uint256",
328
+ "name": "amount0Desired",
329
+ "type": "uint256"
330
+ },
331
+ {
332
+ "internalType": "uint256",
333
+ "name": "amount1Desired",
334
+ "type": "uint256"
335
+ },
336
+ {
337
+ "internalType": "uint256",
338
+ "name": "amount0Min",
339
+ "type": "uint256"
340
+ },
341
+ {
342
+ "internalType": "uint256",
343
+ "name": "amount1Min",
344
+ "type": "uint256"
345
+ },
346
+ {
347
+ "internalType": "address",
348
+ "name": "recipient",
349
+ "type": "address"
350
+ },
351
+ {
352
+ "internalType": "uint256",
353
+ "name": "deadline",
354
+ "type": "uint256"
355
+ },
356
+ {
357
+ "internalType": "uint256",
358
+ "name": "veRamTokenId",
359
+ "type": "uint256"
360
+ }
361
+ ],
362
+ "internalType": "struct IRamsesNonfungiblePositionManager.MintParams",
363
+ "name": "params",
364
+ "type": "tuple"
365
+ }
366
+ ],
367
+ "name": "mint",
368
+ "outputs": [
369
+ {
370
+ "internalType": "uint256",
371
+ "name": "tokenId",
372
+ "type": "uint256"
373
+ },
374
+ {
375
+ "internalType": "uint128",
376
+ "name": "liquidity",
377
+ "type": "uint128"
378
+ },
379
+ {
380
+ "internalType": "uint256",
381
+ "name": "amount0",
382
+ "type": "uint256"
383
+ },
384
+ {
385
+ "internalType": "uint256",
386
+ "name": "amount1",
387
+ "type": "uint256"
388
+ }
389
+ ],
390
+ "stateMutability": "payable",
391
+ "type": "function"
392
+ },
393
+ {
394
+ "inputs": [
395
+ {
396
+ "internalType": "uint256",
397
+ "name": "tokenId",
398
+ "type": "uint256"
399
+ }
400
+ ],
401
+ "name": "positions",
402
+ "outputs": [
403
+ {
404
+ "internalType": "uint96",
405
+ "name": "nonce",
406
+ "type": "uint96"
407
+ },
408
+ {
409
+ "internalType": "address",
410
+ "name": "operator",
411
+ "type": "address"
412
+ },
413
+ {
414
+ "internalType": "address",
415
+ "name": "token0",
416
+ "type": "address"
417
+ },
418
+ {
419
+ "internalType": "address",
420
+ "name": "token1",
421
+ "type": "address"
422
+ },
423
+ {
424
+ "internalType": "uint24",
425
+ "name": "fee",
426
+ "type": "uint24"
427
+ },
428
+ {
429
+ "internalType": "int24",
430
+ "name": "tickLower",
431
+ "type": "int24"
432
+ },
433
+ {
434
+ "internalType": "int24",
435
+ "name": "tickUpper",
436
+ "type": "int24"
437
+ },
438
+ {
439
+ "internalType": "uint128",
440
+ "name": "liquidity",
441
+ "type": "uint128"
442
+ },
443
+ {
444
+ "internalType": "uint256",
445
+ "name": "feeGrowthInside0LastX128",
446
+ "type": "uint256"
447
+ },
448
+ {
449
+ "internalType": "uint256",
450
+ "name": "feeGrowthInside1LastX128",
451
+ "type": "uint256"
452
+ },
453
+ {
454
+ "internalType": "uint128",
455
+ "name": "tokensOwed0",
456
+ "type": "uint128"
457
+ },
458
+ {
459
+ "internalType": "uint128",
460
+ "name": "tokensOwed1",
461
+ "type": "uint128"
462
+ }
463
+ ],
464
+ "stateMutability": "view",
465
+ "type": "function"
466
+ },
467
+ {
468
+ "inputs": [
469
+ {
470
+ "internalType": "address",
471
+ "name": "owner",
472
+ "type": "address"
473
+ }
474
+ ],
475
+ "name": "balanceOf",
476
+ "outputs": [
477
+ {
478
+ "internalType": "uint256",
479
+ "name": "",
480
+ "type": "uint256"
481
+ }
482
+ ],
483
+ "stateMutability": "view",
484
+ "type": "function"
485
+ }
486
+ ]
@@ -0,0 +1,51 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "name": "baseToken",
5
+ "outputs": [
6
+ {
7
+ "internalType": "address",
8
+ "name": "",
9
+ "type": "address"
10
+ }
11
+ ],
12
+ "stateMutability": "view",
13
+ "type": "function"
14
+ },
15
+ {
16
+ "inputs": [
17
+ {
18
+ "internalType": "address",
19
+ "name": "asset",
20
+ "type": "address"
21
+ },
22
+ {
23
+ "internalType": "uint256",
24
+ "name": "amount",
25
+ "type": "uint256"
26
+ }
27
+ ],
28
+ "name": "supply",
29
+ "outputs": [],
30
+ "stateMutability": "nonpayable",
31
+ "type": "function"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "address",
37
+ "name": "asset",
38
+ "type": "address"
39
+ },
40
+ {
41
+ "internalType": "uint256",
42
+ "name": "amount",
43
+ "type": "uint256"
44
+ }
45
+ ],
46
+ "name": "withdraw",
47
+ "outputs": [],
48
+ "stateMutability": "nonpayable",
49
+ "type": "function"
50
+ }
51
+ ]
package/src/config.ts CHANGED
@@ -110,7 +110,8 @@ export const nonfungiblePositionManagerAddress: AddressDappNetworkMap = {
110
110
  [Dapp.VELODROMECL]: "0x416b433906b1B72FA758e166e239c43d68dC6F29"
111
111
  },
112
112
  [Network.ARBITRUM]: {
113
- [Dapp.UNISWAPV3]: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88"
113
+ [Dapp.UNISWAPV3]: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
114
+ [Dapp.RAMSESCL]: "0xAA277CB7914b7e5514946Da92cb9De332Ce610EF"
114
115
  },
115
116
  [Network.BASE]: {
116
117
  [Dapp.UNISWAPV3]: "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",