UNPKG

@metamask/snaps-simulation

Version:

A simulation framework for MetaMask Snaps, enabling headless testing of Snaps in a controlled environment

66 lines 2.42 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DEFAULT_ASSETS = exports.DEFAULT_ACCOUNTS = exports.TYPEABLE_INPUTS = exports.DEFAULT_JSON_RPC_ENDPOINT = exports.DEFAULT_CURRENCY = exports.DEFAULT_LOCALE = exports.DEFAULT_ALTERNATIVE_SRP = exports.DEFAULT_SRP = void 0; /** * A secret recovery phrase that is used for testing purposes. Do not use this * to store any real funds! */ exports.DEFAULT_SRP = 'test test test test test test test test test test test ball'; /** * An alternative secret recovery phrase that is used for testing purposes. Do * not use this to store any real funds! */ exports.DEFAULT_ALTERNATIVE_SRP = 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about'; /** * The default locale. */ exports.DEFAULT_LOCALE = 'en'; /** * The default currency. */ exports.DEFAULT_CURRENCY = 'usd'; /** * The default JSON-RPC endpoint for Ethereum requests. */ exports.DEFAULT_JSON_RPC_ENDPOINT = 'https://cloudflare-eth.com/'; /** * The types of inputs that can be used in the `typeInField` interface action. */ exports.TYPEABLE_INPUTS = ['Input', 'AddressInput']; exports.DEFAULT_ACCOUNTS = [ { address: '0x1234567890abcdef1234567890abcdef12345678', id: '29bc7513-d1b9-4466-98a6-f5f9e0b90137', scopes: ['eip155:0'], selected: false, owned: false, // We don't expose assets for EVM accounts as it's not supported in the AssetSelector. assets: [], }, { address: '7S3P4HxJpyyigGzodYwHtCxZyUQe9JiBMHyRWXArAaKv', id: 'e051723c-85d0-43a3-b9bf-568a90d3f378', scopes: [ 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1', 'solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z', ], selected: true, owned: true, assets: [ 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/slip44:501', 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', ], }, ]; exports.DEFAULT_ASSETS = { 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/slip44:501': { name: 'Solana', symbol: 'SOL', }, 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp/token:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v': { name: 'USDC', symbol: 'USDC', }, }; //# sourceMappingURL=constants.cjs.map