@xyo-network/wallet-model
Advanced tools
import type { Hex } from '@xylabs/hex'; | ||
import type { AccountConfig, AccountInstance, AccountStatic } from '@xyo-network/account-model'; | ||
import type { Mnemonic } from 'ethers'; | ||
import type { MnemonicInstance } from './Mnemonic.ts'; | ||
export interface WalletInstance extends AccountInstance { | ||
@@ -11,3 +11,3 @@ readonly chainCode: string; | ||
readonly index: number; | ||
readonly mnemonic?: Mnemonic | null; | ||
readonly mnemonic?: MnemonicInstance | null; | ||
readonly neuter: () => WalletInstance; | ||
@@ -22,3 +22,3 @@ readonly parentFingerprint: string; | ||
fromExtendedKey(key: string): Promise<T>; | ||
fromMnemonic(mnemonic: Mnemonic): Promise<T>; | ||
fromMnemonic(mnemonic: MnemonicInstance): Promise<T>; | ||
fromPhrase(mnemonic: string, path?: string): Promise<T>; | ||
@@ -25,0 +25,0 @@ fromSeed(seed: string | ArrayBufferLike): Promise<T>; |
{ | ||
"name": "@xyo-network/wallet-model", | ||
"version": "3.14.0", | ||
"version": "3.14.1", | ||
"description": "Primary SDK for using XYO Protocol 2.0", | ||
@@ -33,3 +33,3 @@ "homepage": "https://xyo.network", | ||
"@xylabs/hex": "^4.8.7", | ||
"@xyo-network/account-model": "^3.14.0" | ||
"@xyo-network/account-model": "^3.14.1" | ||
}, | ||
@@ -39,13 +39,4 @@ "devDependencies": { | ||
"@xylabs/tsconfig": "^6.3.5", | ||
"ethers": "6.13.6", | ||
"typescript": "^5.8.3" | ||
}, | ||
"peerDependencies": { | ||
"ethers": "^6" | ||
}, | ||
"peerDependenciesMeta": { | ||
"ethers": { | ||
"optional": true | ||
} | ||
}, | ||
"publishConfig": { | ||
@@ -52,0 +43,0 @@ "access": "public" |
@@ -5,4 +5,5 @@ import type { Hex } from '@xylabs/hex' | ||
} from '@xyo-network/account-model' | ||
import type { Mnemonic } from 'ethers' | ||
import type { MnemonicInstance } from './Mnemonic.ts' | ||
export interface WalletInstance extends AccountInstance { | ||
@@ -15,3 +16,3 @@ readonly chainCode: string | ||
readonly index: number | ||
readonly mnemonic?: Mnemonic | null | ||
readonly mnemonic?: MnemonicInstance | null | ||
readonly neuter: () => WalletInstance | ||
@@ -27,3 +28,3 @@ readonly parentFingerprint: string | ||
fromExtendedKey(key: string): Promise<T> | ||
fromMnemonic(mnemonic: Mnemonic): Promise<T> | ||
fromMnemonic(mnemonic: MnemonicInstance): Promise<T> | ||
fromPhrase(mnemonic: string, path?: string): Promise<T> | ||
@@ -30,0 +31,0 @@ fromSeed(seed: string | ArrayBufferLike): Promise<T> |
Sorry, the diff of this file is not supported yet
16966
26.12%2
-33.33%3
-25%22
37.5%161
155.56%