@shapeshiftoss/unchained-client 9.8.2 → 10.0.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 (57) hide show
  1. package/dist/cosmos/parser/index.js +6 -6
  2. package/dist/cosmos/parser/utils.js +9 -9
  3. package/dist/cosmos/types.d.ts +2 -2
  4. package/dist/evm/ethereum/parser/abi/foxyStaking.js +161 -161
  5. package/dist/evm/ethereum/parser/abi/shapeShiftRouter.js +119 -119
  6. package/dist/evm/ethereum/parser/abi/thor.js +28 -28
  7. package/dist/evm/ethereum/parser/abi/uniV2.js +55 -55
  8. package/dist/evm/ethereum/parser/abi/uniV2StakingRewards.js +95 -95
  9. package/dist/evm/ethereum/parser/abi/weth.js +66 -66
  10. package/dist/evm/ethereum/parser/abi/yearnVault.js +95 -95
  11. package/dist/evm/ethereum/parser/cowswap.d.ts +4 -0
  12. package/dist/evm/ethereum/parser/cowswap.js +3 -3
  13. package/dist/evm/ethereum/parser/foxy.d.ts +4 -0
  14. package/dist/evm/ethereum/parser/foxy.js +3 -3
  15. package/dist/evm/ethereum/parser/index.js +1 -1
  16. package/dist/evm/ethereum/parser/thor.d.ts +4 -0
  17. package/dist/evm/ethereum/parser/thor.js +2 -2
  18. package/dist/evm/ethereum/parser/uniV2.d.ts +4 -0
  19. package/dist/evm/ethereum/parser/uniV2.js +12 -12
  20. package/dist/evm/ethereum/parser/weth.d.ts +4 -0
  21. package/dist/evm/ethereum/parser/weth.js +9 -9
  22. package/dist/evm/ethereum/parser/yearn.d.ts +7 -0
  23. package/dist/evm/ethereum/parser/yearn.js +32 -16
  24. package/dist/evm/parser/abi/erc20.js +69 -69
  25. package/dist/evm/parser/erc20.d.ts +6 -0
  26. package/dist/evm/parser/erc20.js +15 -12
  27. package/dist/evm/parser/index.js +4 -4
  28. package/dist/evm/parser/types.d.ts +10 -9
  29. package/dist/evm/parser/types.js +0 -5
  30. package/dist/evm/parser/zrx.d.ts +4 -0
  31. package/dist/evm/parser/zrx.js +3 -3
  32. package/dist/generated/cosmos/api.d.ts +183 -66
  33. package/dist/generated/cosmos/api.js +82 -13
  34. package/dist/generated/cosmos/base.d.ts +1 -1
  35. package/dist/generated/cosmos/base.js +1 -1
  36. package/dist/generated/cosmos/common.d.ts +1 -1
  37. package/dist/generated/cosmos/common.js +1 -1
  38. package/dist/generated/cosmos/configuration.d.ts +1 -1
  39. package/dist/generated/cosmos/configuration.js +1 -1
  40. package/dist/generated/cosmos/index.d.ts +1 -1
  41. package/dist/generated/cosmos/index.js +1 -1
  42. package/dist/generated/osmosis/api.d.ts +183 -66
  43. package/dist/generated/osmosis/api.js +82 -13
  44. package/dist/generated/osmosis/base.d.ts +1 -1
  45. package/dist/generated/osmosis/base.js +1 -1
  46. package/dist/generated/osmosis/common.d.ts +1 -1
  47. package/dist/generated/osmosis/common.js +1 -1
  48. package/dist/generated/osmosis/configuration.d.ts +1 -1
  49. package/dist/generated/osmosis/configuration.js +1 -1
  50. package/dist/generated/osmosis/index.d.ts +1 -1
  51. package/dist/generated/osmosis/index.js +1 -1
  52. package/dist/types.d.ts +0 -13
  53. package/dist/types.js +1 -12
  54. package/dist/utils.js +2 -2
  55. package/dist/utxo/parser/index.js +1 -1
  56. package/dist/websocket.js +4 -4
  57. package/package.json +3 -3
@@ -6,21 +6,21 @@ const uniV2StakingRewards = [
6
6
  {
7
7
  internalType: 'address',
8
8
  name: '_rewardsDistribution',
9
- type: 'address'
9
+ type: 'address',
10
10
  },
11
11
  {
12
12
  internalType: 'address',
13
13
  name: '_rewardsToken',
14
- type: 'address'
14
+ type: 'address',
15
15
  },
16
16
  {
17
17
  internalType: 'address',
18
18
  name: '_stakingToken',
19
- type: 'address'
20
- }
19
+ type: 'address',
20
+ },
21
21
  ],
