@yuants/vendor-aster 0.7.10 → 0.7.11
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/dist/services/accounts/profile.js +1 -6
- package/dist/services/accounts/profile.js.map +1 -1
- package/lib/services/accounts/profile.d.ts.map +1 -1
- package/lib/services/accounts/profile.js +1 -6
- package/lib/services/accounts/profile.js.map +1 -1
- package/package.json +1 -1
- package/temp/package-deps.json +4 -4
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { encodePath } from '@yuants/utils';
|
|
2
|
-
import { getFApiV2Balance } from '../../api/private-api';
|
|
3
2
|
export const getCredentialId = async (credential) => {
|
|
4
|
-
|
|
5
|
-
if (!(accountBalance === null || accountBalance === void 0 ? void 0 : accountBalance[0])) {
|
|
6
|
-
throw new Error('No Account Balance');
|
|
7
|
-
}
|
|
8
|
-
return encodePath('ASTER', accountBalance[0].accountAlias);
|
|
3
|
+
return encodePath('ASTER', credential.address);
|
|
9
4
|
};
|
|
10
5
|
//# sourceMappingURL=profile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../src/services/accounts/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../src/services/accounts/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,EAAE,UAAuB,EAAmB,EAAE;IAChF,OAAO,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;AACjD,CAAC,CAAC","sourcesContent":["import { encodePath } from '@yuants/utils';\nimport { ICredential } from '../../api/private-api';\n\nexport const getCredentialId = async (credential: ICredential): Promise<string> => {\n return encodePath('ASTER', credential.address);\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/services/accounts/profile.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/services/accounts/profile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,eAAO,MAAM,eAAe,eAAsB,WAAW,KAAG,QAAQ,MAAM,CAE7E,CAAC"}
|
|
@@ -2,13 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCredentialId = void 0;
|
|
4
4
|
const utils_1 = require("@yuants/utils");
|
|
5
|
-
const private_api_1 = require("../../api/private-api");
|
|
6
5
|
const getCredentialId = async (credential) => {
|
|
7
|
-
|
|
8
|
-
if (!(accountBalance === null || accountBalance === void 0 ? void 0 : accountBalance[0])) {
|
|
9
|
-
throw new Error('No Account Balance');
|
|
10
|
-
}
|
|
11
|
-
return (0, utils_1.encodePath)('ASTER', accountBalance[0].accountAlias);
|
|
6
|
+
return (0, utils_1.encodePath)('ASTER', credential.address);
|
|
12
7
|
};
|
|
13
8
|
exports.getCredentialId = getCredentialId;
|
|
14
9
|
//# sourceMappingURL=profile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../src/services/accounts/profile.ts"],"names":[],"mappings":";;;AAAA,yCAA2C;
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../src/services/accounts/profile.ts"],"names":[],"mappings":";;;AAAA,yCAA2C;AAGpC,MAAM,eAAe,GAAG,KAAK,EAAE,UAAuB,EAAmB,EAAE;IAChF,OAAO,IAAA,kBAAU,EAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;AACjD,CAAC,CAAC;AAFW,QAAA,eAAe,mBAE1B","sourcesContent":["import { encodePath } from '@yuants/utils';\nimport { ICredential } from '../../api/private-api';\n\nexport const getCredentialId = async (credential: ICredential): Promise<string> => {\n return encodePath('ASTER', credential.address);\n};\n"]}
|
package/package.json
CHANGED
package/temp/package-deps.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"apps/vendor-aster/AGENTS.md": "dcd006d19a5c3b73081525d7c0afea68cd6d058b",
|
|
3
|
-
"apps/vendor-aster/CHANGELOG.json": "
|
|
4
|
-
"apps/vendor-aster/CHANGELOG.md": "
|
|
3
|
+
"apps/vendor-aster/CHANGELOG.json": "d76b335d89336c4f84656320d4ac67f62a873aca",
|
|
4
|
+
"apps/vendor-aster/CHANGELOG.md": "311ebf830c95952cbd87e42c6465455a95fd32ad",
|
|
5
5
|
"apps/vendor-aster/SESSION_NOTES.md": "f54c13cf4182d8a5e720f6db5d3acc323655ea49",
|
|
6
6
|
"apps/vendor-aster/config/jest.config.json": "4bb17bde3ee911163a3edb36a6eb71491d80b1bd",
|
|
7
7
|
"apps/vendor-aster/config/rig.json": "f6c7b5537dc77a3170ba9f008bae3b6c3ee11956",
|
|
8
8
|
"apps/vendor-aster/config/typescript.json": "854907e8a821f2050f6533368db160c649c25348",
|
|
9
|
-
"apps/vendor-aster/package.json": "
|
|
9
|
+
"apps/vendor-aster/package.json": "6282a0e10461769d971838446f6548d4b92e396d",
|
|
10
10
|
"apps/vendor-aster/src/api/private-api.ts": "2987cb0d1d0f6aac6ec8257696da1e755f15bc3b",
|
|
11
11
|
"apps/vendor-aster/src/api/public-api.ts": "bfc642fff0ae31319c23e198f365a4a3372d4b10",
|
|
12
12
|
"apps/vendor-aster/src/index.ts": "509ef4c18ec2deb8a6e11ed5682334433cb2bcb2",
|
|
13
13
|
"apps/vendor-aster/src/services/accounts/perp.ts": "4bdb41564394f1ddc9a1516a66a66c56d00d4581",
|
|
14
|
-
"apps/vendor-aster/src/services/accounts/profile.ts": "
|
|
14
|
+
"apps/vendor-aster/src/services/accounts/profile.ts": "fc57e7d2c865790dd257c043c8dd5cf5c641b7fd",
|
|
15
15
|
"apps/vendor-aster/src/services/accounts/spot.ts": "d612814726080714af3cbe3deeaa3f57e109aaf9",
|
|
16
16
|
"apps/vendor-aster/src/services/exchange.ts": "4cdd15bfff1d1e4b1aceda287af6b280d088ccee",
|
|
17
17
|
"apps/vendor-aster/src/services/markets/interest_rate.ts": "b8a43085be3632fe0afe00502c509b5984ab9cd3",
|