@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 +10 -0
- package/.vscode/extensions.json +3 -0
- package/.vscode/settings.json +11 -16
- package/CHANGELOG.md +13 -1
- package/dist/DripApi.d.ts +1 -1
- package/dist/DripApi.js +303 -365
- package/dist/DripConfig.js +26 -31
- package/dist/DripSdk.d.ts +1 -1
- package/dist/DripSdk.js +481 -594
- package/dist/abi/index.d.ts +75 -0
- package/dist/abi/index.js +17 -0
- package/dist/contracts/BaseDripContract.js +1 -0
- package/dist/contracts/DripSwapAndRecyclerContract.js +12 -25
- package/dist/contracts/DripTokenContract.js +11 -24
- package/dist/contracts/DripTokenRecyclerContract.js +6 -17
- package/dist/contracts/PerqVestingContract.js +42 -65
- package/dist/index.d.ts +12 -6
- package/dist/index.js +9 -6
- package/dist/types/MyPerqData.d.ts +11 -39
- package/eslint.config.mjs +43 -0
- package/package.json +27 -23
- package/.eslintrc.json +0 -38
- package/dist/test.d.ts +0 -2
- package/dist/test.js +0 -92
- package/dist/utils.d.ts +0 -1
- package/dist/utils.js +0 -13
- /package/dist/{contracts/abi → abi}/DripSwapAndRecyclerAbi.json +0 -0
- /package/dist/{contracts/abi → abi}/DripTokenAbi.json +0 -0
- /package/dist/{contracts/abi → abi}/PerqVestingAbi.json +0 -0
- /package/dist/{contracts/abi → abi}/TokenRecyclerAbi.json +0 -0
- /package/dist/{contracts/abi → abi}/WethTokenAbi.json +0 -0
package/.prettierrc
ADDED
package/.vscode/settings.json
CHANGED
@@ -1,17 +1,12 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
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>>;
|