opnet 1.3.1 → 1.3.3

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 (105) hide show
  1. package/browser/_version.d.ts +1 -1
  2. package/browser/abi/shared/interfaces/motoswap/{IAdministeredOP20.d.ts → IMoto.d.ts} +2 -2
  3. package/browser/abi/shared/interfaces/motoswap/IMotoChef.d.ts +208 -0
  4. package/browser/abi/shared/interfaces/motoswap/IMotoswapPoolContract.d.ts +0 -4
  5. package/browser/abi/shared/interfaces/motoswap/IMotoswapStakingContract.d.ts +19 -3
  6. package/browser/abi/shared/interfaces/motoswap/INativeSwapContract.d.ts +13 -5
  7. package/browser/abi/shared/interfaces/opnet/IOP_NETContract.d.ts +2 -2
  8. package/browser/abi/shared/json/generic/STAKING_ABI.d.ts +0 -1
  9. package/{build/abi/shared/json/motoswap/REENTRANCY_GUARD_ABI.d.ts → browser/abi/shared/json/motoswap/MOTOCHEF_ABI.d.ts} +1 -1
  10. package/browser/abi/shared/json/motoswap/MOTOSWAP_STAKING_ABI.d.ts +0 -1
  11. package/browser/abi/shared/json/motoswap/MOTO_ABI.d.ts +2 -0
  12. package/browser/abi/shared/json/motoswap/NATIVE_SWAP_ABI.d.ts +0 -1
  13. package/browser/contracts/CallResult.d.ts +1 -1
  14. package/browser/fetch/fetch-browser.d.ts +4 -0
  15. package/browser/fetch/fetch.d.ts +2 -0
  16. package/browser/index.js +1 -1
  17. package/browser/opnet.d.ts +10 -12
  18. package/build/_version.d.ts +1 -1
  19. package/build/_version.js +1 -1
  20. package/build/abi/shared/interfaces/motoswap/{IAdministeredOP20.d.ts → IMoto.d.ts} +2 -2
  21. package/build/abi/shared/interfaces/motoswap/IMotoChef.d.ts +208 -0
  22. package/build/abi/shared/interfaces/motoswap/IMotoswapPoolContract.d.ts +0 -4
  23. package/build/abi/shared/interfaces/motoswap/IMotoswapStakingContract.d.ts +19 -3
  24. package/build/abi/shared/interfaces/motoswap/INativeSwapContract.d.ts +13 -5
  25. package/build/abi/shared/interfaces/opnet/IOP_NETContract.d.ts +2 -2
  26. package/build/abi/shared/json/generic/STAKING_ABI.d.ts +0 -1
  27. package/build/abi/shared/json/generic/STAKING_ABI.js +1 -1
  28. package/{browser/abi/shared/json/motoswap/REENTRANCY_GUARD_ABI.d.ts → build/abi/shared/json/motoswap/MOTOCHEF_ABI.d.ts} +1 -1
  29. package/build/abi/shared/json/motoswap/MOTOCHEF_ABI.js +820 -0
  30. package/build/abi/shared/json/motoswap/MOTOSWAP_STAKING_ABI.d.ts +0 -1
  31. package/build/abi/shared/json/motoswap/MOTOSWAP_STAKING_ABI.js +45 -5
  32. package/build/abi/shared/json/motoswap/MOTO_ABI.d.ts +2 -0
  33. package/build/abi/shared/json/motoswap/{ADMINISTERD_OP_20_ABI.js → MOTO_ABI.js} +5 -13
  34. package/build/abi/shared/json/motoswap/NATIVE_SWAP_ABI.d.ts +0 -1
  35. package/build/abi/shared/json/motoswap/NATIVE_SWAP_ABI.js +15 -1
  36. package/build/abi/shared/json/opnet/OP_NET_ABI.js +7 -18
  37. package/build/contracts/CallResult.d.ts +1 -1
  38. package/build/contracts/CallResult.js +10 -3
  39. package/build/contracts/Contract.js +2 -2
  40. package/build/fetch/fetch.d.ts +2 -0
  41. package/build/fetch/fetch.js +2 -0
  42. package/build/opnet.d.ts +10 -12
  43. package/build/opnet.js +10 -12
  44. package/build/providers/JSONRpcProvider.js +8 -0
  45. package/package.json +6 -4
  46. package/src/_version.ts +1 -1
  47. package/src/abi/shared/interfaces/motoswap/{IAdministeredOP20.ts → IMoto.ts} +4 -4
  48. package/src/abi/shared/interfaces/motoswap/IMotoChef.ts +485 -0
  49. package/src/abi/shared/interfaces/motoswap/IMotoswapPoolContract.ts +0 -5
  50. package/src/abi/shared/interfaces/motoswap/IMotoswapStakingContract.ts +50 -4
  51. package/src/abi/shared/interfaces/motoswap/INativeSwapContract.ts +19 -5
  52. package/src/abi/shared/interfaces/opnet/IOP_NETContract.ts +1 -1
  53. package/src/abi/shared/json/generic/STAKING_ABI.ts +1 -7
  54. package/src/abi/shared/json/motoswap/MOTOCHEF_ABI.ts +831 -0
  55. package/src/abi/shared/json/motoswap/MOTOSWAP_FACTORY_ABI.ts +0 -6
  56. package/src/abi/shared/json/motoswap/MOTOSWAP_POOL_ABI.ts +0 -6
  57. package/src/abi/shared/json/motoswap/MOTOSWAP_ROUTER_ABI.ts +0 -3
  58. package/src/abi/shared/json/motoswap/MOTOSWAP_STAKING_ABI.ts +51 -9
  59. package/src/abi/shared/json/motoswap/{ADMINISTERD_OP_20_ABI.ts → MOTO_ABI.ts} +7 -15
  60. package/src/abi/shared/json/motoswap/NATIVE_SWAP_ABI.ts +15 -7
  61. package/src/abi/shared/json/opnet/OP_NET_ABI.ts +7 -24
  62. package/src/contracts/CallResult.ts +14 -2
  63. package/src/contracts/Contract.ts +3 -3
  64. package/src/fetch/fetch-browser.js +5 -0
  65. package/src/fetch/fetch.ts +3 -0
  66. package/src/opnet.ts +10 -12
  67. package/src/providers/JSONRpcProvider.ts +10 -3
  68. package/webpack.config.js +1 -0
  69. package/browser/abi/shared/interfaces/motoswap/IMotoChefContract.d.ts +0 -229
  70. package/browser/abi/shared/interfaces/motoswap/IOwnableContract.d.ts +0 -12
  71. package/browser/abi/shared/interfaces/motoswap/IOwnableReentrancyGuardContract.d.ts +0 -13
  72. package/browser/abi/shared/interfaces/motoswap/IReentrancyGuardContract.d.ts +0 -7
  73. package/browser/abi/shared/interfaces/tests/IWBTCContract.d.ts +0 -13
  74. package/browser/abi/shared/json/motoswap/ADMINISTERD_OP_20_ABI.d.ts +0 -3
  75. package/browser/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.d.ts +0 -4
  76. package/browser/abi/shared/json/motoswap/OWNABLE_ABI.d.ts +0 -3
  77. package/browser/abi/shared/json/tests/WBTC_ABI.d.ts +0 -3
  78. package/build/abi/shared/interfaces/motoswap/IMotoChefContract.d.ts +0 -229
  79. package/build/abi/shared/interfaces/motoswap/IOwnableContract.d.ts +0 -12
  80. package/build/abi/shared/interfaces/motoswap/IOwnableContract.js +0 -1
  81. package/build/abi/shared/interfaces/motoswap/IOwnableReentrancyGuardContract.d.ts +0 -13
  82. package/build/abi/shared/interfaces/motoswap/IOwnableReentrancyGuardContract.js +0 -1
  83. package/build/abi/shared/interfaces/motoswap/IReentrancyGuardContract.d.ts +0 -7
  84. package/build/abi/shared/interfaces/motoswap/IReentrancyGuardContract.js +0 -1
  85. package/build/abi/shared/interfaces/tests/IWBTCContract.d.ts +0 -13
  86. package/build/abi/shared/interfaces/tests/IWBTCContract.js +0 -1
  87. package/build/abi/shared/json/motoswap/ADMINISTERD_OP_20_ABI.d.ts +0 -3
  88. package/build/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.d.ts +0 -4
  89. package/build/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.js +0 -508
  90. package/build/abi/shared/json/motoswap/OWNABLE_ABI.d.ts +0 -3
  91. package/build/abi/shared/json/motoswap/OWNABLE_ABI.js +0 -35
  92. package/build/abi/shared/json/motoswap/REENTRANCY_GUARD_ABI.js +0 -15
  93. package/build/abi/shared/json/tests/WBTC_ABI.d.ts +0 -3
  94. package/build/abi/shared/json/tests/WBTC_ABI.js +0 -57
  95. package/src/abi/shared/interfaces/motoswap/IMotoChefContract.ts +0 -484
  96. package/src/abi/shared/interfaces/motoswap/IOwnableContract.ts +0 -32
  97. package/src/abi/shared/interfaces/motoswap/IOwnableReentrancyGuardContract.ts +0 -33
  98. package/src/abi/shared/interfaces/motoswap/IReentrancyGuardContract.ts +0 -18
  99. package/src/abi/shared/interfaces/tests/IWBTCContract.ts +0 -35
  100. package/src/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.ts +0 -520
  101. package/src/abi/shared/json/motoswap/OWNABLE_ABI.ts +0 -38
  102. package/src/abi/shared/json/motoswap/REENTRANCY_GUARD_ABI.ts +0 -20
  103. package/src/abi/shared/json/tests/WBTC_ABI.ts +0 -73
  104. /package/build/abi/shared/interfaces/motoswap/{IAdministeredOP20.js → IMoto.js} +0 -0
  105. /package/build/abi/shared/interfaces/motoswap/{IMotoChefContract.js → IMotoChef.js} +0 -0
