@yaswap/wallet-core 2.8.3 → 2.9.0
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/CHANGELOG.md +21 -0
- package/dist/package.json +16 -16
- package/dist/src/index.d.ts +2 -1
- package/dist/src/store/actions/createWallet.d.ts +2 -1
- package/dist/src/store/actions/createWallet.js +3 -2
- package/dist/src/store/actions/createWallet.js.map +1 -1
- package/dist/src/store/index.d.ts +8 -4
- package/dist/src/store/types.d.ts +1 -0
- package/dist/src/store/types.js.map +1 -1
- package/dist/src/store/utils.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +18 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @yaswap/wallet-core
|
|
2
2
|
|
|
3
|
+
## 2.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Support custom derivation path
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @yaswap/cryptoassets@2.9.0
|
|
13
|
+
- @yaswap/error-parser@2.9.0
|
|
14
|
+
|
|
15
|
+
## 2.8.4
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Use latest CAL v2.9.4
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @yaswap/cryptoassets@2.8.4
|
|
22
|
+
- @yaswap/error-parser@2.8.4
|
|
23
|
+
|
|
3
24
|
## 2.8.3
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yaswap/wallet-core",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.4",
|
|
4
4
|
"description": "Common library for yaswap wallet",
|
|
5
5
|
"repository": "git@github.com:yaswap/wallet-core.git",
|
|
6
6
|
"author": "monokh <mnokhb@gmail.com>",
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
"@uniswap/v2-sdk": "^3.0.1",
|
|
34
34
|
"@unstoppabledomains/resolution": "8.3.1",
|
|
35
35
|
"@xchainjs/xchain-util": "^0.6.0",
|
|
36
|
-
"@yaswap/bitcoin": "2.9.
|
|
37
|
-
"@yaswap/bitcoin-ledger": "2.9.
|
|
38
|
-
"@yaswap/client": "2.9.
|
|
36
|
+
"@yaswap/bitcoin": "2.9.4",
|
|
37
|
+
"@yaswap/bitcoin-ledger": "2.9.4",
|
|
38
|
+
"@yaswap/client": "2.9.4",
|
|
39
39
|
"@yaswap/cryptoassets": "workspace:*",
|
|
40
|
-
"@yaswap/dogecoin": "2.9.
|
|
40
|
+
"@yaswap/dogecoin": "2.9.4",
|
|
41
41
|
"@yaswap/error-parser": "workspace:*",
|
|
42
|
-
"@yaswap/errors": "2.9.
|
|
43
|
-
"@yaswap/evm": "2.9.
|
|
44
|
-
"@yaswap/evm-ledger": "2.9.
|
|
45
|
-
"@yaswap/hw-ledger": "2.9.
|
|
46
|
-
"@yaswap/litecoin": "2.9.
|
|
47
|
-
"@yaswap/near": "2.9.
|
|
48
|
-
"@yaswap/solana": "2.9.
|
|
49
|
-
"@yaswap/terra": "2.9.
|
|
50
|
-
"@yaswap/types": "2.9.
|
|
51
|
-
"@yaswap/utils": "2.9.
|
|
52
|
-
"@yaswap/yacoin": "2.9.
|
|
42
|
+
"@yaswap/errors": "2.9.4",
|
|
43
|
+
"@yaswap/evm": "2.9.4",
|
|
44
|
+
"@yaswap/evm-ledger": "2.9.4",
|
|
45
|
+
"@yaswap/hw-ledger": "2.9.4",
|
|
46
|
+
"@yaswap/litecoin": "2.9.4",
|
|
47
|
+
"@yaswap/near": "2.9.4",
|
|
48
|
+
"@yaswap/solana": "2.9.4",
|
|
49
|
+
"@yaswap/terra": "2.9.4",
|
|
50
|
+
"@yaswap/types": "2.9.4",
|
|
51
|
+
"@yaswap/utils": "2.9.4",
|
|
52
|
+
"@yaswap/yacoin": "2.9.4",
|
|
53
53
|
"amplitude-js": "8.18.2",
|
|
54
54
|
"bignumber.js": "^9.0.2",
|
|
55
55
|
"detect-circular-deps": "^3.0.0",
|
package/dist/src/index.d.ts
CHANGED
|
@@ -520,7 +520,7 @@ declare function setupWallet(options: WalletOptions): {
|
|
|
520
520
|
readonly trackAnalytics: (payload: {
|
|
521
521
|
event: string;
|
|
522
522
|
properties: import("./store/actions").AmplitudeProperties;
|
|
523
|
-
}) => Promise<
|
|
523
|
+
}) => Promise<undefined> | Promise<number>;
|
|
524
524
|
readonly changeActiveNetwork: (payload: {
|
|
525
525
|
network: import("./store/types").Network;
|
|
526
526
|
}) => Promise<void>;
|
|
@@ -550,6 +550,7 @@ declare function setupWallet(options: WalletOptions): {
|
|
|
550
550
|
key: string;
|
|
551
551
|
mnemonic: string;
|
|
552
552
|
imported?: boolean | undefined;
|
|
553
|
+
derivationPath?: string | undefined;
|
|
553
554
|
}) => Promise<import("./store/types").Wallet>;
|
|
554
555
|
readonly disableAssets: (payload: {
|
|
555
556
|
network: import("./store/types").Network;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ActionContext } from '..';
|
|
2
2
|
import { Wallet } from '../types';
|
|
3
|
-
export declare const createWallet: (context: ActionContext, { key, mnemonic, imported }: {
|
|
3
|
+
export declare const createWallet: (context: ActionContext, { key, mnemonic, imported, derivationPath }: {
|
|
4
4
|
key: string;
|
|
5
5
|
mnemonic: string;
|
|
6
6
|
imported?: boolean | undefined;
|
|
7
|
+
derivationPath?: string | undefined;
|
|
7
8
|
}) => Promise<Wallet>;
|
|
@@ -9,12 +9,12 @@ const build_config_1 = tslib_1.__importDefault(require("../../build.config"));
|
|
|
9
9
|
const accounts_1 = require("../../utils/accounts");
|
|
10
10
|
const crypto_1 = require("../../utils/crypto");
|
|
11
11
|
const types_1 = require("../types");
|
|
12
|
-
const createWallet = (context, { key, mnemonic, imported = false }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
12
|
+
const createWallet = (context, { key, mnemonic, imported = false, derivationPath = undefined }) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
13
13
|
const { commit } = (0, __1.rootActionContext)(context);
|
|
14
14
|
const id = (0, uuid_1.v4)();
|
|
15
15
|
const at = Date.now();
|
|
16
16
|
const name = 'Account 1';
|
|
17
|
-
const wallet = { id, name, mnemonic, at, imported };
|
|
17
|
+
const wallet = { id, name, mnemonic, derivationPath, at, imported };
|
|
18
18
|
const { networks, defaultAssets } = build_config_1.default;
|
|
19
19
|
const { encrypted: encryptedWallets, keySalt } = yield (0, crypto_1.encrypt)(JSON.stringify([wallet]), key);
|
|
20
20
|
commit.CREATE_WALLET({ key, keySalt, encryptedWallets, wallet });
|
|
@@ -55,6 +55,7 @@ const createWallet = (context, { key, mnemonic, imported = false }) => tslib_1._
|
|
|
55
55
|
balances: {},
|
|
56
56
|
type: types_1.AccountType.Default,
|
|
57
57
|
index: 0,
|
|
58
|
+
derivationPath: derivationPath ? derivationPath : undefined,
|
|
58
59
|
color: (0, accounts_1.getNextAccountColor)(chainId, 0),
|
|
59
60
|
enabled: true,
|
|
60
61
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createWallet.js","sourceRoot":"","sources":["../../../../src/store/actions/createWallet.ts"],"names":[],"mappings":";;;;AAAA,uDAAmE;AACnE,+BAAoC;AACpC,0BAAsD;AACtD,8EAA6C;AAC7C,mDAA2E;AAC3E,+CAA6C;AAC7C,oCAAwD;AAEjD,MAAM,YAAY,GAAG,CAC1B,OAAsB,EACtB,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"createWallet.js","sourceRoot":"","sources":["../../../../src/store/actions/createWallet.ts"],"names":[],"mappings":";;;;AAAA,uDAAmE;AACnE,+BAAoC;AACpC,0BAAsD;AACtD,8EAA6C;AAC7C,mDAA2E;AAC3E,+CAA6C;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AO,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;gBACzD,MAAM,KAAK,GAAG,IAAA,uBAAQ,EAAC,OAAO,EAAE,sBAAO,CAAC,SAAS,CAAC,CAAC;gBACnD,MAAM,QAAQ,GAAG,IAAA,yBAAc,EAAC;oBAC9B,QAAQ,EAAE,EAAE;oBACZ,OAAO;oBACP,OAAO,EAAE;wBACP,IAAI,EAAE,UAAU,KAAK,CAAC,IAAI,IAAI;wBAC9B,KAAK,EAAE,EAAE;wBACT,KAAK,EAAE,sBAAO,CAAC,SAAS;wBACxB,SAAS,EAAE,EAAE;wBACb,MAAM;wBACN,QAAQ,EAAE,EAAE;wBACZ,IAAI,EAAE,mBAAW,CAAC,OAAO;wBACzB,KAAK,EAAE,CAAC;wBACR,cAAc,EAAE,SAAS,QAAQ,UAAU;wBAC3C,KAAK,EAAE,IAAA,8BAAmB,EAAC,sBAAO,CAAC,SAAS,EAAE,CAAC,CAAC;wBAChD,OAAO,EAAE,IAAI;qBACd;iBACF,CAAC,CAAC;gBACH,MAAM,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;aACrE;QACH,CAAC,CAAA,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAA,CAAC;AAvFW,QAAA,YAAY,gBAuFvB"}
|
|
@@ -519,7 +519,7 @@ declare const store: {
|
|
|
519
519
|
readonly trackAnalytics: (payload: {
|
|
520
520
|
event: string;
|
|
521
521
|
properties: actions.AmplitudeProperties;
|
|
522
|
-
}) => Promise<
|
|
522
|
+
}) => Promise<undefined> | Promise<number>;
|
|
523
523
|
readonly changeActiveNetwork: (payload: {
|
|
524
524
|
network: import("./types").Network;
|
|
525
525
|
}) => Promise<void>;
|
|
@@ -549,6 +549,7 @@ declare const store: {
|
|
|
549
549
|
key: string;
|
|
550
550
|
mnemonic: string;
|
|
551
551
|
imported?: boolean | undefined;
|
|
552
|
+
derivationPath?: string | undefined;
|
|
552
553
|
}) => Promise<import("./types").Wallet>;
|
|
553
554
|
readonly disableAssets: (payload: {
|
|
554
555
|
network: import("./types").Network;
|
|
@@ -2020,7 +2021,7 @@ declare const store: {
|
|
|
2020
2021
|
readonly trackAnalytics: (payload: {
|
|
2021
2022
|
event: string;
|
|
2022
2023
|
properties: actions.AmplitudeProperties;
|
|
2023
|
-
}) => Promise<
|
|
2024
|
+
}) => Promise<undefined> | Promise<number>;
|
|
2024
2025
|
readonly changeActiveNetwork: (payload: {
|
|
2025
2026
|
network: import("./types").Network;
|
|
2026
2027
|
}) => Promise<void>;
|
|
@@ -2050,6 +2051,7 @@ declare const store: {
|
|
|
2050
2051
|
key: string;
|
|
2051
2052
|
mnemonic: string;
|
|
2052
2053
|
imported?: boolean | undefined;
|
|
2054
|
+
derivationPath?: string | undefined;
|
|
2053
2055
|
}) => Promise<import("./types").Wallet>;
|
|
2054
2056
|
readonly disableAssets: (payload: {
|
|
2055
2057
|
network: import("./types").Network;
|
|
@@ -2594,7 +2596,7 @@ declare const store: {
|
|
|
2594
2596
|
readonly trackAnalytics: (payload: {
|
|
2595
2597
|
event: string;
|
|
2596
2598
|
properties: actions.AmplitudeProperties;
|
|
2597
|
-
}) => Promise<
|
|
2599
|
+
}) => Promise<undefined> | Promise<number>;
|
|
2598
2600
|
readonly changeActiveNetwork: (payload: {
|
|
2599
2601
|
network: import("./types").Network;
|
|
2600
2602
|
}) => Promise<void>;
|
|
@@ -2624,6 +2626,7 @@ declare const store: {
|
|
|
2624
2626
|
key: string;
|
|
2625
2627
|
mnemonic: string;
|
|
2626
2628
|
imported?: boolean | undefined;
|
|
2629
|
+
derivationPath?: string | undefined;
|
|
2627
2630
|
}) => Promise<import("./types").Wallet>;
|
|
2628
2631
|
readonly disableAssets: (payload: {
|
|
2629
2632
|
network: import("./types").Network;
|
|
@@ -3344,7 +3347,7 @@ declare const store: {
|
|
|
3344
3347
|
readonly trackAnalytics: (payload: {
|
|
3345
3348
|
event: string;
|
|
3346
3349
|
properties: actions.AmplitudeProperties;
|
|
3347
|
-
}) => Promise<
|
|
3350
|
+
}) => Promise<undefined> | Promise<number>;
|
|
3348
3351
|
readonly changeActiveNetwork: (payload: {
|
|
3349
3352
|
network: import("./types").Network;
|
|
3350
3353
|
}) => Promise<void>;
|
|
@@ -3374,6 +3377,7 @@ declare const store: {
|
|
|
3374
3377
|
key: string;
|
|
3375
3378
|
mnemonic: string;
|
|
3376
3379
|
imported?: boolean | undefined;
|
|
3380
|
+
derivationPath?: string | undefined;
|
|
3377
3381
|
}) => Promise<import("./types").Wallet>;
|
|
3378
3382
|
readonly disableAssets: (payload: {
|
|
3379
3383
|
network: import("./types").Network;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/store/types.ts"],"names":[],"mappings":";;;AAUA,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;AACrB,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/store/types.ts"],"names":[],"mappings":";;;AAUA,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,8BAAmB,CAAA;IACnB,8BAAmB,CAAA;AACrB,CAAC,EAHW,OAAO,GAAP,eAAO,KAAP,eAAO,QAGlB;AAoDD,IAAY,WAMX;AAND,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,yEAA0D,CAAA;IAC1D,4DAA6C,CAAA;IAC7C,iDAAkC,CAAA;IAClC,uCAAwB,CAAA;AAC1B,CAAC,EANW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAMtB;AAmDD,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,yBAAa,CAAA;AACf,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB;AAED,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,8BAAW,CAAA;IACX,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;AACvB,CAAC,EANW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAM1B;AAED,IAAY,gBAgBX;AAhBD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,yEAAqD,CAAA;IACrD,yEAAqD,CAAA;IACrD,2CAAuB,CAAA;IACvB,8CAA0B,CAAA;IAC1B,uDAAmC,CAAA;IACnC,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,2CAAuB,CAAA;IACvB,2CAAuB,CAAA;IACvB,+BAAW,CAAA;IACX,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,iCAAa,CAAA;IACb,yCAAqB,CAAA;AACvB,CAAC,EAhBW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAgB3B;AA6BD,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,qEAAuD,CAAA;IACvD,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;AACnB,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB;AA2DD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,mDAAiC,CAAA;IACjC,+CAA6B,CAAA;AAC/B,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AAuED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;AACvB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
|
|
@@ -25,7 +25,7 @@ export declare function getPrices(baseCurrencies: string[], toCurrency: string):
|
|
|
25
25
|
[x: string]: any;
|
|
26
26
|
}>;
|
|
27
27
|
export declare function getCurrenciesInfo(baseCurrencies: string[]): Promise<CurrenciesInfo>;
|
|
28
|
-
export declare function getPriority(chain: string): 0 | 1 |
|
|
28
|
+
export declare function getPriority(chain: string): 0 | 1 | 2 | 3 | 4 | 5;
|
|
29
29
|
export declare const orderChains: (firstChain: {
|
|
30
30
|
totalFiatBalance: BN;
|
|
31
31
|
nativeAssetMarketCap: BN;
|