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,520 +0,0 @@
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
- import OWNABLE_ABI from './OWNABLE_ABI.js';
6
- import { REENTRANCY_GUARD_ABI } from './REENTRANCY_GUARD_ABI.js';
7
-
8
- export const MotoChefEvents: BitcoinInterfaceAbi = [
9
- {
10
- name: 'LogInit',
11
- type: BitcoinAbiTypes.Event,
12
- values: [],
13
- },
14
- {
15
- name: 'LogPoolAddition',
16
- type: BitcoinAbiTypes.Event,
17
- values: [
18
- {
19
- name: 'pid',
20
- type: ABIDataTypes.UINT64,
21
- },
22
- {
23
- name: 'allocPoint',
24
- type: ABIDataTypes.UINT256,
25
- },
26
- {
27
- name: 'lpToken',
28
- type: ABIDataTypes.ADDRESS,
29
- },
30
- ],
31
- },
32
- {
33
- name: 'LogSetPool',
34
- type: BitcoinAbiTypes.Event,
35
- values: [
36
- {
37
- name: 'pid',
38
- type: ABIDataTypes.UINT64,
39
- },
40
- {
41
- name: 'allocPoint',
42
- type: ABIDataTypes.UINT256,
43
- },
44
- ],
45
- },
46
- {
47
- name: 'LogUpdatePool',
48
- type: BitcoinAbiTypes.Event,
49
- values: [
50
- {
51
- name: 'pid',
52
- type: ABIDataTypes.UINT64,
53
- },
54
- {
55
- name: 'lastRewardBlock',
56
- type: ABIDataTypes.UINT64,
57
- },
58
- {
59
- name: 'lpSupply',
60
- type: ABIDataTypes.UINT256,
61
- },
62
- {
63
- name: 'accMotoPerShare',
64
- type: ABIDataTypes.UINT256,
65
- },
66
- ],
67
- },
68
- {
69
- name: 'Deposit',
70
- type: BitcoinAbiTypes.Event,
71
- values: [
72
- {
73
- name: 'user',
74
- type: ABIDataTypes.ADDRESS,
75
- },
76
- {
77
- name: 'pid',
78
- type: ABIDataTypes.UINT64,
79
- },
80
- {
81
- name: 'amount',
82
- type: ABIDataTypes.UINT256,
83
- },
84
- {
85
- name: 'to',
86
- type: ABIDataTypes.ADDRESS,
87
- },
88
- ],
89
- },
90
- {
91
- name: 'Withdraw',
92
- type: BitcoinAbiTypes.Event,
93
- values: [
94
- {
95
- name: 'user',
96
- type: ABIDataTypes.ADDRESS,
97
- },
98
- {
99
- name: 'pid',
100
- type: ABIDataTypes.UINT64,
101
- },
102
- {
103
- name: 'amount',
104
- type: ABIDataTypes.UINT256,
105
- },
106
- {
107
- name: 'to',
108
- type: ABIDataTypes.ADDRESS,
109
- },
110
- ],
111
- },
112
- {
113
- name: 'Harvest',
114
- type: BitcoinAbiTypes.Event,
115
- values: [
116
- {
117
- name: 'user',
118
- type: ABIDataTypes.ADDRESS,
119
- },
120
- {
121
- name: 'pid',
122
- type: ABIDataTypes.UINT64,
123
- },
124
- {
125
- name: 'amount',
126
- type: ABIDataTypes.UINT256,
127
- },
128
- ],
129
- },
130
- {
131
- name: 'EmergencyWithdraw',
132
- type: BitcoinAbiTypes.Event,
133
- values: [
134
- {
135
- name: 'user',
136
- type: ABIDataTypes.ADDRESS,
137
- },
138
- {
139
- name: 'pid',
140
- type: ABIDataTypes.UINT64,
141
- },
142
- {
143
- name: 'amount',
144
- type: ABIDataTypes.UINT256,
145
- },
146
- {
147
- name: 'to',
148
- type: ABIDataTypes.ADDRESS,
149
- },
150
- ],
151
- },
152
- {
153
- name: 'StakeBTC',
154
- type: BitcoinAbiTypes.Event,
155
- values: [
156
- {
157
- name: 'user',
158
- type: ABIDataTypes.ADDRESS,
159
- },
160
- {
161
- name: 'amount',
162
- type: ABIDataTypes.UINT256,
163
- },
164
- {
165
- name: 'stakingTxId',
166
- type: ABIDataTypes.UINT256,
167
- },
168
- {
169
- name: 'stakingIndex',
170
- type: ABIDataTypes.UINT256,
171
- },
172
- ],
173
- },
174
- {
175
- name: 'UnstakeBTC',
176
- type: BitcoinAbiTypes.Event,
177
- values: [
178
- {
179
- name: 'user',
180
- type: ABIDataTypes.ADDRESS,
181
- },
182
- {
183
- name: 'amount',
184
- type: ABIDataTypes.UINT256,
185
- },
186
- {
187
- name: 'stakingTxId',
188
- type: ABIDataTypes.UINT256,
189
- },
190
- {
191
- name: 'stakingIndex',
192
- type: ABIDataTypes.UINT256,
193
- },
194
- ],
195
- },
196
- ];
197
-
198
- const MOTOCHEF_ABI: BitcoinInterfaceAbi = [
199
- {
200
- name: 'initialize',
201
- type: BitcoinAbiTypes.Function,
202
- constant: false,
203
- payable: false,
204
- inputs: [
205
- { name: 'MOTO', type: ABIDataTypes.ADDRESS },
206
- { name: 'premineAmount', type: ABIDataTypes.UINT256 },
207
- { name: 'devaddr', type: ABIDataTypes.ADDRESS },
208
- { name: 'motoPerBlock', type: ABIDataTypes.UINT256 },
209
- { name: 'bonusEndBlock', type: ABIDataTypes.UINT256 },
210
- { name: 'bonusMultiplier', type: ABIDataTypes.UINT256 },
211
- { name: 'treasuryAddress', type: ABIDataTypes.STRING },
212
- { name: 'btcAllocPoint', type: ABIDataTypes.UINT256 },
213
- ],
214
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
215
- },
216
- {
217
- name: 'getLpToken',
218
- type: BitcoinAbiTypes.Function,
219
- constant: true,
220
- inputs: [{ name: 'pid', type: ABIDataTypes.UINT64 }],
221
- outputs: [{ name: 'lpTokenAddress', type: ABIDataTypes.ADDRESS }],
222
- },
223
- {
224
- name: 'getLpTokens',
225
- type: BitcoinAbiTypes.Function,
226
- constant: true,
227
- inputs: [],
228
- outputs: [{ name: 'lpTokens', type: ABIDataTypes.ARRAY_OF_ADDRESSES }],
229
- },
230
- {
231
- name: 'getPoolInfo',
232
- type: BitcoinAbiTypes.Function,
233
- constant: true,
234
- inputs: [{ name: 'pid', type: ABIDataTypes.UINT64 }],
235
- outputs: [
236
- { name: 'accMotoPerShare', type: ABIDataTypes.UINT256 },
237
- { name: 'lastRewardBlock', type: ABIDataTypes.UINT64 },
238
- { name: 'allocPoint', type: ABIDataTypes.UINT64 },
239
- ],
240
- },
241
- {
242
- name: 'getPoolsLength',
243
- type: BitcoinAbiTypes.Function,
244
- constant: true,
245
- inputs: [],
246
- outputs: [{ name: 'poolLength', type: ABIDataTypes.UINT64 }],
247
- },
248
- {
249
- name: 'getUserInfo',
250
- type: BitcoinAbiTypes.Function,
251
- constant: true,
252
- inputs: [
253
- { name: 'pid', type: ABIDataTypes.UINT64 },
254
- { name: 'user', type: ABIDataTypes.ADDRESS },
255
- ],
256
- outputs: [
257
- { name: 'amount', type: ABIDataTypes.UINT256 },
258
- { name: 'rewardDebt', type: ABIDataTypes.INT128 },
259
- ],
260
- },
261
- {
262
- name: 'totalAllocPoint',
263
- type: BitcoinAbiTypes.Function,
264
- constant: true,
265
- inputs: [],
266
- outputs: [{ name: 'totalAllocPoint', type: ABIDataTypes.UINT256 }],
267
- },
268
- {
269
- name: 'devaddr',
270
- type: BitcoinAbiTypes.Function,
271
- constant: true,
272
- inputs: [],
273
- outputs: [{ name: 'devaddr', type: ABIDataTypes.ADDRESS }],
274
- },
275
- {
276
- name: 'getMotoPerBlock',
277
- type: BitcoinAbiTypes.Function,
278
- constant: true,
279
- inputs: [],
280
- outputs: [{ name: 'motoPerBlock', type: ABIDataTypes.UINT256 }],
281
- },
282
- {
283
- name: 'getBonusEndBlock',
284
- type: BitcoinAbiTypes.Function,
285
- constant: true,
286
- inputs: [],
287
- outputs: [{ name: 'bonusEndBlock', type: ABIDataTypes.UINT256 }],
288
- },
289
- {
290
- name: 'totalBtcStaked',
291
- type: BitcoinAbiTypes.Function,
292
- constant: true,
293
- inputs: [],
294
- outputs: [{ name: 'totalBtcStaked', type: ABIDataTypes.UINT256 }],
295
- },
296
- {
297
- name: 'treasuryAddress',
298
- type: BitcoinAbiTypes.Function,
299
- constant: true,
300
- inputs: [],
301
- outputs: [{ name: 'treasuryAddress', type: ABIDataTypes.STRING }],
302
- },
303
- {
304
- name: 'getStakingTxId',
305
- type: BitcoinAbiTypes.Function,
306
- constant: true,
307
- inputs: [],
308
- outputs: [{ name: 'stakingTxId', type: ABIDataTypes.UINT256 }],
309
- },
310
- {
311
- name: 'getStakingIndex',
312
- type: BitcoinAbiTypes.Function,
313
- constant: true,
314
- inputs: [],
315
- outputs: [{ name: 'stakingIndex', type: ABIDataTypes.UINT256 }],
316
- },
317
- {
318
- name: 'setMotoPerBlock',
319
- type: BitcoinAbiTypes.Function,
320
- constant: false,
321
- payable: false,
322
- inputs: [{ name: 'motoPerBlock', type: ABIDataTypes.UINT256 }],
323
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
324
- },
325
- {
326
- name: 'setBonusEndBlock',
327
- type: BitcoinAbiTypes.Function,
328
- constant: false,
329
- payable: false,
330
- inputs: [{ name: 'bonusEndBlock', type: ABIDataTypes.UINT256 }],
331
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
332
- },
333
- {
334
- name: 'setBonusMultiplier',
335
- type: BitcoinAbiTypes.Function,
336
- constant: false,
337
- payable: false,
338
- inputs: [{ name: 'bonusMultiplier', type: ABIDataTypes.UINT256 }],
339
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
340
- },
341
- {
342
- name: 'add',
343
- type: BitcoinAbiTypes.Function,
344
- constant: false,
345
- payable: false,
346
- inputs: [
347
- { name: 'allocPoint', type: ABIDataTypes.UINT256 },
348
- { name: 'lpToken', type: ABIDataTypes.ADDRESS },
349
- ],
350
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
351
- },
352
- {
353
- name: 'set',
354
- type: BitcoinAbiTypes.Function,
355
- constant: false,
356
- payable: false,
357
- inputs: [
358
- { name: 'pid', type: ABIDataTypes.UINT64 },
359
- { name: 'allocPoint', type: ABIDataTypes.UINT256 },
360
- ],
361
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
362
- },
363
- {
364
- name: 'setMigrator',
365
- type: BitcoinAbiTypes.Function,
366
- constant: false,
367
- payable: false,
368
- inputs: [{ name: 'migrator', type: ABIDataTypes.ADDRESS }],
369
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
370
- },
371
- {
372
- name: 'migrate',
373
- type: BitcoinAbiTypes.Function,
374
- constant: false,
375
- payable: false,
376
- inputs: [{ name: 'pid', type: ABIDataTypes.UINT64 }],
377
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
378
- },
379
- {
380
- name: 'getMultiplier',
381
- type: BitcoinAbiTypes.Function,
382
- constant: false,
383
- payable: false,
384
- inputs: [
385
- { name: 'from', type: ABIDataTypes.UINT256 },
386
- { name: 'to', type: ABIDataTypes.UINT256 },
387
- ],
388
- outputs: [{ name: 'multiplier', type: ABIDataTypes.UINT256 }],
389
- },
390
- {
391
- name: 'pendingMoto',
392
- type: BitcoinAbiTypes.Function,
393
- constant: false,
394
- payable: false,
395
- inputs: [
396
- { name: 'pid', type: ABIDataTypes.UINT64 },
397
- { name: 'user', type: ABIDataTypes.ADDRESS },
398
- ],
399
- outputs: [{ name: 'pendingMoto', type: ABIDataTypes.UINT256 }],
400
- },
401
- {
402
- name: 'massUpdatePools',
403
- type: BitcoinAbiTypes.Function,
404
- constant: false,
405
- payable: false,
406
- inputs: [
407
- { name: 'length', type: ABIDataTypes.UINT32 },
408
- { name: 'pids', type: ABIDataTypes.ARRAY_OF_UINT64 },
409
- ],
410
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
411
- },
412
- {
413
- name: 'updatePool',
414
- type: BitcoinAbiTypes.Function,
415
- constant: false,
416
- payable: false,
417
- inputs: [{ name: 'pid', type: ABIDataTypes.UINT64 }],
418
- outputs: [
419
- { name: 'accMotoPerShare', type: ABIDataTypes.UINT256 },
420
- { name: 'lastRewardBlock', type: ABIDataTypes.UINT64 },
421
- { name: 'allocPoint', type: ABIDataTypes.UINT64 },
422
- ],
423
- },
424
- {
425
- name: 'deposit',
426
- type: BitcoinAbiTypes.Function,
427
- constant: false,
428
- payable: false,
429
- inputs: [
430
- { name: 'pid', type: ABIDataTypes.UINT64 },
431
- { name: 'amount', type: ABIDataTypes.UINT256 },
432
- { name: 'to', type: ABIDataTypes.ADDRESS },
433
- ],
434
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
435
- },
436
- {
437
- name: 'withdraw',
438
- type: BitcoinAbiTypes.Function,
439
- constant: false,
440
- payable: false,
441
- inputs: [
442
- { name: 'pid', type: ABIDataTypes.UINT64 },
443
- { name: 'amount', type: ABIDataTypes.UINT256 },
444
- { name: 'to', type: ABIDataTypes.ADDRESS },
445
- ],
446
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
447
- },
448
- {
449
- name: 'harvest',
450
- type: BitcoinAbiTypes.Function,
451
- constant: false,
452
- payable: false,
453
- inputs: [
454
- { name: 'pid', type: ABIDataTypes.UINT64 },
455
- { name: 'to', type: ABIDataTypes.ADDRESS },
456
- ],
457
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
458
- },
459
- {
460
- name: 'withdrawAndHarvest',
461
- type: BitcoinAbiTypes.Function,
462
- constant: false,
463
- payable: false,
464
- inputs: [
465
- { name: 'pid', type: ABIDataTypes.UINT64 },
466
- { name: 'amount', type: ABIDataTypes.UINT256 },
467
- { name: 'to', type: ABIDataTypes.ADDRESS },
468
- ],
469
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
470
- },
471
- {
472
- name: 'emergencyWithdraw',
473
- type: BitcoinAbiTypes.Function,
474
- constant: false,
475
- payable: false,
476
- inputs: [
477
- { name: 'pid', type: ABIDataTypes.UINT64 },
478
- { name: 'to', type: ABIDataTypes.ADDRESS },
479
- ],
480
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
481
- },
482
- {
483
- name: 'setDev',
484
- type: BitcoinAbiTypes.Function,
485
- constant: false,
486
- payable: false,
487
- inputs: [{ name: 'devaddr', type: ABIDataTypes.ADDRESS }],
488
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
489
- },
490
- {
491
- name: 'stakeBtc',
492
- type: BitcoinAbiTypes.Function,
493
- constant: false,
494
- payable: false,
495
- inputs: [{ name: 'stakeAmount', type: ABIDataTypes.UINT256 }],
496
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
497
- },
498
- {
499
- name: 'unstakeBtc',
500
- type: BitcoinAbiTypes.Function,
501
- constant: false,
502
- payable: false,
503
- inputs: [],
504
- outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
505
- },
506
-
507
- // Events
508
- ...MotoChefEvents,
509
-
510
- // OP_NET
511
- ...OP_NET_ABI,
512
-
513
- // Reentrancy contract
514
- ...REENTRANCY_GUARD_ABI,
515
-
516
- // Ownable contract
517
- ...OWNABLE_ABI,
518
- ];
519
-
520
- export default MOTOCHEF_ABI;
@@ -1,38 +0,0 @@
1
- import { ABIDataTypes } from '@btc-vision/transaction';
2
- import { BitcoinAbiTypes } from '../../../BitcoinAbiTypes.js';
3
- import { BitcoinInterfaceAbi } from '../../../interfaces/BitcoinInterfaceAbi.js';
4
-
5
- const OWNABLE_ABI: BitcoinInterfaceAbi = [
6
- {
7
- name: 'admin',
8
- type: BitcoinAbiTypes.Function,
9
- constant: true,
10
- inputs: [],
11
- outputs: [
12
- {
13
- name: 'adminAddress',
14
- type: ABIDataTypes.ADDRESS,
15
- },
16
- ],
17
- },
18
- {
19
- name: 'changeAdmin',
20
- type: BitcoinAbiTypes.Function,
21
- constant: false,
22
- payable: false,
23
- inputs: [
24
- {
25
- name: 'newAdmin',
26
- type: ABIDataTypes.ADDRESS,
27
- },
28
- ],
29
- outputs: [
30
- {
31
- name: 'success',
32
- type: ABIDataTypes.BOOL,
33
- },
34
- ],
35
- },
36
- ];
37
-
38
- export default OWNABLE_ABI;
@@ -1,20 +0,0 @@
1
- import { ABIDataTypes } from '@btc-vision/transaction';
2
- import { BitcoinAbiTypes } from '../../../BitcoinAbiTypes.js';
3
- import { BitcoinInterfaceAbi } from '../../../interfaces/BitcoinInterfaceAbi.js';
4
-
5
- /**
6
- * @category ABI
7
- */
8
- export const REENTRANCY_GUARD_ABI: BitcoinInterfaceAbi = [
9
- {
10
- name: 'status',
11
- inputs: [],
12
- outputs: [
13
- {
14
- name: 'status',
15
- type: ABIDataTypes.UINT256,
16
- },
17
- ],
18
- type: BitcoinAbiTypes.Function,
19
- },
20
- ];
@@ -1,73 +0,0 @@
1
- import { ABIDataTypes } from '@btc-vision/transaction';
2
- import { BitcoinAbiTypes } from '../../../BitcoinAbiTypes.js';
3
- import { BitcoinInterfaceAbi } from '../../../interfaces/BitcoinInterfaceAbi.js';
4
- import { STAKING_ABI } from '../generic/STAKING_ABI.js';
5
- import { OP_20_ABI } from '../opnet/OP_20_ABI.js';
6
-
7
- /**
8
- * @category Events
9
- */
10
- export const WBTCEvents: BitcoinInterfaceAbi = [
11
- {
12
- name: 'WithdrawalRequest',
13
- values: [
14
- {
15
- name: 'address',
16
- type: ABIDataTypes.ADDRESS,
17
- },
18
- {
19
- name: 'amount',
20
- type: ABIDataTypes.UINT256,
21
- },
22
- ],
23
- type: BitcoinAbiTypes.Event,
24
- },
25
- ];
26
-
27
- /**
28
- * @category ABI
29
- */
30
- export const WBTC_ABI: BitcoinInterfaceAbi = [
31
- {
32
- name: 'requestWithdrawal',
33
- inputs: [
34
- {
35
- name: 'amount',
36
- type: ABIDataTypes.UINT256,
37
- },
38
- ],
39
- outputs: [
40
- {
41
- name: 'success',
42
- type: ABIDataTypes.BOOL,
43
- },
44
- ],
45
- type: BitcoinAbiTypes.Function,
46
- },
47
-
48
- {
49
- name: 'withdrawableBalanceOf',
50
- inputs: [
51
- {
52
- name: 'address',
53
- type: ABIDataTypes.ADDRESS,
54
- },
55
- ],
56
- outputs: [
57
- {
58
- name: 'balance',
59
- type: ABIDataTypes.UINT256,
60
- },
61
- ],
62
- type: BitcoinAbiTypes.Function,
63
- },
64
-
65
- // EVENTS
66
- ...WBTCEvents,
67
-
68
- // STAKING
69
- ...STAKING_ABI,
70
-
71
- // OP_20
72
- ...OP_20_ABI,
73
- ];