@@ -0,0 +1,820 @@
1
+ import { ABIDataTypes } from '@btc-vision/transaction';
2
+ import { BitcoinAbiTypes } from '../../../BitcoinAbiTypes.js';
3
+ import { OP_NET_ABI } from '../opnet/OP_NET_ABI.js';
4
+ const OwnableEvents = [
5
+ {
6
+ name: 'OwnershipTransferred',
7
+ values: [
8
+ {
9
+ name: 'previousOwner',
10
+ type: ABIDataTypes.ADDRESS,
11
+ },
12
+ {
13
+ name: 'newOwner',
14
+ type: ABIDataTypes.ADDRESS,
15
+ },
16
+ ],
17
+ type: BitcoinAbiTypes.Event,
18
+ },
19
+ ];
20
+ const OWNABLE_ABI = [
21
+ {
22
+ name: 'owner',
23
+ type: BitcoinAbiTypes.Function,
24
+ inputs: [],
25
+ outputs: [
26
+ {
27
+ name: 'returnVal1',
28
+ type: ABIDataTypes.ADDRESS,
29
+ },
30
+ ],
31
+ },
32
+ {
33
+ name: 'renounceOwnership',
34
+ type: BitcoinAbiTypes.Function,
35
+ inputs: [],
36
+ outputs: [
37
+ {
38
+ name: 'returnVal1',
39
+ type: ABIDataTypes.BOOL,
40
+ },
41
+ ],
42
+ },
43
+ {
44
+ name: 'transferOwnership',
45
+ type: BitcoinAbiTypes.Function,
46
+ inputs: [
47
+ {
48
+ name: 'newOwner',
49
+ type: ABIDataTypes.ADDRESS,
50
+ },
51
+ ],
52
+ outputs: [
53
+ {
54
+ name: 'returnVal1',
55
+ type: ABIDataTypes.BOOL,
56
+ },
57
+ ],
58
+ },
59
+ ];
60
+ const MotoChefEvents = [
61
+ {
62
+ name: 'LogPoolAddition',
63
+ values: [
64
+ {
65
+ name: 'poolId',
66
+ type: ABIDataTypes.UINT64,
67
+ },
68
+ {
69
+ name: 'allocPoint',
70
+ type: ABIDataTypes.UINT256,
71
+ },
72
+ {
73
+ name: 'lpToken',
74
+ type: ABIDataTypes.ADDRESS,
75
+ },
76
+ ],
77
+ type: BitcoinAbiTypes.Event,
78
+ },
79
+ {
80
+ name: 'LogInit',
81
+ values: [],
82
+ type: BitcoinAbiTypes.Event,
83
+ },
84
+ {
85
+ name: 'LogUpdatePool',
86
+ values: [
87
+ {
88
+ name: 'poolId',
89
+ type: ABIDataTypes.UINT64,
90
+ },
91
+ {
92
+ name: 'lastRewardBlock',
93
+ type: ABIDataTypes.UINT64,
94
+ },
95
+ {
96
+ name: 'lpSupply',
97
+ type: ABIDataTypes.UINT256,
98
+ },
99
+ {
100
+ name: 'accMotoPerShare',
101
+ type: ABIDataTypes.UINT256,
102
+ },
103
+ ],
104
+ type: BitcoinAbiTypes.Event,
105
+ },
106
+ {
107
+ name: 'StakedBTC',
108
+ values: [
109
+ {
110
+ name: 'user',
111
+ type: ABIDataTypes.ADDRESS,
112
+ },
113
+ {
114
+ name: 'netAmount',
115
+ type: ABIDataTypes.UINT256,
116
+ },
117
+ {
118
+ name: 'stakeTxHash',
119
+ type: ABIDataTypes.UINT256,
120
+ },
121
+ {
122
+ name: 'stakeIndex',
123
+ type: ABIDataTypes.UINT256,
124
+ },
125
+ ],
126
+ type: BitcoinAbiTypes.Event,
127
+ },
128
+ {
129
+ name: 'UnstakedBTC',
130
+ values: [
131
+ {
132
+ name: 'user',
133
+ type: ABIDataTypes.ADDRESS,
134
+ },
135
+ {
136
+ name: 'pendingMoto',
137
+ type: ABIDataTypes.UINT256,
138
+ },
139
+ {
140
+ name: 'storedTxHash',
141
+ type: ABIDataTypes.UINT256,
142
+ },
143
+ {
144
+ name: 'storedIndex',
145
+ type: ABIDataTypes.UINT256,
146
+ },
147
+ ],
148
+ type: BitcoinAbiTypes.Event,
149
+ },
150
+ {
151
+ name: 'LogSetPool',
152
+ values: [
153
+ {
154
+ name: 'poolId',
155
+ type: ABIDataTypes.UINT64,
156
+ },
157
+ {
158
+ name: 'allocPoint',
159
+ type: ABIDataTypes.UINT256,
160
+ },
161
+ ],
162
+ type: BitcoinAbiTypes.Event,
163
+ },
164
+ {
165
+ name: 'Deposit',
166
+ values: [
167
+ {
168
+ name: 'user',
169
+ type: ABIDataTypes.ADDRESS,
170
+ },
171
+ {
172
+ name: 'poolId',
173
+ type: ABIDataTypes.UINT64,
174
+ },
175
+ {
176
+ name: 'amount',
177
+ type: ABIDataTypes.UINT256,
178
+ },
179
+ {
180
+ name: 'to',
181
+ type: ABIDataTypes.ADDRESS,
182
+ },
183
+ ],
184
+ type: BitcoinAbiTypes.Event,
185
+ },
186
+ {
187
+ name: 'Withdraw',
188
+ values: [
189
+ {
190
+ name: 'user',
191
+ type: ABIDataTypes.ADDRESS,
192
+ },
193
+ {
194
+ name: 'poolId',
195
+ type: ABIDataTypes.UINT64,
196
+ },
197
+ {
198
+ name: 'amount',
199
+ type: ABIDataTypes.UINT256,
200
+ },
201
+ {
202
+ name: 'to',
203
+ type: ABIDataTypes.ADDRESS,
204
+ },
205
+ ],
206
+ type: BitcoinAbiTypes.Event,
207
+ },
208
+ {
209
+ name: 'Harvest',
210
+ values: [
211
+ {
212
+ name: 'user',
213
+ type: ABIDataTypes.ADDRESS,
214
+ },
215
+ {
216
+ name: 'poolId',
217
+ type: ABIDataTypes.UINT64,
218
+ },
219
+ {
220
+ name: 'amount',
221
+ type: ABIDataTypes.UINT256,
222
+ },
223
+ ],
224
+ type: BitcoinAbiTypes.Event,
225
+ },
226
+ {
227
+ name: 'EmergencyWithdraw',
228
+ values: [
229
+ {
230
+ name: 'user',
231
+ type: ABIDataTypes.ADDRESS,
232
+ },
233
+ {
234
+ name: 'poolId',
235
+ type: ABIDataTypes.UINT64,
236
+ },
237
+ {
238
+ name: 'amount',
239
+ type: ABIDataTypes.UINT256,
240
+ },
241
+ {
242
+ name: 'to',
243
+ type: ABIDataTypes.ADDRESS,
244
+ },
245
+ ],
246
+ type: BitcoinAbiTypes.Event,
247
+ },
248
+ ];
249
+ export const MOTOCHEF_ABI = [
250
+ {
251
+ name: 'initialize',
252
+ type: BitcoinAbiTypes.Function,
253
+ inputs: [
254
+ {
255
+ name: 'motoAddress',
256
+ type: ABIDataTypes.ADDRESS,
257
+ },
258
+ {
259
+ name: 'premineAmount',
260
+ type: ABIDataTypes.UINT256,
261
+ },
262
+ {
263
+ name: 'devAddress',
264
+ type: ABIDataTypes.ADDRESS,
265
+ },
266
+ {
267
+ name: 'motoPerBlock',
268
+ type: ABIDataTypes.UINT256,
269
+ },
270
+ {
271
+ name: 'bonusEndBlock',
272
+ type: ABIDataTypes.UINT256,
273
+ },
274
+ {
275
+ name: 'bonusMultiplier',
276
+ type: ABIDataTypes.UINT256,
277
+ },
278
+ {
279
+ name: 'treasuryAddress',
280
+ type: ABIDataTypes.STRING,
281
+ },
282
+ {
283
+ name: 'BTCAllocPoint',
284
+ type: ABIDataTypes.UINT256,
285
+ },
286
+ ],
287
+ outputs: [
288
+ {
289
+ name: 'success',
290
+ type: ABIDataTypes.BOOL,
291
+ },
292
+ ],
293
+ },
294
+ {
295
+ name: 'totalAllocPoint',
296
+ type: BitcoinAbiTypes.Function,
297
+ inputs: [],
298
+ outputs: [
299
+ {
300
+ name: 'totalAllocPoint',
301
+ type: ABIDataTypes.UINT256,
302
+ },
303
+ ],
304
+ },
305
+ {
306
+ name: 'devAddress',
307
+ type: BitcoinAbiTypes.Function,
308
+ inputs: [],
309
+ outputs: [
310
+ {
311
+ name: 'devAddress',
312
+ type: ABIDataTypes.ADDRESS,
313
+ },
314
+ ],
315
+ },
316
+ {
317
+ name: 'getMotoPerBlock',
318
+ type: BitcoinAbiTypes.Function,
319
+ inputs: [],
320
+ outputs: [
321
+ {
322
+ name: 'motoPerBlock',
323
+ type: ABIDataTypes.UINT256,
324
+ },
325
+ ],
326
+ },
327
+ {
328
+ name: 'getBonusEndBlock',
329
+ type: BitcoinAbiTypes.Function,
330
+ inputs: [],
331
+ outputs: [
332
+ {
333
+ name: 'bonusEndBlock',
334
+ type: ABIDataTypes.UINT256,
335
+ },
336
+ ],
337
+ },
338
+ {
339
+ name: 'getBonusMultiplier',
340
+ type: BitcoinAbiTypes.Function,
341
+ inputs: [],
342
+ outputs: [
343
+ {
344
+ name: 'bonusMultiplier',
345
+ type: ABIDataTypes.UINT256,
346
+ },
347
+ ],
348
+ },
349
+ {
350
+ name: 'getLpTokens',
351
+ type: BitcoinAbiTypes.Function,
352
+ inputs: [],
353
+ outputs: [
354
+ {
355
+ name: 'lpTokens',
356
+ type: ABIDataTypes.ARRAY_OF_ADDRESSES,
357
+ },
358
+ ],
359
+ },
360
+ {
361
+ name: 'getPoolsLength',
362
+ type: BitcoinAbiTypes.Function,
363
+ inputs: [],
364
+ outputs: [
365
+ {
366
+ name: 'poolsLength',
367
+ type: ABIDataTypes.UINT64,
368
+ },
369
+ ],
370
+ },
371
+ {
372
+ name: 'getLpToken',
373
+ type: BitcoinAbiTypes.Function,
374
+ inputs: [
375
+ {
376
+ name: 'poolId',
377
+ type: ABIDataTypes.UINT64,
378
+ },
379
+ ],
380
+ outputs: [
381
+ {
382
+ name: 'lpToken',
383
+ type: ABIDataTypes.ADDRESS,
384
+ },
385
+ ],
386
+ },
387
+ {
388
+ name: 'getPoolInfo',
389
+ type: BitcoinAbiTypes.Function,
390
+ inputs: [
391
+ {
392
+ name: 'poolId',
393
+ type: ABIDataTypes.UINT64,
394
+ },
395
+ ],
396
+ outputs: [
397
+ {
398
+ name: 'accMotoPerShare',
399
+ type: ABIDataTypes.UINT256,
400
+ },
401
+ {
402
+ name: 'lastRewardBlock',
403
+ type: ABIDataTypes.UINT64,
404
+ },
405
+ {
406
+ name: 'allocPoint',
407
+ type: ABIDataTypes.UINT64,
408
+ },
409
+ ],
410
+ },
411
+ {
412
+ name: 'getUserInfo',
413
+ type: BitcoinAbiTypes.Function,
414
+ inputs: [
415
+ {
416
+ name: 'poolId',
417
+ type: ABIDataTypes.UINT64,
418
+ },
419
+ {
420
+ name: 'user',
421
+ type: ABIDataTypes.ADDRESS,
422
+ },
423
+ ],
424
+ outputs: [
425
+ {
426
+ name: 'amount',
427
+ type: ABIDataTypes.UINT256,
428
+ },
429
+ {
430
+ name: 'rewardDebt',
431
+ type: ABIDataTypes.INT128,
432
+ },
433
+ ],
434
+ },
435
+ {
436
+ name: 'getMultiplier',
437
+ type: BitcoinAbiTypes.Function,
438
+ inputs: [
439
+ {
440
+ name: 'from',
441
+ type: ABIDataTypes.UINT256,
442
+ },
443
+ {
444
+ name: 'to',
445
+ type: ABIDataTypes.UINT256,
446
+ },
447
+ ],
448
+ outputs: [
449
+ {
450
+ name: 'multiplier',
451
+ type: ABIDataTypes.UINT256,
452
+ },
453
+ ],
454
+ },
455
+ {
456
+ name: 'pendingMoto',
457
+ type: BitcoinAbiTypes.Function,
458
+ inputs: [
459
+ {
460
+ name: 'poolId',
461
+ type: ABIDataTypes.UINT64,
462
+ },
463
+ {
464
+ name: 'user',
465
+ type: ABIDataTypes.ADDRESS,
466
+ },
467
+ ],
468
+ outputs: [
469
+ {
470
+ name: 'pendingMoto',
471
+ type: ABIDataTypes.UINT256,
472
+ },
473
+ ],
474
+ },
475
+ {
476
+ name: 'treasuryAddress',
477
+ type: BitcoinAbiTypes.Function,
478
+ inputs: [],
479
+ outputs: [
480
+ {
481
+ name: 'treasuryAddress',
482
+ type: ABIDataTypes.STRING,
483
+ },
484
+ ],
485
+ },
486
+ {
487
+ name: 'getStakingTxHash',
488
+ type: BitcoinAbiTypes.Function,
489
+ inputs: [
490
+ {
491
+ name: 'user',
492
+ type: ABIDataTypes.ADDRESS,
493
+ },
494
+ ],
495
+ outputs: [
496
+ {
497
+ name: 'stakingTxHash',
498
+ type: ABIDataTypes.UINT256,
499
+ },
500
+ ],
501
+ },
502
+ {
503
+ name: 'getStakingIndex',
504
+ type: BitcoinAbiTypes.Function,
505
+ inputs: [
506
+ {
507
+ name: 'user',
508
+ type: ABIDataTypes.ADDRESS,
509
+ },
510
+ ],
511
+ outputs: [
512
+ {
513
+ name: 'stakingIndex',
514
+ type: ABIDataTypes.UINT256,
515
+ },
516
+ ],
517
+ },
518
+ {
519
+ name: 'totalBTCStaked',
520
+ type: BitcoinAbiTypes.Function,
521
+ inputs: [],
522
+ outputs: [
523
+ {
524
+ name: 'totalBTCStaked',
525
+ type: ABIDataTypes.UINT256,
526
+ },
527
+ ],
528
+ },
529
+ {
530
+ name: 'stakeBTC',
531
+ type: BitcoinAbiTypes.Function,
532
+ inputs: [
533
+ {
534
+ name: 'amount',
535
+ type: ABIDataTypes.UINT256,
536
+ },
537
+ ],
538
+ outputs: [
539
+ {
540
+ name: 'success',
541
+ type: ABIDataTypes.BOOL,
542
+ },
543
+ ],
544
+ },
545
+ {
546
+ name: 'unstakeBTC',
547
+ type: BitcoinAbiTypes.Function,
548
+ inputs: [],
549
+ outputs: [
550
+ {
551
+ name: 'success',
552
+ type: ABIDataTypes.BOOL,
553
+ },
554
+ ],
555
+ },
556
+ {
557
+ name: 'add',
558
+ type: BitcoinAbiTypes.Function,
559
+ inputs: [
560
+ {
561
+ name: 'allocPoint',
562
+ type: ABIDataTypes.UINT256,
563
+ },
564
+ {
565
+ name: 'lpToken',
566
+ type: ABIDataTypes.ADDRESS,
567
+ },
568
+ ],
569
+ outputs: [
570
+ {
571
+ name: 'success',
572
+ type: ABIDataTypes.BOOL,
573
+ },
574
+ ],
575
+ },
576
+ {
577
+ name: 'set',
578
+ type: BitcoinAbiTypes.Function,
579
+ inputs: [
580
+ {
581
+ name: 'poolId',
582
+ type: ABIDataTypes.UINT64,
583
+ },
584
+ {
585
+ name: 'allocPoint',
586
+ type: ABIDataTypes.UINT256,
587
+ },
588
+ ],
589
+ outputs: [
590
+ {
591
+ name: 'success',
592
+ type: ABIDataTypes.BOOL,
593
+ },
594
+ ],
595
+ },
596
+ {
597
+ name: 'updatePool',
598
+ type: BitcoinAbiTypes.Function,
599
+ inputs: [
600
+ {
601
+ name: 'poolId',
602
+ type: ABIDataTypes.UINT64,
603
+ },
604
+ ],
605
+ outputs: [
606
+ {
607
+ name: 'accMotoPerShare',
608
+ type: ABIDataTypes.UINT256,
609
+ },
610
+ {
611
+ name: 'lastRewardBlock',
612
+ type: ABIDataTypes.UINT64,
613
+ },
614
+ {
615
+ name: 'allocPoint',
616
+ type: ABIDataTypes.UINT64,
617
+ },
618
+ ],
619
+ },
620
+ {
621
+ name: 'massUpdatePools',
622
+ type: BitcoinAbiTypes.Function,
623
+ inputs: [
624
+ {
625
+ name: 'length',
626
+ type: ABIDataTypes.UINT16,
627
+ },
628
+ {
629
+ name: 'poolIds',
630
+ type: ABIDataTypes.ARRAY_OF_UINT64,
631
+ },
632
+ ],
633
+ outputs: [
634
+ {
635
+ name: 'success',
636
+ type: ABIDataTypes.BOOL,
637
+ },
638
+ ],
639
+ },
640
+ {
641
+ name: 'deposit',
642
+ type: BitcoinAbiTypes.Function,
643
+ inputs: [
644
+ {
645
+ name: 'poolId',
646
+ type: ABIDataTypes.UINT64,
647
+ },
648
+ {
649
+ name: 'amount',
650
+ type: ABIDataTypes.UINT256,
651
+ },
652
+ {
653
+ name: 'to',
654
+ type: ABIDataTypes.ADDRESS,
655
+ },
656
+ ],
657
+ outputs: [
658
+ {
659
+ name: 'success',
660
+ type: ABIDataTypes.BOOL,
661
+ },
662
+ ],
663
+ },
664
+ {
665
+ name: 'withdraw',
666
+ type: BitcoinAbiTypes.Function,
667
+ inputs: [
668
+ {
669
+ name: 'poolId',
670
+ type: ABIDataTypes.UINT64,
671
+ },
672
+ {
673
+ name: 'amount',
674
+ type: ABIDataTypes.UINT256,
675
+ },
676
+ {
677
+ name: 'to',
678
+ type: ABIDataTypes.ADDRESS,
679
+ },
680
+ ],
681
+ outputs: [
682
+ {
683
+ name: 'success',
684
+ type: ABIDataTypes.BOOL,
685
+ },
686
+ ],
687
+ },
688
+ {
689
+ name: 'harvest',
690
+ type: BitcoinAbiTypes.Function,
691
+ inputs: [
692
+ {
693
+ name: 'poolId',
694
+ type: ABIDataTypes.UINT64,
695
+ },
696
+ {
697
+ name: 'to',
698
+ type: ABIDataTypes.ADDRESS,
699
+ },
700
+ ],
701
+ outputs: [
702
+ {
703
+ name: 'success',
704
+ type: ABIDataTypes.BOOL,
705
+ },
706
+ ],
707
+ },
708
+ {
709
+ name: 'withdrawAndHarvest',
710
+ type: BitcoinAbiTypes.Function,
711
+ inputs: [
712
+ {
713
+ name: 'poolId',
714
+ type: ABIDataTypes.UINT64,
715
+ },
716
+ {
717
+ name: 'amount',
718
+ type: ABIDataTypes.UINT256,
719
+ },
720
+ {
721
+ name: 'to',
722
+ type: ABIDataTypes.ADDRESS,
723
+ },
724
+ ],
725
+ outputs: [
726
+ {
727
+ name: 'success',
728
+ type: ABIDataTypes.BOOL,
729
+ },
730
+ ],
731
+ },
732
+ {
733
+ name: 'emergencyWithdraw',
734
+ type: BitcoinAbiTypes.Function,
735
+ inputs: [
736
+ {
737
+ name: 'poolId',
738
+ type: ABIDataTypes.UINT64,
739
+ },
740
+ {
741
+ name: 'to',
742
+ type: ABIDataTypes.ADDRESS,
743
+ },
744
+ ],
745
+ outputs: [
746
+ {
747
+ name: 'success',
748
+ type: ABIDataTypes.BOOL,
749
+ },
750
+ ],
751
+ },
752
+ {
753
+ name: 'setMotoPerBlock',
754
+ type: BitcoinAbiTypes.Function,
755
+ inputs: [
756
+ {
757
+ name: 'motoPerBlock',
758
+ type: ABIDataTypes.UINT256,
759
+ },
760
+ ],
761
+ outputs: [
762
+ {
763
+ name: 'success',
764
+ type: ABIDataTypes.BOOL,
765
+ },
766
+ ],
767
+ },
768
+ {
769
+ name: 'setBonusEndBlock',
770
+ type: BitcoinAbiTypes.Function,
771
+ inputs: [
772
+ {
773
+ name: 'bonusEndBlock',
774
+ type: ABIDataTypes.UINT256,
775
+ },
776
+ ],
777
+ outputs: [
778
+ {
779
+ name: 'success',
780
+ type: ABIDataTypes.BOOL,
781
+ },
782
+ ],
783
+ },
784
+ {
785
+ name: 'setBonusMultiplier',
786
+ type: BitcoinAbiTypes.Function,
787
+ inputs: [
788
+ {
789
+ name: 'bonusMultiplier',
790
+ type: ABIDataTypes.UINT256,
791
+ },
792
+ ],
793
+ outputs: [
794
+ {
795
+ name: 'success',
796
+ type: ABIDataTypes.BOOL,
797
+ },
798
+ ],
799
+ },
800
+ {
801
+ name: 'setDev',
802
+ type: BitcoinAbiTypes.Function,
803
+ inputs: [
804
+ {
805
+ name: 'devAddress',
806
+ type: ABIDataTypes.ADDRESS,
807
+ },
808
+ ],
809
+ outputs: [
810
+ {
811
+ name: 'success',
812
+ type: ABIDataTypes.BOOL,
813
+ },
814
+ ],
815
+ },
816
+ ...OwnableEvents,
817
+ ...OWNABLE_ABI,
818
+ ...MotoChefEvents,
819
+ ...OP_NET_ABI,
820
+ ];