wallet-connect-web-examples/advanced/wallets/react-wallet-v2/src/data/TezosData.ts
Gancho Radkov 46bfda7ecf
fix: removes mnemonic-keyring and reintroduces tezos & cosmos integrations (#440)
Co-authored-by: Gancho Radkov <ganchoradkov@gmail.com>
2024-02-01 14:35:21 +02:00

50 lines
990 B
TypeScript

type ChainMetadata = {
chainId: string
name: string
logo: string
rgb: string
rpc: string
namespace: string
}
/**
* Types
*/
export type TTezosChain = keyof typeof TEZOS_MAINNET_CHAINS
/**
* Chains
*/
export const TEZOS_MAINNET_CHAINS: Record<string, ChainMetadata> = {
'tezos:mainnet': {
chainId: 'mainnet',
name: 'Tezos',
logo: '/chain-logos/tezos.svg',
rgb: '44, 125, 247',
rpc: 'https://mainnet.api.tez.ie',
namespace: 'tezos'
}
}
export const TEZOS_TEST_CHAINS: Record<string, ChainMetadata> = {
'tezos:testnet': {
chainId: 'testnet',
name: 'Tezos Testnet',
logo: '/chain-logos/tezos.svg',
rgb: '44, 125, 247',
rpc: 'https://ghostnet.ecadinfra.com',
namespace: 'tezos'
}
}
export const TEZOS_CHAINS = { ...TEZOS_MAINNET_CHAINS, ...TEZOS_TEST_CHAINS }
/**
* Methods
*/
export const TEZOS_SIGNING_METHODS = {
TEZOS_GET_ACCOUNTS: 'tezos_getAccounts',
TEZOS_SEND: 'tezos_send',
TEZOS_SIGN: 'tezos_sign'
}