opnet 1.2.27 → 1.3.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/browser/_version.d.ts +1 -1
- package/browser/abi/shared/interfaces/motoswap/IMotoChefContract.d.ts +101 -34
- package/browser/abi/shared/interfaces/motoswap/IMotoswapFactoryContract.d.ts +6 -0
- package/browser/abi/shared/interfaces/motoswap/IMotoswapPoolContract.d.ts +13 -1
- package/browser/abi/shared/interfaces/motoswap/IMotoswapStakingContract.d.ts +4 -1
- package/browser/abi/shared/interfaces/motoswap/INativeSwapContract.d.ts +3 -4
- package/browser/abi/shared/interfaces/opnet/IOP_20Contract.d.ts +1 -1
- package/browser/index.js +1 -1
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/abi/shared/interfaces/motoswap/IMotoChefContract.d.ts +101 -34
- package/build/abi/shared/interfaces/motoswap/IMotoswapFactoryContract.d.ts +6 -0
- package/build/abi/shared/interfaces/motoswap/IMotoswapPoolContract.d.ts +13 -1
- package/build/abi/shared/interfaces/motoswap/IMotoswapStakingContract.d.ts +4 -1
- package/build/abi/shared/interfaces/motoswap/INativeSwapContract.d.ts +3 -4
- package/build/abi/shared/interfaces/opnet/IOP_20Contract.d.ts +1 -1
- package/build/abi/shared/json/motoswap/MOTOSWAP_FACTORY_ABI.js +27 -0
- package/build/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.js +115 -50
- package/build/abi/shared/json/motoswap/MOTOSWAP_POOL_ABI.js +12 -1
- package/build/abi/shared/json/motoswap/MOTOSWAP_ROUTER_ABI.js +2 -2
- package/build/abi/shared/json/motoswap/MOTOSWAP_STAKING_ABI.js +14 -6
- package/build/abi/shared/json/motoswap/NATIVE_SWAP_ABI.js +107 -363
- package/build/abi/shared/json/opnet/OP_20_ABI.js +1 -1
- package/build/contracts/Contract.js +2 -12
- package/build/contracts/TypeToStr.js +0 -1
- package/package.json +13 -13
- package/src/_version.ts +1 -1
- package/src/abi/shared/interfaces/motoswap/IMotoChefContract.ts +147 -62
- package/src/abi/shared/interfaces/motoswap/IMotoswapFactoryContract.ts +6 -0
- package/src/abi/shared/interfaces/motoswap/IMotoswapPoolContract.ts +9 -1
- package/src/abi/shared/interfaces/motoswap/IMotoswapStakingContract.ts +12 -7
- package/src/abi/shared/interfaces/motoswap/INativeSwapContract.ts +31 -11
- package/src/abi/shared/interfaces/opnet/IOP_20Contract.ts +1 -1
- package/src/abi/shared/json/motoswap/MOTOSWAP_FACTORY_ABI.ts +27 -0
- package/src/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.ts +116 -51
- package/src/abi/shared/json/motoswap/MOTOSWAP_POOL_ABI.ts +12 -1
- package/src/abi/shared/json/motoswap/MOTOSWAP_ROUTER_ABI.ts +2 -2
- package/src/abi/shared/json/motoswap/MOTOSWAP_STAKING_ABI.ts +15 -6
- package/src/abi/shared/json/motoswap/NATIVE_SWAP_ABI.ts +128 -375
- package/src/abi/shared/json/opnet/OP_20_ABI.ts +1 -1
- package/src/contracts/Contract.ts +2 -13
- package/src/contracts/TypeToStr.ts +0 -1
- package/src/providers/AbstractRpcProvider.ts +0 -24
|
@@ -15,7 +15,7 @@ export const MotoChefEvents = [
|
|
|
15
15
|
values: [
|
|
16
16
|
{
|
|
17
17
|
name: 'pid',
|
|
18
|
-
type: ABIDataTypes.
|
|
18
|
+
type: ABIDataTypes.UINT64,
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
name: 'allocPoint',
|
|
@@ -25,10 +25,6 @@ export const MotoChefEvents = [
|
|
|
25
25
|
name: 'lpToken',
|
|
26
26
|
type: ABIDataTypes.ADDRESS,
|
|
27
27
|
},
|
|
28
|
-
{
|
|
29
|
-
name: 'rewarder',
|
|
30
|
-
type: ABIDataTypes.ADDRESS,
|
|
31
|
-
},
|
|
32
28
|
],
|
|
33
29
|
},
|
|
34
30
|
{
|
|
@@ -37,20 +33,12 @@ export const MotoChefEvents = [
|
|
|
37
33
|
values: [
|
|
38
34
|
{
|
|
39
35
|
name: 'pid',
|
|
40
|
-
type: ABIDataTypes.
|
|
36
|
+
type: ABIDataTypes.UINT64,
|
|
41
37
|
},
|
|
42
38
|
{
|
|
43
39
|
name: 'allocPoint',
|
|
44
40
|
type: ABIDataTypes.UINT256,
|
|
45
41
|
},
|
|
46
|
-
{
|
|
47
|
-
name: 'rewarder',
|
|
48
|
-
type: ABIDataTypes.ADDRESS,
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: 'overwrite',
|
|
52
|
-
type: ABIDataTypes.BOOL,
|
|
53
|
-
},
|
|
54
42
|
],
|
|
55
43
|
},
|
|
56
44
|
{
|
|
@@ -59,7 +47,7 @@ export const MotoChefEvents = [
|
|
|
59
47
|
values: [
|
|
60
48
|
{
|
|
61
49
|
name: 'pid',
|
|
62
|
-
type: ABIDataTypes.
|
|
50
|
+
type: ABIDataTypes.UINT64,
|
|
63
51
|
},
|
|
64
52
|
{
|
|
65
53
|
name: 'lastRewardBlock',
|
|
@@ -85,7 +73,7 @@ export const MotoChefEvents = [
|
|
|
85
73
|
},
|
|
86
74
|
{
|
|
87
75
|
name: 'pid',
|
|
88
|
-
type: ABIDataTypes.
|
|
76
|
+
type: ABIDataTypes.UINT64,
|
|
89
77
|
},
|
|
90
78
|
{
|
|
91
79
|
name: 'amount',
|
|
@@ -107,7 +95,7 @@ export const MotoChefEvents = [
|
|
|
107
95
|
},
|
|
108
96
|
{
|
|
109
97
|
name: 'pid',
|
|
110
|
-
type: ABIDataTypes.
|
|
98
|
+
type: ABIDataTypes.UINT64,
|
|
111
99
|
},
|
|
112
100
|
{
|
|
113
101
|
name: 'amount',
|
|
@@ -129,7 +117,7 @@ export const MotoChefEvents = [
|
|
|
129
117
|
},
|
|
130
118
|
{
|
|
131
119
|
name: 'pid',
|
|
132
|
-
type: ABIDataTypes.
|
|
120
|
+
type: ABIDataTypes.UINT64,
|
|
133
121
|
},
|
|
134
122
|
{
|
|
135
123
|
name: 'amount',
|
|
@@ -147,7 +135,7 @@ export const MotoChefEvents = [
|
|
|
147
135
|
},
|
|
148
136
|
{
|
|
149
137
|
name: 'pid',
|
|
150
|
-
type: ABIDataTypes.
|
|
138
|
+
type: ABIDataTypes.UINT64,
|
|
151
139
|
},
|
|
152
140
|
{
|
|
153
141
|
name: 'amount',
|
|
@@ -159,6 +147,50 @@ export const MotoChefEvents = [
|
|
|
159
147
|
},
|
|
160
148
|
],
|
|
161
149
|
},
|
|
150
|
+
{
|
|
151
|
+
name: 'StakeBTC',
|
|
152
|
+
type: BitcoinAbiTypes.Event,
|
|
153
|
+
values: [
|
|
154
|
+
{
|
|
155
|
+
name: 'user',
|
|
156
|
+
type: ABIDataTypes.ADDRESS,
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'amount',
|
|
160
|
+
type: ABIDataTypes.UINT256,
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: 'stakingTxId',
|
|
164
|
+
type: ABIDataTypes.UINT256,
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: 'stakingIndex',
|
|
168
|
+
type: ABIDataTypes.UINT256,
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'UnstakeBTC',
|
|
174
|
+
type: BitcoinAbiTypes.Event,
|
|
175
|
+
values: [
|
|
176
|
+
{
|
|
177
|
+
name: 'user',
|
|
178
|
+
type: ABIDataTypes.ADDRESS,
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'amount',
|
|
182
|
+
type: ABIDataTypes.UINT256,
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'stakingTxId',
|
|
186
|
+
type: ABIDataTypes.UINT256,
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: 'stakingIndex',
|
|
190
|
+
type: ABIDataTypes.UINT256,
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
},
|
|
162
194
|
];
|
|
163
195
|
const MOTOCHEF_ABI = [
|
|
164
196
|
{
|
|
@@ -173,6 +205,8 @@ const MOTOCHEF_ABI = [
|
|
|
173
205
|
{ name: 'motoPerBlock', type: ABIDataTypes.UINT256 },
|
|
174
206
|
{ name: 'bonusEndBlock', type: ABIDataTypes.UINT256 },
|
|
175
207
|
{ name: 'bonusMultiplier', type: ABIDataTypes.UINT256 },
|
|
208
|
+
{ name: 'treasuryAddress', type: ABIDataTypes.STRING },
|
|
209
|
+
{ name: 'btcAllocPoint', type: ABIDataTypes.UINT256 },
|
|
176
210
|
],
|
|
177
211
|
outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
|
|
178
212
|
},
|
|
@@ -180,48 +214,45 @@ const MOTOCHEF_ABI = [
|
|
|
180
214
|
name: 'getLpToken',
|
|
181
215
|
type: BitcoinAbiTypes.Function,
|
|
182
216
|
constant: true,
|
|
183
|
-
inputs: [{ name: 'pid', type: ABIDataTypes.
|
|
217
|
+
inputs: [{ name: 'pid', type: ABIDataTypes.UINT64 }],
|
|
184
218
|
outputs: [{ name: 'lpTokenAddress', type: ABIDataTypes.ADDRESS }],
|
|
185
219
|
},
|
|
186
220
|
{
|
|
187
|
-
name: '
|
|
221
|
+
name: 'getLpTokens',
|
|
188
222
|
type: BitcoinAbiTypes.Function,
|
|
189
223
|
constant: true,
|
|
190
|
-
inputs: [
|
|
191
|
-
outputs: [{ name: '
|
|
224
|
+
inputs: [],
|
|
225
|
+
outputs: [{ name: 'lpTokens', type: ABIDataTypes.ARRAY_OF_ADDRESSES }],
|
|
192
226
|
},
|
|
193
227
|
{
|
|
194
228
|
name: 'getPoolInfo',
|
|
195
229
|
type: BitcoinAbiTypes.Function,
|
|
196
230
|
constant: true,
|
|
197
|
-
inputs: [{ name: 'pid', type: ABIDataTypes.
|
|
231
|
+
inputs: [{ name: 'pid', type: ABIDataTypes.UINT64 }],
|
|
198
232
|
outputs: [
|
|
199
|
-
{ name: 'allocPoint', type: ABIDataTypes.UINT64 },
|
|
200
|
-
{ name: 'lastRewardBlock', type: ABIDataTypes.UINT64 },
|
|
201
233
|
{ name: 'accMotoPerShare', type: ABIDataTypes.UINT256 },
|
|
234
|
+
{ name: 'lastRewardBlock', type: ABIDataTypes.UINT64 },
|
|
235
|
+
{ name: 'allocPoint', type: ABIDataTypes.UINT64 },
|
|
202
236
|
],
|
|
203
237
|
},
|
|
204
238
|
{
|
|
205
|
-
name: '
|
|
239
|
+
name: 'getPoolsLength',
|
|
206
240
|
type: BitcoinAbiTypes.Function,
|
|
207
241
|
constant: true,
|
|
208
242
|
inputs: [],
|
|
209
|
-
outputs: [
|
|
210
|
-
{ name: 'poolLength', type: ABIDataTypes.UINT32 },
|
|
211
|
-
{ name: 'poolsData', type: ABIDataTypes.BYTES },
|
|
212
|
-
],
|
|
243
|
+
outputs: [{ name: 'poolLength', type: ABIDataTypes.UINT64 }],
|
|
213
244
|
},
|
|
214
245
|
{
|
|
215
246
|
name: 'getUserInfo',
|
|
216
247
|
type: BitcoinAbiTypes.Function,
|
|
217
248
|
constant: true,
|
|
218
249
|
inputs: [
|
|
219
|
-
{ name: 'pid', type: ABIDataTypes.
|
|
250
|
+
{ name: 'pid', type: ABIDataTypes.UINT64 },
|
|
220
251
|
{ name: 'user', type: ABIDataTypes.ADDRESS },
|
|
221
252
|
],
|
|
222
253
|
outputs: [
|
|
223
254
|
{ name: 'amount', type: ABIDataTypes.UINT256 },
|
|
224
|
-
{ name: 'rewardDebt', type: ABIDataTypes.
|
|
255
|
+
{ name: 'rewardDebt', type: ABIDataTypes.INT128 },
|
|
225
256
|
],
|
|
226
257
|
},
|
|
227
258
|
{
|
|
@@ -253,11 +284,32 @@ const MOTOCHEF_ABI = [
|
|
|
253
284
|
outputs: [{ name: 'bonusEndBlock', type: ABIDataTypes.UINT256 }],
|
|
254
285
|
},
|
|
255
286
|
{
|
|
256
|
-
name: '
|
|
287
|
+
name: 'totalBtcStaked',
|
|
288
|
+
type: BitcoinAbiTypes.Function,
|
|
289
|
+
constant: true,
|
|
290
|
+
inputs: [],
|
|
291
|
+
outputs: [{ name: 'totalBtcStaked', type: ABIDataTypes.UINT256 }],
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
name: 'treasuryAddress',
|
|
295
|
+
type: BitcoinAbiTypes.Function,
|
|
296
|
+
constant: true,
|
|
297
|
+
inputs: [],
|
|
298
|
+
outputs: [{ name: 'treasuryAddress', type: ABIDataTypes.STRING }],
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: 'getStakingTxId',
|
|
302
|
+
type: BitcoinAbiTypes.Function,
|
|
303
|
+
constant: true,
|
|
304
|
+
inputs: [],
|
|
305
|
+
outputs: [{ name: 'stakingTxId', type: ABIDataTypes.UINT256 }],
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: 'getStakingIndex',
|
|
257
309
|
type: BitcoinAbiTypes.Function,
|
|
258
310
|
constant: true,
|
|
259
311
|
inputs: [],
|
|
260
|
-
outputs: [{ name: '
|
|
312
|
+
outputs: [{ name: 'stakingIndex', type: ABIDataTypes.UINT256 }],
|
|
261
313
|
},
|
|
262
314
|
{
|
|
263
315
|
name: 'setMotoPerBlock',
|
|
@@ -291,7 +343,6 @@ const MOTOCHEF_ABI = [
|
|
|
291
343
|
inputs: [
|
|
292
344
|
{ name: 'allocPoint', type: ABIDataTypes.UINT256 },
|
|
293
345
|
{ name: 'lpToken', type: ABIDataTypes.ADDRESS },
|
|
294
|
-
{ name: 'rewarder', type: ABIDataTypes.ADDRESS },
|
|
295
346
|
],
|
|
296
347
|
outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
|
|
297
348
|
},
|
|
@@ -301,10 +352,8 @@ const MOTOCHEF_ABI = [
|
|
|
301
352
|
constant: false,
|
|
302
353
|
payable: false,
|
|
303
354
|
inputs: [
|
|
304
|
-
{ name: 'pid', type: ABIDataTypes.
|
|
355
|
+
{ name: 'pid', type: ABIDataTypes.UINT64 },
|
|
305
356
|
{ name: 'allocPoint', type: ABIDataTypes.UINT256 },
|
|
306
|
-
{ name: 'rewarder', type: ABIDataTypes.ADDRESS },
|
|
307
|
-
{ name: 'overwrite', type: ABIDataTypes.BOOL },
|
|
308
357
|
],
|
|
309
358
|
outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
|
|
310
359
|
},
|
|
@@ -321,7 +370,7 @@ const MOTOCHEF_ABI = [
|
|
|
321
370
|
type: BitcoinAbiTypes.Function,
|
|
322
371
|
constant: false,
|
|
323
372
|
payable: false,
|
|
324
|
-
inputs: [{ name: 'pid', type: ABIDataTypes.
|
|
373
|
+
inputs: [{ name: 'pid', type: ABIDataTypes.UINT64 }],
|
|
325
374
|
outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
|
|
326
375
|
},
|
|
327
376
|
{
|
|
@@ -341,7 +390,7 @@ const MOTOCHEF_ABI = [
|
|
|
341
390
|
constant: false,
|
|
342
391
|
payable: false,
|
|
343
392
|
inputs: [
|
|
344
|
-
{ name: 'pid', type: ABIDataTypes.
|
|
393
|
+
{ name: 'pid', type: ABIDataTypes.UINT64 },
|
|
345
394
|
{ name: 'user', type: ABIDataTypes.ADDRESS },
|
|
346
395
|
],
|
|
347
396
|
outputs: [{ name: 'pendingMoto', type: ABIDataTypes.UINT256 }],
|
|
@@ -353,7 +402,7 @@ const MOTOCHEF_ABI = [
|
|
|
353
402
|
payable: false,
|
|
354
403
|
inputs: [
|
|
355
404
|
{ name: 'length', type: ABIDataTypes.UINT32 },
|
|
356
|
-
{ name: 'pids', type: ABIDataTypes.
|
|
405
|
+
{ name: 'pids', type: ABIDataTypes.ARRAY_OF_UINT64 },
|
|
357
406
|
],
|
|
358
407
|
outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
|
|
359
408
|
},
|
|
@@ -362,11 +411,11 @@ const MOTOCHEF_ABI = [
|
|
|
362
411
|
type: BitcoinAbiTypes.Function,
|
|
363
412
|
constant: false,
|
|
364
413
|
payable: false,
|
|
365
|
-
inputs: [{ name: 'pid', type: ABIDataTypes.
|
|
414
|
+
inputs: [{ name: 'pid', type: ABIDataTypes.UINT64 }],
|
|
366
415
|
outputs: [
|
|
367
|
-
{ name: 'allocPoint', type: ABIDataTypes.UINT64 },
|
|
368
|
-
{ name: 'lastRewardBlock', type: ABIDataTypes.UINT64 },
|
|
369
416
|
{ name: 'accMotoPerShare', type: ABIDataTypes.UINT256 },
|
|
417
|
+
{ name: 'lastRewardBlock', type: ABIDataTypes.UINT64 },
|
|
418
|
+
{ name: 'allocPoint', type: ABIDataTypes.UINT64 },
|
|
370
419
|
],
|
|
371
420
|
},
|
|
372
421
|
{
|
|
@@ -375,7 +424,7 @@ const MOTOCHEF_ABI = [
|
|
|
375
424
|
constant: false,
|
|
376
425
|
payable: false,
|
|
377
426
|
inputs: [
|
|
378
|
-
{ name: 'pid', type: ABIDataTypes.
|
|
427
|
+
{ name: 'pid', type: ABIDataTypes.UINT64 },
|
|
379
428
|
{ name: 'amount', type: ABIDataTypes.UINT256 },
|
|
380
429
|
{ name: 'to', type: ABIDataTypes.ADDRESS },
|
|
381
430
|
],
|
|
@@ -387,7 +436,7 @@ const MOTOCHEF_ABI = [
|
|
|
387
436
|
constant: false,
|
|
388
437
|
payable: false,
|
|
389
438
|
inputs: [
|
|
390
|
-
{ name: 'pid', type: ABIDataTypes.
|
|
439
|
+
{ name: 'pid', type: ABIDataTypes.UINT64 },
|
|
391
440
|
{ name: 'amount', type: ABIDataTypes.UINT256 },
|
|
392
441
|
{ name: 'to', type: ABIDataTypes.ADDRESS },
|
|
393
442
|
],
|
|
@@ -399,7 +448,7 @@ const MOTOCHEF_ABI = [
|
|
|
399
448
|
constant: false,
|
|
400
449
|
payable: false,
|
|
401
450
|
inputs: [
|
|
402
|
-
{ name: 'pid', type: ABIDataTypes.
|
|
451
|
+
{ name: 'pid', type: ABIDataTypes.UINT64 },
|
|
403
452
|
{ name: 'to', type: ABIDataTypes.ADDRESS },
|
|
404
453
|
],
|
|
405
454
|
outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
|
|
@@ -410,7 +459,7 @@ const MOTOCHEF_ABI = [
|
|
|
410
459
|
constant: false,
|
|
411
460
|
payable: false,
|
|
412
461
|
inputs: [
|
|
413
|
-
{ name: 'pid', type: ABIDataTypes.
|
|
462
|
+
{ name: 'pid', type: ABIDataTypes.UINT64 },
|
|
414
463
|
{ name: 'amount', type: ABIDataTypes.UINT256 },
|
|
415
464
|
{ name: 'to', type: ABIDataTypes.ADDRESS },
|
|
416
465
|
],
|
|
@@ -422,7 +471,7 @@ const MOTOCHEF_ABI = [
|
|
|
422
471
|
constant: false,
|
|
423
472
|
payable: false,
|
|
424
473
|
inputs: [
|
|
425
|
-
{ name: 'pid', type: ABIDataTypes.
|
|
474
|
+
{ name: 'pid', type: ABIDataTypes.UINT64 },
|
|
426
475
|
{ name: 'to', type: ABIDataTypes.ADDRESS },
|
|
427
476
|
],
|
|
428
477
|
outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
|
|
@@ -435,6 +484,22 @@ const MOTOCHEF_ABI = [
|
|
|
435
484
|
inputs: [{ name: 'devaddr', type: ABIDataTypes.ADDRESS }],
|
|
436
485
|
outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
|
|
437
486
|
},
|
|
487
|
+
{
|
|
488
|
+
name: 'stakeBtc',
|
|
489
|
+
type: BitcoinAbiTypes.Function,
|
|
490
|
+
constant: false,
|
|
491
|
+
payable: false,
|
|
492
|
+
inputs: [{ name: 'stakeAmount', type: ABIDataTypes.UINT256 }],
|
|
493
|
+
outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
name: 'unstakeBtc',
|
|
497
|
+
type: BitcoinAbiTypes.Function,
|
|
498
|
+
constant: false,
|
|
499
|
+
payable: false,
|
|
500
|
+
inputs: [],
|
|
501
|
+
outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
|
|
502
|
+
},
|
|
438
503
|
...MotoChefEvents,
|
|
439
504
|
...OP_NET_ABI,
|
|
440
505
|
...REENTRANCY_GUARD_ABI,
|
|
@@ -225,7 +225,7 @@ export const MotoswapPoolAbi = [
|
|
|
225
225
|
outputs: [
|
|
226
226
|
{
|
|
227
227
|
name: 'blockTimestampLast',
|
|
228
|
-
type: ABIDataTypes.
|
|
228
|
+
type: ABIDataTypes.UINT256,
|
|
229
229
|
},
|
|
230
230
|
],
|
|
231
231
|
type: BitcoinAbiTypes.Function,
|
|
@@ -241,6 +241,17 @@ export const MotoswapPoolAbi = [
|
|
|
241
241
|
],
|
|
242
242
|
type: BitcoinAbiTypes.Function,
|
|
243
243
|
},
|
|
244
|
+
{
|
|
245
|
+
name: 'MINIMUM_LIQUIDITY',
|
|
246
|
+
inputs: [],
|
|
247
|
+
outputs: [
|
|
248
|
+
{
|
|
249
|
+
name: 'MINIMUM_LIQUIDITY',
|
|
250
|
+
type: ABIDataTypes.UINT256,
|
|
251
|
+
},
|
|
252
|
+
],
|
|
253
|
+
type: BitcoinAbiTypes.Function,
|
|
254
|
+
},
|
|
244
255
|
{
|
|
245
256
|
name: 'mint',
|
|
246
257
|
inputs: [],
|
|
@@ -188,7 +188,7 @@ export const MOTOSWAP_ROUTER_ABI = [
|
|
|
188
188
|
outputs: [
|
|
189
189
|
{
|
|
190
190
|
name: 'amountsOut',
|
|
191
|
-
type: ABIDataTypes.
|
|
191
|
+
type: ABIDataTypes.ARRAY_OF_UINT256,
|
|
192
192
|
},
|
|
193
193
|
],
|
|
194
194
|
type: BitcoinAbiTypes.Function,
|
|
@@ -208,7 +208,7 @@ export const MOTOSWAP_ROUTER_ABI = [
|
|
|
208
208
|
outputs: [
|
|
209
209
|
{
|
|
210
210
|
name: 'amountsIn',
|
|
211
|
-
type: ABIDataTypes.
|
|
211
|
+
type: ABIDataTypes.ARRAY_OF_UINT256,
|
|
212
212
|
},
|
|
213
213
|
],
|
|
214
214
|
type: BitcoinAbiTypes.Function,
|
|
@@ -27,18 +27,18 @@ export const MotoswapStakingEvents = [
|
|
|
27
27
|
];
|
|
28
28
|
export const MOTOSWAP_STAKING_ABI = [
|
|
29
29
|
{
|
|
30
|
-
name: '
|
|
30
|
+
name: 'balanceOf',
|
|
31
31
|
type: BitcoinAbiTypes.Function,
|
|
32
32
|
constant: true,
|
|
33
|
-
inputs: [],
|
|
34
|
-
outputs: [{ name: '
|
|
33
|
+
inputs: [{ name: 'address', type: ABIDataTypes.ADDRESS }],
|
|
34
|
+
outputs: [{ name: 'balance', type: ABIDataTypes.UINT256 }],
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
name: '
|
|
37
|
+
name: 'motoAddress',
|
|
38
38
|
type: BitcoinAbiTypes.Function,
|
|
39
39
|
constant: true,
|
|
40
|
-
inputs: [
|
|
41
|
-
outputs: [{ name: '
|
|
40
|
+
inputs: [],
|
|
41
|
+
outputs: [{ name: 'motoAddress', type: ABIDataTypes.ADDRESS }],
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
name: 'totalSupply',
|
|
@@ -151,6 +151,14 @@ export const MOTOSWAP_STAKING_ABI = [
|
|
|
151
151
|
],
|
|
152
152
|
outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
|
|
153
153
|
},
|
|
154
|
+
{
|
|
155
|
+
name: 'adminEnableEmergencyWithdrawals',
|
|
156
|
+
type: BitcoinAbiTypes.Function,
|
|
157
|
+
constant: false,
|
|
158
|
+
payable: false,
|
|
159
|
+
inputs: [],
|
|
160
|
+
outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
|
|
161
|
+
},
|
|
154
162
|
...MotoswapStakingEvents,
|
|
155
163
|
...OP_NET_ABI,
|
|
156
164
|
...REENTRANCY_GUARD_ABI,
|