@yuants/vendor-aster 0.7.10 → 0.7.12
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 +2 -2
- package/temp/package-deps.json +5 -5
|
@@ -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuants/vendor-aster",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.12",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@yuants/data-interest-rate": "0.1.48",
|
|
21
21
|
"@yuants/transfer": "0.2.39",
|
|
22
22
|
"@yuants/data-quote": "0.2.43",
|
|
23
|
-
"@yuants/exchange": "0.
|
|
23
|
+
"@yuants/exchange": "0.2.0",
|
|
24
24
|
"rxjs": "~7.5.6"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
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": "fd35038a769e8e6c28f5bb162ad14c6ffb0d9b51",
|
|
4
|
+
"apps/vendor-aster/CHANGELOG.md": "88ac388089108200775c7b158018e7fcecdb093c",
|
|
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": "29fa77a546c52b253bf2ff24327e7ccda7578d42",
|
|
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",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"libraries/data-interest-rate/temp/package-deps.json": "cef1e1cb0116ad593c24635684e0cbf03488d67c",
|
|
35
35
|
"libraries/transfer/temp/package-deps.json": "36c58299bd6c841c5ba7252d71881a881570d08c",
|
|
36
36
|
"libraries/data-quote/temp/package-deps.json": "34d079eab44d2bf65e07b112ac2099c6e92a015e",
|
|
37
|
-
"libraries/exchange/temp/package-deps.json": "
|
|
37
|
+
"libraries/exchange/temp/package-deps.json": "3cc8493e0f93738d571c8ea2c23fc54e8b1bc4f3",
|
|
38
38
|
"libraries/extension/temp/package-deps.json": "9569c553c2f9a7d50b70d8f101fc2d3825aaccb9",
|
|
39
39
|
"tools/toolkit/temp/package-deps.json": "23e053490eb8feade23e4d45de4e54883e322711"
|
|
40
40
|
}
|