@shapeshiftoss/unchained-client 9.8.1 → 9.9.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.
- package/dist/cosmos/parser/index.js +7 -7
- package/dist/cosmos/parser/utils.d.ts +2 -1
- package/dist/cosmos/parser/utils.js +48 -21
- package/dist/cosmos/types.d.ts +2 -2
- package/dist/evm/ethereum/parser/abi/foxyStaking.js +161 -161
- package/dist/evm/ethereum/parser/abi/shapeShiftRouter.js +119 -119
- package/dist/evm/ethereum/parser/abi/thor.js +28 -28
- package/dist/evm/ethereum/parser/abi/uniV2.js +55 -55
- package/dist/evm/ethereum/parser/abi/uniV2StakingRewards.js +95 -95
- package/dist/evm/ethereum/parser/abi/weth.js +66 -66
- package/dist/evm/ethereum/parser/abi/yearnVault.js +95 -95
- package/dist/evm/ethereum/parser/cowswap.d.ts +4 -0
- package/dist/evm/ethereum/parser/cowswap.js +3 -3
- package/dist/evm/ethereum/parser/foxy.d.ts +4 -0
- package/dist/evm/ethereum/parser/foxy.js +3 -3
- package/dist/evm/ethereum/parser/index.js +1 -1
- package/dist/evm/ethereum/parser/thor.d.ts +4 -0
- package/dist/evm/ethereum/parser/thor.js +2 -2
- package/dist/evm/ethereum/parser/uniV2.d.ts +4 -0
- package/dist/evm/ethereum/parser/uniV2.js +12 -12
- package/dist/evm/ethereum/parser/weth.d.ts +4 -0
- package/dist/evm/ethereum/parser/weth.js +9 -9
- package/dist/evm/ethereum/parser/yearn.d.ts +7 -0
- package/dist/evm/ethereum/parser/yearn.js +32 -16
- package/dist/evm/parser/abi/erc20.js +69 -69
- package/dist/evm/parser/erc20.d.ts +6 -0
- package/dist/evm/parser/erc20.js +15 -12
- package/dist/evm/parser/index.js +4 -4
- package/dist/evm/parser/types.d.ts +10 -9
- package/dist/evm/parser/types.js +0 -5
- package/dist/evm/parser/zrx.d.ts +4 -0
- package/dist/evm/parser/zrx.js +3 -3
- package/dist/types.d.ts +0 -13
- package/dist/types.js +1 -12
- package/dist/utils.js +2 -2
- package/dist/utxo/parser/index.js +1 -1
- package/dist/websocket.js +4 -4
- package/package.json +1 -1
|
@@ -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;
|