@dripfi/drip-sdk 1.3.6 → 1.3.8

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
+ }
@@ -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 ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+ All notable changes to the Drip SDK will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [1.3.7] - 2025-01-15
8
+ ### Added
9
+ - Changelog was added
10
+
11
+ ### Changed
12
+ - renamed the property `withdrawableBalance` to `claimableBalance` in the type `UserVaultBalance`
package/README.md CHANGED
@@ -321,7 +321,7 @@ type UserVaultBalance = {
321
321
  userBalance: string
322
322
  pendingUserBalance: string
323
323
  pendingWithdrawalBalance: string
324
- withdrawableBalance: string
324
+ claimableBalance: string
325
325
  };
326
326
 
327
327
 
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>>;