@dripfi/drip-sdk 1.3.7 → 1.3.9

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/.prettierrc ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "semi": true,
3
+ "bracketSpacing": true,
4
+ "bracketSameLine": false,
5
+ "singleQuote": true,
6
+ "trailingComma": "all",
7
+ "tabWidth": 3,
8
+ "printWidth": 120,
9
+ "useTabs": true
10
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
3
+ }
@@ -1,17 +1,12 @@
1
1
  {
2
- "editor.defaultFormatter": "dbaeumer.vscode-eslint",
3
- "editor.codeActionsOnSave": {
4
- "source.fixAll.eslint": "explicit"
5
- },
6
- "editor.formatOnSave": true,
7
- "[javascript]": {
8
- "editor.defaultFormatter": "dbaeumer.vscode-eslint"
9
- },
10
- "[typescript]": {
11
- "editor.defaultFormatter": "dbaeumer.vscode-eslint"
12
- },
13
- "eslint.workingDirectories": [
14
- {"directory": "./src", "changeProcessCWD": true},
15
- ]
16
- }
17
-
2
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
3
+ "editor.formatOnType": false, // required
4
+ "editor.formatOnPaste": true, // optional
5
+ "editor.formatOnSave": true, // optional
6
+ "editor.formatOnSaveMode": "file", // required to format on save
7
+ "files.autoSave": "onFocusChange", // optional but recommended
8
+ "vs-code-prettier-eslint.prettierLast": false,
9
+ "[typescript]": {
10
+ "editor.defaultFormatter": "esbenp.prettier-vscode"
11
+ } // set as "true" to run 'prettier' last not first
12
+ }
package/CHANGELOG.md CHANGED
@@ -1,12 +1,24 @@
1
1
  # Changelog
2
+
2
3
  All notable changes to the Drip SDK will be documented in this file.
3
4
 
4
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
7
 
7
8
  ## [1.3.7] - 2025-01-15
9
+
8
10
  ### Added
11
+
9
12
  - Changelog was added
10
13
 
11
14
  ### Changed
12
- - renamed the property `withdrawableBalance` to `claimableBalance` in the type `UserVaultBalance`
15
+
16
+ - renamed the property `withdrawableBalance` to `claimableBalance` in the type `UserVaultBalance`
17
+
18
+ ## [1.3.8] - 2025-01-22
19
+
20
+ ### Changed
21
+
22
+ - updated `MyPerqData` type structure to inherit from `Vault` type
23
+ - adjusted method return type of `getMyPerqBalance` in the `DripSdk` to return `MyPerqData[]` instead of `MyPerqData`
24
+ - adjusted method return types of `fetchMyPerqData` in the `DripApi` to return `MyPerqData[]` instead of `MyPerqData`
package/dist/DripApi.d.ts CHANGED
@@ -38,7 +38,7 @@ export default class DripApi {
38
38
  fetchOwnedLoyaltyCard(walletAddress: string): Promise<LoyaltyCard>;
39
39
  fetchBeansBalance(walletAddress: string): Promise<BeansBalance>;
40
40
  upgradeLoyaltyCard(signedPayload: NonceEnrichedSignedPayload<UpgradeLoyaltyCardPayload>): Promise<LoyaltyCard>;
41
- fetchMyPerqData(userAddress: string): Promise<MyPerqData>;
41
+ fetchMyPerqData(userAddress: string): Promise<MyPerqData[]>;
42
42
  getSwapPerqForBeansInfo(): Promise<PerqToBeansSwapInfo>;
43
43
  fetchBeansHistory(walletAddress: string): Promise<BeanEntry[]>;
44
44
  getNonceEnrichedPayload<T>(payload: T): Promise<NonceEnrichedPayload<T>>;