@xyo-network/wallet-model 2.81.3 → 2.81.5
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/browser/Wallet.d.cts +6 -10
- package/dist/browser/Wallet.d.cts.map +1 -1
- package/dist/browser/Wallet.d.mts +6 -10
- package/dist/browser/Wallet.d.mts.map +1 -1
- package/dist/browser/Wallet.d.ts +6 -10
- package/dist/browser/Wallet.d.ts.map +1 -1
- package/dist/node/Wallet.d.cts +6 -10
- package/dist/node/Wallet.d.cts.map +1 -1
- package/dist/node/Wallet.d.mts +6 -10
- package/dist/node/Wallet.d.mts.map +1 -1
- package/dist/node/Wallet.d.ts +6 -10
- package/dist/node/Wallet.d.ts.map +1 -1
- package/package.json +2 -3
- package/src/Wallet.ts +6 -10
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { HDNode } from '@ethersproject/hdnode';
|
|
2
1
|
import { AccountInstance, AccountStatic } from '@xyo-network/account-model';
|
|
3
|
-
|
|
4
|
-
readonly locale: string;
|
|
5
|
-
readonly path: string;
|
|
6
|
-
readonly phrase: string;
|
|
7
|
-
}
|
|
2
|
+
import type { HDNodeWallet, Mnemonic } from 'ethers';
|
|
8
3
|
export interface WalletInstance extends AccountInstance {
|
|
9
4
|
readonly address: string;
|
|
10
5
|
readonly chainCode: string;
|
|
@@ -13,17 +8,18 @@ export interface WalletInstance extends AccountInstance {
|
|
|
13
8
|
readonly extendedKey: string;
|
|
14
9
|
readonly fingerprint: string;
|
|
15
10
|
readonly index: number;
|
|
16
|
-
readonly mnemonic?: Mnemonic |
|
|
11
|
+
readonly mnemonic?: Mnemonic | null;
|
|
17
12
|
readonly neuter: () => WalletInstance;
|
|
18
13
|
readonly parentFingerprint: string;
|
|
19
|
-
readonly path: string;
|
|
14
|
+
readonly path: string | null;
|
|
20
15
|
readonly privateKey: string;
|
|
21
16
|
readonly publicKey: string;
|
|
22
17
|
}
|
|
23
18
|
export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'new'> {
|
|
24
|
-
new (key: unknown, node:
|
|
19
|
+
new (key: unknown, node: HDNodeWallet): T;
|
|
25
20
|
fromExtendedKey(key: string): Promise<T>;
|
|
26
|
-
fromMnemonic(mnemonic:
|
|
21
|
+
fromMnemonic(mnemonic: Mnemonic): Promise<T>;
|
|
22
|
+
fromPhrase(mnemonic: string, path?: string): Promise<T>;
|
|
27
23
|
fromSeed(seed: string | Uint8Array): Promise<T>;
|
|
28
24
|
random(): any;
|
|
29
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEpD,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAA;IAC9D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAA;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,cAAc,CAAA;IACrC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,CAAE,SAAQ,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;IAC5G,KAAK,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,GAAG,CAAC,CAAA;IACzC,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IACxC,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAC5C,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IACvD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAE/C,MAAM,IAAI,GAAG,CAAA;CACd"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { HDNode } from '@ethersproject/hdnode';
|
|
2
1
|
import { AccountInstance, AccountStatic } from '@xyo-network/account-model';
|
|
3
|
-
|
|
4
|
-
readonly locale: string;
|
|
5
|
-
readonly path: string;
|
|
6
|
-
readonly phrase: string;
|
|
7
|
-
}
|
|
2
|
+
import type { HDNodeWallet, Mnemonic } from 'ethers';
|
|
8
3
|
export interface WalletInstance extends AccountInstance {
|
|
9
4
|
readonly address: string;
|
|
10
5
|
readonly chainCode: string;
|
|
@@ -13,17 +8,18 @@ export interface WalletInstance extends AccountInstance {
|
|
|
13
8
|
readonly extendedKey: string;
|
|
14
9
|
readonly fingerprint: string;
|
|
15
10
|
readonly index: number;
|
|
16
|
-
readonly mnemonic?: Mnemonic |
|
|
11
|
+
readonly mnemonic?: Mnemonic | null;
|
|
17
12
|
readonly neuter: () => WalletInstance;
|
|
18
13
|
readonly parentFingerprint: string;
|
|
19
|
-
readonly path: string;
|
|
14
|
+
readonly path: string | null;
|
|
20
15
|
readonly privateKey: string;
|
|
21
16
|
readonly publicKey: string;
|
|
22
17
|
}
|
|
23
18
|
export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'new'> {
|
|
24
|
-
new (key: unknown, node:
|
|
19
|
+
new (key: unknown, node: HDNodeWallet): T;
|
|
25
20
|
fromExtendedKey(key: string): Promise<T>;
|
|
26
|
-
fromMnemonic(mnemonic:
|
|
21
|
+
fromMnemonic(mnemonic: Mnemonic): Promise<T>;
|
|
22
|
+
fromPhrase(mnemonic: string, path?: string): Promise<T>;
|
|
27
23
|
fromSeed(seed: string | Uint8Array): Promise<T>;
|
|
28
24
|
random(): any;
|
|
29
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEpD,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAA;IAC9D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAA;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,cAAc,CAAA;IACrC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,CAAE,SAAQ,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;IAC5G,KAAK,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,GAAG,CAAC,CAAA;IACzC,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IACxC,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAC5C,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IACvD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAE/C,MAAM,IAAI,GAAG,CAAA;CACd"}
|
package/dist/browser/Wallet.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { HDNode } from '@ethersproject/hdnode';
|
|
2
1
|
import { AccountInstance, AccountStatic } from '@xyo-network/account-model';
|
|
3
|
-
|
|
4
|
-
readonly locale: string;
|
|
5
|
-
readonly path: string;
|
|
6
|
-
readonly phrase: string;
|
|
7
|
-
}
|
|
2
|
+
import type { HDNodeWallet, Mnemonic } from 'ethers';
|
|
8
3
|
export interface WalletInstance extends AccountInstance {
|
|
9
4
|
readonly address: string;
|
|
10
5
|
readonly chainCode: string;
|
|
@@ -13,17 +8,18 @@ export interface WalletInstance extends AccountInstance {
|
|
|
13
8
|
readonly extendedKey: string;
|
|
14
9
|
readonly fingerprint: string;
|
|
15
10
|
readonly index: number;
|
|
16
|
-
readonly mnemonic?: Mnemonic |
|
|
11
|
+
readonly mnemonic?: Mnemonic | null;
|
|
17
12
|
readonly neuter: () => WalletInstance;
|
|
18
13
|
readonly parentFingerprint: string;
|
|
19
|
-
readonly path: string;
|
|
14
|
+
readonly path: string | null;
|
|
20
15
|
readonly privateKey: string;
|
|
21
16
|
readonly publicKey: string;
|
|
22
17
|
}
|
|
23
18
|
export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'new'> {
|
|
24
|
-
new (key: unknown, node:
|
|
19
|
+
new (key: unknown, node: HDNodeWallet): T;
|
|
25
20
|
fromExtendedKey(key: string): Promise<T>;
|
|
26
|
-
fromMnemonic(mnemonic:
|
|
21
|
+
fromMnemonic(mnemonic: Mnemonic): Promise<T>;
|
|
22
|
+
fromPhrase(mnemonic: string, path?: string): Promise<T>;
|
|
27
23
|
fromSeed(seed: string | Uint8Array): Promise<T>;
|
|
28
24
|
random(): any;
|
|
29
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEpD,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAA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1,5 @@
|
|
|
1
|
-
import type { HDNode } from '@ethersproject/hdnode';
|
|
2
1
|
import { AccountInstance, AccountStatic } from '@xyo-network/account-model';
|
|
3
|
-
|
|
4
|
-
readonly locale: string;
|
|
5
|
-
readonly path: string;
|
|
6
|
-
readonly phrase: string;
|
|
7
|
-
}
|
|
2
|
+
import type { HDNodeWallet, Mnemonic } from 'ethers';
|
|
8
3
|
export interface WalletInstance extends AccountInstance {
|
|
9
4
|
readonly address: string;
|
|
10
5
|
readonly chainCode: string;
|
|
@@ -13,17 +8,18 @@ export interface WalletInstance extends AccountInstance {
|
|
|
13
8
|
readonly extendedKey: string;
|
|
14
9
|
readonly fingerprint: string;
|
|
15
10
|
readonly index: number;
|
|
16
|
-
readonly mnemonic?: Mnemonic |
|
|
11
|
+
readonly mnemonic?: Mnemonic | null;
|
|
17
12
|
readonly neuter: () => WalletInstance;
|
|
18
13
|
readonly parentFingerprint: string;
|
|
19
|
-
readonly path: string;
|
|
14
|
+
readonly path: string | null;
|
|
20
15
|
readonly privateKey: string;
|
|
21
16
|
readonly publicKey: string;
|
|
22
17
|
}
|
|
23
18
|
export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'new'> {
|
|
24
|
-
new (key: unknown, node:
|
|
19
|
+
new (key: unknown, node: HDNodeWallet): T;
|
|
25
20
|
fromExtendedKey(key: string): Promise<T>;
|
|
26
|
-
fromMnemonic(mnemonic:
|
|
21
|
+
fromMnemonic(mnemonic: Mnemonic): Promise<T>;
|
|
22
|
+
fromPhrase(mnemonic: string, path?: string): Promise<T>;
|
|
27
23
|
fromSeed(seed: string | Uint8Array): Promise<T>;
|
|
28
24
|
random(): any;
|
|
29
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/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,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IACvD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAE/C,MAAM,IAAI,GAAG,CAAA;CACd"}
|
package/dist/node/Wallet.d.mts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { HDNode } from '@ethersproject/hdnode';
|
|
2
1
|
import { AccountInstance, AccountStatic } from '@xyo-network/account-model';
|
|
3
|
-
|
|
4
|
-
readonly locale: string;
|
|
5
|
-
readonly path: string;
|
|
6
|
-
readonly phrase: string;
|
|
7
|
-
}
|
|
2
|
+
import type { HDNodeWallet, Mnemonic } from 'ethers';
|
|
8
3
|
export interface WalletInstance extends AccountInstance {
|
|
9
4
|
readonly address: string;
|
|
10
5
|
readonly chainCode: string;
|
|
@@ -13,17 +8,18 @@ export interface WalletInstance extends AccountInstance {
|
|
|
13
8
|
readonly extendedKey: string;
|
|
14
9
|
readonly fingerprint: string;
|
|
15
10
|
readonly index: number;
|
|
16
|
-
readonly mnemonic?: Mnemonic |
|
|
11
|
+
readonly mnemonic?: Mnemonic | null;
|
|
17
12
|
readonly neuter: () => WalletInstance;
|
|
18
13
|
readonly parentFingerprint: string;
|
|
19
|
-
readonly path: string;
|
|
14
|
+
readonly path: string | null;
|
|
20
15
|
readonly privateKey: string;
|
|
21
16
|
readonly publicKey: string;
|
|
22
17
|
}
|
|
23
18
|
export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'new'> {
|
|
24
|
-
new (key: unknown, node:
|
|
19
|
+
new (key: unknown, node: HDNodeWallet): T;
|
|
25
20
|
fromExtendedKey(key: string): Promise<T>;
|
|
26
|
-
fromMnemonic(mnemonic:
|
|
21
|
+
fromMnemonic(mnemonic: Mnemonic): Promise<T>;
|
|
22
|
+
fromPhrase(mnemonic: string, path?: string): Promise<T>;
|
|
27
23
|
fromSeed(seed: string | Uint8Array): Promise<T>;
|
|
28
24
|
random(): any;
|
|
29
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEpD,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAA;IAC9D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAA;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,cAAc,CAAA;IACrC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,CAAE,SAAQ,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;IAC5G,KAAK,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,GAAG,CAAC,CAAA;IACzC,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IACxC,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAC5C,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IACvD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAE/C,MAAM,IAAI,GAAG,CAAA;CACd"}
|
package/dist/node/Wallet.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { HDNode } from '@ethersproject/hdnode';
|
|
2
1
|
import { AccountInstance, AccountStatic } from '@xyo-network/account-model';
|
|
3
|
-
|
|
4
|
-
readonly locale: string;
|
|
5
|
-
readonly path: string;
|
|
6
|
-
readonly phrase: string;
|
|
7
|
-
}
|
|
2
|
+
import type { HDNodeWallet, Mnemonic } from 'ethers';
|
|
8
3
|
export interface WalletInstance extends AccountInstance {
|
|
9
4
|
readonly address: string;
|
|
10
5
|
readonly chainCode: string;
|
|
@@ -13,17 +8,18 @@ export interface WalletInstance extends AccountInstance {
|
|
|
13
8
|
readonly extendedKey: string;
|
|
14
9
|
readonly fingerprint: string;
|
|
15
10
|
readonly index: number;
|
|
16
|
-
readonly mnemonic?: Mnemonic |
|
|
11
|
+
readonly mnemonic?: Mnemonic | null;
|
|
17
12
|
readonly neuter: () => WalletInstance;
|
|
18
13
|
readonly parentFingerprint: string;
|
|
19
|
-
readonly path: string;
|
|
14
|
+
readonly path: string | null;
|
|
20
15
|
readonly privateKey: string;
|
|
21
16
|
readonly publicKey: string;
|
|
22
17
|
}
|
|
23
18
|
export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'new'> {
|
|
24
|
-
new (key: unknown, node:
|
|
19
|
+
new (key: unknown, node: HDNodeWallet): T;
|
|
25
20
|
fromExtendedKey(key: string): Promise<T>;
|
|
26
|
-
fromMnemonic(mnemonic:
|
|
21
|
+
fromMnemonic(mnemonic: Mnemonic): Promise<T>;
|
|
22
|
+
fromPhrase(mnemonic: string, path?: string): Promise<T>;
|
|
27
23
|
fromSeed(seed: string | Uint8Array): Promise<T>;
|
|
28
24
|
random(): any;
|
|
29
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEpD,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAA;IAC9D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAA;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,cAAc,CAAA;IACrC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,CAAE,SAAQ,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;IAC5G,KAAK,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,GAAG,CAAC,CAAA;IACzC,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IACxC,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAC5C,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IACvD,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAE/C,MAAM,IAAI,GAAG,CAAA;CACd"}
|
package/package.json
CHANGED
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@
|
|
15
|
-
"@xyo-network/account-model": "~2.81.3"
|
|
14
|
+
"@xyo-network/account-model": "~2.81.5"
|
|
16
15
|
},
|
|
17
16
|
"devDependencies": {
|
|
18
17
|
"@xylabs/ts-scripts-yarn3": "^3.2.8",
|
|
@@ -58,5 +57,5 @@
|
|
|
58
57
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
|
|
59
58
|
},
|
|
60
59
|
"sideEffects": false,
|
|
61
|
-
"version": "2.81.
|
|
60
|
+
"version": "2.81.5"
|
|
62
61
|
}
|
package/src/Wallet.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { HDNode } from '@ethersproject/hdnode'
|
|
2
1
|
import { AccountInstance, AccountStatic } from '@xyo-network/account-model'
|
|
3
|
-
|
|
4
|
-
readonly locale: string
|
|
5
|
-
readonly path: string
|
|
6
|
-
readonly phrase: string
|
|
7
|
-
}
|
|
2
|
+
import type { HDNodeWallet, Mnemonic } from 'ethers'
|
|
8
3
|
|
|
9
4
|
export interface WalletInstance extends AccountInstance {
|
|
10
5
|
readonly address: string
|
|
@@ -14,18 +9,19 @@ export interface WalletInstance extends AccountInstance {
|
|
|
14
9
|
readonly extendedKey: string
|
|
15
10
|
readonly fingerprint: string
|
|
16
11
|
readonly index: number
|
|
17
|
-
readonly mnemonic?: Mnemonic |
|
|
12
|
+
readonly mnemonic?: Mnemonic | null
|
|
18
13
|
readonly neuter: () => WalletInstance
|
|
19
14
|
readonly parentFingerprint: string
|
|
20
|
-
readonly path: string
|
|
15
|
+
readonly path: string | null
|
|
21
16
|
readonly privateKey: string
|
|
22
17
|
readonly publicKey: string
|
|
23
18
|
}
|
|
24
19
|
|
|
25
20
|
export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'new'> {
|
|
26
|
-
new (key: unknown, node:
|
|
21
|
+
new (key: unknown, node: HDNodeWallet): T
|
|
27
22
|
fromExtendedKey(key: string): Promise<T>
|
|
28
|
-
fromMnemonic(mnemonic:
|
|
23
|
+
fromMnemonic(mnemonic: Mnemonic): Promise<T>
|
|
24
|
+
fromPhrase(mnemonic: string, path?: string): Promise<T>
|
|
29
25
|
fromSeed(seed: string | Uint8Array): Promise<T>
|
|
30
26
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
31
27
|
random(): any
|