@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.
- package/.turbo/turbo-build.log +18 -0
- package/CHANGELOG.md +91 -0
- package/LICENSE +674 -0
- package/dist/abis/ICake.d.ts +92 -0
- package/dist/abis/ICake.d.ts.map +1 -0
- package/dist/abis/ICakeFlexibleSideVaultV2.d.ts +378 -0
- package/dist/abis/ICakeFlexibleSideVaultV2.d.ts.map +1 -0
- package/dist/abis/ICakeVaultV2.d.ts +750 -0
- package/dist/abis/ICakeVaultV2.d.ts.map +1 -0
- package/dist/abis/ISmartChef.d.ts +523 -0
- package/dist/abis/ISmartChef.d.ts.map +1 -0
- package/dist/abis/ISousChef.d.ts +212 -0
- package/dist/abis/ISousChef.d.ts.map +1 -0
- package/dist/abis/ISousChefBNB.d.ts +279 -0
- package/dist/abis/ISousChefBNB.d.ts.map +1 -0
- package/dist/abis/ISousChefV2.d.ts +264 -0
- package/dist/abis/ISousChefV2.d.ts.map +1 -0
- package/dist/abis/ISousChefV3.d.ts +523 -0
- package/dist/abis/ISousChefV3.d.ts.map +1 -0
- package/dist/constants/contracts.d.ts +22 -0
- package/dist/constants/contracts.d.ts.map +1 -0
- package/dist/constants/index.d.ts +8 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/pools/1.d.ts +5 -0
- package/dist/constants/pools/1.d.ts.map +1 -0
- package/dist/constants/pools/56.d.ts +4 -0
- package/dist/constants/pools/56.d.ts.map +1 -0
- package/dist/constants/pools/97.d.ts +5 -0
- package/dist/constants/pools/97.d.ts.map +1 -0
- package/dist/constants/pools/index.d.ts +15 -0
- package/dist/constants/pools/index.d.ts.map +1 -0
- package/dist/constants/supportedChains.d.ts +4 -0
- package/dist/constants/supportedChains.d.ts.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6288 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +6224 -0
- package/dist/index.mjs.map +1 -0
- package/dist/queries/fetchPools.d.ts +37 -0
- package/dist/queries/fetchPools.d.ts.map +1 -0
- package/dist/queries/fetchUserIfo.d.ts +16 -0
- package/dist/queries/fetchUserIfo.d.ts.map +1 -0
- package/dist/queries/fetchUserPoolsData.d.ts +16 -0
- package/dist/queries/fetchUserPoolsData.d.ts.map +1 -0
- package/dist/queries/fetchVaultPublic.d.ts +39 -0
- package/dist/queries/fetchVaultPublic.d.ts.map +1 -0
- package/dist/queries/fetchVaultUser.d.ts +12 -0
- package/dist/queries/fetchVaultUser.d.ts.map +1 -0
- package/dist/queries/getAddresses.d.ts +4 -0
- package/dist/queries/getAddresses.d.ts.map +1 -0
- package/dist/queries/index.d.ts +7 -0
- package/dist/queries/index.d.ts.map +1 -0
- package/dist/types.d.ts +176 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/apr.d.ts +11 -0
- package/dist/utils/apr.d.ts.map +1 -0
- package/dist/utils/getContractAddress.d.ts +4 -0
- package/dist/utils/getContractAddress.d.ts.map +1 -0
- package/dist/utils/getPoolContractBySousId.d.ts +35 -0
- package/dist/utils/getPoolContractBySousId.d.ts.map +1 -0
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/isLegacyPool.d.ts +4 -0
- package/dist/utils/isLegacyPool.d.ts.map +1 -0
- package/dist/utils/isPoolsSupported.d.ts +3 -0
- package/dist/utils/isPoolsSupported.d.ts.map +1 -0
- package/package.json +40 -0
- package/src/abis/ICake.ts +59 -0
- package/src/abis/ICakeFlexibleSideVaultV2.ts +487 -0
- package/src/abis/ICakeVaultV2.ts +487 -0
- package/src/abis/ISmartChef.ts +326 -0
- package/src/abis/ISousChef.ts +122 -0
- package/src/abis/ISousChefBNB.ts +166 -0
- package/src/abis/ISousChefV2.ts +341 -0
- package/src/abis/ISousChefV3.ts +326 -0
- package/src/constants/contracts.ts +26 -0
- package/src/constants/index.ts +10 -0
- package/src/constants/pools/1.ts +80 -0
- package/src/constants/pools/56.ts +2933 -0
- package/src/constants/pools/97.ts +74 -0
- package/src/constants/pools/index.ts +44 -0
- package/src/constants/supportedChains.ts +5 -0
- package/src/index.ts +14 -0
- package/src/queries/fetchPools.ts +350 -0
- package/src/queries/fetchUserIfo.ts +53 -0
- package/src/queries/fetchUserPoolsData.ts +143 -0
- package/src/queries/fetchVaultPublic.ts +175 -0
- package/src/queries/fetchVaultUser.ts +106 -0
- package/src/queries/getAddresses.ts +12 -0
- package/src/queries/index.ts +6 -0
- package/src/types.ts +207 -0
- package/src/utils/apr.ts +35 -0
- package/src/utils/getContractAddress.ts +11 -0
- package/src/utils/getPoolContractBySousId.ts +111 -0
- package/src/utils/index.ts +5 -0
- package/src/utils/isLegacyPool.ts +15 -0
- package/src/utils/isPoolsSupported.ts +5 -0
- package/tsconfig.json +14 -0
- package/tsup.config.ts +26 -0
- package/vitest.config.ts +9 -0
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
export declare const sousChefV3ABI: readonly [{
|
|
2
|
+
readonly inputs: readonly [{
|
|
3
|
+
readonly internalType: "address";
|
|
4
|
+
readonly name: "_pancakeProfile";
|
|
5
|
+
readonly type: "address";
|
|
6
|
+
}, {
|
|
7
|
+
readonly internalType: "bool";
|
|
8
|
+
readonly name: "_pancakeProfileIsRequested";
|
|
9
|
+
readonly type: "bool";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "uint256";
|
|
12
|
+
readonly name: "_pancakeProfileThresholdPoints";
|
|
13
|
+
readonly type: "uint256";
|
|
14
|
+
}];
|
|
15
|
+
readonly stateMutability: "nonpayable";
|
|
16
|
+
readonly type: "constructor";
|
|
17
|
+
}, {
|
|
18
|
+
readonly anonymous: false;
|
|
19
|
+
readonly inputs: readonly [{
|
|
20
|
+
readonly indexed: true;
|
|
21
|
+
readonly internalType: "address";
|
|
22
|
+
readonly name: "user";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}, {
|
|
25
|
+
readonly indexed: false;
|
|
26
|
+
readonly internalType: "uint256";
|
|
27
|
+
readonly name: "amount";
|
|
28
|
+
readonly type: "uint256";
|
|
29
|
+
}];
|
|
30
|
+
readonly name: "Deposit";
|
|
31
|
+
readonly type: "event";
|
|
32
|
+
}, {
|
|
33
|
+
readonly anonymous: false;
|
|
34
|
+
readonly inputs: readonly [{
|
|
35
|
+
readonly indexed: true;
|
|
36
|
+
readonly internalType: "address";
|
|
37
|
+
readonly name: "user";
|
|
38
|
+
readonly type: "address";
|
|
39
|
+
}, {
|
|
40
|
+
readonly indexed: false;
|
|
41
|
+
readonly internalType: "uint256";
|
|
42
|
+
readonly name: "amount";
|
|
43
|
+
readonly type: "uint256";
|
|
44
|
+
}];
|
|
45
|
+
readonly name: "EmergencyWithdraw";
|
|
46
|
+
readonly type: "event";
|
|
47
|
+
}, {
|
|
48
|
+
readonly anonymous: false;
|
|
49
|
+
readonly inputs: readonly [{
|
|
50
|
+
readonly indexed: false;
|
|
51
|
+
readonly internalType: "uint256";
|
|
52
|
+
readonly name: "poolLimitPerUser";
|
|
53
|
+
readonly type: "uint256";
|
|
54
|
+
}];
|
|
55
|
+
readonly name: "NewPoolLimit";
|
|
56
|
+
readonly type: "event";
|
|
57
|
+
}, {
|
|
58
|
+
readonly anonymous: false;
|
|
59
|
+
readonly inputs: readonly [{
|
|
60
|
+
readonly indexed: false;
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
readonly name: "rewardPerBlock";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}];
|
|
65
|
+
readonly name: "NewRewardPerBlock";
|
|
66
|
+
readonly type: "event";
|
|
67
|
+
}, {
|
|
68
|
+
readonly anonymous: false;
|
|
69
|
+
readonly inputs: readonly [{
|
|
70
|
+
readonly indexed: false;
|
|
71
|
+
readonly internalType: "uint256";
|
|
72
|
+
readonly name: "startBlock";
|
|
73
|
+
readonly type: "uint256";
|
|
74
|
+
}, {
|
|
75
|
+
readonly indexed: false;
|
|
76
|
+
readonly internalType: "uint256";
|
|
77
|
+
readonly name: "endBlock";
|
|
78
|
+
readonly type: "uint256";
|
|
79
|
+
}];
|
|
80
|
+
readonly name: "NewStartAndEndBlocks";
|
|
81
|
+
readonly type: "event";
|
|
82
|
+
}, {
|
|
83
|
+
readonly anonymous: false;
|
|
84
|
+
readonly inputs: readonly [{
|
|
85
|
+
readonly indexed: true;
|
|
86
|
+
readonly internalType: "address";
|
|
87
|
+
readonly name: "previousOwner";
|
|
88
|
+
readonly type: "address";
|
|
89
|
+
}, {
|
|
90
|
+
readonly indexed: true;
|
|
91
|
+
readonly internalType: "address";
|
|
92
|
+
readonly name: "newOwner";
|
|
93
|
+
readonly type: "address";
|
|
94
|
+
}];
|
|
95
|
+
readonly name: "OwnershipTransferred";
|
|
96
|
+
readonly type: "event";
|
|
97
|
+
}, {
|
|
98
|
+
readonly anonymous: false;
|
|
99
|
+
readonly inputs: readonly [{
|
|
100
|
+
readonly indexed: false;
|
|
101
|
+
readonly internalType: "uint256";
|
|
102
|
+
readonly name: "blockNumber";
|
|
103
|
+
readonly type: "uint256";
|
|
104
|
+
}];
|
|
105
|
+
readonly name: "RewardsStop";
|
|
106
|
+
readonly type: "event";
|
|
107
|
+
}, {
|
|
108
|
+
readonly anonymous: false;
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly indexed: true;
|
|
111
|
+
readonly internalType: "address";
|
|
112
|
+
readonly name: "token";
|
|
113
|
+
readonly type: "address";
|
|
114
|
+
}, {
|
|
115
|
+
readonly indexed: false;
|
|
116
|
+
readonly internalType: "uint256";
|
|
117
|
+
readonly name: "amount";
|
|
118
|
+
readonly type: "uint256";
|
|
119
|
+
}];
|
|
120
|
+
readonly name: "TokenRecovery";
|
|
121
|
+
readonly type: "event";
|
|
122
|
+
}, {
|
|
123
|
+
readonly anonymous: false;
|
|
124
|
+
readonly inputs: readonly [{
|
|
125
|
+
readonly indexed: false;
|
|
126
|
+
readonly internalType: "bool";
|
|
127
|
+
readonly name: "isProfileRequested";
|
|
128
|
+
readonly type: "bool";
|
|
129
|
+
}, {
|
|
130
|
+
readonly indexed: false;
|
|
131
|
+
readonly internalType: "uint256";
|
|
132
|
+
readonly name: "thresholdPoints";
|
|
133
|
+
readonly type: "uint256";
|
|
134
|
+
}];
|
|
135
|
+
readonly name: "UpdateProfileAndThresholdPointsRequirement";
|
|
136
|
+
readonly type: "event";
|
|
137
|
+
}, {
|
|
138
|
+
readonly anonymous: false;
|
|
139
|
+
readonly inputs: readonly [{
|
|
140
|
+
readonly indexed: true;
|
|
141
|
+
readonly internalType: "address";
|
|
142
|
+
readonly name: "user";
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
}, {
|
|
145
|
+
readonly indexed: false;
|
|
146
|
+
readonly internalType: "uint256";
|
|
147
|
+
readonly name: "amount";
|
|
148
|
+
readonly type: "uint256";
|
|
149
|
+
}];
|
|
150
|
+
readonly name: "Withdraw";
|
|
151
|
+
readonly type: "event";
|
|
152
|
+
}, {
|
|
153
|
+
readonly inputs: readonly [];
|
|
154
|
+
readonly name: "PRECISION_FACTOR";
|
|
155
|
+
readonly outputs: readonly [{
|
|
156
|
+
readonly internalType: "uint256";
|
|
157
|
+
readonly name: "";
|
|
158
|
+
readonly type: "uint256";
|
|
159
|
+
}];
|
|
160
|
+
readonly stateMutability: "view";
|
|
161
|
+
readonly type: "function";
|
|
162
|
+
}, {
|
|
163
|
+
readonly inputs: readonly [];
|
|
164
|
+
readonly name: "SMART_CHEF_FACTORY";
|
|
165
|
+
readonly outputs: readonly [{
|
|
166
|
+
readonly internalType: "address";
|
|
167
|
+
readonly name: "";
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
}];
|
|
170
|
+
readonly stateMutability: "view";
|
|
171
|
+
readonly type: "function";
|
|
172
|
+
}, {
|
|
173
|
+
readonly inputs: readonly [];
|
|
174
|
+
readonly name: "accTokenPerShare";
|
|
175
|
+
readonly outputs: readonly [{
|
|
176
|
+
readonly internalType: "uint256";
|
|
177
|
+
readonly name: "";
|
|
178
|
+
readonly type: "uint256";
|
|
179
|
+
}];
|
|
180
|
+
readonly stateMutability: "view";
|
|
181
|
+
readonly type: "function";
|
|
182
|
+
}, {
|
|
183
|
+
readonly inputs: readonly [];
|
|
184
|
+
readonly name: "bonusEndBlock";
|
|
185
|
+
readonly outputs: readonly [{
|
|
186
|
+
readonly internalType: "uint256";
|
|
187
|
+
readonly name: "";
|
|
188
|
+
readonly type: "uint256";
|
|
189
|
+
}];
|
|
190
|
+
readonly stateMutability: "view";
|
|
191
|
+
readonly type: "function";
|
|
192
|
+
}, {
|
|
193
|
+
readonly inputs: readonly [{
|
|
194
|
+
readonly internalType: "uint256";
|
|
195
|
+
readonly name: "_amount";
|
|
196
|
+
readonly type: "uint256";
|
|
197
|
+
}];
|
|
198
|
+
readonly name: "deposit";
|
|
199
|
+
readonly outputs: readonly [];
|
|
200
|
+
readonly stateMutability: "nonpayable";
|
|
201
|
+
readonly type: "function";
|
|
202
|
+
}, {
|
|
203
|
+
readonly inputs: readonly [{
|
|
204
|
+
readonly internalType: "uint256";
|
|
205
|
+
readonly name: "_amount";
|
|
206
|
+
readonly type: "uint256";
|
|
207
|
+
}];
|
|
208
|
+
readonly name: "emergencyRewardWithdraw";
|
|
209
|
+
readonly outputs: readonly [];
|
|
210
|
+
readonly stateMutability: "nonpayable";
|
|
211
|
+
readonly type: "function";
|
|
212
|
+
}, {
|
|
213
|
+
readonly inputs: readonly [];
|
|
214
|
+
readonly name: "emergencyWithdraw";
|
|
215
|
+
readonly outputs: readonly [];
|
|
216
|
+
readonly stateMutability: "nonpayable";
|
|
217
|
+
readonly type: "function";
|
|
218
|
+
}, {
|
|
219
|
+
readonly inputs: readonly [];
|
|
220
|
+
readonly name: "hasUserLimit";
|
|
221
|
+
readonly outputs: readonly [{
|
|
222
|
+
readonly internalType: "bool";
|
|
223
|
+
readonly name: "";
|
|
224
|
+
readonly type: "bool";
|
|
225
|
+
}];
|
|
226
|
+
readonly stateMutability: "view";
|
|
227
|
+
readonly type: "function";
|
|
228
|
+
}, {
|
|
229
|
+
readonly inputs: readonly [{
|
|
230
|
+
readonly internalType: "contract IERC20Metadata";
|
|
231
|
+
readonly name: "_stakedToken";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
}, {
|
|
234
|
+
readonly internalType: "contract IERC20Metadata";
|
|
235
|
+
readonly name: "_rewardToken";
|
|
236
|
+
readonly type: "address";
|
|
237
|
+
}, {
|
|
238
|
+
readonly internalType: "uint256";
|
|
239
|
+
readonly name: "_rewardPerBlock";
|
|
240
|
+
readonly type: "uint256";
|
|
241
|
+
}, {
|
|
242
|
+
readonly internalType: "uint256";
|
|
243
|
+
readonly name: "_startBlock";
|
|
244
|
+
readonly type: "uint256";
|
|
245
|
+
}, {
|
|
246
|
+
readonly internalType: "uint256";
|
|
247
|
+
readonly name: "_bonusEndBlock";
|
|
248
|
+
readonly type: "uint256";
|
|
249
|
+
}, {
|
|
250
|
+
readonly internalType: "uint256";
|
|
251
|
+
readonly name: "_poolLimitPerUser";
|
|
252
|
+
readonly type: "uint256";
|
|
253
|
+
}, {
|
|
254
|
+
readonly internalType: "uint256";
|
|
255
|
+
readonly name: "_numberBlocksForUserLimit";
|
|
256
|
+
readonly type: "uint256";
|
|
257
|
+
}, {
|
|
258
|
+
readonly internalType: "address";
|
|
259
|
+
readonly name: "_admin";
|
|
260
|
+
readonly type: "address";
|
|
261
|
+
}];
|
|
262
|
+
readonly name: "initialize";
|
|
263
|
+
readonly outputs: readonly [];
|
|
264
|
+
readonly stateMutability: "nonpayable";
|
|
265
|
+
readonly type: "function";
|
|
266
|
+
}, {
|
|
267
|
+
readonly inputs: readonly [];
|
|
268
|
+
readonly name: "isInitialized";
|
|
269
|
+
readonly outputs: readonly [{
|
|
270
|
+
readonly internalType: "bool";
|
|
271
|
+
readonly name: "";
|
|
272
|
+
readonly type: "bool";
|
|
273
|
+
}];
|
|
274
|
+
readonly stateMutability: "view";
|
|
275
|
+
readonly type: "function";
|
|
276
|
+
}, {
|
|
277
|
+
readonly inputs: readonly [];
|
|
278
|
+
readonly name: "lastRewardBlock";
|
|
279
|
+
readonly outputs: readonly [{
|
|
280
|
+
readonly internalType: "uint256";
|
|
281
|
+
readonly name: "";
|
|
282
|
+
readonly type: "uint256";
|
|
283
|
+
}];
|
|
284
|
+
readonly stateMutability: "view";
|
|
285
|
+
readonly type: "function";
|
|
286
|
+
}, {
|
|
287
|
+
readonly inputs: readonly [];
|
|
288
|
+
readonly name: "numberBlocksForUserLimit";
|
|
289
|
+
readonly outputs: readonly [{
|
|
290
|
+
readonly internalType: "uint256";
|
|
291
|
+
readonly name: "";
|
|
292
|
+
readonly type: "uint256";
|
|
293
|
+
}];
|
|
294
|
+
readonly stateMutability: "view";
|
|
295
|
+
readonly type: "function";
|
|
296
|
+
}, {
|
|
297
|
+
readonly inputs: readonly [];
|
|
298
|
+
readonly name: "owner";
|
|
299
|
+
readonly outputs: readonly [{
|
|
300
|
+
readonly internalType: "address";
|
|
301
|
+
readonly name: "";
|
|
302
|
+
readonly type: "address";
|
|
303
|
+
}];
|
|
304
|
+
readonly stateMutability: "view";
|
|
305
|
+
readonly type: "function";
|
|
306
|
+
}, {
|
|
307
|
+
readonly inputs: readonly [];
|
|
308
|
+
readonly name: "pancakeProfile";
|
|
309
|
+
readonly outputs: readonly [{
|
|
310
|
+
readonly internalType: "contract IPancakeProfile";
|
|
311
|
+
readonly name: "";
|
|
312
|
+
readonly type: "address";
|
|
313
|
+
}];
|
|
314
|
+
readonly stateMutability: "view";
|
|
315
|
+
readonly type: "function";
|
|
316
|
+
}, {
|
|
317
|
+
readonly inputs: readonly [];
|
|
318
|
+
readonly name: "pancakeProfileIsRequested";
|
|
319
|
+
readonly outputs: readonly [{
|
|
320
|
+
readonly internalType: "bool";
|
|
321
|
+
readonly name: "";
|
|
322
|
+
readonly type: "bool";
|
|
323
|
+
}];
|
|
324
|
+
readonly stateMutability: "view";
|
|
325
|
+
readonly type: "function";
|
|
326
|
+
}, {
|
|
327
|
+
readonly inputs: readonly [];
|
|
328
|
+
readonly name: "pancakeProfileThresholdPoints";
|
|
329
|
+
readonly outputs: readonly [{
|
|
330
|
+
readonly internalType: "uint256";
|
|
331
|
+
readonly name: "";
|
|
332
|
+
readonly type: "uint256";
|
|
333
|
+
}];
|
|
334
|
+
readonly stateMutability: "view";
|
|
335
|
+
readonly type: "function";
|
|
336
|
+
}, {
|
|
337
|
+
readonly inputs: readonly [{
|
|
338
|
+
readonly internalType: "address";
|
|
339
|
+
readonly name: "_user";
|
|
340
|
+
readonly type: "address";
|
|
341
|
+
}];
|
|
342
|
+
readonly name: "pendingReward";
|
|
343
|
+
readonly outputs: readonly [{
|
|
344
|
+
readonly internalType: "uint256";
|
|
345
|
+
readonly name: "";
|
|
346
|
+
readonly type: "uint256";
|
|
347
|
+
}];
|
|
348
|
+
readonly stateMutability: "view";
|
|
349
|
+
readonly type: "function";
|
|
350
|
+
}, {
|
|
351
|
+
readonly inputs: readonly [];
|
|
352
|
+
readonly name: "poolLimitPerUser";
|
|
353
|
+
readonly outputs: readonly [{
|
|
354
|
+
readonly internalType: "uint256";
|
|
355
|
+
readonly name: "";
|
|
356
|
+
readonly type: "uint256";
|
|
357
|
+
}];
|
|
358
|
+
readonly stateMutability: "view";
|
|
359
|
+
readonly type: "function";
|
|
360
|
+
}, {
|
|
361
|
+
readonly inputs: readonly [{
|
|
362
|
+
readonly internalType: "address";
|
|
363
|
+
readonly name: "_token";
|
|
364
|
+
readonly type: "address";
|
|
365
|
+
}];
|
|
366
|
+
readonly name: "recoverToken";
|
|
367
|
+
readonly outputs: readonly [];
|
|
368
|
+
readonly stateMutability: "nonpayable";
|
|
369
|
+
readonly type: "function";
|
|
370
|
+
}, {
|
|
371
|
+
readonly inputs: readonly [];
|
|
372
|
+
readonly name: "renounceOwnership";
|
|
373
|
+
readonly outputs: readonly [];
|
|
374
|
+
readonly stateMutability: "nonpayable";
|
|
375
|
+
readonly type: "function";
|
|
376
|
+
}, {
|
|
377
|
+
readonly inputs: readonly [];
|
|
378
|
+
readonly name: "rewardPerBlock";
|
|
379
|
+
readonly outputs: readonly [{
|
|
380
|
+
readonly internalType: "uint256";
|
|
381
|
+
readonly name: "";
|
|
382
|
+
readonly type: "uint256";
|
|
383
|
+
}];
|
|
384
|
+
readonly stateMutability: "view";
|
|
385
|
+
readonly type: "function";
|
|
386
|
+
}, {
|
|
387
|
+
readonly inputs: readonly [];
|
|
388
|
+
readonly name: "rewardToken";
|
|
389
|
+
readonly outputs: readonly [{
|
|
390
|
+
readonly internalType: "contract IERC20Metadata";
|
|
391
|
+
readonly name: "";
|
|
392
|
+
readonly type: "address";
|
|
393
|
+
}];
|
|
394
|
+
readonly stateMutability: "view";
|
|
395
|
+
readonly type: "function";
|
|
396
|
+
}, {
|
|
397
|
+
readonly inputs: readonly [];
|
|
398
|
+
readonly name: "stakedToken";
|
|
399
|
+
readonly outputs: readonly [{
|
|
400
|
+
readonly internalType: "contract IERC20Metadata";
|
|
401
|
+
readonly name: "";
|
|
402
|
+
readonly type: "address";
|
|
403
|
+
}];
|
|
404
|
+
readonly stateMutability: "view";
|
|
405
|
+
readonly type: "function";
|
|
406
|
+
}, {
|
|
407
|
+
readonly inputs: readonly [];
|
|
408
|
+
readonly name: "startBlock";
|
|
409
|
+
readonly outputs: readonly [{
|
|
410
|
+
readonly internalType: "uint256";
|
|
411
|
+
readonly name: "";
|
|
412
|
+
readonly type: "uint256";
|
|
413
|
+
}];
|
|
414
|
+
readonly stateMutability: "view";
|
|
415
|
+
readonly type: "function";
|
|
416
|
+
}, {
|
|
417
|
+
readonly inputs: readonly [];
|
|
418
|
+
readonly name: "stopReward";
|
|
419
|
+
readonly outputs: readonly [];
|
|
420
|
+
readonly stateMutability: "nonpayable";
|
|
421
|
+
readonly type: "function";
|
|
422
|
+
}, {
|
|
423
|
+
readonly inputs: readonly [{
|
|
424
|
+
readonly internalType: "address";
|
|
425
|
+
readonly name: "newOwner";
|
|
426
|
+
readonly type: "address";
|
|
427
|
+
}];
|
|
428
|
+
readonly name: "transferOwnership";
|
|
429
|
+
readonly outputs: readonly [];
|
|
430
|
+
readonly stateMutability: "nonpayable";
|
|
431
|
+
readonly type: "function";
|
|
432
|
+
}, {
|
|
433
|
+
readonly inputs: readonly [{
|
|
434
|
+
readonly internalType: "bool";
|
|
435
|
+
readonly name: "_userLimit";
|
|
436
|
+
readonly type: "bool";
|
|
437
|
+
}, {
|
|
438
|
+
readonly internalType: "uint256";
|
|
439
|
+
readonly name: "_poolLimitPerUser";
|
|
440
|
+
readonly type: "uint256";
|
|
441
|
+
}];
|
|
442
|
+
readonly name: "updatePoolLimitPerUser";
|
|
443
|
+
readonly outputs: readonly [];
|
|
444
|
+
readonly stateMutability: "nonpayable";
|
|
445
|
+
readonly type: "function";
|
|
446
|
+
}, {
|
|
447
|
+
readonly inputs: readonly [{
|
|
448
|
+
readonly internalType: "bool";
|
|
449
|
+
readonly name: "_isRequested";
|
|
450
|
+
readonly type: "bool";
|
|
451
|
+
}, {
|
|
452
|
+
readonly internalType: "uint256";
|
|
453
|
+
readonly name: "_thresholdPoints";
|
|
454
|
+
readonly type: "uint256";
|
|
455
|
+
}];
|
|
456
|
+
readonly name: "updateProfileAndThresholdPointsRequirement";
|
|
457
|
+
readonly outputs: readonly [];
|
|
458
|
+
readonly stateMutability: "nonpayable";
|
|
459
|
+
readonly type: "function";
|
|
460
|
+
}, {
|
|
461
|
+
readonly inputs: readonly [{
|
|
462
|
+
readonly internalType: "uint256";
|
|
463
|
+
readonly name: "_rewardPerBlock";
|
|
464
|
+
readonly type: "uint256";
|
|
465
|
+
}];
|
|
466
|
+
readonly name: "updateRewardPerBlock";
|
|
467
|
+
readonly outputs: readonly [];
|
|
468
|
+
readonly stateMutability: "nonpayable";
|
|
469
|
+
readonly type: "function";
|
|
470
|
+
}, {
|
|
471
|
+
readonly inputs: readonly [{
|
|
472
|
+
readonly internalType: "uint256";
|
|
473
|
+
readonly name: "_startBlock";
|
|
474
|
+
readonly type: "uint256";
|
|
475
|
+
}, {
|
|
476
|
+
readonly internalType: "uint256";
|
|
477
|
+
readonly name: "_bonusEndBlock";
|
|
478
|
+
readonly type: "uint256";
|
|
479
|
+
}];
|
|
480
|
+
readonly name: "updateStartAndEndBlocks";
|
|
481
|
+
readonly outputs: readonly [];
|
|
482
|
+
readonly stateMutability: "nonpayable";
|
|
483
|
+
readonly type: "function";
|
|
484
|
+
}, {
|
|
485
|
+
readonly inputs: readonly [{
|
|
486
|
+
readonly internalType: "address";
|
|
487
|
+
readonly name: "";
|
|
488
|
+
readonly type: "address";
|
|
489
|
+
}];
|
|
490
|
+
readonly name: "userInfo";
|
|
491
|
+
readonly outputs: readonly [{
|
|
492
|
+
readonly internalType: "uint256";
|
|
493
|
+
readonly name: "amount";
|
|
494
|
+
readonly type: "uint256";
|
|
495
|
+
}, {
|
|
496
|
+
readonly internalType: "uint256";
|
|
497
|
+
readonly name: "rewardDebt";
|
|
498
|
+
readonly type: "uint256";
|
|
499
|
+
}];
|
|
500
|
+
readonly stateMutability: "view";
|
|
501
|
+
readonly type: "function";
|
|
502
|
+
}, {
|
|
503
|
+
readonly inputs: readonly [];
|
|
504
|
+
readonly name: "userLimit";
|
|
505
|
+
readonly outputs: readonly [{
|
|
506
|
+
readonly internalType: "bool";
|
|
507
|
+
readonly name: "";
|
|
508
|
+
readonly type: "bool";
|
|
509
|
+
}];
|
|
510
|
+
readonly stateMutability: "view";
|
|
511
|
+
readonly type: "function";
|
|
512
|
+
}, {
|
|
513
|
+
readonly inputs: readonly [{
|
|
514
|
+
readonly internalType: "uint256";
|
|
515
|
+
readonly name: "_amount";
|
|
516
|
+
readonly type: "uint256";
|
|
517
|
+
}];
|
|
518
|
+
readonly name: "withdraw";
|
|
519
|
+
readonly outputs: readonly [];
|
|
520
|
+
readonly stateMutability: "nonpayable";
|
|
521
|
+
readonly type: "function";
|
|
522
|
+
}];
|
|
523
|
+
//# sourceMappingURL=ISousChefV3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ISousChefV3.d.ts","sourceRoot":"","sources":["../../src/abis/ISousChefV3.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqUhB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ChainId } from '@pancakeswap/sdk';
|
|
2
|
+
import { Address } from 'viem';
|
|
3
|
+
import { SupportedChainId } from './supportedChains';
|
|
4
|
+
export type ContractAddresses<T extends ChainId = SupportedChainId> = {
|
|
5
|
+
[chainId in T]: Address;
|
|
6
|
+
};
|
|
7
|
+
export declare const ICAKE: {
|
|
8
|
+
readonly 56: "0x3C458828D1622F5f4d526eb0d24Da8C4Eb8F07b1";
|
|
9
|
+
readonly 97: "0x";
|
|
10
|
+
readonly 1: "0x";
|
|
11
|
+
};
|
|
12
|
+
export declare const CAKE_VAULT: {
|
|
13
|
+
readonly 56: "0x45c54210128a065de780C4B0Df3d16664f7f859e";
|
|
14
|
+
readonly 97: "0x1088Fb24053F03802F673b84d16AE1A7023E400b";
|
|
15
|
+
readonly 1: "0x";
|
|
16
|
+
};
|
|
17
|
+
export declare const CAKE_FLEXIBLE_SIDE_VAULT: {
|
|
18
|
+
readonly 56: "0x615e896A8C2CA8470A2e9dc2E9552998f8658Ea0";
|
|
19
|
+
readonly 97: "0x";
|
|
20
|
+
readonly 1: "0x";
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/constants/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AAE9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEpD,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,OAAO,GAAG,gBAAgB,IAAI;KACnE,OAAO,IAAI,CAAC,GAAG,OAAO;CACxB,CAAA;AAED,eAAO,MAAM,KAAK;;;;CAIsC,CAAA;AAExD,eAAO,MAAM,UAAU;;;;CAIiC,CAAA;AAExD,eAAO,MAAM,wBAAwB;;;;CAImB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './pools';
|
|
2
|
+
export * from './contracts';
|
|
3
|
+
export * from './supportedChains';
|
|
4
|
+
export declare const BSC_BLOCK_TIME = 3;
|
|
5
|
+
export declare const BLOCKS_PER_DAY: number;
|
|
6
|
+
export declare const BLOCKS_PER_YEAR: number;
|
|
7
|
+
export declare const SECONDS_IN_YEAR = 31536000;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AAEjC,eAAO,MAAM,cAAc,IAAI,CAAA;AAE/B,eAAO,MAAM,cAAc,QAAkC,CAAA;AAC7D,eAAO,MAAM,eAAe,QAAuB,CAAA;AAEnD,eAAO,MAAM,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1.d.ts","sourceRoot":"","sources":["../../../src/constants/pools/1.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAA;AAE1D,eAAO,MAAM,SAAS,EAAE,cAAc,EAsBnC,CAAA;AAGH,eAAO,MAAM,aAAa,EAAE,cAAc,EA+CvC,CAAA;AAEH,eAAO,MAAM,KAAK,EAAE,cAAc,EAAqC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"56.d.ts","sourceRoot":"","sources":["../../../src/constants/pools/56.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAA;AAE1D,eAAO,MAAM,SAAS,EAAE,cAAc,EA4InC,CAAA;AAmuFH,eAAO,MAAM,KAAK,EAAE,cAAc,EAAqC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"97.d.ts","sourceRoot":"","sources":["../../../src/constants/pools/97.ts"],"names":[],"mappings":"AAGA,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAA;AAE1D,eAAO,MAAM,SAAS,EAAE,cAAc,EA+DnC,CAAA;AAGH,eAAO,MAAM,aAAa,EAAE,cAAc,EAAO,CAAA;AAEjD,eAAO,MAAM,KAAK,EAAE,cAAc,EAAqC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChainId } from '@pancakeswap/sdk';
|
|
2
|
+
import { SerializedPool } from '../../types';
|
|
3
|
+
export type PoolsConfigByChain<TChainId extends ChainId> = {
|
|
4
|
+
[chainId in TChainId]: SerializedPool[];
|
|
5
|
+
};
|
|
6
|
+
export declare const POOLS_CONFIG_BY_CHAIN: PoolsConfigByChain<ChainId.ETHEREUM | ChainId.BSC | ChainId.BSC_TESTNET>;
|
|
7
|
+
export declare const LIVE_POOLS_CONFIG_BY_CHAIN: PoolsConfigByChain<ChainId.ETHEREUM | ChainId.BSC | ChainId.BSC_TESTNET>;
|
|
8
|
+
export declare const getPoolsConfig: (chainId: ChainId) => SerializedPool[] | undefined;
|
|
9
|
+
export declare const getLivePoolsConfig: (chainId: ChainId) => SerializedPool[] | undefined;
|
|
10
|
+
export declare const MAX_LOCK_DURATION = 31536000;
|
|
11
|
+
export declare const UNLOCK_FREE_DURATION = 604800;
|
|
12
|
+
export declare const ONE_WEEK_DEFAULT = 604800;
|
|
13
|
+
export declare const BOOST_WEIGHT = 20000000000000n;
|
|
14
|
+
export declare const DURATION_FACTOR = 31536000n;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/pools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAK1C,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAI5C,MAAM,MAAM,kBAAkB,CAAC,QAAQ,SAAS,OAAO,IAAI;KACxD,OAAO,IAAI,QAAQ,GAAG,cAAc,EAAE;CACxC,CAAA;AAED,eAAO,MAAM,qBAAqB,0EAIO,CAAA;AAEzC,eAAO,MAAM,0BAA0B,0EAIE,CAAA;AAEzC,eAAO,MAAM,cAAc,YAAa,OAAO,iCAK9C,CAAA;AAED,eAAO,MAAM,kBAAkB,YAAa,OAAO,iCAKlD,CAAA;AAED,eAAO,MAAM,iBAAiB,WAAW,CAAA;AACzC,eAAO,MAAM,oBAAoB,SAAS,CAAA;AAC1C,eAAO,MAAM,gBAAgB,SAAS,CAAA;AACtC,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAC3C,eAAO,MAAM,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"supportedChains.d.ts","sourceRoot":"","sources":["../../src/constants/supportedChains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAE1C,eAAO,MAAM,mBAAmB,+DAAgE,CAAA;AAEhG,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from './constants';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export * from './queries';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export * from './abis/ICake';
|
|
6
|
+
export * from './abis/ICakeFlexibleSideVaultV2';
|
|
7
|
+
export * from './abis/ICakeVaultV2';
|
|
8
|
+
export * from './abis/ISmartChef';
|
|
9
|
+
export * from './abis/ISousChef';
|
|
10
|
+
export * from './abis/ISousChefBNB';
|
|
11
|
+
export * from './abis/ISousChefV2';
|
|
12
|
+
export * from './abis/ISousChefV3';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AAGvB,cAAc,cAAc,CAAA;AAC5B,cAAc,iCAAiC,CAAA;AAC/C,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA"}
|