@xyo-network/wallet-model 5.3.20 → 5.3.24

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/wallet-model",
3
- "version": "5.3.20",
3
+ "version": "5.3.24",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,21 +30,27 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
33
- "src",
34
33
  "!**/*.bench.*",
35
34
  "!**/*.spec.*",
36
- "!**/*.test.*"
35
+ "!**/*.test.*",
36
+ "README.md"
37
37
  ],
38
38
  "dependencies": {
39
- "@xyo-network/account-model": "~5.3.20"
39
+ "@xyo-network/account-model": "~5.3.24"
40
40
  },
41
41
  "devDependencies": {
42
- "@xylabs/sdk-js": "^5.0.90",
43
- "@xylabs/ts-scripts-common": "~7.5.6",
44
- "@xylabs/ts-scripts-yarn3": "~7.5.6",
45
- "@xylabs/tsconfig": "~7.5.6",
42
+ "@opentelemetry/api": "^1.9.1",
43
+ "@types/node": "^25.5.0",
44
+ "@xylabs/sdk-js": "^5.0.93",
45
+ "@xylabs/ts-scripts-common": "~7.6.16",
46
+ "@xylabs/ts-scripts-pnpm": "~7.6.16",
47
+ "@xylabs/tsconfig": "~7.6.16",
48
+ "acorn": "^8.16.0",
49
+ "axios": "^1.14.0",
50
+ "esbuild": "^0.28.0",
46
51
  "typescript": "~5.9.3",
47
- "zod": "^4.3.6"
52
+ "zod": "^4.3.6",
53
+ "@xyo-network/account-model": "~5.3.24"
48
54
  },
49
55
  "peerDependencies": {
50
56
  "@xylabs/sdk-js": "^5",
@@ -53,4 +59,4 @@
53
59
  "publishConfig": {
54
60
  "access": "public"
55
61
  }
56
- }
62
+ }
package/src/Mnemonic.ts DELETED
@@ -1,32 +0,0 @@
1
- import type { WordlistInstance } from './Wordlist.ts'
2
-
3
- export interface MnemonicInstance {
4
-
5
- /**
6
- * The underlying entropy which the mnemonic encodes.
7
- */
8
- entropy: string
9
-
10
- /**
11
- * The password used for this mnemonic. If no password is used this
12
- * is the empty string (i.e. ``""``) as per the specification.
13
- */
14
- password: string
15
-
16
- /**
17
- * The mnemonic phrase of 12, 15, 18, 21 or 24 words.
18
- *
19
- * Use the [[wordlist]] ``split`` method to get the individual words.
20
- */
21
- phrase: string
22
-
23
- /**
24
- * The wordlist for this mnemonic.
25
- */
26
- wordlist: WordlistInstance
27
-
28
- /**
29
- * Returns the seed for the mnemonic.
30
- */
31
- computeSeed(): string
32
- }
package/src/Wallet.ts DELETED
@@ -1,31 +0,0 @@
1
- import type { Hex } from '@xylabs/sdk-js'
2
- import type {
3
- AccountConfig, AccountInstance, AccountStatic,
4
- } from '@xyo-network/account-model'
5
-
6
- import type { MnemonicInstance } from './Mnemonic.ts'
7
-
8
- export interface WalletInstance extends AccountInstance {
9
- readonly chainCode: string
10
- readonly depth: number
11
- readonly derivePath: (path: string) => Promise<WalletInstance>
12
- readonly extendedKey: string
13
- readonly fingerprint: string
14
- readonly index: number
15
- readonly mnemonic?: MnemonicInstance | null
16
- readonly neuter: () => WalletInstance
17
- readonly parentFingerprint: string
18
- readonly path: string | null
19
- readonly privateKey: Hex
20
- readonly publicKey: Hex
21
- }
22
-
23
- export interface WalletStatic<T extends WalletInstance = WalletInstance> extends Omit<AccountStatic<T>, 'create'> {
24
- create(config: AccountConfig): Promise<T>
25
- fromExtendedKey(key: string): Promise<T>
26
- fromMnemonic(mnemonic: MnemonicInstance): Promise<T>
27
- fromPhrase(mnemonic: string, path?: string): Promise<T>
28
- fromSeed(seed: string | ArrayBufferLike): Promise<T>
29
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
30
- random(): any
31
- }
package/src/Wordlist.ts DELETED
@@ -1,28 +0,0 @@
1
- export interface WordlistInstance {
2
- locale: string
3
-
4
- /**
5
- * Maps an 11-bit value into its corresponding word in the list.
6
- *
7
- * Sub-classes MUST override this.
8
- */
9
- getWord(index: number): string
10
-
11
- /**
12
- * Maps a word to its corresponding 11-bit value.
13
- *
14
- * Sub-classes MUST override this.
15
- */
16
- getWordIndex(word: string): number
17
-
18
- /**
19
- * Sub-classes may override this to provider a language-specific
20
- * method for joining %%words%% into a phrase.
21
- *
22
- * By default, %%words%% are joined by a single space.
23
- */
24
- join(words: Array<string>): string
25
-
26
- split(phrase: string): Array<string>
27
-
28
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './Wallet.ts'