@dripfi/drip-sdk 1.4.1 → 1.4.2

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/CHANGELOG.md CHANGED
@@ -66,3 +66,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
66
  ### Added
67
67
 
68
68
  - The properites `rewardTooltipName` was added to the `DeployedProject` type
69
+
70
+ ## [1.4.2] - 2025-01-29
71
+
72
+ ### Changed
73
+
74
+ - Export the `PerqConfig` from index.ts like recommended
package/README.md CHANGED
@@ -330,21 +330,32 @@ type NFTBoost = {
330
330
  imagePath: string;
331
331
  };
332
332
 
333
- export type BasePayload<T> = {
333
+ type BasePayload<T> = {
334
334
  payload: T;
335
335
  };
336
336
 
337
- export type NonceEnrichedPayload<T> = T & {
337
+ type NonceEnrichedPayload<T> = T & {
338
338
  deadline: number;
339
339
  signature: string;
340
340
  };
341
341
 
342
- export type NonceEnrichedSignedPayload<T> = {
342
+ type NonceEnrichedSignedPayload<T> = {
343
343
  signature: string;
344
344
  signerAddress: string;
345
345
  payload: NonceEnrichedPayload<T>;
346
346
  };
347
347
 
348
+ type PerqConfig = {
349
+ route: string;
350
+ spoolSdkConfig: SDKConfig;
351
+ perqTokenAddress: string;
352
+ perqTokenRecyclerAddress: string;
353
+ perqSwapAndRecyclerAddress: string;
354
+ perqVestingAddress: string;
355
+ swapAndDepositContractAddress: string;
356
+ smartVaultManagerContractAddress: string;
357
+ };
358
+
348
359
  type PerqToBeansSwapInfo = {
349
360
  perqPrice: number;
350
361
  price: number;
package/dist/PerqSdk.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { BigNumber, Signer } from 'ethers';
2
2
  import { Vault, UserRewards, VaultStats, UserVaultBalance, LoyaltyCard, NonceEnrichedSignedPayload, MyPerqData, BeansBalance, BeanEntry, PerqToBeansSwapInfo, VestingInfo } from './types';
3
- import { PerqConfig } from './types/PerqConfig';
3
+ import { PerqConfig } from './types/index';
4
4
  export default class PerqSdk {
5
5
  private perqApi;
6
6
  private perqConfig;
@@ -1,5 +1,5 @@
1
1
  import { SDKConfig } from '@spool.fi/spool-v2-sdk';
2
- export type PerqConfig = {
2
+ type PerqConfig = {
3
3
  route: string;
4
4
  spoolSdkConfig: SDKConfig;
5
5
  perqTokenAddress: string;
@@ -9,5 +9,6 @@ export type PerqConfig = {
9
9
  swapAndDepositContractAddress: string;
10
10
  smartVaultManagerContractAddress: string;
11
11
  };
12
+ export default PerqConfig;
12
13
  export declare const PRODUCTION: PerqConfig;
13
14
  export declare const DEVELOPMENT: PerqConfig;
@@ -8,6 +8,7 @@ import ELoyaltyCardTier from './ELoyaltyCardTier';
8
8
  import LoyaltyCard from './LoyaltyCard';
9
9
  import MyPerqData from './MyPerqData';
10
10
  import NFTBoost from './NFTBoost';
11
+ import PerqConfig from './PerqConfig';
11
12
  import PerqToBeansSwapInfo from './PerqToBeansSwapInfo';
12
13
  import QLFastRedeem from './QLFastRedeem';
13
14
  import { BasePayload, NonceEnrichedPayload, NonceEnrichedSignedPayload } from './SignedPayload';
@@ -23,4 +24,4 @@ import VaultStats from './VaultStats';
23
24
  import VaultType from './VaultType';
24
25
  import VestingInfo from './VestingInfo';
25
26
  import YelayVersion from './YelayVersion';
26
- export { Asset, BasePayload, BeanEntry, BeansBalance, DeployedProject, DeployedVault, DepositToken, ELoyaltyCardTier, LoyaltyCard, MyPerqData, NFTBoost, NonceEnrichedPayload, NonceEnrichedSignedPayload, PerqToBeansSwapInfo, ProjectBacker, QLFastRedeem, RewardType, Strategy, StretchGoal, SwapInfo, UpgradeLoyaltyCardPayload, UserRewards, UserVaultBalance, Vault, VaultReward, VaultStats, VaultType, VestingInfo, YelayVersion, };
27
+ export { Asset, BasePayload, BeanEntry, BeansBalance, DeployedProject, DeployedVault, DepositToken, ELoyaltyCardTier, LoyaltyCard, MyPerqData, NFTBoost, NonceEnrichedPayload, NonceEnrichedSignedPayload, PerqConfig, PerqToBeansSwapInfo, ProjectBacker, QLFastRedeem, RewardType, Strategy, StretchGoal, SwapInfo, UpgradeLoyaltyCardPayload, UserRewards, UserVaultBalance, Vault, VaultReward, VaultStats, VaultType, VestingInfo, YelayVersion, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dripfi/drip-sdk",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Drip SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",