@pancakeswap/pools 4.0.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 (101) hide show
  1. package/.turbo/turbo-build.log +18 -0
  2. package/CHANGELOG.md +91 -0
  3. package/LICENSE +674 -0
  4. package/dist/abis/ICake.d.ts +92 -0
  5. package/dist/abis/ICake.d.ts.map +1 -0
  6. package/dist/abis/ICakeFlexibleSideVaultV2.d.ts +378 -0
  7. package/dist/abis/ICakeFlexibleSideVaultV2.d.ts.map +1 -0
  8. package/dist/abis/ICakeVaultV2.d.ts +750 -0
  9. package/dist/abis/ICakeVaultV2.d.ts.map +1 -0
  10. package/dist/abis/ISmartChef.d.ts +523 -0
  11. package/dist/abis/ISmartChef.d.ts.map +1 -0
  12. package/dist/abis/ISousChef.d.ts +212 -0
  13. package/dist/abis/ISousChef.d.ts.map +1 -0
  14. package/dist/abis/ISousChefBNB.d.ts +279 -0
  15. package/dist/abis/ISousChefBNB.d.ts.map +1 -0
  16. package/dist/abis/ISousChefV2.d.ts +264 -0
  17. package/dist/abis/ISousChefV2.d.ts.map +1 -0
  18. package/dist/abis/ISousChefV3.d.ts +523 -0
  19. package/dist/abis/ISousChefV3.d.ts.map +1 -0
  20. package/dist/constants/contracts.d.ts +22 -0
  21. package/dist/constants/contracts.d.ts.map +1 -0
  22. package/dist/constants/index.d.ts +8 -0
  23. package/dist/constants/index.d.ts.map +1 -0
  24. package/dist/constants/pools/1.d.ts +5 -0
  25. package/dist/constants/pools/1.d.ts.map +1 -0
  26. package/dist/constants/pools/56.d.ts +4 -0
  27. package/dist/constants/pools/56.d.ts.map +1 -0
  28. package/dist/constants/pools/97.d.ts +5 -0
  29. package/dist/constants/pools/97.d.ts.map +1 -0
  30. package/dist/constants/pools/index.d.ts +15 -0
  31. package/dist/constants/pools/index.d.ts.map +1 -0
  32. package/dist/constants/supportedChains.d.ts +4 -0
  33. package/dist/constants/supportedChains.d.ts.map +1 -0
  34. package/dist/index.d.ts +13 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +6288 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/index.mjs +6224 -0
  39. package/dist/index.mjs.map +1 -0
  40. package/dist/queries/fetchPools.d.ts +37 -0
  41. package/dist/queries/fetchPools.d.ts.map +1 -0
  42. package/dist/queries/fetchUserIfo.d.ts +16 -0
  43. package/dist/queries/fetchUserIfo.d.ts.map +1 -0
  44. package/dist/queries/fetchUserPoolsData.d.ts +16 -0
  45. package/dist/queries/fetchUserPoolsData.d.ts.map +1 -0
  46. package/dist/queries/fetchVaultPublic.d.ts +39 -0
  47. package/dist/queries/fetchVaultPublic.d.ts.map +1 -0
  48. package/dist/queries/fetchVaultUser.d.ts +12 -0
  49. package/dist/queries/fetchVaultUser.d.ts.map +1 -0
  50. package/dist/queries/getAddresses.d.ts +4 -0
  51. package/dist/queries/getAddresses.d.ts.map +1 -0
  52. package/dist/queries/index.d.ts +7 -0
  53. package/dist/queries/index.d.ts.map +1 -0
  54. package/dist/types.d.ts +176 -0
  55. package/dist/types.d.ts.map +1 -0
  56. package/dist/utils/apr.d.ts +11 -0
  57. package/dist/utils/apr.d.ts.map +1 -0
  58. package/dist/utils/getContractAddress.d.ts +4 -0
  59. package/dist/utils/getContractAddress.d.ts.map +1 -0
  60. package/dist/utils/getPoolContractBySousId.d.ts +35 -0
  61. package/dist/utils/getPoolContractBySousId.d.ts.map +1 -0
  62. package/dist/utils/index.d.ts +6 -0
  63. package/dist/utils/index.d.ts.map +1 -0
  64. package/dist/utils/isLegacyPool.d.ts +4 -0
  65. package/dist/utils/isLegacyPool.d.ts.map +1 -0
  66. package/dist/utils/isPoolsSupported.d.ts +3 -0
  67. package/dist/utils/isPoolsSupported.d.ts.map +1 -0
  68. package/package.json +40 -0
  69. package/src/abis/ICake.ts +59 -0
  70. package/src/abis/ICakeFlexibleSideVaultV2.ts +487 -0
  71. package/src/abis/ICakeVaultV2.ts +487 -0
  72. package/src/abis/ISmartChef.ts +326 -0
  73. package/src/abis/ISousChef.ts +122 -0
  74. package/src/abis/ISousChefBNB.ts +166 -0
  75. package/src/abis/ISousChefV2.ts +341 -0
  76. package/src/abis/ISousChefV3.ts +326 -0
  77. package/src/constants/contracts.ts +26 -0
  78. package/src/constants/index.ts +10 -0
  79. package/src/constants/pools/1.ts +80 -0
  80. package/src/constants/pools/56.ts +2933 -0
  81. package/src/constants/pools/97.ts +74 -0
  82. package/src/constants/pools/index.ts +44 -0
  83. package/src/constants/supportedChains.ts +5 -0
  84. package/src/index.ts +14 -0
  85. package/src/queries/fetchPools.ts +350 -0
  86. package/src/queries/fetchUserIfo.ts +53 -0
  87. package/src/queries/fetchUserPoolsData.ts +143 -0
  88. package/src/queries/fetchVaultPublic.ts +175 -0
  89. package/src/queries/fetchVaultUser.ts +106 -0
  90. package/src/queries/getAddresses.ts +12 -0
  91. package/src/queries/index.ts +6 -0
  92. package/src/types.ts +207 -0
  93. package/src/utils/apr.ts +35 -0
  94. package/src/utils/getContractAddress.ts +11 -0
  95. package/src/utils/getPoolContractBySousId.ts +111 -0
  96. package/src/utils/index.ts +5 -0
  97. package/src/utils/isLegacyPool.ts +15 -0
  98. package/src/utils/isPoolsSupported.ts +5 -0
  99. package/tsconfig.json +14 -0
  100. package/tsup.config.ts +26 -0
  101. package/vitest.config.ts +9 -0
