Skip to content

Commit 0eb4de5

Browse files
Merge pull request #360 from reown-com/feat/multichain-phantom
multichain: phantom support
2 parents 9e79be0 + 815f47c commit 0eb4de5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2280
-928
lines changed

.changeset/brown-snakes-own.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@reown/appkit-scaffold-utils-react-native': patch
3+
'@reown/appkit-bitcoin-react-native': patch
4+
'@reown/appkit-react-native': patch
5+
'@reown/appkit-common-react-native': patch
6+
'@reown/appkit-ethers-react-native': patch
7+
'@reown/appkit-solana-react-native': patch
8+
'@reown/appkit-wagmi-react-native': patch
9+
'@reown/appkit-core-react-native': patch
10+
'@reown/appkit-ui-react-native': patch
11+
---
12+
13+
chore: bump alpha

.changeset/forty-zoos-double.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

.changeset/pre.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

.changeset/silly-snails-carry.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"react-hooks/exhaustive-deps": "warn",
99
"no-console": ["error", { "allow": ["warn"] }],
1010
"newline-before-return": "error",
11-
"radix": "off"
11+
"radix": "off",
12+
"dot-notation": "off"
1213
},
1314
"parserOptions": {
1415
"requireConfigFile": false

.github/workflows/alpha-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ jobs:
7676
- name: Push Changes and Tags
7777
run: |
7878
git push --follow-tags
79-
shell: bash
79+
shell: bash

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.changeset/
2+
.github/
3+
.maestro/
4+
.turbo/
5+
.vscode/
6+
.yarn/
7+
.yarnrc.yml
8+
.yarn.lock

apps/gallery/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"build:gallery": "storybook build -o out"
3737
},
3838
"dependencies": {
39-
"@reown/appkit-ui-react-native": "1.2.3",
39+
"@reown/appkit-ui-react-native": "2.0.0-alpha.1",
4040
"@storybook/theming": "^8.3.0"
4141
}
4242
}

apps/native/App.tsx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,18 @@ import { Button, Text } from '@reown/appkit-ui-react-native';
2121

2222
// import { siweConfig } from './src/utils/SiweUtils';
2323
// import { AccountView } from './src/views/AccountView';
24-
// import { chains } from './src/utils/WagmiUtils';
24+
import { chains } from './src/utils/WagmiUtils';
2525
import { OpenButton } from './src/components/OpenButton';
2626
import { DisconnectButton } from './src/components/DisconnectButton';
2727
// import { EthersAdapter } from '@reown/appkit-ethers-react-native';
28-
import { SolanaAdapter } from '@reown/appkit-solana-react-native';
28+
import { SolanaAdapter, PhantomConnector } from '@reown/appkit-solana-react-native';
2929
import { BitcoinAdapter } from '@reown/appkit-bitcoin-react-native';
3030
import { WagmiAdapter } from '@reown/appkit-wagmi-react-native';
31-
import { mainnet, polygon, avalanche, zora, sepolia } from 'wagmi/chains';
3231
import { ActionsView } from './src/views/ActionsView';
3332
import { WalletInfoView } from './src/views/WalletInfoView';
3433
import { EventsView } from './src/views/EventsView';
34+
import { getCustomWallets } from './src/utils/misc';
35+
import { storage } from './src/utils/StorageUtil';
3536

3637
const projectId = process.env.EXPO_PUBLIC_PROJECT_ID ?? '';
3738

@@ -60,7 +61,7 @@ const queryClient = new QueryClient();
6061

6162
const wagmiAdapter = new WagmiAdapter({
6263
projectId,
63-
networks: [mainnet, polygon, avalanche, zora, sepolia]
64+
networks: chains
6465
});
6566

6667
const solanaAdapter = new SolanaAdapter({
@@ -75,11 +76,14 @@ const appKit = createAppKit({
7576
projectId,
7677
adapters: [wagmiAdapter, solanaAdapter, bitcoinAdapter],
7778
metadata,
78-
networks: [mainnet, polygon, avalanche, zora, sepolia, solana, bitcoin],
79-
defaultNetwork: polygon,
79+
networks: [...chains, solana, bitcoin],
80+
defaultNetwork: chains[2],
8081
clipboardClient,
8182
debug: true,
82-
enableAnalytics: true
83+
enableAnalytics: true,
84+
customWallets: getCustomWallets(),
85+
storage,
86+
extraConnectors: [new PhantomConnector({ cluster: 'mainnet-beta' })]
8387
// tokens: {
8488
// 'eip155:1': {
8589
// address: '0xdAC17F958D2ee523a2206206994597C13D831ec7'

apps/native/app.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,41 @@
2828
"supportsTablet": true,
2929
"infoPlist": {
3030
"LSApplicationQueriesSchemes": [
31+
"metamask",
32+
"trust",
33+
"safe",
34+
"rainbow",
35+
"uniswap",
36+
"zerion",
37+
"imtokenv2",
38+
"argent",
39+
"spot",
40+
"omni",
41+
"dfw",
42+
"tpoutside",
43+
"robinhood-wallet",
44+
"frontier",
45+
"blockchain-wallet",
46+
"safepalwallet",
47+
"bitkeep",
48+
"zengo",
49+
"oneinch",
50+
"bnc",
51+
"exodus",
52+
"ledgerlive",
53+
"mewwallet",
54+
"awallet",
55+
"keyring",
56+
"lobstr",
57+
"ontoprovider",
58+
"mathwallet",
59+
"unstoppabledomains",
60+
"obvious",
61+
"fireblocks-wc",
62+
"ambire",
63+
"internetmoney",
64+
"walletnow",
65+
"bitcoincom",
3166
"metamask",
3267
"trust",
3368
"safe",
@@ -63,7 +98,8 @@
6398
"internetmoney",
6499
"walletnow",
65100
"bitcoincom"
66-
]
101+
],
102+
"ITSAppUsesNonExemptEncryption": false
67103
}
68104
},
69105
"android": {

0 commit comments

Comments
 (0)