@xyo-network/wallet-model 2.73.4 → 2.74.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.
@@ -0,0 +1,30 @@
1
+ import type { HDNode } from '@ethersproject/hdnode';
2
+ import { AccountInstance, AccountStatic } from '@xyo-network/account-model';
3
+ export interface Mnemonic {
4
+ readonly locale: string;
5
+ readonly path: string;
6
+ readonly phrase: string;
7
+ }
8
+ export interface WalletInstance extends AccountInstance {
9
+ readonly address: string;
10
+ readonly chainCode: string;
11
+ readonly depth: number;
12
+ readonly derivePath: (path: string) => Promise<WalletInstance>;
13
+ readonly extendedKey: string;
14
+ readonly fingerprint: string;
15
+ readonly index: number;
16
+ readonly mnemonic?: Mnemonic | undefined;
17
+ readonly neuter: () => WalletInstance;
18
+ readonly parentFingerprint: string;
19
+ readonly path: string;
20
+ readonly privateKey: string;
21
+ readonly publicKey: string;
22
+ }
23
+ export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'new'> {
24
+ new (key: unknown, node: HDNode): T;
25
+ fromExtendedKey(key: string): Promise<T>;
26
+ fromMnemonic(mnemonic: string): Promise<T>;
27
+ fromSeed(seed: string | Uint8Array): Promise<T>;
28
+ random(): any;
29
+ }
30
+ //# sourceMappingURL=Wallet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC3E,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;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{
4
+ readonly locale: string;
5
+ readonly path: string;
6
+ readonly phrase: string;
7
+ }
8
+ export interface WalletInstance extends AccountInstance {
9
+ readonly address: string;
10
+ readonly chainCode: string;
11
+ readonly depth: number;
12
+ readonly derivePath: (path: string) => Promise<WalletInstance>;
13
+ readonly extendedKey: string;
14
+ readonly fingerprint: string;
15
+ readonly index: number;
16
+ readonly mnemonic?: Mnemonic | undefined;
17
+ readonly neuter: () => WalletInstance;
18
+ readonly parentFingerprint: string;
19
+ readonly path: string;
20
+ readonly privateKey: string;
21
+ readonly publicKey: string;
22
+ }
23
+ export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'new'> {
24
+ new (key: unknown, node: HDNode): T;
25
+ fromExtendedKey(key: string): Promise<T>;
26
+ fromMnemonic(mnemonic: string): Promise<T>;
27
+ fromSeed(seed: string | Uint8Array): Promise<T>;
28
+ random(): any;
29
+ }
30
+ //# sourceMappingURL=Wallet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Wallet.d.ts","sourceRoot":"","sources":["../src/Wallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC3E,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;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,SAAS,CAAA;IACxC,QAAQ,CAAC,MAAM,EAAE,MAAM,cAAc,CAAA;IACrC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAA;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,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,MAAM,GAAG,CAAC,CAAA;IACnC,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IACxC,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;IAE/C,MAAM,IAAI,GAAG,CAAA;CACd"}
package/dist/index.d.mts CHANGED
@@ -1,32 +1,2 @@
1
- import { HDNode } from '@ethersproject/hdnode';
2
- import { AccountInstance, AccountStatic } from '@xyo-network/account-model';
3
-
4
- interface Mnemonic {
5
- readonly locale: string;
6
- readonly path: string;
7
- readonly phrase: string;
8
- }
9
- interface WalletInstance extends AccountInstance {
10
- readonly address: string;
11
- readonly chainCode: string;
12
- readonly depth: number;
13
- readonly derivePath: (path: string) => Promise<WalletInstance>;
14
- readonly extendedKey: string;
15
- readonly fingerprint: string;
16
- readonly index: number;
17
- readonly mnemonic?: Mnemonic | undefined;
18
- readonly neuter: () => WalletInstance;
19
- readonly parentFingerprint: string;
20
- readonly path: string;
21
- readonly privateKey: string;
22
- readonly publicKey: string;
23
- }
24
- interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'new'> {
25
- new (key: unknown, node: HDNode): T;
26
- fromExtendedKey(key: string): Promise<T>;
27
- fromMnemonic(mnemonic: string): Promise<T>;
28
- fromSeed(seed: string | Uint8Array): Promise<T>;
29
- random(): any;
30
- }
31
-
32
- export { Mnemonic, WalletInstance, WalletStatic };
1
+ export * from './Wallet';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,32 +1,2 @@
1
- import { HDNode } from '@ethersproject/hdnode';
2
- import { AccountInstance, AccountStatic } from '@xyo-network/account-model';
3
-
4
- interface Mnemonic {
5
- readonly locale: string;
6
- readonly path: string;
7
- readonly phrase: string;
8
- }
9
- interface WalletInstance extends AccountInstance {
10
- readonly address: string;
11
- readonly chainCode: string;
12
- readonly depth: number;
13
- readonly derivePath: (path: string) => Promise<WalletInstance>;
14
- readonly extendedKey: string;
15
- readonly fingerprint: string;
16
- readonly index: number;
17
- readonly mnemonic?: Mnemonic | undefined;
18
- readonly neuter: () => WalletInstance;
19
- readonly parentFingerprint: string;
20
- readonly path: string;
21
- readonly privateKey: string;
22
- readonly publicKey: string;
23
- }
24
- interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'new'> {
25
- new (key: unknown, node: HDNode): T;
26
- fromExtendedKey(key: string): Promise<T>;
27
- fromMnemonic(mnemonic: string): Promise<T>;
28
- fromSeed(seed: string | Uint8Array): Promise<T>;
29
- random(): any;
30
- }
31
-
32
- export { Mnemonic, WalletInstance, WalletStatic };
1
+ export * from './Wallet';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
package/package.json CHANGED
@@ -11,14 +11,12 @@
11
11
  },
12
12
  "description": "Primary SDK for using XYO Protocol 2.0",
13
13
  "dependencies": {
14
- "@xyo-network/account-model": "~2.73.4"
14
+ "@xyo-network/account-model": "~2.74.0"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@ethersproject/hdnode": "^5.7.0",
18
- "@xylabs/ts-scripts-yarn3": "^2.19.12",
19
- "@xylabs/tsconfig": "^2.19.12",
20
- "publint": "^0.2.2",
21
- "tsup": "^7.2.0",
18
+ "@xylabs/ts-scripts-yarn3": "^3.0.27",
19
+ "@xylabs/tsconfig": "^3.0.27",
22
20
  "typescript": "^5.2.2"
23
21
  },
24
22
  "docs": "dist/docs.json",
@@ -58,11 +56,7 @@
58
56
  "type": "git",
59
57
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
60
58
  },
61
- "scripts": {
62
- "package-compile": "tsup && publint",
63
- "package-recompile": "tsup && publint"
64
- },
65
59
  "sideEffects": false,
66
60
  "types": "dist/index.d.ts",
67
- "version": "2.73.4"
61
+ "version": "2.74.0"
68
62
  }