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