@xyo-network/wallet-model 3.9.35 → 3.9.36
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/package.json +7 -7
- package/dist/neutral/Wallet.d.ts +0 -26
- package/dist/neutral/Wallet.d.ts.map +0 -1
- package/dist/neutral/index.d.ts +0 -2
- 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 +0 -2
- package/dist/node/index.d.ts.map +0 -1
- /package/dist/{browser → types}/Wallet.d.ts +0 -0
- /package/dist/{browser → types}/Wallet.d.ts.map +0 -0
- /package/dist/{browser → types}/index.d.ts +0 -0
- /package/dist/{browser → types}/index.d.ts.map +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/wallet-model",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.36",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/types/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/types/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/hex": "^4.
|
|
33
|
-
"@xyo-network/account-model": "^3.9.
|
|
32
|
+
"@xylabs/hex": "^4.6.0",
|
|
33
|
+
"@xyo-network/account-model": "^3.9.36"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
37
|
-
"@xylabs/tsconfig": "^
|
|
36
|
+
"@xylabs/ts-scripts-yarn3": "^6.0.5",
|
|
37
|
+
"@xylabs/tsconfig": "^6.0.5",
|
|
38
38
|
"ethers": "^6.13.5",
|
|
39
39
|
"typescript": "^5.8.2"
|
|
40
40
|
},
|
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":"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;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"}
|
package/dist/neutral/index.d.ts
DELETED
|
@@ -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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;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"}
|
package/dist/node/index.d.ts
DELETED
package/dist/node/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|