22
22
  stateMutability: 'nonpayable',
23
- type: 'constructor'
23
+ type: 'constructor',
24
24
  },
25
25
  {
26
26
  anonymous: false,
@@ -29,11 +29,11 @@ const uniV2StakingRewards = [
29
29
  indexed: false,
30
30
  internalType: 'uint256',
31
31
  name: 'reward',
32
- type: 'uint256'
33
- }
32
+ type: 'uint256',
33
+ },
34
34
  ],
35
35
  name: 'RewardAdded',
36
- type: 'event'
36
+ type: 'event',
37
37
  },
38
38
  {
39
39
  anonymous: false,
@@ -42,17 +42,17 @@ const uniV2StakingRewards = [
42
42
  indexed: true,
43
43
  internalType: 'address',
44
44
  name: 'user',
45
- type: 'address'
45
+ type: 'address',
46
46
  },
47
47
  {
48
48
  indexed: false,
49
49
  internalType: 'uint256',
50
50
  name: 'reward',
51
- type: 'uint256'
52
- }
51
+ type: 'uint256',
52
+ },
53
53
  ],
54
54
  name: 'RewardPaid',
55
- type: 'event'
55
+ type: 'event',
56
56
  },
57
57
  {
58
58
  anonymous: false,
@@ -61,17 +61,17 @@ const uniV2StakingRewards = [
61
61
  indexed: true,
62
62
  internalType: 'address',
63
63
  name: 'user',
64
- type: 'address'
64
+ type: 'address',
65
65
  },
66
66
  {
67
67
  indexed: false,
68
68
  internalType: 'uint256',
69
69
  name: 'amount',
70
- type: 'uint256'
71
- }
70
+ type: 'uint256',
71
+ },
72
72
  ],
73
73
  name: 'Staked',
74
- type: 'event'
74
+ type: 'event',
75
75
  },
76
76
  {
77
77
  anonymous: false,
@@ -80,69 +80,69 @@ const uniV2StakingRewards = [
80
80
  indexed: true,
81
81
  internalType: 'address',
82
82
  name: 'user',
83
- type: 'address'
83
+ type: 'address',
84
84
  },
85
85
  {
86
86
  indexed: false,
87
87
  internalType: 'uint256',
88
88
  name: 'amount',
89
- type: 'uint256'
90
- }
89
+ type: 'uint256',
90
+ },
91
91
  ],
92
92
  name: 'Withdrawn',
93
- type: 'event'
93
+ type: 'event',
94
94
  },
95
95
  {
96
96
  inputs: [
97
97
  {
98
98
  internalType: 'address',
99
99
  name: 'account',
100
- type: 'address'
101
- }
100
+ type: 'address',
101
+ },
102
102
  ],
103
103
  name: 'balanceOf',
104
104
  outputs: [
105
105
  {
106
106
  internalType: 'uint256',
107
107
  name: '',
108
- type: 'uint256'
109
- }
108
+ type: 'uint256',
109
+ },
110
110
  ],
111
111
  stateMutability: 'view',
112
- type: 'function'
112
+ type: 'function',
113
113
  },
114
114
  {
115
115
  inputs: [
116
116
  {
117
117
  internalType: 'address',
118
118
  name: 'account',
119
- type: 'address'
120
- }
119
+ type: 'address',
120
+ },
121
121
  ],
122
122
  name: 'earned',
123
123
  outputs: [
124
124
  {
125
125
  internalType: 'uint256',
126
126
  name: '',
127
- type: 'uint256'
128
- }
127
+ type: 'uint256',
128
+ },
129
129
  ],
130
130
  stateMutability: 'view',
131
- type: 'function'
131
+ type: 'function',
132
132
  },
133
133
  {
134
134
  inputs: [],
135
135
  name: 'exit',
136
136
  outputs: [],
137
137
  stateMutability: 'nonpayable',
138
- type: 'function'
138
+ type: 'function',
139
139
  },
140
140
  {
141
141
  inputs: [],
142
142
  name: 'getReward',
143
143
  outputs: [],
144
144
  stateMutability: 'nonpayable',
145
- type: 'function'
145
+ type: 'function',
146
146
  },