@@ -0,0 +1,326 @@
1
+ export const smartChefABI = [
2
+ {
3
+ inputs: [
4
+ { internalType: 'address', name: '_pancakeProfile', type: 'address' },
5
+ { internalType: 'bool', name: '_pancakeProfileIsRequested', type: 'bool' },
6
+ { internalType: 'uint256', name: '_pancakeProfileThresholdPoints', type: 'uint256' },
7
+ ],
8
+ stateMutability: 'nonpayable',
9
+ type: 'constructor',
10
+ },
11
+ {
12
+ anonymous: false,
13
+ inputs: [
14
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
15
+ { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
16
+ ],
17
+ name: 'Deposit',
18
+ type: 'event',
19
+ },
20
+ {
21
+ anonymous: false,
22
+ inputs: [
23
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
24
+ { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
25
+ ],
26
+ name: 'EmergencyWithdraw',
27
+ type: 'event',
28
+ },
29
+ {
30
+ anonymous: false,
31
+ inputs: [{ indexed: false, internalType: 'uint256', name: 'poolLimitPerUser', type: 'uint256' }],
32
+ name: 'NewPoolLimit',
33
+ type: 'event',
34
+ },
35
+ {
36
+ anonymous: false,
37
+ inputs: [{ indexed: false, internalType: 'uint256', name: 'rewardPerSecond', type: 'uint256' }],
38
+ name: 'NewRewardPerSecond',
39
+ type: 'event',
40
+ },
41
+ {
42
+ anonymous: false,
43
+ inputs: [
44
+ { indexed: false, internalType: 'uint256', name: 'startTimestamp', type: 'uint256' },
45
+ { indexed: false, internalType: 'uint256', name: 'endTimestamp', type: 'uint256' },
46
+ ],
47
+ name: 'NewStartAndEndTimestamp',
48
+ type: 'event',
49
+ },
50
+ {
51
+ anonymous: false,
52
+ inputs: [
53
+ { indexed: true, internalType: 'address', name: 'previousOwner', type: 'address' },
54
+ { indexed: true, internalType: 'address', name: 'newOwner', type: 'address' },
55
+ ],
56
+ name: 'OwnershipTransferred',
57
+ type: 'event',
58
+ },
59
+ {
60
+ anonymous: false,
61
+ inputs: [{ indexed: false, internalType: 'uint256', name: 'blockNumber', type: 'uint256' }],
62
+ name: 'RewardsStop',
63
+ type: 'event',
64
+ },
65
+ {
66
+ anonymous: false,
67
+ inputs: [
68
+ { indexed: true, internalType: 'address', name: 'token', type: 'address' },
69
+ { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
70
+ ],
71
+ name: 'TokenRecovery',
72
+ type: 'event',
73
+ },
74
+ {
75
+ anonymous: false,
76
+ inputs: [
77
+ { indexed: false, internalType: 'bool', name: 'isProfileRequested', type: 'bool' },
78
+ { indexed: false, internalType: 'uint256', name: 'thresholdPoints', type: 'uint256' },
79
+ ],
80
+ name: 'UpdateProfileAndThresholdPointsRequirement',
81
+ type: 'event',
82
+ },
83
+ {
84
+ anonymous: false,
85
+ inputs: [
86
+ { indexed: true, internalType: 'address', name: 'user', type: 'address' },
87
+ { indexed: false, internalType: 'uint256', name: 'amount', type: 'uint256' },
88
+ ],
89
+ name: 'Withdraw',
90
+ type: 'event',
91
+ },
92
+ {
93
+ inputs: [],
94
+ name: 'PRECISION_FACTOR',
95
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
96
+ stateMutability: 'view',
97
+ type: 'function',
98
+ },
99
+ {
100
+ inputs: [],
101
+ name: 'SMART_CHEF_FACTORY',
102
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
103
+ stateMutability: 'view',
104
+ type: 'function',
105
+ },
106
+ {
107
+ inputs: [],
108
+ name: 'accTokenPerShare',
109
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
110
+ stateMutability: 'view',
111
+ type: 'function',
112
+ },
113
+ {
114
+ inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
115
+ name: 'deposit',
116
+ outputs: [],
117
+ stateMutability: 'nonpayable',
118
+ type: 'function',
119
+ },
120
+ {
121
+ inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
122
+ name: 'emergencyRewardWithdraw',
123
+ outputs: [],
124
+ stateMutability: 'nonpayable',
125
+ type: 'function',
126
+ },
127
+ { inputs: [], name: 'emergencyWithdraw', outputs: [], stateMutability: 'nonpayable', type: 'function' },
128
+ {
129
+ inputs: [],
130
+ name: 'endTimestamp',
131
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
132
+ stateMutability: 'view',
133
+ type: 'function',
134
+ },
135
+ {
136
+ inputs: [],
137
+ name: 'hasUserLimit',
138
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
139
+ stateMutability: 'view',
140
+ type: 'function',
141
+ },
142
+ {
143
+ inputs: [
144
+ { internalType: 'contract IERC20Metadata', name: '_stakedToken', type: 'address' },
145
+ { internalType: 'contract IERC20Metadata', name: '_rewardToken', type: 'address' },
146
+ { internalType: 'uint256', name: '_rewardPerSecond', type: 'uint256' },
147
+ { internalType: 'uint256', name: '_startTimestamp', type: 'uint256' },
148
+ { internalType: 'uint256', name: '_endTimestamp', type: 'uint256' },
149
+ { internalType: 'uint256', name: '_poolLimitPerUser', type: 'uint256' },
150
+ { internalType: 'uint256', name: '_numberSecondsForUserLimit', type: 'uint256' },
151
+ { internalType: 'address', name: '_admin', type: 'address' },
152
+ ],
153
+ name: 'initialize',
154
+ outputs: [],
155
+ stateMutability: 'nonpayable',
156
+ type: 'function',
157
+ },
158
+ {
159
+ inputs: [],
160
+ name: 'isInitialized',
161
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
162
+ stateMutability: 'view',
163
+ type: 'function',
164
+ },
165
+ {
166
+ inputs: [],
167
+ name: 'lastRewardTimestamp',
168
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
169
+ stateMutability: 'view',
170
+ type: 'function',
171
+ },
172
+ {
173
+ inputs: [],
174
+ name: 'numberSecondsForUserLimit',
175
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
176
+ stateMutability: 'view',
177
+ type: 'function',
178
+ },
179
+ {
180
+ inputs: [],
181
+ name: 'owner',
182
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
183
+ stateMutability: 'view',
184
+ type: 'function',
185
+ },
186
+ {
187
+ inputs: [],
188
+ name: 'pancakeProfile',
189
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
190
+ stateMutability: 'view',
191
+ type: 'function',
192
+ },
193
+ {
194
+ inputs: [],
195
+ name: 'pancakeProfileIsRequested',
196
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
197
+ stateMutability: 'view',
198
+ type: 'function',
199
+ },
200
+ {
201
+ inputs: [],
202
+ name: 'pancakeProfileThresholdPoints',
203
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
204
+ stateMutability: 'view',
205
+ type: 'function',
206
+ },
207
+ {
208
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
209
+ name: 'pendingReward',
210
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
211
+ stateMutability: 'view',
212
+ type: 'function',
213
+ },
214
+ {
215
+ inputs: [],
216
+ name: 'poolLimitPerUser',
217
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
218
+ stateMutability: 'view',
219
+ type: 'function',
220
+ },
221
+ {
222
+ inputs: [{ internalType: 'address', name: '_token', type: 'address' }],
223
+ name: 'recoverToken',
224
+ outputs: [],
225
+ stateMutability: 'nonpayable',
226
+ type: 'function',
227
+ },
228
+ { inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function' },
229
+ {
230
+ inputs: [],
231
+ name: 'rewardPerSecond',
232
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
233
+ stateMutability: 'view',
234
+ type: 'function',
235
+ },
236
+ {
237
+ inputs: [],
238
+ name: 'rewardToken',
239
+ outputs: [{ internalType: 'contract IERC20Metadata', name: '', type: 'address' }],
240
+ stateMutability: 'view',
241
+ type: 'function',
242
+ },
243
+ {
244
+ inputs: [],
245
+ name: 'stakedToken',
246
+ outputs: [{ internalType: 'contract IERC20Metadata', name: '', type: 'address' }],
247
+ stateMutability: 'view',
248
+ type: 'function',
249
+ },
250
+ {
251
+ inputs: [],
252
+ name: 'startTimestamp',
253
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
254
+ stateMutability: 'view',
255
+ type: 'function',
256
+ },
257
+ { inputs: [], name: 'stopReward', outputs: [], stateMutability: 'nonpayable', type: 'function' },
258
+ {
259
+ inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
260
+ name: 'transferOwnership',
261
+ outputs: [],
262
+ stateMutability: 'nonpayable',
263
+ type: 'function',
264
+ },
265
+ {
266
+ inputs: [
267
+ { internalType: 'bool', name: '_userLimit', type: 'bool' },
268
+ { internalType: 'uint256', name: '_poolLimitPerUser', type: 'uint256' },
269
+ ],
270
+ name: 'updatePoolLimitPerUser',
271
+ outputs: [],
272
+ stateMutability: 'nonpayable',
273
+ type: 'function',
274
+ },
275
+ {
276
+ inputs: [
277
+ { internalType: 'bool', name: '_isRequested', type: 'bool' },
278
+ { internalType: 'uint256', name: '_thresholdPoints', type: 'uint256' },
279
+ ],
280
+ name: 'updateProfileAndThresholdPointsRequirement',
281
+ outputs: [],
282
+ stateMutability: 'nonpayable',
283
+ type: 'function',
284
+ },
285
+ {
286
+ inputs: [{ internalType: 'uint256', name: '_rewardPerSecond', type: 'uint256' }],
287
+ name: 'updateRewardPerSecond',
288
+ outputs: [],
289
+ stateMutability: 'nonpayable',
290
+ type: 'function',
291
+ },
292
+ {
293
+ inputs: [
294
+ { internalType: 'uint256', name: '_startTimestamp', type: 'uint256' },
295
+ { internalType: 'uint256', name: '_endTimestamp', type: 'uint256' },
296
+ ],
297
+ name: 'updateStartAndEndTimestamp',
298
+ outputs: [],
299
+ stateMutability: 'nonpayable',
300
+ type: 'function',
301
+ },
302
+ {
303
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
304
+ name: 'userInfo',
305
+ outputs: [
306
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
307
+ { internalType: 'uint256', name: 'rewardDebt', type: 'uint256' },
308
+ ],
309
+ stateMutability: 'view',
310
+ type: 'function',
311
+ },
312
+ {
313
+ inputs: [],
314
+ name: 'userLimit',
315
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
316
+ stateMutability: 'view',
317
+ type: 'function',
318
+ },
319
+ {
320
+ inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
321
+ name: 'withdraw',
322
+ outputs: [],
323
+ stateMutability: 'nonpayable',
324
+ type: 'function',
325
+ },
326
+ ] as const
@@ -0,0 +1,122 @@
1
+ export const sousChefABI = [
2
+ {
3
+ inputs: [],
4
+ name: 'bonusEndBlock',
5
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
6
+ stateMutability: 'view',
7
+ type: 'function',
8
+ },
9
+ {
10
+ inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
11
+ name: 'deposit',
12
+ outputs: [],
13
+ stateMutability: 'nonpayable',
14
+ type: 'function',
15
+ },
16
+ {
17
+ inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
18
+ name: 'emergencyRewardWithdraw',
19
+ outputs: [],
20
+ stateMutability: 'nonpayable',
21
+ type: 'function',
22
+ },
23
+ { inputs: [], name: 'emergencyWithdraw', outputs: [], stateMutability: 'nonpayable', type: 'function' },
24
+ {
25
+ inputs: [
26
+ { internalType: 'uint256', name: '_from', type: 'uint256' },
27
+ { internalType: 'uint256', name: '_to', type: 'uint256' },
28
+ ],
29
+ name: 'getMultiplier',
30
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
31
+ stateMutability: 'view',
32
+ type: 'function',
33
+ },
34
+ { inputs: [], name: 'massUpdatePools', outputs: [], stateMutability: 'nonpayable', type: 'function' },
35
+ {
36
+ inputs: [],
37
+ name: 'owner',
38
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
39
+ stateMutability: 'view',
40
+ type: 'function',
41
+ },
42
+ {
43
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
44
+ name: 'pendingReward',
45
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
46
+ stateMutability: 'view',
47
+ type: 'function',
48
+ },
49
+ {
50
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
51
+ name: 'poolInfo',
52
+ outputs: [
53
+ { internalType: 'contract IBEP20', name: 'lpToken', type: 'address' },
54
+ { internalType: 'uint256', name: 'allocPoint', type: 'uint256' },
55
+ { internalType: 'uint256', name: 'lastRewardBlock', type: 'uint256' },
56
+ { internalType: 'uint256', name: 'accCakePerShare', type: 'uint256' },
57
+ ],
58
+ stateMutability: 'view',
59
+ type: 'function',
60
+ },
61
+ { inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function' },
62
+ {
63
+ inputs: [],
64
+ name: 'rewardPerBlock',
65
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
66
+ stateMutability: 'view',
67
+ type: 'function',
68
+ },
69
+ {
70
+ inputs: [],
71
+ name: 'rewardToken',
72
+ outputs: [{ internalType: 'contract IBEP20', name: '', type: 'address' }],
73
+ stateMutability: 'view',
74
+ type: 'function',
75
+ },
76
+ {
77
+ inputs: [],
78
+ name: 'startBlock',
79
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
80
+ stateMutability: 'view',
81
+ type: 'function',
82
+ },
83
+ { inputs: [], name: 'stopReward', outputs: [], stateMutability: 'nonpayable', type: 'function' },
84
+ {
85
+ inputs: [],
86
+ name: 'syrup',
87
+ outputs: [{ internalType: 'contract IBEP20', name: '', type: 'address' }],
88
+ stateMutability: 'view',
89
+ type: 'function',
90
+ },
91
+ {
92
+ inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
93
+ name: 'transferOwnership',
94
+ outputs: [],
95
+ stateMutability: 'nonpayable',
96
+ type: 'function',
97
+ },
98
+ {
99
+ inputs: [{ internalType: 'uint256', name: '_pid', type: 'uint256' }],
100
+ name: 'updatePool',
101
+ outputs: [],
102
+ stateMutability: 'nonpayable',
103
+ type: 'function',
104
+ },
105
+ {
106
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
107
+ name: 'userInfo',
108
+ outputs: [
109
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
110
+ { internalType: 'uint256', name: 'rewardDebt', type: 'uint256' },
111
+ ],
112
+ stateMutability: 'view',
113
+ type: 'function',
114
+ },
115
+ {
116
+ inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
117
+ name: 'withdraw',
118
+ outputs: [],
119
+ stateMutability: 'nonpayable',
120
+ type: 'function',
121
+ },
122
+ ] as const
@@ -0,0 +1,166 @@
1
+ export const sousChefBnbABI = [
2
+ {
3
+ inputs: [],
4
+ name: 'WBNB',
5
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
6
+ stateMutability: 'view',
7
+ type: 'function',
8
+ },
9
+ {
10
+ inputs: [],
11
+ name: 'adminAddress',
12
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
13
+ stateMutability: 'view',
14
+ type: 'function',
15
+ },
16
+ {
17
+ inputs: [],
18
+ name: 'bonusEndBlock',
19
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
20
+ stateMutability: 'view',
21
+ type: 'function',
22
+ },
23
+ { inputs: [], name: 'deposit', outputs: [], stateMutability: 'payable', type: 'function' },
24
+ {
25
+ inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
26
+ name: 'emergencyRewardWithdraw',
27
+ outputs: [],
28
+ stateMutability: 'nonpayable',
29
+ type: 'function',
30
+ },
31
+ { inputs: [], name: 'emergencyWithdraw', outputs: [], stateMutability: 'nonpayable', type: 'function' },
32
+ {
33
+ inputs: [
34
+ { internalType: 'uint256', name: '_from', type: 'uint256' },
35
+ { internalType: 'uint256', name: '_to', type: 'uint256' },
36
+ ],
37
+ name: 'getMultiplier',
38
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
39
+ stateMutability: 'view',
40
+ type: 'function',
41
+ },
42
+ {
43
+ inputs: [],
44
+ name: 'limitAmount',
45
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
46
+ stateMutability: 'view',
47
+ type: 'function',
48
+ },
49
+ { inputs: [], name: 'massUpdatePools', outputs: [], stateMutability: 'nonpayable', type: 'function' },
50
+ {
51
+ inputs: [],
52
+ name: 'owner',
53
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
54
+ stateMutability: 'view',
55
+ type: 'function',
56
+ },
57
+ {
58
+ inputs: [{ internalType: 'address', name: '_user', type: 'address' }],
59
+ name: 'pendingReward',
60
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
61
+ stateMutability: 'view',
62
+ type: 'function',
63
+ },
64
+ {
65
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
66
+ name: 'poolInfo',
67
+ outputs: [
68
+ { internalType: 'contract IBEP20', name: 'lpToken', type: 'address' },
69
+ { internalType: 'uint256', name: 'allocPoint', type: 'uint256' },
70
+ { internalType: 'uint256', name: 'lastRewardBlock', type: 'uint256' },
71
+ { internalType: 'uint256', name: 'accCakePerShare', type: 'uint256' },
72
+ ],
73
+ stateMutability: 'view',
74
+ type: 'function',
75
+ },
76
+ {
77
+ inputs: [{ internalType: 'address', name: '_blacklistAddress', type: 'address' }],
78
+ name: 'removeBlackList',
79
+ outputs: [],
80
+ stateMutability: 'nonpayable',
81
+ type: 'function',
82
+ },
83
+ { inputs: [], name: 'renounceOwnership', outputs: [], stateMutability: 'nonpayable', type: 'function' },
84
+ {
85
+ inputs: [],
86
+ name: 'rewardPerBlock',
87
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
88
+ stateMutability: 'view',
89
+ type: 'function',
90
+ },
91
+ {
92
+ inputs: [],
93
+ name: 'rewardToken',
94
+ outputs: [{ internalType: 'contract IBEP20', name: '', type: 'address' }],
95
+ stateMutability: 'view',
96
+ type: 'function',
97
+ },
98
+ {
99
+ inputs: [{ internalType: 'address', name: '_adminAddress', type: 'address' }],
100
+ name: 'setAdmin',
101
+ outputs: [],
102
+ stateMutability: 'nonpayable',
103
+ type: 'function',
104
+ },
105
+ {
106
+ inputs: [{ internalType: 'address', name: '_blacklistAddress', type: 'address' }],
107
+ name: 'setBlackList',
108
+ outputs: [],
109
+ stateMutability: 'nonpayable',
110
+ type: 'function',
111
+ },
112
+ {
113
+ inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
114
+ name: 'setLimitAmount',
115
+ outputs: [],
116
+ stateMutability: 'nonpayable',
117
+ type: 'function',
118
+ },
119
+ {
120
+ inputs: [],
121
+ name: 'startBlock',
122
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
123
+ stateMutability: 'view',
124
+ type: 'function',
125
+ },
126
+ {
127
+ inputs: [],
128
+ name: 'totalAllocPoint',
129
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
130
+ stateMutability: 'view',
131
+ type: 'function',
132
+ },
133
+ {
134
+ inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
135
+ name: 'transferOwnership',
136
+ outputs: [],
137
+ stateMutability: 'nonpayable',
138
+ type: 'function',
139
+ },
140
+ {
141
+ inputs: [{ internalType: 'uint256', name: '_pid', type: 'uint256' }],
142
+ name: 'updatePool',
143
+ outputs: [],
144
+ stateMutability: 'nonpayable',
145
+ type: 'function',
146
+ },
147
+ {
148
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
149
+ name: 'userInfo',
150
+ outputs: [
151
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
152
+ { internalType: 'uint256', name: 'rewardDebt', type: 'uint256' },
153
+ { internalType: 'bool', name: 'inBlackList', type: 'bool' },
154
+ ],
155
+ stateMutability: 'view',
156
+ type: 'function',
157
+ },
158
+ {
159
+ inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
160
+ name: 'withdraw',
161
+ outputs: [],
162
+ stateMutability: 'nonpayable',
163
+ type: 'function',
164
+ },
165
+ { stateMutability: 'payable', type: 'receive' },
166
+ ] as const