opnet 1.2.1 → 1.2.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 (118) hide show
  1. package/browser/_version.d.ts +1 -1
  2. package/browser/abi/shared/interfaces/motoswap/IAdministeredOP20.d.ts +21 -0
  3. package/browser/abi/shared/interfaces/motoswap/IMotoChefContract.d.ts +121 -0
  4. package/browser/abi/shared/interfaces/motoswap/INativeSwapContract.d.ts +71 -0
  5. package/browser/abi/shared/interfaces/motoswap/IOwnableContract.d.ts +12 -0
  6. package/browser/abi/shared/interfaces/motoswap/IOwnableReentrancyGuardContract.d.ts +13 -0
  7. package/browser/abi/shared/interfaces/motoswap/IReentrancyGuardContract.d.ts +7 -0
  8. package/browser/abi/shared/json/motoswap/ADMINISTERD_OP_20_ABI.d.ts +3 -0
  9. package/browser/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.d.ts +4 -0
  10. package/browser/abi/shared/json/motoswap/NATIVE_SWAP_ABI.d.ts +3 -0
  11. package/browser/abi/shared/json/motoswap/OWNABLE_ABI.d.ts +3 -0
  12. package/browser/abi/shared/json/motoswap/REENTRANCY_GUARD_ABI.d.ts +2 -0
  13. package/browser/bitcoin/UTXOs.d.ts +1 -1
  14. package/browser/bitcoin/interfaces/IUTXO.d.ts +1 -1
  15. package/browser/block/Block.d.ts +2 -1
  16. package/browser/contracts/CallResult.d.ts +1 -0
  17. package/browser/index.js +1 -1
  18. package/browser/opnet.d.ts +7 -2
  19. package/browser/providers/AbstractRpcProvider.d.ts +1 -1
  20. package/browser/transactions/Transaction.d.ts +5 -1
  21. package/browser/transactions/TransactionParser.d.ts +3 -2
  22. package/browser/transactions/decoders/DeploymentTransaction.d.ts +2 -1
  23. package/browser/transactions/decoders/GenericTransaction.d.ts +2 -1
  24. package/browser/transactions/decoders/InteractionTransaction.d.ts +2 -1
  25. package/browser/transactions/interfaces/ITransaction.d.ts +2 -0
  26. package/browser/transactions/interfaces/ProofOfWorkChallenge.d.ts +12 -0
  27. package/browser/transactions/interfaces/transactions/ICommonTransaction.d.ts +2 -0
  28. package/browser/transactions/metadata/TransactionInput.d.ts +1 -1
  29. package/browser/transactions/metadata/TransactionOutput.d.ts +1 -1
  30. package/browser/transactions/metadata/TransactionReceipt.d.ts +2 -1
  31. package/build/_version.d.ts +1 -1
  32. package/build/_version.js +1 -1
  33. package/build/abi/shared/interfaces/motoswap/IAdministeredOP20.d.ts +21 -0
  34. package/build/abi/shared/interfaces/motoswap/IMotoChefContract.d.ts +121 -0
  35. package/build/abi/shared/interfaces/motoswap/IMotoChefContract.js +1 -0
  36. package/build/abi/shared/interfaces/motoswap/INativeSwapContract.d.ts +71 -0
  37. package/build/abi/shared/interfaces/motoswap/INativeSwapContract.js +1 -0
  38. package/build/abi/shared/interfaces/motoswap/IOwnableContract.d.ts +12 -0
  39. package/build/abi/shared/interfaces/motoswap/IOwnableContract.js +1 -0
  40. package/build/abi/shared/interfaces/motoswap/IOwnableReentrancyGuardContract.d.ts +13 -0
  41. package/build/abi/shared/interfaces/motoswap/IOwnableReentrancyGuardContract.js +1 -0
  42. package/build/abi/shared/interfaces/motoswap/IReentrancyGuardContract.d.ts +7 -0
  43. package/build/abi/shared/interfaces/motoswap/IReentrancyGuardContract.js +1 -0
  44. package/build/abi/shared/json/motoswap/ADMINISTERD_OP_20_ABI.d.ts +3 -0
  45. package/build/abi/shared/json/motoswap/ADMINISTERD_OP_20_ABI.js +81 -0
  46. package/build/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.d.ts +4 -0
  47. package/build/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.js +443 -0
  48. package/build/abi/shared/json/motoswap/NATIVE_SWAP_ABI.d.ts +3 -0
  49. package/build/abi/shared/json/motoswap/{EWMA_ABI.js → NATIVE_SWAP_ABI.js} +208 -37
  50. package/build/abi/shared/json/motoswap/OWNABLE_ABI.d.ts +3 -0
  51. package/build/abi/shared/json/motoswap/OWNABLE_ABI.js +35 -0
  52. package/build/abi/shared/json/motoswap/REENTRANCY_GUARD_ABI.d.ts +2 -0
  53. package/build/abi/shared/json/motoswap/REENTRANCY_GUARD_ABI.js +15 -0
  54. package/build/bitcoin/UTXOs.d.ts +1 -1
  55. package/build/bitcoin/interfaces/IUTXO.d.ts +1 -1
  56. package/build/block/Block.d.ts +2 -1
  57. package/build/block/Block.js +2 -2
  58. package/build/contracts/CallResult.d.ts +1 -0
  59. package/build/contracts/CallResult.js +7 -3
  60. package/build/opnet.d.ts +7 -2
  61. package/build/opnet.js +7 -2
  62. package/build/providers/AbstractRpcProvider.d.ts +1 -1
  63. package/build/providers/AbstractRpcProvider.js +4 -4
  64. package/build/transactions/Transaction.d.ts +5 -1
  65. package/build/transactions/Transaction.js +14 -2
  66. package/build/transactions/TransactionParser.d.ts +3 -2
  67. package/build/transactions/TransactionParser.js +6 -6
  68. package/build/transactions/decoders/DeploymentTransaction.d.ts +2 -1
  69. package/build/transactions/decoders/DeploymentTransaction.js +2 -2
  70. package/build/transactions/decoders/GenericTransaction.d.ts +2 -1
  71. package/build/transactions/decoders/GenericTransaction.js +2 -2
  72. package/build/transactions/decoders/InteractionTransaction.d.ts +2 -1
  73. package/build/transactions/decoders/InteractionTransaction.js +2 -2
  74. package/build/transactions/interfaces/ITransaction.d.ts +2 -0
  75. package/build/transactions/interfaces/ProofOfWorkChallenge.d.ts +12 -0
  76. package/build/transactions/interfaces/ProofOfWorkChallenge.js +1 -0
  77. package/build/transactions/interfaces/transactions/ICommonTransaction.d.ts +2 -0
  78. package/build/transactions/metadata/TransactionInput.d.ts +1 -1
  79. package/build/transactions/metadata/TransactionOutput.d.ts +1 -1
  80. package/build/transactions/metadata/TransactionReceipt.d.ts +2 -1
  81. package/build/transactions/metadata/TransactionReceipt.js +12 -8
  82. package/package.json +14 -14
  83. package/src/_version.ts +1 -1
  84. package/src/abi/shared/interfaces/motoswap/IAdministeredOP20.ts +56 -0
  85. package/src/abi/shared/interfaces/motoswap/IMotoChefContract.ts +348 -0
  86. package/src/abi/shared/interfaces/motoswap/INativeSwapContract.ts +267 -0
  87. package/src/abi/shared/interfaces/motoswap/IOwnableContract.ts +32 -0
  88. package/src/abi/shared/interfaces/motoswap/IOwnableReentrancyGuardContract.ts +33 -0
  89. package/src/abi/shared/interfaces/motoswap/IReentrancyGuardContract.ts +18 -0
  90. package/src/abi/shared/json/motoswap/ADMINISTERD_OP_20_ABI.ts +85 -0
  91. package/src/abi/shared/json/motoswap/MOTOSWAP_MOTOCHEF_ABI.ts +455 -0
  92. package/src/abi/shared/json/motoswap/{EWMA_ABI.ts → NATIVE_SWAP_ABI.ts} +252 -37
  93. package/src/abi/shared/json/motoswap/OWNABLE_ABI.ts +38 -0
  94. package/src/abi/shared/json/motoswap/REENTRANCY_GUARD_ABI.ts +20 -0
  95. package/src/bitcoin/UTXOs.ts +2 -2
  96. package/src/bitcoin/interfaces/IUTXO.ts +1 -1
  97. package/src/block/Block.ts +3 -1
  98. package/src/contracts/CallResult.ts +9 -6
  99. package/src/opnet.ts +7 -2
  100. package/src/providers/AbstractRpcProvider.ts +5 -5
  101. package/src/providers/JSONRpcProvider.ts +1 -1
  102. package/src/transactions/Transaction.ts +30 -8
  103. package/src/transactions/TransactionParser.ts +7 -8
  104. package/src/transactions/decoders/DeploymentTransaction.ts +3 -2
  105. package/src/transactions/decoders/GenericTransaction.ts +3 -2
  106. package/src/transactions/decoders/InteractionTransaction.ts +3 -2
  107. package/src/transactions/interfaces/ITransaction.ts +6 -0
  108. package/src/transactions/interfaces/ProofOfWorkChallenge.ts +13 -0
  109. package/src/transactions/interfaces/transactions/ICommonTransaction.ts +6 -0
  110. package/src/transactions/metadata/TransactionInput.ts +1 -1
  111. package/src/transactions/metadata/TransactionOutput.ts +1 -1
  112. package/src/transactions/metadata/TransactionReceipt.ts +23 -11
  113. package/browser/abi/shared/interfaces/motoswap/IEwmaContract.d.ts +0 -46
  114. package/browser/abi/shared/json/motoswap/EWMA_ABI.d.ts +0 -3
  115. package/build/abi/shared/interfaces/motoswap/IEwmaContract.d.ts +0 -46
  116. package/build/abi/shared/json/motoswap/EWMA_ABI.d.ts +0 -3
  117. package/src/abi/shared/interfaces/motoswap/IEwmaContract.ts +0 -188
  118. /package/build/abi/shared/interfaces/motoswap/{IEwmaContract.js → IAdministeredOP20.js} +0 -0
