@dripfi/drip-sdk 1.3.7 → 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/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>>;