@xyo-network/wallet-model 3.7.2 → 3.8.1
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/index.d.ts +28 -2
- package/dist/neutral/index.d.ts +28 -2
- package/dist/node/index.d.ts +28 -2
- package/package.json +4 -4
- package/dist/browser/Wallet.d.ts +0 -26
- package/dist/browser/Wallet.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/neutral/Wallet.d.ts +0 -26
- package/dist/neutral/Wallet.d.ts.map +0 -1
- package/dist/neutral/index.d.ts.map +0 -1
- package/dist/node/Wallet.d.ts +0 -26
- package/dist/node/Wallet.d.ts.map +0 -1
- package/dist/node/index.d.ts.map +0 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Hex } from '@xylabs/hex';
|
|
2
|
+
import { AccountInstance, AccountStatic, AccountConfig } from '@xyo-network/account-model';
|
|
3
|
+
import { Mnemonic } from 'ethers';
|
|
4
|
+
|
|
5
|
+
interface WalletInstance extends AccountInstance {
|
|
6
|
+
readonly chainCode: string;
|
|
7
|
+
readonly depth: number;
|
|
8
|
+
readonly derivePath: (path: string) => Promise<WalletInstance>;
|
|
9
|
+
readonly extendedKey: string;
|
|
10
|
+
readonly fingerprint: string;
|
|
11
|
+
readonly index: number;
|
|
12
|
+
readonly mnemonic?: Mnemonic | null;
|
|
13
|
+
readonly neuter: () => WalletInstance;
|
|
14
|
+
readonly parentFingerprint: string;
|
|
15
|
+
readonly path: string | null;
|
|
16
|
+
readonly privateKey: Hex;
|
|
17
|
+
readonly publicKey: Hex;
|
|
18
|
+
}
|
|
19
|
+
interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'create'> {
|
|
20
|
+
create(config: AccountConfig): Promise<T>;
|
|
21
|
+
fromExtendedKey(key: string): Promise<T>;
|
|
22
|
+
fromMnemonic(mnemonic: Mnemonic): Promise<T>;
|
|
23
|
+
fromPhrase(mnemonic: string, path?: string): Promise<T>;
|
|
24
|
+
fromSeed(seed: string | ArrayBufferLike): Promise<T>;
|
|
25
|
+
random(): any;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type { WalletInstance, WalletStatic };
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Hex } from '@xylabs/hex';
|
|
2
|
+
import { AccountInstance, AccountStatic, AccountConfig } from '@xyo-network/account-model';
|
|
3
|
+
import { Mnemonic } from 'ethers';
|
|
4
|
+
|
|
5
|
+
interface WalletInstance extends AccountInstance {
|
|
6
|
+
readonly chainCode: string;
|
|
7
|
+
readonly depth: number;
|
|
8
|
+
readonly derivePath: (path: string) => Promise<WalletInstance>;
|
|
9
|
+
readonly extendedKey: string;
|
|
10
|
+
readonly fingerprint: string;
|
|
11
|
+
readonly index: number;
|
|
12
|
+
readonly mnemonic?: Mnemonic | null;
|
|
13
|
+
readonly neuter: () => WalletInstance;
|
|
14
|
+
readonly parentFingerprint: string;
|
|
15
|
+
readonly path: string | null;
|
|
16
|
+
readonly privateKey: Hex;
|
|
17
|
+
readonly publicKey: Hex;
|
|
18
|
+
}
|
|
19
|
+
interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'create'> {
|
|
20
|
+
create(config: AccountConfig): Promise<T>;
|
|
21
|
+
fromExtendedKey(key: string): Promise<T>;
|
|
22
|
+
fromMnemonic(mnemonic: Mnemonic): Promise<T>;
|
|
23
|
+
fromPhrase(mnemonic: string, path?: string): Promise<T>;
|
|
24
|
+
fromSeed(seed: string | ArrayBufferLike): Promise<T>;
|
|
25
|
+
random(): any;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type { WalletInstance, WalletStatic };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Hex } from '@xylabs/hex';
|
|
2
|
+
import { AccountInstance, AccountStatic, AccountConfig } from '@xyo-network/account-model';
|
|
3
|
+
import { Mnemonic } from 'ethers';
|
|
4
|
+
|
|
5
|
+
interface WalletInstance extends AccountInstance {
|
|
6
|
+
readonly chainCode: string;
|
|
7
|
+
readonly depth: number;
|
|
8
|
+
readonly derivePath: (path: string) => Promise<WalletInstance>;
|
|
9
|
+
readonly extendedKey: string;
|
|
10
|
+
readonly fingerprint: string;
|
|
11
|
+
readonly index: number;
|
|
12
|
+
readonly mnemonic?: Mnemonic | null;
|
|
13
|
+
readonly neuter: () => WalletInstance;
|
|
14
|
+
readonly parentFingerprint: string;
|
|
15
|
+
readonly path: string | null;
|
|
16
|
+
readonly privateKey: Hex;
|
|
17
|
+
readonly publicKey: Hex;
|
|
18
|
+
}
|
|
19
|
+
interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'create'> {
|
|
20
|
+
create(config: AccountConfig): Promise<T>;
|
|
21
|
+
fromExtendedKey(key: string): Promise<T>;
|
|
22
|
+
fromMnemonic(mnemonic: Mnemonic): Promise<T>;
|
|
23
|
+
fromPhrase(mnemonic: string, path?: string): Promise<T>;
|
|
24
|
+
fromSeed(seed: string | ArrayBufferLike): Promise<T>;
|
|
25
|
+
random(): any;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type { WalletInstance, WalletStatic };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/wallet-model",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@xylabs/hex": "^4.5.1",
|
|
33
|
-
"@xyo-network/account-model": "^3.
|
|
33
|
+
"@xyo-network/account-model": "^3.8.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
37
|
-
"@xylabs/tsconfig": "^
|
|
36
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.22",
|
|
37
|
+
"@xylabs/tsconfig": "^5.0.22",
|
|
38
38
|
"ethers": "^6.13.5",
|
|
39
39
|
"typescript": "^5.7.3"
|
|
40
40
|
},
|
package/dist/browser/Wallet.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Hex } from '@xylabs/hex';
|
|
2
|
-
import type { AccountConfig, AccountInstance, AccountStatic } from '@xyo-network/account-model';
|
|
3
|
-
import type { Mnemonic } from 'ethers';
|
|
4
|
-
export interface WalletInstance extends AccountInstance {
|
|
5
|
-
readonly chainCode: string;
|
|
6
|
-
readonly depth: number;
|
|
7
|
-
readonly derivePath: (path: string) => Promise<WalletInstance>;
|
|
8
|
-
readonly extendedKey: string;
|
|
9
|
-
readonly fingerprint: string;
|
|
10
|
-
readonly index: number;
|
|
11
|
-
readonly mnemonic?: Mnemonic | null;
|
|
12
|
-
readonly neuter: () => WalletInstance;
|
|
13
|
-
readonly parentFingerprint: string;
|
|
14
|
-
readonly path: string | null;
|
|
15
|
-
readonly privateKey: Hex;
|
|
16
|
-
readonly publicKey: Hex;
|
|
17
|
-
}
|
|
18
|
-
export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'create'> {
|
|
19
|
-
create(config: AccountConfig): Promise<T>;
|
|
20
|
-
fromExtendedKey(key: string): Promise<T>;
|
|
21
|
-
fromMnemonic(mnemonic: Mnemonic): Promise<T>;
|
|
22
|
-
fromPhrase(mnemonic: string, path?: string): Promise<T>;
|
|
23
|
-
fromSeed(seed: string | ArrayBufferLike): Promise<T>;
|
|
24
|
-
random(): any;
|
|
25
|
-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AM,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,eAAe,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAEpD,MAAM,IAAI,GAAG,CAAA;CACd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
|
package/dist/neutral/Wallet.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Hex } from '@xylabs/hex';
|
|
2
|
-
import type { AccountConfig, AccountInstance, AccountStatic } from '@xyo-network/account-model';
|
|
3
|
-
import type { Mnemonic } from 'ethers';
|
|
4
|
-
export interface WalletInstance extends AccountInstance {
|
|
5
|
-
readonly chainCode: string;
|
|
6
|
-
readonly depth: number;
|
|
7
|
-
readonly derivePath: (path: string) => Promise<WalletInstance>;
|
|
8
|
-
readonly extendedKey: string;
|
|
9
|
-
readonly fingerprint: string;
|
|
10
|
-
readonly index: number;
|
|
11
|
-
readonly mnemonic?: Mnemonic | null;
|
|
12
|
-
readonly neuter: () => WalletInstance;
|
|
13
|
-
readonly parentFingerprint: string;
|
|
14
|
-
readonly path: string | null;
|
|
15
|
-
readonly privateKey: Hex;
|
|
16
|
-
readonly publicKey: Hex;
|
|
17
|
-
}
|
|
18
|
-
export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'create'> {
|
|
19
|
-
create(config: AccountConfig): Promise<T>;
|
|
20
|
-
fromExtendedKey(key: string): Promise<T>;
|
|
21
|
-
fromMnemonic(mnemonic: Mnemonic): Promise<T>;
|
|
22
|
-
fromPhrase(mnemonic: string, path?: string): Promise<T>;
|
|
23
|
-
fromSeed(seed: string | ArrayBufferLike): Promise<T>;
|
|
24
|
-
random(): any;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=Wallet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,EACV,aAAa,EAAE,eAAe,EAAE,aAAa,EAC9C,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEtC,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,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,GAAG,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAA;CACxB;AAED,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,CAAE,SAAQ,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC;IAC/G,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,CAAC,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,eAAe,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAEpD,MAAM,IAAI,GAAG,CAAA;CACd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
|
package/dist/node/Wallet.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Hex } from '@xylabs/hex';
|
|
2
|
-
import type { AccountConfig, AccountInstance, AccountStatic } from '@xyo-network/account-model';
|
|
3
|
-
import type { Mnemonic } from 'ethers';
|
|
4
|
-
export interface WalletInstance extends AccountInstance {
|
|
5
|
-
readonly chainCode: string;
|
|
6
|
-
readonly depth: number;
|
|
7
|
-
readonly derivePath: (path: string) => Promise<WalletInstance>;
|
|
8
|
-
readonly extendedKey: string;
|
|
9
|
-
readonly fingerprint: string;
|
|
10
|
-
readonly index: number;
|
|
11
|
-
readonly mnemonic?: Mnemonic | null;
|
|
12
|
-
readonly neuter: () => WalletInstance;
|
|
13
|
-
readonly parentFingerprint: string;
|
|
14
|
-
readonly path: string | null;
|
|
15
|
-
readonly privateKey: Hex;
|
|
16
|
-
readonly publicKey: Hex;
|
|
17
|
-
}
|
|
18
|
-
export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'create'> {
|
|
19
|
-
create(config: AccountConfig): Promise<T>;
|
|
20
|
-
fromExtendedKey(key: string): Promise<T>;
|
|
21
|
-
fromMnemonic(mnemonic: Mnemonic): Promise<T>;
|
|
22
|
-
fromPhrase(mnemonic: string, path?: string): Promise<T>;
|
|
23
|
-
fromSeed(seed: string | ArrayBufferLike): Promise<T>;
|
|
24
|
-
random(): any;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=Wallet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,KAAK,EACV,aAAa,EAAE,eAAe,EAAE,aAAa,EAC9C,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAEtC,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD,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,GAAG,CAAA;IACxB,QAAQ,CAAC,SAAS,EAAE,GAAG,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