@xyo-network/wallet-model 2.62.2 → 2.63.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/dist/docs.json +441 -178
- package/dist/types/Wallet.d.ts +3 -4
- package/dist/types/Wallet.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/Wallet.ts +3 -4
package/dist/types/Wallet.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export interface WalletInstance extends AccountInstance {
|
|
|
8
8
|
readonly address: string;
|
|
9
9
|
readonly chainCode: string;
|
|
10
10
|
readonly depth: number;
|
|
11
|
-
readonly derivePath: (path: string) => WalletInstance;
|
|
12
11
|
readonly extendedKey: string;
|
|
13
12
|
readonly fingerprint: string;
|
|
14
13
|
readonly index: number;
|
|
@@ -20,8 +19,8 @@ export interface WalletInstance extends AccountInstance {
|
|
|
20
19
|
readonly publicKey: string;
|
|
21
20
|
}
|
|
22
21
|
export interface WalletStatic<T> {
|
|
23
|
-
fromExtendedKey(key: string): T
|
|
24
|
-
fromMnemonic(mnemonic: string): T
|
|
25
|
-
fromSeed(seed: string | Uint8Array): T
|
|
22
|
+
fromExtendedKey(key: string): Promise<T>;
|
|
23
|
+
fromMnemonic(mnemonic: string): Promise<T>;
|
|
24
|
+
fromSeed(seed: string | Uint8Array): Promise<T>;
|
|
26
25
|
}
|
|
27
26
|
//# sourceMappingURL=Wallet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,cAAe,SAAQ,eAAe;I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AQ,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;CAChD"}
|
package/package.json
CHANGED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
},
|
|
12
12
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@xyo-network/account-model": "^2.
|
|
14
|
+
"@xyo-network/account-model": "^2.63.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@xylabs/ts-scripts-yarn3": "^2.17.
|
|
18
|
-
"@xylabs/tsconfig": "^2.17.
|
|
17
|
+
"@xylabs/ts-scripts-yarn3": "^2.17.17",
|
|
18
|
+
"@xylabs/tsconfig": "^2.17.17",
|
|
19
19
|
"typescript": "^5.1.3"
|
|
20
20
|
},
|
|
21
21
|
"browser": "dist/esm/index.js",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
52
|
"types": "dist/types/index.d.ts",
|
|
53
|
-
"version": "2.
|
|
53
|
+
"version": "2.63.0"
|
|
54
54
|
}
|
package/src/Wallet.ts
CHANGED
|
@@ -9,7 +9,6 @@ export interface WalletInstance extends AccountInstance {
|
|
|
9
9
|
readonly address: string
|
|
10
10
|
readonly chainCode: string
|
|
11
11
|
readonly depth: number
|
|
12
|
-
readonly derivePath: (path: string) => WalletInstance
|
|
13
12
|
readonly extendedKey: string
|
|
14
13
|
readonly fingerprint: string
|
|
15
14
|
readonly index: number
|
|
@@ -22,7 +21,7 @@ export interface WalletInstance extends AccountInstance {
|
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
export interface WalletStatic<T> {
|
|
25
|
-
fromExtendedKey(key: string): T
|
|
26
|
-
fromMnemonic(mnemonic: string): T
|
|
27
|
-
fromSeed(seed: string | Uint8Array): T
|
|
24
|
+
fromExtendedKey(key: string): Promise<T>
|
|
25
|
+
fromMnemonic(mnemonic: string): Promise<T>
|
|
26
|
+
fromSeed(seed: string | Uint8Array): Promise<T>
|
|
28
27
|
}
|