UNPKG

@metamask/account-api

Version:
148 lines 5.69 kB
import type { EntropySourceId, KeyringAccount } from "@metamask/keyring-api"; import { type Bip44Account } from "../api/index.mjs"; export declare const MOCK_HD_ACCOUNT_1: Bip44Account<KeyringAccount>; export declare const MOCK_HD_ACCOUNT_2: Bip44Account<KeyringAccount>; export declare const MOCK_SOL_ACCOUNT_1: Bip44Account<KeyringAccount>; export declare const MOCK_BTC_P2WPKH_ACCOUNT_1: Bip44Account<KeyringAccount>; export declare const MOCK_BTC_P2TR_ACCOUNT_1: Bip44Account<KeyringAccount>; export declare const MOCK_SNAP_ACCOUNT_1: Bip44Account<{ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account"; id: string; options: Record<string, import("@metamask/utils").Json> & { entropy?: { type: "mnemonic"; id: string; derivationPath: string; groupIndex: number; } | { type: "private-key"; }; exportable?: boolean; }; address: string; scopes: `${string}:${string}`[]; methods: string[]; }>; export declare const MOCK_SNAP_ACCOUNT_2: KeyringAccount; export declare const MOCK_SNAP_ACCOUNT_3: Bip44Account<{ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account"; id: string; options: Record<string, import("@metamask/utils").Json> & { entropy?: { type: "mnemonic"; id: string; derivationPath: string; groupIndex: number; } | { type: "private-key"; }; exportable?: boolean; }; address: string; scopes: `${string}:${string}`[]; methods: string[]; }>; export declare const MOCK_SNAP_ACCOUNT_4: Bip44Account<{ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account"; id: string; options: Record<string, import("@metamask/utils").Json> & { entropy?: { type: "mnemonic"; id: string; derivationPath: string; groupIndex: number; } | { type: "private-key"; }; exportable?: boolean; }; address: string; scopes: `${string}:${string}`[]; methods: string[]; }>; export declare const MOCK_HARDWARE_ACCOUNT_1: KeyringAccount; export declare class MockAccountBuilder<Account extends KeyringAccount> { #private; constructor(account: Account); static from<Account extends KeyringAccount>(account: Account): MockAccountBuilder<Account>; withId(id: KeyringAccount['id']): MockAccountBuilder<Account>; withUuid(): MockAccountBuilder<Account>; withAddressSuffix(suffix: string): MockAccountBuilder<Account>; withEntropySource(entropySource: EntropySourceId): MockAccountBuilder<Account>; withGroupIndex(groupIndex: number): MockAccountBuilder<Account>; get(): Account; } export declare const MOCK_WALLET_1_ENTROPY_SOURCE = "mock-keyring-id-1"; export declare const MOCK_WALLET_1_EVM_ACCOUNT: Bip44Account<{ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account"; id: string; options: Record<string, import("@metamask/utils").Json> & { entropy?: { type: "mnemonic"; id: string; derivationPath: string; groupIndex: number; } | { type: "private-key"; }; exportable?: boolean; }; address: string; scopes: `${string}:${string}`[]; methods: string[]; }>; export declare const MOCK_WALLET_1_SOL_ACCOUNT: Bip44Account<{ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account"; id: string; options: Record<string, import("@metamask/utils").Json> & { entropy?: { type: "mnemonic"; id: string; derivationPath: string; groupIndex: number; } | { type: "private-key"; }; exportable?: boolean; }; address: string; scopes: `${string}:${string}`[]; methods: string[]; }>; export declare const MOCK_WALLET_1_BTC_P2WPKH_ACCOUNT: Bip44Account<{ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account"; id: string; options: Record<string, import("@metamask/utils").Json> & { entropy?: { type: "mnemonic"; id: string; derivationPath: string; groupIndex: number; } | { type: "private-key"; }; exportable?: boolean; }; address: string; scopes: `${string}:${string}`[]; methods: string[]; }>; export declare const MOCK_WALLET_1_BTC_P2TR_ACCOUNT: Bip44Account<{ type: "eip155:eoa" | "eip155:erc4337" | "bip122:p2pkh" | "bip122:p2sh" | "bip122:p2wpkh" | "bip122:p2tr" | "solana:data-account" | "tron:eoa" | "any:account"; id: string; options: Record<string, import("@metamask/utils").Json> & { entropy?: { type: "mnemonic"; id: string; derivationPath: string; groupIndex: number; } | { type: "private-key"; }; exportable?: boolean; }; address: string; scopes: `${string}:${string}`[]; methods: string[]; }>; //# sourceMappingURL=accounts.d.mts.map