opnet 1.3.2 → 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 (102) 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/fetch/fetch-browser.d.ts +4 -0
  14. package/browser/fetch/fetch.d.ts +2 -0
  15. package/browser/index.js +1 -1
  16. package/browser/opnet.d.ts +10 -12
  17. package/build/_version.d.ts +1 -1
  18. package/build/_version.js +1 -1
  19. package/build/abi/shared/interfaces/motoswap/{IAdministeredOP20.d.ts → IMoto.d.ts} +2 -2
  20. package/build/abi/shared/interfaces/motoswap/IMotoChef.d.ts +208 -0
  21. package/build/abi/shared/interfaces/motoswap/IMotoswapPoolContract.d.ts +0 -4
  22. package/build/abi/shared/interfaces/motoswap/IMotoswapStakingContract.d.ts +19 -3
  23. package/build/abi/shared/interfaces/motoswap/INativeSwapContract.d.ts +13 -5
  24. package/build/abi/shared/interfaces/opnet/IOP_NETContract.d.ts +2 -2
  25. package/build/abi/shared/json/generic/STAKING_ABI.d.ts +0 -1
  26. package/build/abi/shared/json/generic/STAKING_ABI.js +1 -1
  27. package/{browser/abi/shared/json/motoswap/REENTRANCY_GUARD_ABI.d.ts → build/abi/shared/json/motoswap/MOTOCHEF_ABI.d.ts} +1 -1
  28. package/build/abi/shared/json/motoswap/MOTOCHEF_ABI.js +820 -0
  29. package/build/abi/shared/json/motoswap/MOTOSWAP_STAKING_ABI.d.ts +0 -1
  30. package/build/abi/shared/json/motoswap/MOTOSWAP_STAKING_ABI.js +45 -5
  31. package/build/abi/shared/json/motoswap/MOTO_ABI.d.ts +2 -0
  32. package/build/abi/shared/json/motoswap/{ADMINISTERD_OP_20_ABI.js → MOTO_ABI.js} +5 -13
  33. package/build/abi/shared/json/motoswap/NATIVE_SWAP_ABI.d.ts +0 -1
  34. package/build/abi/shared/json/motoswap/NATIVE_SWAP_ABI.js +15 -1
  35. package/build/abi/shared/json/opnet/OP_NET_ABI.js +7 -18
  36. package/build/contracts/Contract.js +2 -2
  37. package/build/fetch/fetch.d.ts +2 -0
  38. package/build/fetch/fetch.js +2 -0
  39. package/build/opnet.d.ts +10 -12
  40. package/build/opnet.js +10 -12
  41. package/build/providers/JSONRpcProvider.js +7 -1
  42. package/package.json +6 -4
  43. package/src/_version.ts +1 -1
  44. package/src/abi/shared/interfaces/motoswap/{IAdministeredOP20.ts → IMoto.ts} +4 -4
  45. package/src/abi/shared/interfaces/motoswap/IMotoChef.ts +485 -0
  46. package/src/abi/shared/interfaces/motoswap/IMotoswapPoolContract.ts +0 -5
  47. package/src/abi/shared/interfaces/motoswap/IMotoswapStakingContract.ts +50 -4
  48. package/src/abi/shared/interfaces/motoswap/INativeSwapContract.ts +19 -5
  49. package/src/abi/shared/interfaces/opnet/IOP_NETContract.ts +1 -1
  50. package/src/abi/shared/json/generic/STAKING_ABI.ts +1 -7
  51. package/src/abi/shared/json/motoswap/MOTOCHEF_ABI.ts +831 -0
  52. package/src/abi/shared/json/motoswap/MOTOSWAP_FACTORY_ABI.ts +0 -6
  53. package/src/abi/shared/json/motoswap/MOTOSWAP_POOL_ABI.ts +0 -6
  54. package/src/abi/shared/json/motoswap/MOTOSWAP_ROUTER_ABI.ts +0 -3
  55. package/src/abi/shared/json/motoswap/MOTOSWAP_STAKING_ABI.ts +51 -9
  56. package/src/abi/shared/json/motoswap/{ADMINISTERD_OP_20_ABI.ts → MOTO_ABI.ts} +7 -15
  57. package/src/abi/shared/json/motoswap/NATIVE_SWAP_ABI.ts +15 -7
  58. package/src/abi/shared/json/opnet/OP_NET_ABI.ts +7 -24
  59. package/src/contracts/CallResult.ts +1 -0
  60. package/src/contracts/Contract.ts +3 -3
  61. package/src/fetch/fetch-browser.js +5 -0
  62. package/src/fetch/fetch.ts +3 -0
  63. package/src/opnet.ts +10 -12
  64. package/src/providers/JSONRpcProvider.ts +9 -4
  65. package/webpack.config.js +1 -0
  66. package/browser/abi/shared/interfaces/motoswap/IMotoChefContract.d.ts +0 -229
  67. package/browser/abi/shared/interfaces/motoswap/IOwnableContract.d.ts +0 -12
  68. package/browser/abi/shared/interfaces/motoswap/IOwnableReentrancyGuardContract.d.ts +0 -13
  69. package/browser/abi/shared/interfaces/motoswap/IReentrancyGuardContract.d.ts +0 -7
  70. package/browser/abi/shared/interfaces/tests/IWBTCContract.d.ts +0 -13
  71. package/browser/abi/shared/json/motoswap/ADMINISTERD_OP_20_ABI.d.ts +0 -3
  72. package/browser/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.d.ts +0 -4
  73. package/browser/abi/shared/json/motoswap/OWNABLE_ABI.d.ts +0 -3
  74. package/browser/abi/shared/json/tests/WBTC_ABI.d.ts +0 -3
  75. package/build/abi/shared/interfaces/motoswap/IMotoChefContract.d.ts +0 -229
  76. package/build/abi/shared/interfaces/motoswap/IOwnableContract.d.ts +0 -12
  77. package/build/abi/shared/interfaces/motoswap/IOwnableContract.js +0 -1
  78. package/build/abi/shared/interfaces/motoswap/IOwnableReentrancyGuardContract.d.ts +0 -13
  79. package/build/abi/shared/interfaces/motoswap/IOwnableReentrancyGuardContract.js +0 -1
  80. package/build/abi/shared/interfaces/motoswap/IReentrancyGuardContract.d.ts +0 -7
  81. package/build/abi/shared/interfaces/motoswap/IReentrancyGuardContract.js +0 -1
  82. package/build/abi/shared/interfaces/tests/IWBTCContract.d.ts +0 -13
  83. package/build/abi/shared/interfaces/tests/IWBTCContract.js +0 -1
  84. package/build/abi/shared/json/motoswap/ADMINISTERD_OP_20_ABI.d.ts +0 -3
  85. package/build/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.d.ts +0 -4
  86. package/build/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.js +0 -508
  87. package/build/abi/shared/json/motoswap/OWNABLE_ABI.d.ts +0 -3
  88. package/build/abi/shared/json/motoswap/OWNABLE_ABI.js +0 -35
  89. package/build/abi/shared/json/motoswap/REENTRANCY_GUARD_ABI.js +0 -15
  90. package/build/abi/shared/json/tests/WBTC_ABI.d.ts +0 -3
  91. package/build/abi/shared/json/tests/WBTC_ABI.js +0 -57
  92. package/src/abi/shared/interfaces/motoswap/IMotoChefContract.ts +0 -484
  93. package/src/abi/shared/interfaces/motoswap/IOwnableContract.ts +0 -32
  94. package/src/abi/shared/interfaces/motoswap/IOwnableReentrancyGuardContract.ts +0 -33
  95. package/src/abi/shared/interfaces/motoswap/IReentrancyGuardContract.ts +0 -18
  96. package/src/abi/shared/interfaces/tests/IWBTCContract.ts +0 -35
  97. package/src/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.ts +0 -520
  98. package/src/abi/shared/json/motoswap/OWNABLE_ABI.ts +0 -38
  99. package/src/abi/shared/json/motoswap/REENTRANCY_GUARD_ABI.ts +0 -20
  100. package/src/abi/shared/json/tests/WBTC_ABI.ts +0 -73
  101. /package/build/abi/shared/interfaces/motoswap/{IAdministeredOP20.js → IMoto.js} +0 -0
  102. /package/build/abi/shared/interfaces/motoswap/{IMotoChefContract.js → IMotoChef.js} +0 -0