@@ -0,0 +1,85 @@
1
+ import { ABIDataTypes } from '@btc-vision/transaction';
2
+ import { BitcoinInterfaceAbi } from '../../../interfaces/BitcoinInterfaceAbi';
3
+ import { BitcoinAbiTypes } from '../../../BitcoinAbiTypes';
4
+ import { OP_20_ABI } from '../opnet/OP_20_ABI';
5
+
6
+ const ADMINISTERED_OP_20_ABI: BitcoinInterfaceAbi = [
7
+ {
8
+ name: 'admin',
9
+ type: BitcoinAbiTypes.Function,
10
+ constant: true,
11
+ inputs: [],
12
+ outputs: [
13
+ {
14
+ name: 'ADDRESS',
15
+ type: ABIDataTypes.ADDRESS,
16
+ },
17
+ ],
18
+ },
19
+ {
20
+ name: 'changeAdmin',
21
+ type: BitcoinAbiTypes.Function,
22
+ constant: false,
23
+ payable: false,
24
+ inputs: [
25
+ {
26
+ name: 'newAdmin',
27
+ type: ABIDataTypes.ADDRESS,
28
+ },
29
+ ],
30
+ outputs: [
31
+ {
32
+ name: 'success',
33
+ type: ABIDataTypes.BOOL,
34
+ },
35
+ ],
36
+ },
37
+ {
38
+ name: 'adminMint',
39
+ type: BitcoinAbiTypes.Function,
40
+ constant: false,
41
+ payable: false,
42
+ inputs: [
43
+ {
44
+ name: 'to',
45
+ type: ABIDataTypes.ADDRESS,
46
+ },
47
+ {
48
+ name: 'amount',
49
+ type: ABIDataTypes.UINT256,
50
+ },
51
+ ],
52
+ outputs: [
53
+ {
54
+ name: 'success',
55
+ type: ABIDataTypes.BOOL,
56
+ },
57
+ ],
58
+ },
59
+ {
60
+ name: 'adminBurn',
61
+ type: BitcoinAbiTypes.Function,
62
+ constant: false,
63
+ payable: false,
64
+ inputs: [
65
+ {
66
+ name: 'from',
67
+ type: ABIDataTypes.ADDRESS,
68
+ },
69
+ {
70
+ name: 'amount',
71
+ type: ABIDataTypes.UINT256,
72
+ },
73
+ ],
74
+ outputs: [
75
+ {
76
+ name: 'success',
77
+ type: ABIDataTypes.BOOL,
78
+ },
79
+ ],
80
+ },
81
+ // OP_20
82
+ ...OP_20_ABI,
83
+ ];
84
+
85
+ export default ADMINISTERED_OP_20_ABI;
@@ -0,0 +1,455 @@
1
+ import { ABIDataTypes } from '@btc-vision/transaction';
2
+ import { BitcoinInterfaceAbi } from '../../../interfaces/BitcoinInterfaceAbi';
3
+ import { BitcoinAbiTypes } from '../../../BitcoinAbiTypes';
4
+ import { OP_NET_ABI } from '../opnet/OP_NET_ABI';
5
+ import { REENTRANCY_GUARD_ABI } from './REENTRANCY_GUARD_ABI';
6
+ import OWNABLE_ABI from './OWNABLE_ABI';
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.UINT32,
21
+ },
22
+ {
23
+ name: 'allocPoint',
24
+ type: ABIDataTypes.UINT256,
25
+ },
26
+ {
27
+ name: 'lpToken',
28
+ type: ABIDataTypes.ADDRESS,
29
+ },
30
+ {
31
+ name: 'rewarder',
32
+ type: ABIDataTypes.ADDRESS,
33
+ },
34
+ ],
35
+ },
36
+ {
37
+ name: 'LogSetPool',
38
+ type: BitcoinAbiTypes.Event,
39
+ values: [
40
+ {
41
+ name: 'pid',
42
+ type: ABIDataTypes.UINT32,
43
+ },
44
+ {
45
+ name: 'allocPoint',
46
+ type: ABIDataTypes.UINT256,
47
+ },
48
+ {
49
+ name: 'rewarder',
50
+ type: ABIDataTypes.ADDRESS,
51
+ },
52
+ {
53
+ name: 'overwrite',
54
+ type: ABIDataTypes.BOOL,
55
+ },
56
+ ],
57
+ },
58
+ {
59
+ name: 'LogUpdatePool',
60
+ type: BitcoinAbiTypes.Event,
61
+ values: [
62
+ {
63
+ name: 'pid',
64
+ type: ABIDataTypes.UINT32,
65
+ },
66
+ {
67
+ name: 'lastRewardBlock',
68
+ type: ABIDataTypes.UINT64,
69
+ },
70
+ {
71
+ name: 'lpSupply',
72
+ type: ABIDataTypes.UINT256,
73
+ },
74
+ {
75
+ name: 'accMotoPerShare',
76
+ type: ABIDataTypes.UINT256,
77
+ },
78
+ ],
79
+ },
80
+ {
81
+ name: 'Deposit',
82
+ type: BitcoinAbiTypes.Event,
83
+ values: [
84
+ {
85
+ name: 'user',
86
+ type: ABIDataTypes.ADDRESS,
87
+ },
88
+ {
89
+ name: 'pid',
90
+ type: ABIDataTypes.UINT32,
91
+ },
92
+ {
93
+ name: 'amount',
94
+ type: ABIDataTypes.UINT256,
95
+ },
96
+ {
97
+ name: 'to',
98
+ type: ABIDataTypes.ADDRESS,
99
+ },
100
+ ],
101
+ },
102
+ {
103
+ name: 'Withdraw',
104
+ type: BitcoinAbiTypes.Event,
105
+ values: [
106
+ {
107
+ name: 'user',
108
+ type: ABIDataTypes.ADDRESS,
109
+ },
110
+ {
111
+ name: 'pid',
112
+ type: ABIDataTypes.UINT32,
113
+ },
114
+ {
115
+ name: 'amount',
116
+ type: ABIDataTypes.UINT256,
117
+ },
118
+ {
119
+ name: 'to',
120
+ type: ABIDataTypes.ADDRESS,
121
+ },
122
+ ],
123
+ },
124
+ {
125
+ name: 'Harvest',
126
+ type: BitcoinAbiTypes.Event,
127
+ values: [
128
+ {
129
+ name: 'user',
130
+ type: ABIDataTypes.ADDRESS,
131
+ },
132
+ {
133
+ name: 'pid',
134
+ type: ABIDataTypes.UINT32,
135
+ },
136
+ {
137
+ name: 'amount',
138
+ type: ABIDataTypes.UINT256,
139
+ },
140
+ ],
141
+ },
142
+ {
143
+ name: 'EmergencyWithdraw',
144
+ type: BitcoinAbiTypes.Event,
145
+ values: [
146
+ {
147
+ name: 'user',
148
+ type: ABIDataTypes.ADDRESS,
149
+ },
150
+ {
151
+ name: 'pid',
152
+ type: ABIDataTypes.UINT32,
153
+ },
154
+ {
155
+ name: 'amount',
156
+ type: ABIDataTypes.UINT256,
157
+ },
158
+ {
159
+ name: 'to',
160
+ type: ABIDataTypes.ADDRESS,
161
+ },
162
+ ],
163
+ },
164
+ ];
165
+
166
+ const MOTOCHEF_ABI: BitcoinInterfaceAbi = [
167
+ {
168
+ name: 'initialize',
169
+ type: BitcoinAbiTypes.Function,
170
+ constant: false,
171
+ payable: false,
172
+ inputs: [
173
+ { name: 'MOTO', type: ABIDataTypes.ADDRESS },
174
+ { name: 'premineAmount', type: ABIDataTypes.UINT256 },
175
+ { name: 'devaddr', type: ABIDataTypes.ADDRESS },
176
+ { name: 'motoPerBlock', type: ABIDataTypes.UINT256 },
177
+ { name: 'bonusEndBlock', type: ABIDataTypes.UINT256 },
178
+ { name: 'bonusMultiplier', type: ABIDataTypes.UINT256 },
179
+ ],
180
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
181
+ },
182
+ {
183
+ name: 'getLpToken',
184
+ type: BitcoinAbiTypes.Function,
185
+ constant: true,
186
+ inputs: [{ name: 'pid', type: ABIDataTypes.UINT32 }],
187
+ outputs: [{ name: 'lpTokenAddress', type: ABIDataTypes.ADDRESS }],
188
+ },
189
+ {
190
+ name: 'getRewarder',
191
+ type: BitcoinAbiTypes.Function,
192
+ constant: true,
193
+ inputs: [{ name: 'pid', type: ABIDataTypes.UINT32 }],
194
+ outputs: [{ name: 'rewarderAddress', type: ABIDataTypes.ADDRESS }],
195
+ },
196
+ {
197
+ name: 'getPoolInfo',
198
+ type: BitcoinAbiTypes.Function,
199
+ constant: true,
200
+ inputs: [{ name: 'pid', type: ABIDataTypes.UINT32 }],
201
+ outputs: [
202
+ { name: 'allocPoint', type: ABIDataTypes.UINT64 },
203
+ { name: 'lastRewardBlock', type: ABIDataTypes.UINT64 },
204
+ { name: 'accMotoPerShare', type: ABIDataTypes.UINT256 },
205
+ ],
206
+ },
207
+ {
208
+ name: 'pools',
209
+ type: BitcoinAbiTypes.Function,
210
+ constant: true,
211
+ inputs: [],
212
+ outputs: [
213
+ { name: 'poolLength', type: ABIDataTypes.UINT32 },
214
+ { name: 'poolsData', type: ABIDataTypes.BYTES },
215
+ ],
216
+ },
217
+ {
218
+ name: 'getUserInfo',
219
+ type: BitcoinAbiTypes.Function,
220
+ constant: true,
221
+ inputs: [
222
+ { name: 'pid', type: ABIDataTypes.UINT32 },
223
+ { name: 'user', type: ABIDataTypes.ADDRESS },
224
+ ],
225
+ outputs: [
226
+ { name: 'amount', type: ABIDataTypes.UINT256 },
227
+ // FIXME: NEEDS TO BE INT256
228
+ { name: 'rewardDebt', type: ABIDataTypes.UINT256 },
229
+ ],
230
+ },
231
+ {
232
+ name: 'totalAllocPoint',
233
+ type: BitcoinAbiTypes.Function,
234
+ constant: true,
235
+ inputs: [],
236
+ outputs: [{ name: 'totalAllocPoint', type: ABIDataTypes.UINT256 }],
237
+ },
238
+ {
239
+ name: 'devaddr',
240
+ type: BitcoinAbiTypes.Function,
241
+ constant: true,
242
+ inputs: [],
243
+ outputs: [{ name: 'devaddr', type: ABIDataTypes.ADDRESS }],
244
+ },
245
+ {
246
+ name: 'getMotoPerBlock',
247
+ type: BitcoinAbiTypes.Function,
248
+ constant: true,
249
+ inputs: [],
250
+ outputs: [{ name: 'motoPerBlock', type: ABIDataTypes.UINT256 }],
251
+ },
252
+ {
253
+ name: 'getBonusEndBlock',
254
+ type: BitcoinAbiTypes.Function,
255
+ constant: true,
256
+ inputs: [],
257
+ outputs: [{ name: 'bonusEndBlock', type: ABIDataTypes.UINT256 }],
258
+ },
259
+ {
260
+ name: 'getBonusMultiplier',
261
+ type: BitcoinAbiTypes.Function,
262
+ constant: true,
263
+ inputs: [],
264
+ outputs: [{ name: 'bonusMultiplier', type: ABIDataTypes.UINT256 }],
265
+ },
266
+ {
267
+ name: 'setMotoPerBlock',
268
+ type: BitcoinAbiTypes.Function,
269
+ constant: false,
270
+ payable: false,
271
+ inputs: [{ name: 'motoPerBlock', type: ABIDataTypes.UINT256 }],
272
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
273
+ },
274
+ {
275
+ name: 'setBonusEndBlock',
276
+ type: BitcoinAbiTypes.Function,
277
+ constant: false,
278
+ payable: false,
279
+ inputs: [{ name: 'bonusEndBlock', type: ABIDataTypes.UINT256 }],
280
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
281
+ },
282
+ {
283
+ name: 'setBonusMultiplier',
284
+ type: BitcoinAbiTypes.Function,
285
+ constant: false,
286
+ payable: false,
287
+ inputs: [{ name: 'bonusMultiplier', type: ABIDataTypes.UINT256 }],
288
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
289
+ },
290
+ {
291
+ name: 'add',
292
+ type: BitcoinAbiTypes.Function,
293
+ constant: false,
294
+ payable: false,
295
+ inputs: [
296
+ { name: 'allocPoint', type: ABIDataTypes.UINT256 },
297
+ { name: 'lpToken', type: ABIDataTypes.ADDRESS },
298
+ { name: 'rewarder', type: ABIDataTypes.ADDRESS },
299
+ ],
300
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
301
+ },
302
+ {
303
+ name: 'set',
304
+ type: BitcoinAbiTypes.Function,
305
+ constant: false,
306
+ payable: false,
307
+ inputs: [
308
+ { name: 'pid', type: ABIDataTypes.UINT32 },
309
+ { name: 'allocPoint', type: ABIDataTypes.UINT256 },
310
+ { name: 'rewarder', type: ABIDataTypes.ADDRESS },
311
+ { name: 'overwrite', type: ABIDataTypes.BOOL },
312
+ ],
313
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
314
+ },
315
+ {
316
+ name: 'setMigrator',
317
+ type: BitcoinAbiTypes.Function,
318
+ constant: false,
319
+ payable: false,
320
+ inputs: [{ name: 'migrator', type: ABIDataTypes.ADDRESS }],
321
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
322
+ },
323
+ {
324
+ name: 'migrate',
325
+ type: BitcoinAbiTypes.Function,
326
+ constant: false,
327
+ payable: false,
328
+ inputs: [{ name: 'pid', type: ABIDataTypes.UINT32 }],
329
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
330
+ },
331
+ {
332
+ name: 'getMultiplier',
333
+ type: BitcoinAbiTypes.Function,
334
+ constant: false,
335
+ payable: false,
336
+ inputs: [
337
+ { name: 'from', type: ABIDataTypes.UINT256 },
338
+ { name: 'to', type: ABIDataTypes.UINT256 },
339
+ ],
340
+ outputs: [{ name: 'multiplier', type: ABIDataTypes.UINT256 }],
341
+ },
342
+ {
343
+ name: 'pendingMoto',
344
+ type: BitcoinAbiTypes.Function,
345
+ constant: false,
346
+ payable: false,
347
+ inputs: [
348
+ { name: 'pid', type: ABIDataTypes.UINT32 },
349
+ { name: 'user', type: ABIDataTypes.ADDRESS },
350
+ ],
351
+ outputs: [{ name: 'pendingMoto', type: ABIDataTypes.UINT256 }],
352
+ },
353
+ {
354
+ name: 'massUpdatePools',
355
+ type: BitcoinAbiTypes.Function,
356
+ constant: false,
357
+ payable: false,
358
+ inputs: [
359
+ { name: 'length', type: ABIDataTypes.UINT32 },
360
+ { name: 'pids', type: ABIDataTypes.ARRAY_OF_UINT32 },
361
+ ],
362
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
363
+ },
364
+ {
365
+ name: 'updatePool',
366
+ type: BitcoinAbiTypes.Function,
367
+ constant: false,
368
+ payable: false,
369
+ inputs: [{ name: 'pid', type: ABIDataTypes.UINT32 }],
370
+ outputs: [
371
+ { name: 'allocPoint', type: ABIDataTypes.UINT64 },
372
+ { name: 'lastRewardBlock', type: ABIDataTypes.UINT64 },
373
+ { name: 'accMotoPerShare', type: ABIDataTypes.UINT256 },
374
+ ],
375
+ },
376
+ {
377
+ name: 'deposit',
378
+ type: BitcoinAbiTypes.Function,
379
+ constant: false,
380
+ payable: false,
381
+ inputs: [
382
+ { name: 'pid', type: ABIDataTypes.UINT32 },
383
+ { name: 'amount', type: ABIDataTypes.UINT256 },
384
+ { name: 'to', type: ABIDataTypes.ADDRESS },
385
+ ],
386
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
387
+ },
388
+ {
389
+ name: 'withdraw',
390
+ type: BitcoinAbiTypes.Function,
391
+ constant: false,
392
+ payable: false,
393
+ inputs: [
394
+ { name: 'pid', type: ABIDataTypes.UINT32 },
395
+ { name: 'amount', type: ABIDataTypes.UINT256 },
396
+ { name: 'to', type: ABIDataTypes.ADDRESS },
397
+ ],
398
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
399
+ },
400
+ {
401
+ name: 'harvest',
402
+ type: BitcoinAbiTypes.Function,
403
+ constant: false,
404
+ payable: false,
405
+ inputs: [
406
+ { name: 'pid', type: ABIDataTypes.UINT32 },
407
+ { name: 'to', type: ABIDataTypes.ADDRESS },
408
+ ],
409
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
410
+ },
411
+ {
412
+ name: 'withdrawAndHarvest',
413
+ type: BitcoinAbiTypes.Function,
414
+ constant: false,
415
+ payable: false,
416
+ inputs: [
417
+ { name: 'pid', type: ABIDataTypes.UINT32 },
418
+ { name: 'amount', type: ABIDataTypes.UINT256 },
419
+ { name: 'to', type: ABIDataTypes.ADDRESS },
420
+ ],
421
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
422
+ },
423
+ {
424
+ name: 'emergencyWithdraw',
425
+ type: BitcoinAbiTypes.Function,
426
+ constant: false,
427
+ payable: false,
428
+ inputs: [
429
+ { name: 'pid', type: ABIDataTypes.UINT32 },
430
+ { name: 'to', type: ABIDataTypes.ADDRESS },
431
+ ],
432
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
433
+ },
434
+ {
435
+ name: 'setDev',
436
+ type: BitcoinAbiTypes.Function,
437
+ constant: false,
438
+ payable: false,
439
+ inputs: [{ name: 'devaddr', type: ABIDataTypes.ADDRESS }],
440
+ outputs: [{ name: 'success', type: ABIDataTypes.BOOL }],
441
+ },
442
+ // Events
443
+ ...MotoChefEvents,
444
+
445
+ // OP_NET
446
+ ...OP_NET_ABI,
447
+
448
+ // Reentrancy contract
449
+ ...REENTRANCY_GUARD_ABI,
450
+
451
+ // Ownable contract
452
+ ...OWNABLE_ABI,
453
+ ];
454
+
455
+ export default MOTOCHEF_ABI;