Skip to content

Commit

Permalink
Add World to WalletConnectConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
gemcoder21 committed Nov 5, 2024
1 parent f309906 commit cb50628
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions gemstone/src/config/wallet_connect.rs
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
use primitives::Chain;
use primitives::{Chain, EVMChain};

#[derive(uniffi::Record, Debug, Clone, PartialEq)]
pub struct WalletConnectConfig {
pub chains: Vec<String>,
}

pub fn get_wallet_connect_config() -> WalletConnectConfig {
let chains = vec![
Chain::Ethereum,
Chain::SmartChain,
Chain::OpBNB,
Chain::Base,
Chain::AvalancheC,
Chain::Polygon,
Chain::Arbitrum,
Chain::Optimism,
Chain::Fantom,
Chain::Gnosis,
Chain::Solana,
Chain::Manta,
Chain::Blast,
Chain::Mantle,
Chain::ZkSync,
];
let chains: Vec<Chain> = vec![
vec![Chain::Solana],
EVMChain::all().iter().map(|x| x.to_chain()).collect(),
].concat();

WalletConnectConfig {
chains: chains.into_iter().map(|x| x.to_string()).collect(),
Expand Down

0 comments on commit cb50628

Please sign in to comment.