* feat: v2 wallet * feat: Web3Wallet sign integration * chore: adds `core` to package.json * feat: Web3Wallet Auth integration * chore: core & web3wallet canary * chore: rm config * chore: force redeploy * chore: rm core & sign-client deps * fix: rm `sign-client` usage * refactor: updates README * feat: adds metadata mock obj & removes relay url param * refactor: more url mentions * refactor: rm v2 wallet readme references & uses web3wallet.core... * refactor: wallet -> web3wallet * refactor: rm wallet to web3wallet * fix: adds async to example listeners
38 lines
880 B
TypeScript
38 lines
880 B
TypeScript
/**
|
|
* Types
|
|
*/
|
|
export type TSolanaChain = keyof typeof SOLANA_MAINNET_CHAINS
|
|
|
|
/**
|
|
* Chains
|
|
*/
|
|
export const SOLANA_MAINNET_CHAINS = {
|
|
'solana:4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ': {
|
|
chainId: '4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ',
|
|
name: 'Solana',
|
|
logo: '/chain-logos/solana-4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ.png',
|
|
rgb: '30, 240, 166',
|
|
rpc: ''
|
|
}
|
|
}
|
|
|
|
export const SOLANA_TEST_CHAINS = {
|
|
'solana:8E9rvCKLFQia2Y35HXjjpWzj8weVo44K': {
|
|
chainId: '8E9rvCKLFQia2Y35HXjjpWzj8weVo44K',
|
|
name: 'Solana Devnet',
|
|
logo: '/chain-logos/solana-4sGjMW1sUnHzSxGspuhpqLDx6wiyjNtZ.png',
|
|
rgb: '30, 240, 166',
|
|
rpc: ''
|
|
}
|
|
}
|
|
|
|
export const SOLANA_CHAINS = { ...SOLANA_MAINNET_CHAINS, ...SOLANA_TEST_CHAINS }
|
|
|
|
/**
|
|
* Methods
|
|
*/
|
|
export const SOLANA_SIGNING_METHODS = {
|
|
SOLANA_SIGN_TRANSACTION: 'solana_signTransaction',
|
|
SOLANA_SIGN_MESSAGE: 'solana_signMessage'
|
|
}
|