wallet-connect-web-examples/wallets/react-wallet-v2/src/data/PolkadotData.ts
hamidra 1406ce3999
Add Polkadot RPCs to the Dapp examples and wallet (#44)
Co-authored-by: Ben Kremer <contact@bkrem.dev>
2022-08-11 11:43:12 +02:00

36 lines
762 B
TypeScript

/**
* Types
*/
export type TPolkadotChain = keyof typeof POLKADOT_MAINNET_CHAINS
/**
* Chains
*/
export const POLKADOT_MAINNET_CHAINS = {
'polkadot:91b171bb158e2d3848fa23a9f1c25182': {
chainId: '91b171bb158e2d3848fa23a9f1c25182',
name: 'Polkadot',
logo: '/chain-logos/polkadot.svg',
rgb: '230, 1, 122',
rpc: ''
}
}
export const POLKADOT_TEST_CHAINS = {
'polkadot:e143f23803ac50e8f6f8e62695d1ce9e': {
chainId: 'e143f23803ac50e8f6f8e62695d1ce9e',
name: 'Polkadot Westend',
logo: '/chain-logos/westend.svg',
rgb: '218, 104, 167',
rpc: ''
}
}
/**
* Methods
*/
export const POLKADOT_SIGNING_METHODS = {
POLKADOT_SIGN_TRANSACTION: 'polkadot_signTransaction',
POLKADOT_SIGN_MESSAGE: 'polkadot_signMessage'
}