@pancakeswap/pools 5.1.42 → 5.1.44

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.
@@ -0,0 +1,54 @@
1
+ export declare const cakeVaultV1ABI: readonly [{
2
+ readonly inputs: readonly [];
3
+ readonly name: "withdrawAll";
4
+ readonly outputs: readonly [];
5
+ readonly stateMutability: "nonpayable";
6
+ readonly type: "function";
7
+ }, {
8
+ readonly inputs: readonly [];
9
+ readonly name: "getPricePerFullShare";
10
+ readonly outputs: readonly [{
11
+ readonly internalType: "uint256";
12
+ readonly name: "";
13
+ readonly type: "uint256";
14
+ }];
15
+ readonly stateMutability: "view";
16
+ readonly type: "function";
17
+ }, {
18
+ readonly inputs: readonly [{
19
+ readonly internalType: "address";
20
+ readonly name: "";
21
+ readonly type: "address";
22
+ }];
23
+ readonly name: "userInfo";
24
+ readonly outputs: readonly [{
25
+ readonly internalType: "uint256";
26
+ readonly name: "shares";
27
+ readonly type: "uint256";
28
+ }, {
29
+ readonly internalType: "uint256";
30
+ readonly name: "lastDepositedTime";
31
+ readonly type: "uint256";
32
+ }, {
33
+ readonly internalType: "uint256";
34
+ readonly name: "cakeAtLastUserAction";
35
+ readonly type: "uint256";
36
+ }, {
37
+ readonly internalType: "uint256";
38
+ readonly name: "lastUserActionTime";
39
+ readonly type: "uint256";
40
+ }];
41
+ readonly stateMutability: "view";
42
+ readonly type: "function";
43
+ }, {
44
+ readonly inputs: readonly [];
45
+ readonly name: "performanceFee";
46
+ readonly outputs: readonly [{
47
+ readonly internalType: "uint256";
48
+ readonly name: "";
49
+ readonly type: "uint256";
50
+ }];
51
+ readonly stateMutability: "view";
52
+ readonly type: "function";
53
+ }];
54
+ //# sourceMappingURL=ICakeVaultV1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ICakeVaultV1.d.ts","sourceRoot":"","sources":["../../src/abis/ICakeVaultV1.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AAEjC,eAAO,MAAM,cAAc,QAAyC,CAAA;AAEpE,eAAO,MAAM,cAAc,QAAkC,CAAA;AAC7D,eAAO,MAAM,eAAe,QAAuB,CAAA;AAEnD,eAAO,MAAM,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AAGjC,eAAO,MAAM,cAAc,QAAyC,CAAA;AAEpE,eAAO,MAAM,cAAc,QAAkC,CAAA;AAC7D,eAAO,MAAM,eAAe,QAAuB,CAAA;AAEnD,eAAO,MAAM,eAAe,WAAW,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { ChainId } from '@pancakeswap/chains';
2
- export declare const SUPPORTED_CHAIN_IDS: readonly [ChainId.BSC, ChainId.BSC_TESTNET, ChainId.ETHEREUM, ChainId.ARBITRUM_ONE, ChainId.ARBITRUM_GOERLI, ChainId.ZKSYNC, ChainId.ZKSYNC_TESTNET, ChainId.LINEA_TESTNET, ChainId.BASE_TESTNET, ChainId.POLYGON_ZKEVM_TESTNET, ChainId.OPBNB, ChainId.BASE];
2
+ export declare const SUPPORTED_CHAIN_IDS: readonly [ChainId.BSC, ChainId.BSC_TESTNET, ChainId.ETHEREUM, ChainId.ARBITRUM_ONE, ChainId.ARBITRUM_GOERLI, ChainId.ZKSYNC, ChainId.ZKSYNC_TESTNET, ChainId.BASE, ChainId.LINEA_TESTNET, ChainId.BASE_TESTNET, ChainId.POLYGON_ZKEVM_TESTNET, ChainId.OPBNB, ChainId.BASE];
3
3
  export type SupportedChainId = (typeof SUPPORTED_CHAIN_IDS)[number];
4
4
  export declare const CAKE_VAULT_SUPPORTED_CHAINS: readonly [ChainId.BSC, ChainId.BSC_TESTNET];
5
5
  export type CakeVaultSupportedChainId = (typeof CAKE_VAULT_SUPPORTED_CHAINS)[number];
