@cranberry-money/shared-services 10.1.379 → 10.1.380
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-balances.d.ts","sourceRoot":"","sources":["../src/wallet-balances.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"wallet-balances.d.ts","sourceRoot":"","sources":["../src/wallet-balances.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAEvC,eAAO,MAAM,iBAAiB,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,kEACL,CAAC;AAEpE,MAAM,WAAW,yBAAyB;IAExC,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAAI,WAAW,aAAa,EAAE,MAAM,MAAM,EAAE,SAAS,yBAAyB,kFACb,CAAC;AAEhG,eAAO,MAAM,kBAAkB,GAC7B,WAAW,aAAa,EACxB,WAAW,MAAM,EAAE,EACnB,QAAO,KAAK,GAAG,KAAa,KAC3B,OAAO,CAAC,oBAAoB,CAW9B,CAAC"}
|
package/dist/wallet-balances.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Wallet balance and holdings operations
|
|
3
3
|
*/
|
|
4
|
+
import { getChainName } from '@cranberry-money/shared-constants';
|
|
4
5
|
export const getWalletBalances = (apiClient, uuid) => apiClient.get(`/api/wallets/${uuid}/balances/`);
|
|
5
6
|
/**
|
|
6
7
|
* Get holdings for a specific wallet
|
|
@@ -16,7 +17,7 @@ export const fetchBatchBalances = async (apiClient, addresses, chain = 'ETH') =>
|
|
|
16
17
|
}
|
|
17
18
|
const response = await apiClient.post('/api/wallets/batch-check-balances/', {
|
|
18
19
|
addresses,
|
|
19
|
-
chain,
|
|
20
|
+
chain: getChainName(chain),
|
|
20
21
|
});
|
|
21
22
|
return response.data;
|
|
22
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-balances.js","sourceRoot":"","sources":["../src/wallet-balances.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"wallet-balances.js","sourceRoot":"","sources":["../src/wallet-balances.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAQjE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAAwB,EAAE,IAAY,EAAE,EAAE,CAC1E,SAAS,CAAC,GAAG,CAAmB,gBAAgB,IAAI,YAAY,CAAC,CAAC;AAOpE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAAwB,EAAE,IAAY,EAAE,MAAkC,EAAE,EAAE,CAC9G,SAAS,CAAC,GAAG,CAAmC,gBAAgB,IAAI,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;AAEhG,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,EACrC,SAAwB,EACxB,SAAmB,EACnB,QAAuB,KAAK,EACG,EAAE;IACjC,IAAI,SAAS,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,SAAS,CAAC,IAAI,CAAuB,oCAAoC,EAAE;QAChG,SAAS;QACT,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC;KAC3B,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;AACvB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cranberry-money/shared-services",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.380",
|
|
4
4
|
"description": "Platform-agnostic API services with pure functions and dependency injection. Includes auth, portfolios, assets, countries, sectors, and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"prepublishOnly": "npm run clean && npm run typecheck && npm run build"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cranberry-money/shared-constants": "^8.15.
|
|
33
|
-
"@cranberry-money/shared-types": "^8.22.
|
|
32
|
+
"@cranberry-money/shared-constants": "^8.15.405",
|
|
33
|
+
"@cranberry-money/shared-types": "^8.22.380",
|
|
34
34
|
"axios": "^1.9.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|