@dripfi/drip-sdk 1.4.10 → 1.4.12

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/dist/PerqSdk.js CHANGED
@@ -48,7 +48,6 @@ class PerqSdk {
48
48
  this.recycler = new RecyclerPackage_1.default(this);
49
49
  this.loyaltyCards = new LoyaltyCardsPackage_1.default(this);
50
50
  this.tokenUtils = new TokenUtilsPackage_1.default(this);
51
- this.tokenUtils = new TokenUtilsPackage_1.default(this);
52
51
  this.user = new UserPackage_1.default(this);
53
52
  this.signHandler = new SignHandlerPackage_1.default(this);
54
53
  this.pools = new PoolsPackage_1.default(this);
@@ -52,7 +52,8 @@ class LitePackage {
52
52
  const tokenContract = new ERC20TokenContract_1.default(fromTokenAddress, this.perqSdk.signer);
53
53
  const decimals = await tokenContract.getPrecission();
54
54
  const parsedAmountToSwapAndDeposit = ethers_1.ethers.utils.parseUnits(amount, decimals);
55
- const swapInfo = await this.perqSdk.perqApi.getSwapInfo(fromTokenAddress, toTokenAddress, parsedAmountToSwapAndDeposit, this.perqSdk.yelayLiteSdk.swapperAddress, ChainId_1.BASE_CHAIN_ID);
55
+ const chainId = await this.perqSdk.signer.getChainId();
56
+ const swapInfo = await this.perqSdk.perqApi.getSwapInfo(fromTokenAddress, toTokenAddress, parsedAmountToSwapAndDeposit, this.perqSdk.yelayLiteSdk.swapperAddress, chainId);
56
57
  const swapArgsStruct = {
57
58
  tokenIn: swapInfo[0].token,
58
59
  swapTarget: swapInfo[0].swapTarget,
@@ -42,6 +42,7 @@ type DeployedProject = {
42
42
  liveUntil: string;
43
43
  liveFrom: string;
44
44
  distributionType: string;
45
+ isHidden: boolean;
45
46
  };
46
47
  export default DeployedProject;
47
48
  export type ProjectBacker = {
@@ -18,4 +18,5 @@ export type ReducedProjectData = {
18
18
  chainIds: number[];
19
19
  isFeatured: boolean;
20
20
  currencies: DepositToken[];
21
+ isHidden: boolean;
21
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dripfi/drip-sdk",
3
- "version": "1.4.10",
3
+ "version": "1.4.12",
4
4
  "description": "Drip SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",