@@ -1,508 +0,0 @@
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
- import OWNABLE_ABI from './OWNABLE_ABI.js';
5
- import { REENTRANCY_GUARD_ABI } from './REENTRANCY_GUARD_ABI.js';
6
- export const MotoChefEvents = [
7
- {
8
- name: 'LogInit',
9
- type: BitcoinAbiTypes.Event,
10
- values: [],
11
- },
12
- {
13
- name: 'LogPoolAddition',
14
- type: BitcoinAbiTypes.Event,
15
- values: [
16
- {
17
- name: 'pid',
18
- type: ABIDataTypes.UINT64,
19
- },
20
- {
21
- name: 'allocPoint',
22
- type: ABIDataTypes.UINT256,
23
- },
24
- {
25
- name: 'lpToken',
26
- type: ABIDataTypes.ADDRESS,
27
- },
28
- ],
29
- },
30
- {
31
- name: 'LogSetPool',
32
- type: BitcoinAbiTypes.Event,
33
- values: [
34
- {
35
- name: 'pid',
36
- type: ABIDataTypes.UINT64,
37
- },
38
- {
39
- name: 'allocPoint',
40
- type: ABIDataTypes.UINT256,
41
- },
42
- ],
43
- },
44
- {
45
- name: 'LogUpdatePool',
46
- type: BitcoinAbiTypes.Event,
47
- values: [
48
- {
49
- name: 'pid',
50
- type: ABIDataTypes.UINT64,
51
- },
52
- {
53
- name: 'lastRewardBlock',
54
- type: ABIDataTypes.UINT64,
55
- },
56
- {
57
- name: 'lpSupply',
58
- type: ABIDataTypes.UINT256,
59
- },
60
- {
61
- name: 'accMotoPerShare',
62
- type: ABIDataTypes.UINT256,
63
- },
64
- ],
65
- },
66
- {
67
- name: 'Deposit',
68
- type: BitcoinAbiTypes.Event,
69
- values: [
70
- {
71
- name: 'user',
72
- type: ABIDataTypes.ADDRESS,
73
- },
74
- {
75
- name: 'pid',
76
- type: ABIDataTypes.UINT64,
77
- },
78
- {
79
- name: 'amount',
80
- type: ABIDataTypes.UINT256,
81
- },
82
- {
83
- name: 'to',
84
- type: ABIDataTypes.ADDRESS,
85
- },
86
- ],
87
- },
88
- {
89
- name: 'Withdraw',
90
- type: BitcoinAbiTypes.Event,
91
- values: [
92
- {
93
- name: 'user',
94
- type: ABIDataTypes.ADDRESS,
95
- },
96
- {
97
- name: 'pid',
98
- type: ABIDataTypes.UINT64,
99
- },
100
- {
101
- name: 'amount',
102
- type: ABIDataTypes.UINT256,
103
- },
104
- {
105
- name: 'to',
106
- type: ABIDataTypes.ADDRESS,
107
- },
108
- ],
109
- },
110
- {
111
- name: 'Harvest',
112
- type: BitcoinAbiTypes.Event,
113
- values: [
114
- {
115
- name: 'user',
116
- type: ABIDataTypes.ADDRESS,
117
- },
118
- {
119
- name: 'pid',
120
- type: ABIDataTypes.UINT64,
121
- },
122
- {
123
- name: 'amount',
124
- type: ABIDataTypes.UINT256,
125
- },
126
- ],
127
- },
128
- {
129
- name: 'EmergencyWithdraw',
130
- type: BitcoinAbiTypes.Event,
131
- values: [
132
- {
133
- name: 'user',
134
- type: ABIDataTypes.ADDRESS,
135
- },
136
- {
137
- name: 'pid',
138
- type: ABIDataTypes.UINT64,
139
- },
140
- {
141
- name: 'amount',
142
- type: ABIDataTypes.UINT256,
143
- },
144
- {
145
- name: 'to',
146
- type: ABIDataTypes.ADDRESS,
147
- },
148
- ],
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
- },
194
- ];
195
- const MOTOCHEF_ABI = [
196
- {
197
- name: 'initialize',
198
- type: BitcoinAbiTypes.Function,
199
- constant: false,
200
- payable: false,
201
- inputs: [
202
- { name: 'MOTO', type: ABIDataTypes.ADDRESS },
203
- { name: 'premineAmount', type: ABIDataTypes.UINT256 },
204
- { name: 'devaddr', type: ABIDataTypes.ADDRESS },
205
- { name: 'motoPerBlock', type: ABIDataTypes.UINT256 },
206
- { name: 'bonusEndBlock', type: ABIDataTypes.UINT256 },
207
- { name: 'bonusMultiplier', type: ABIDataTypes.UINT256 },
208
- { name: 'treasuryAddress', type: ABIDataTypes.STRING },
209
- { name: 'btcAllocPoint', type: ABIDataTypes.UINT256 },
210
- ],
211
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
212
- },
213
- {
214
- name: 'getLpToken',
215
- type: BitcoinAbiTypes.Function,
216
- constant: true,
217
- inputs: [{ name: 'pid', type: ABIDataTypes.UINT64 }],
218
- outputs: [{ name: 'lpTokenAddress', type: ABIDataTypes.ADDRESS }],
219
- },
220
- {
221
- name: 'getLpTokens',
222
- type: BitcoinAbiTypes.Function,
223
- constant: true,
224
- inputs: [],
225
- outputs: [{ name: 'lpTokens', type: ABIDataTypes.ARRAY_OF_ADDRESSES }],
226
- },
227
- {
228
- name: 'getPoolInfo',
229
- type: BitcoinAbiTypes.Function,
230
- constant: true,
231
- inputs: [{ name: 'pid', type: ABIDataTypes.UINT64 }],
232
- outputs: [
233
- { name: 'accMotoPerShare', type: ABIDataTypes.UINT256 },
234
- { name: 'lastRewardBlock', type: ABIDataTypes.UINT64 },
235
- { name: 'allocPoint', type: ABIDataTypes.UINT64 },
236
- ],
237
- },
238
- {
239
- name: 'getPoolsLength',
240
- type: BitcoinAbiTypes.Function,
241
- constant: true,
242
- inputs: [],
243
- outputs: [{ name: 'poolLength', type: ABIDataTypes.UINT64 }],
244
- },
245
- {
246
- name: 'getUserInfo',
247
- type: BitcoinAbiTypes.Function,
248
- constant: true,
249
- inputs: [
250
- { name: 'pid', type: ABIDataTypes.UINT64 },
251
- { name: 'user', type: ABIDataTypes.ADDRESS },
252
- ],
253
- outputs: [
254
- { name: 'amount', type: ABIDataTypes.UINT256 },
255
- { name: 'rewardDebt', type: ABIDataTypes.INT128 },
256
- ],
257
- },
258
- {
259
- name: 'totalAllocPoint',
260
- type: BitcoinAbiTypes.Function,
261
- constant: true,
262
- inputs: [],
263
- outputs: [{ name: 'totalAllocPoint', type: ABIDataTypes.UINT256 }],
264
- },
265
- {
266
- name: 'devaddr',
267
- type: BitcoinAbiTypes.Function,
268
- constant: true,
269
- inputs: [],
270
- outputs: [{ name: 'devaddr', type: ABIDataTypes.ADDRESS }],
271
- },
272
- {
273
- name: 'getMotoPerBlock',
274
- type: BitcoinAbiTypes.Function,
275
- constant: true,
276
- inputs: [],
277
- outputs: [{ name: 'motoPerBlock', type: ABIDataTypes.UINT256 }],
278
- },
279
- {
280
- name: 'getBonusEndBlock',
281
- type: BitcoinAbiTypes.Function,
282
- constant: true,
283
- inputs: [],
284
- outputs: [{ name: 'bonusEndBlock', type: ABIDataTypes.UINT256 }],
285
- },
286
- {
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',
309
- type: BitcoinAbiTypes.Function,
310
- constant: true,
311
- inputs: [],
312
- outputs: [{ name: 'stakingIndex', type: ABIDataTypes.UINT256 }],
313
- },
314
- {
315
- name: 'setMotoPerBlock',
316
- type: BitcoinAbiTypes.Function,
317
- constant: false,
318
- payable: false,
319
- inputs: [{ name: 'motoPerBlock', type: ABIDataTypes.UINT256 }],
320
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
321
- },
322
- {
323
- name: 'setBonusEndBlock',
324
- type: BitcoinAbiTypes.Function,
325
- constant: false,
326
- payable: false,
327
- inputs: [{ name: 'bonusEndBlock', type: ABIDataTypes.UINT256 }],
328
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
329
- },
330
- {
331
- name: 'setBonusMultiplier',
332
- type: BitcoinAbiTypes.Function,
333
- constant: false,
334
- payable: false,
335
- inputs: [{ name: 'bonusMultiplier', type: ABIDataTypes.UINT256 }],
336
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
337
- },
338
- {
339
- name: 'add',
340
- type: BitcoinAbiTypes.Function,
341
- constant: false,
342
- payable: false,
343
- inputs: [
344
- { name: 'allocPoint', type: ABIDataTypes.UINT256 },
345
- { name: 'lpToken', type: ABIDataTypes.ADDRESS },
346
- ],
347
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
348
- },
349
- {
350
- name: 'set',
351
- type: BitcoinAbiTypes.Function,
352
- constant: false,
353
- payable: false,
354
- inputs: [
355
- { name: 'pid', type: ABIDataTypes.UINT64 },
356
- { name: 'allocPoint', type: ABIDataTypes.UINT256 },
357
- ],
358
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
359
- },
360
- {
361
- name: 'setMigrator',
362
- type: BitcoinAbiTypes.Function,
363
- constant: false,
364
- payable: false,
365
- inputs: [{ name: 'migrator', type: ABIDataTypes.ADDRESS }],
366
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
367
- },
368
- {
369
- name: 'migrate',
370
- type: BitcoinAbiTypes.Function,
371
- constant: false,
372
- payable: false,
373
- inputs: [{ name: 'pid', type: ABIDataTypes.UINT64 }],
374
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
375
- },
376
- {
377
- name: 'getMultiplier',
378
- type: BitcoinAbiTypes.Function,
379
- constant: false,
380
- payable: false,
381
- inputs: [
382
- { name: 'from', type: ABIDataTypes.UINT256 },
383
- { name: 'to', type: ABIDataTypes.UINT256 },
384
- ],
385
- outputs: [{ name: 'multiplier', type: ABIDataTypes.UINT256 }],
386
- },
387
- {
388
- name: 'pendingMoto',
389
- type: BitcoinAbiTypes.Function,
390
- constant: false,
391
- payable: false,
392
- inputs: [
393
- { name: 'pid', type: ABIDataTypes.UINT64 },
394
- { name: 'user', type: ABIDataTypes.ADDRESS },
395
- ],
396
- outputs: [{ name: 'pendingMoto', type: ABIDataTypes.UINT256 }],
397
- },
398
- {
399
- name: 'massUpdatePools',
400
- type: BitcoinAbiTypes.Function,
401
- constant: false,
402
- payable: false,
403
- inputs: [
404
- { name: 'length', type: ABIDataTypes.UINT32 },
405
- { name: 'pids', type: ABIDataTypes.ARRAY_OF_UINT64 },
406
- ],
407
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
408
- },
409
- {
410
- name: 'updatePool',
411
- type: BitcoinAbiTypes.Function,
412
- constant: false,
413
- payable: false,
414
- inputs: [{ name: 'pid', type: ABIDataTypes.UINT64 }],
415
- outputs: [
416
- { name: 'accMotoPerShare', type: ABIDataTypes.UINT256 },
417
- { name: 'lastRewardBlock', type: ABIDataTypes.UINT64 },
418
- { name: 'allocPoint', type: ABIDataTypes.UINT64 },
419
- ],
420
- },
421
- {
422
- name: 'deposit',
423
- type: BitcoinAbiTypes.Function,
424
- constant: false,
425
- payable: false,
426
- inputs: [
427
- { name: 'pid', type: ABIDataTypes.UINT64 },
428
- { name: 'amount', type: ABIDataTypes.UINT256 },
429
- { name: 'to', type: ABIDataTypes.ADDRESS },
430
- ],
431
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
432
- },
433
- {
434
- name: 'withdraw',
435
- type: BitcoinAbiTypes.Function,
436
- constant: false,
437
- payable: false,
438
- inputs: [
439
- { name: 'pid', type: ABIDataTypes.UINT64 },
440
- { name: 'amount', type: ABIDataTypes.UINT256 },
441
- { name: 'to', type: ABIDataTypes.ADDRESS },
442
- ],
443
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
444
- },
445
- {
446
- name: 'harvest',
447
- type: BitcoinAbiTypes.Function,
448
- constant: false,
449
- payable: false,
450
- inputs: [
451
- { name: 'pid', type: ABIDataTypes.UINT64 },
452
- { name: 'to', type: ABIDataTypes.ADDRESS },
453
- ],
454
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
455
- },
456
- {
457
- name: 'withdrawAndHarvest',
458
- type: BitcoinAbiTypes.Function,
459
- constant: false,
460
- payable: false,
461
- inputs: [
462
- { name: 'pid', type: ABIDataTypes.UINT64 },
463
- { name: 'amount', type: ABIDataTypes.UINT256 },
464
- { name: 'to', type: ABIDataTypes.ADDRESS },
465
- ],
466
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
467
- },
468
- {
469
- name: 'emergencyWithdraw',
470
- type: BitcoinAbiTypes.Function,
471
- constant: false,
472
- payable: false,
473
- inputs: [
474
- { name: 'pid', type: ABIDataTypes.UINT64 },
475
- { name: 'to', type: ABIDataTypes.ADDRESS },
476
- ],
477
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
478
- },
479
- {
480
- name: 'setDev',
481
- type: BitcoinAbiTypes.Function,
482
- constant: false,
483
- payable: false,
484
- inputs: [{ name: 'devaddr', type: ABIDataTypes.ADDRESS }],
485
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
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
- },
503
- ...MotoChefEvents,
504
- ...OP_NET_ABI,
505
- ...REENTRANCY_GUARD_ABI,
506
- ...OWNABLE_ABI,
507
- ];
508
- export default MOTOCHEF_ABI;
@@ -1,3 +0,0 @@
1
- import { BitcoinInterfaceAbi } from '../../../interfaces/BitcoinInterfaceAbi.js';
2
- declare const OWNABLE_ABI: BitcoinInterfaceAbi;
3
- export default OWNABLE_ABI;
@@ -1,35 +0,0 @@
1
- import { ABIDataTypes } from '@btc-vision/transaction';
2
- import { BitcoinAbiTypes } from '../../../BitcoinAbiTypes.js';
3
- const OWNABLE_ABI = [
4
- {
5
- name: 'admin',
6
- type: BitcoinAbiTypes.Function,
7
- constant: true,
8
- inputs: [],
9
- outputs: [
10
- {
11
- name: 'adminAddress',
12
- type: ABIDataTypes.ADDRESS,
13
- },
14
- ],
15
- },
16
- {
17
- name: 'changeAdmin',
18
- type: BitcoinAbiTypes.Function,
19
- constant: false,
20
- payable: false,
21
- inputs: [
22
- {
23
- name: 'newAdmin',
24
- type: ABIDataTypes.ADDRESS,
25
- },
26
- ],
27
- outputs: [
28
- {
29
- name: 'success',
30
- type: ABIDataTypes.BOOL,
31
- },
32
- ],
33
- },
34
- ];
35
- export default OWNABLE_ABI;
@@ -1,15 +0,0 @@
1
- import { ABIDataTypes } from '@btc-vision/transaction';
2
- import { BitcoinAbiTypes } from '../../../BitcoinAbiTypes.js';
3
- export const REENTRANCY_GUARD_ABI = [
4
- {
5
- name: 'status',
6
- inputs: [],
7
- outputs: [
8
- {
9
- name: 'status',
10
- type: ABIDataTypes.UINT256,
11
- },
12
- ],
13
- type: BitcoinAbiTypes.Function,
14
- },
15
- ];
@@ -1,3 +0,0 @@
1
- import { BitcoinInterfaceAbi } from '../../../interfaces/BitcoinInterfaceAbi.js';
2
- export declare const WBTCEvents: BitcoinInterfaceAbi;
3
- export declare const WBTC_ABI: BitcoinInterfaceAbi;
@@ -1,57 +0,0 @@
1
- import { ABIDataTypes } from '@btc-vision/transaction';
2
- import { BitcoinAbiTypes } from '../../../BitcoinAbiTypes.js';
3
- import { STAKING_ABI } from '../generic/STAKING_ABI.js';
4
- import { OP_20_ABI } from '../opnet/OP_20_ABI.js';
5
- export const WBTCEvents = [
6
- {
7
- name: 'WithdrawalRequest',
8
- values: [
9
- {
10
- name: 'address',
11
- type: ABIDataTypes.ADDRESS,
12
- },
13
- {
14
- name: 'amount',
15
- type: ABIDataTypes.UINT256,
16
- },
17
- ],
18
- type: BitcoinAbiTypes.Event,
19
- },
20
- ];
21
- export const WBTC_ABI = [
22
- {
23
- name: 'requestWithdrawal',
24
- inputs: [
25
- {
26
- name: 'amount',
27
- type: ABIDataTypes.UINT256,
28
- },
29
- ],
30
- outputs: [
31
- {
32
- name: 'success',
33
- type: ABIDataTypes.BOOL,
34
- },
35
- ],
36
- type: BitcoinAbiTypes.Function,
37
- },
38
- {
39
- name: 'withdrawableBalanceOf',
40
- inputs: [
41
- {
42
- name: 'address',
43
- type: ABIDataTypes.ADDRESS,
44
- },
45
- ],
46
- outputs: [
47
- {
48
- name: 'balance',
49
- type: ABIDataTypes.UINT256,
50
- },
51
- ],
52
- type: BitcoinAbiTypes.Function,
53
- },
54
- ...WBTCEvents,
55
- ...STAKING_ABI,
56
- ...OP_20_ABI,
57
- ];