147
147
  {
148
148
  inputs: [],
@@ -151,11 +151,11 @@ const uniV2StakingRewards = [
151
151
  {
152
152
  internalType: 'uint256',
153
153
  name: '',
154
- type: 'uint256'
155
- }
154
+ type: 'uint256',
155
+ },
156
156
  ],
157
157
  stateMutability: 'view',
158
- type: 'function'
158
+ type: 'function',
159
159
  },
160
160
  {
161
161
  inputs: [],
@@ -164,11 +164,11 @@ const uniV2StakingRewards = [
164
164
  {
165
165
  internalType: 'uint256',
166
166
  name: '',
167
- type: 'uint256'
168
- }
167
+ type: 'uint256',
168
+ },
169
169
  ],
170
170
  stateMutability: 'view',
171
- type: 'function'
171
+ type: 'function',
172
172
  },
173
173
  {
174
174
  inputs: [],
@@ -177,24 +177,24 @@ const uniV2StakingRewards = [
177
177
  {
178
178
  internalType: 'uint256',
179
179
  name: '',
180
- type: 'uint256'
181
- }
180
+ type: 'uint256',
181
+ },
182
182
  ],
183
183
  stateMutability: 'view',
184
- type: 'function'
184
+ type: 'function',
185
185
  },
186
186
  {
187
187
  inputs: [
188
188
  {
189
189
  internalType: 'uint256',
190
190
  name: 'reward',
191
- type: 'uint256'
192
- }
191
+ type: 'uint256',
192
+ },
193
193
  ],
194
194
  name: 'notifyRewardAmount',
195
195
  outputs: [],
196
196
  stateMutability: 'nonpayable',
197
- type: 'function'
197
+ type: 'function',
198
198
  },
199
199
  {
200
200
  inputs: [],
@@ -203,11 +203,11 @@ const uniV2StakingRewards = [
203
203
  {
204
204
  internalType: 'uint256',
205
205
  name: '',
206
- type: 'uint256'
207
- }
206
+ type: 'uint256',
207
+ },
208
208
  ],
209
209
  stateMutability: 'view',
210
- type: 'function'
210
+ type: 'function',
211
211
  },
212
212
  {
213
213
  inputs: [],
@@ -216,11 +216,11 @@ const uniV2StakingRewards = [
216
216
  {
217
217
  internalType: 'uint256',
218
218
  name: '',
219
- type: 'uint256'
220
- }
219
+ type: 'uint256',
220
+ },
221
221
  ],
222
222
  stateMutability: 'view',
223
- type: 'function'
223
+ type: 'function',
224
224
  },
225
225
  {
226
226
  inputs: [],
@@ -229,11 +229,11 @@ const uniV2StakingRewards = [
229
229
  {
230
230
  internalType: 'uint256',
231
231
  name: '',
232
- type: 'uint256'
233
- }
232
+ type: 'uint256',
233
+ },
234
234
  ],
235
235
  stateMutability: 'view',
236
- type: 'function'
236
+ type: 'function',
237
237
  },
238
238
  {
239
239
  inputs: [],
@@ -242,30 +242,30 @@ const uniV2StakingRewards = [
242
242
  {
243
243
  internalType: 'uint256',
244
244
  name: '',
245
- type: 'uint256'
246
- }
245
+ type: 'uint256',
246
+ },
247
247
  ],
248
248
  stateMutability: 'view',
249
- type: 'function'
249
+ type: 'function',
250
250
  },
251
251
  {
252
252
  inputs: [
253
253
  {
254
254
  internalType: 'address',
255
255
  name: '',
256
- type: 'address'
257
- }
256
+ type: 'address',
257
+ },
258
258
  ],
259
259
  name: 'rewards',
260
260
  outputs: [
261
261
  {
262
262
  internalType: 'uint256',
263
263
  name: '',
264
- type: 'uint256'
265
- }
264
+ type: 'uint256',
265
+ },
266
266
  ],
267
267
  stateMutability: 'view',
268
- type: 'function'
268
+ type: 'function',
269
269
  },
270
270
  {
271
271
  inputs: [],
@@ -274,11 +274,11 @@ const uniV2StakingRewards = [
274
274
  {
275
275
  internalType: 'address',
276
276
  name: '',
277
- type: 'address'
278
- }
277
+ type: 'address',
278
+ },
279
279
  ],
280
280
  stateMutability: 'view',
281
- type: 'function'
281
+ type: 'function',
282
282
  },