@@ -1 +1 @@
1
- {"version":3,"file":"supportedChains.d.ts","sourceRoot":"","sources":["../../src/constants/supportedChains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAE7C,eAAO,MAAM,mBAAmB,+PAatB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnE,eAAO,MAAM,2BAA2B,6CAA8C,CAAA;AAEtF,MAAM,MAAM,yBAAyB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"supportedChains.d.ts","sourceRoot":"","sources":["../../src/constants/supportedChains.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAE7C,eAAO,MAAM,mBAAmB,6QActB,CAAA;AAEV,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEnE,eAAO,MAAM,2BAA2B,6CAA8C,CAAA;AAEtF,MAAM,MAAM,yBAAyB,GAAG,CAAC,OAAO,2BAA2B,CAAC,CAAC,MAAM,CAAC,CAAA"}
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './queries';
4
4
  export * from './utils';
5
5
  export * from './abis/ICakeFlexibleSideVaultV2';
6
6
  export * from './abis/ICakeVaultV2';
7
+ export * from './abis/ICakeVaultV1';
7
8
  export * from './abis/ISmartChef';
8
9
  export * from './abis/ISousChef';
9
10
  export * from './abis/ISousChefBNB';
@@ -1 +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,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"}
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,iCAAiC,CAAA;AAC/C,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA"}
package/dist/index.js CHANGED
@@ -24,6 +24,7 @@ var SUPPORTED_CHAIN_IDS = [
24
24
  chains.ChainId.ARBITRUM_GOERLI,
25
25
  chains.ChainId.ZKSYNC,
26
26
  chains.ChainId.ZKSYNC_TESTNET,
27
+ chains.ChainId.BASE,
27
28
  chains.ChainId.LINEA_TESTNET,
28
29
  chains.ChainId.BASE_TESTNET,
29
30
  chains.ChainId.POLYGON_ZKEVM_TESTNET,
@@ -3269,6 +3270,51 @@ var fetchFlexibleSideVaultUser = async ({
3269
3270
  }
3270
3271
  };
3271
3272
 
3273
+ // src/abis/ICakeVaultV1.ts
3274
+ var cakeVaultV1ABI = [
3275
+ {
3276
+ inputs: [],
3277
+ name: "withdrawAll",
3278
+ outputs: [],
3279
+ stateMutability: "nonpayable",
3280
+ type: "function"
3281
+ },
3282
+ {
3283
+ inputs: [],
3284
+ name: "getPricePerFullShare",
3285
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3286
+ stateMutability: "view",
3287
+ type: "function"
3288
+ },
3289
+ {
3290
+ inputs: [{ internalType: "address", name: "", type: "address" }],
3291
+ name: "userInfo",
3292
+ outputs: [
3293
+ { internalType: "uint256", name: "shares", type: "uint256" },
3294
+ {
3295
+ internalType: "uint256",
3296
+ name: "lastDepositedTime",
3297
+ type: "uint256"
3298
+ },
3299
+ { internalType: "uint256", name: "cakeAtLastUserAction", type: "uint256" },
3300
+ {
3301
+ internalType: "uint256",
3302
+ name: "lastUserActionTime",
3303
+ type: "uint256"
3304
+ }
3305
+ ],
3306
+ stateMutability: "view",
3307
+ type: "function"
3308
+ },
3309
+ {
3310
+ inputs: [],
3311
+ name: "performanceFee",
3312
+ outputs: [{ internalType: "uint256", name: "", type: "uint256" }],
3313
+ stateMutability: "view",
3314
+ type: "function"
3315
+ }
3316
+ ];
3317
+
3272
3318
  exports.BLOCKS_PER_DAY = BLOCKS_PER_DAY;
3273
3319
  exports.BLOCKS_PER_YEAR = BLOCKS_PER_YEAR;
3274
3320
  exports.BOOSTED_POOLS_CONFIG_BY_CHAIN = BOOSTED_POOLS_CONFIG_BY_CHAIN;
@@ -3287,6 +3333,7 @@ exports.SUPPORTED_CHAIN_IDS = SUPPORTED_CHAIN_IDS;
3287
3333
  exports.UNLOCK_FREE_DURATION = UNLOCK_FREE_DURATION;
3288
3334
  exports.VaultKey = VaultKey;
3289
3335
  exports.cakeFlexibleSideVaultV2ABI = cakeFlexibleSideVaultV2ABI;
3336
+ exports.cakeVaultV1ABI = cakeVaultV1ABI;
3290
3337
  exports.cakeVaultV2ABI = cakeVaultV2ABI;
3291
3338
  exports.checkIsBoostedPool = checkIsBoostedPool;
3292
3339
  exports.fetchFlexibleSideVaultUser = fetchFlexibleSideVaultUser;