283
283
  {
284
284
  inputs: [],
@@ -287,11 +287,11 @@ const uniV2StakingRewards = [
287
287
  {
288
288
  internalType: 'uint256',
289
289
  name: '',
290
- type: 'uint256'
291
- }
290
+ type: 'uint256',
291
+ },
292
292
  ],
293
293
  stateMutability: 'view',
294
- type: 'function'
294
+ type: 'function',
295
295
  },
296
296
  {
297
297
  inputs: [],
@@ -300,57 +300,57 @@ const uniV2StakingRewards = [
300
300
  {
301
301
  internalType: 'contract IERC20',
302
302
  name: '',
303
- type: 'address'
304
- }
303
+ type: 'address',
304
+ },
305
305
  ],
306
306
  stateMutability: 'view',
307
- type: 'function'
307
+ type: 'function',
308
308
  },
309
309
  {
310
310
  inputs: [
311
311
  {
312
312
  internalType: 'uint256',
313
313
  name: 'amount',
314
- type: 'uint256'
315
- }
314
+ type: 'uint256',
315
+ },
316
316
  ],
317
317
  name: 'stake',
318
318
  outputs: [],
319
319
  stateMutability: 'nonpayable',
320
- type: 'function'
320
+ type: 'function',
321
321
  },
322
322
  {
323
323
  inputs: [
324
324
  {
325
325
  internalType: 'uint256',
326
326
  name: 'amount',
327
- type: 'uint256'
327
+ type: 'uint256',
328
328
  },
329
329
  {
330
330
  internalType: 'uint256',
331
331
  name: 'deadline',
332
- type: 'uint256'
332
+ type: 'uint256',
333
333
  },
334
334
  {
335
335
  internalType: 'uint8',
336
336
  name: 'v',
337
- type: 'uint8'
337
+ type: 'uint8',
338
338
  },
339
339
  {
340
340
  internalType: 'bytes32',
341
341
  name: 'r',
342
- type: 'bytes32'
342
+ type: 'bytes32',
343
343
  },
344
344
  {
345
345
  internalType: 'bytes32',
346
346
  name: 's',
347
- type: 'bytes32'
348
- }
347
+ type: 'bytes32',
348
+ },
349
349
  ],
350
350
  name: 'stakeWithPermit',
351
351
  outputs: [],
352
352
  stateMutability: 'nonpayable',
353
- type: 'function'
353
+ type: 'function',
354
354
  },
355
355
  {
356
356
  inputs: [],
@@ -359,11 +359,11 @@ const uniV2StakingRewards = [
359
359
  {
360
360
  internalType: 'contract IERC20',
361
361
  name: '',
362
- type: 'address'
363
- }
362
+ type: 'address',
363
+ },
364
364
  ],
365
365
  stateMutability: 'view',
366
- type: 'function'
366
+ type: 'function',
367
367
  },
368
368
  {
369
369
  inputs: [],
@@ -372,43 +372,43 @@ const uniV2StakingRewards = [
372
372
  {
373
373
  internalType: 'uint256',
374
374
  name: '',
375
- type: 'uint256'
376
- }
375
+ type: 'uint256',
376
+ },
377
377
  ],
378
378
  stateMutability: 'view',
379
- type: 'function'
379
+ type: 'function',
380
380
  },
381
381
  {
382
382
  inputs: [
383
383
  {
384
384
  internalType: 'address',
385
385
  name: '',
386
- type: 'address'
387
- }
386
+ type: 'address',
387
+ },
388
388
  ],
389
389
  name: 'userRewardPerTokenPaid',
390
390
  outputs: [
391
391
  {
392
392
  internalType: 'uint256',
393
393
  name: '',
394
- type: 'uint256'
395
- }
394
+ type: 'uint256',
395
+ },
396
396
  ],
397
397
  stateMutability: 'view',
398
- type: 'function'
398
+ type: 'function',
399
399
  },
400
400
  {
401
401
  inputs: [
402
402
  {
403
403
  internalType: 'uint256',
404
404
  name: 'amount',
405
- type: 'uint256'
406
- }
405
+ type: 'uint256',
406
+ },
407
407
  ],
408
408
  name: 'withdraw',
409
409
  outputs: [],
410
410
  stateMutability: 'nonpayable',
411
- type: 'function'
412
- }
411
+ type: 'function',
412
+ },
413
413
  ];
414
414
  exports.default = uniV2StakingRewards;