Skip to content

Commit ad34566

Browse files
chore: bump appkit to 1.3.0 and enabled onramp (#220)
1 parent dad912f commit ad34566

File tree

16 files changed

+603
-374
lines changed

16 files changed

+603
-374
lines changed

dapps/W3MEthers/ios/Podfile.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
PODS:
22
- boost (1.83.0)
3-
- CoinbaseWalletSDK/Client (1.0.4)
4-
- CoinbaseWalletSDK/CrossPlatform (1.0.4):
3+
- CoinbaseWalletSDK/Client (1.1.2)
4+
- CoinbaseWalletSDK/CrossPlatform (1.1.2):
55
- CoinbaseWalletSDK/Client
6-
- CoinbaseWalletSDKExpo (1.0.13):
7-
- CoinbaseWalletSDK/CrossPlatform (= 1.0.4)
6+
- CoinbaseWalletSDKExpo (1.1.2):
7+
- CoinbaseWalletSDK/CrossPlatform (= 1.1.2)
88
- ExpoModulesCore
99
- DoubleConversion (1.1.6)
1010
- EXConstants (15.4.5):
@@ -38,9 +38,9 @@ PODS:
3838
- hermes-engine/Pre-built (= 0.73.4)
3939
- hermes-engine/Pre-built (0.73.4)
4040
- libevent (2.1.12)
41-
- MMKV (2.0.0):
42-
- MMKVCore (~> 2.0.0)
43-
- MMKVCore (2.0.0)
41+
- MMKV (2.2.2):
42+
- MMKVCore (~> 2.2.2)
43+
- MMKVCore (2.2.2)
4444
- RCT-Folly (2022.05.16.00):
4545
- boost
4646
- DoubleConversion
@@ -912,7 +912,7 @@ PODS:
912912
- React-Mapbuffer (0.73.4):
913913
- glog
914914
- React-debug
915-
- react-native-compat (2.21.4):
915+
- react-native-compat (2.21.5):
916916
- glog
917917
- RCT-Folly (= 2022.05.16.00)
918918
- React-Core
@@ -1311,8 +1311,8 @@ EXTERNAL SOURCES:
13111311

13121312
SPEC CHECKSUMS:
13131313
boost: d3f49c53809116a5d38da093a8aa78bf551aed09
1314-
CoinbaseWalletSDK: ea1f37512bbc69ebe07416e3b29bf840f5cc3152
1315-
CoinbaseWalletSDKExpo: 7488819c860868cd5fe117f6be43dd42c2e65919
1314+
CoinbaseWalletSDK: f8cef9d72e86d6ac4782e4d0054baf9302cf05bb
1315+
CoinbaseWalletSDKExpo: ca2f2a1e307701a04f06ffc746192ba797ba5b32
13161316
DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953
13171317
EXConstants: 348adb88fb0d65892f16732ec5e02e1365c31588
13181318
EXFont: db0560db6676fce70dcc7656483d6560be02cbf0
@@ -1326,9 +1326,9 @@ SPEC CHECKSUMS:
13261326
glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
13271327
hermes-engine: b2669ce35fc4ac14f523b307aff8896799829fe2
13281328
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
1329-
MMKV: f7d1d5945c8765f97f39c3d121f353d46735d801
1330-
MMKVCore: c04b296010fcb1d1638f2c69405096aac12f6390
1331-
RCT-Folly: 7169b2b1c44399c76a47b5deaaba715eeeb476c0
1329+
MMKV: b4802ebd5a7c68fc0c4a5ccb4926fbdfb62d68e0
1330+
MMKVCore: a255341a3746955f50da2ad9121b18cb2b346e61
1331+
RCT-Folly: cd21f1661364f975ae76b3308167ad66b09f53f5
13321332
RCTRequired: ab7f915c15569f04a49669e573e6e319a53f9faa
13331333
RCTTypeSafety: 63b97ced7b766865057e7154db0e81ce4ee6cf1e
13341334
React: 1c87497e50fa40ba9c54e5ea5e53483a0f8eecc0
@@ -1349,7 +1349,7 @@ SPEC CHECKSUMS:
13491349
React-jsinspector: 9ac353eccf6ab54d1e0a33862ba91221d1e88460
13501350
React-logger: 5295f5eac9d7624fe9a33a473442d8f4c1074197
13511351
React-Mapbuffer: f7ba4d5459e546d741791a55664388e97b31df7c
1352-
react-native-compat: 9edc5862a88c50e1158549ddbff6df80c5509a11
1352+
react-native-compat: 74a583d6cb1dafc47495da8bb0a9fb0539f046d9
13531353
react-native-get-random-values: ce0b8796c99e2b85e3202bd500b1ef286a17a02e
13541354
react-native-mmkv: 5a46c73e3e12aa872c4485ae0e4414b4040af79a
13551355
react-native-netinfo: f084f2324cb11b986503a39a3ccbb5d15e2a56d3

dapps/W3MEthers/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"test": "jest"
1111
},
1212
"dependencies": {
13-
"@coinbase/wallet-mobile-sdk": "1.0.13",
13+
"@coinbase/wallet-mobile-sdk": "1.1.2",
1414
"@react-native-async-storage/async-storage": "1.21.0",
1515
"@react-native-clipboard/clipboard": "1.13.2",
1616
"@react-native-community/netinfo": "11.2.1",
17-
"@reown/appkit-auth-ethers-react-native": "1.2.6",
18-
"@reown/appkit-coinbase-ethers-react-native": "1.2.6",
19-
"@reown/appkit-ethers-react-native": "1.2.6",
20-
"@walletconnect/react-native-compat": "2.21.4",
17+
"@reown/appkit-auth-ethers-react-native": "1.3.0",
18+
"@reown/appkit-coinbase-ethers-react-native": "1.3.0",
19+
"@reown/appkit-ethers-react-native": "1.3.0",
20+
"@walletconnect/react-native-compat": "2.21.5",
2121
"ethers": "6.15.0",
2222
"expo": "^50.0.0",
2323
"react": "18.2.0",

dapps/W3MEthers/src/App.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {handleResponse} from '@coinbase/wallet-mobile-sdk';
1515
import {CoinbaseProvider} from '@reown/appkit-coinbase-ethers-react-native';
1616
import {AuthProvider} from '@reown/appkit-auth-ethers-react-native';
1717
import {ENV_PROJECT_ID} from '@env';
18+
import {MMKV} from 'react-native-mmkv';
1819

1920
import {SignMessage} from './views/SignMessage';
2021
import {SendTransaction} from './views/SendTransaction';
@@ -44,6 +45,7 @@ const metadata = {
4445
const coinbaseProvider = new CoinbaseProvider({
4546
redirect: 'rn-w3m-ethers-sample://',
4647
rpcUrl: mainnet.rpcUrl,
48+
storage: new MMKV(),
4749
});
4850

4951
const auth = new AuthProvider({projectId, metadata});
@@ -72,6 +74,7 @@ const customWallets = [
7274
// 3. Create modal
7375
createAppKit({
7476
projectId,
77+
metadata,
7578
chains,
7679
config,
7780
siweConfig,
@@ -80,6 +83,7 @@ createAppKit({
8083
enableAnalytics: true,
8184
features: {
8285
swaps: true,
86+
onramp: true,
8387
},
8488
});
8589

dapps/W3MEthers/src/utils/ChainUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export const mainnet = {
33
name: 'Ethereum',
44
currency: 'ETH',
55
explorerUrl: 'https://etherscan.io',
6-
rpcUrl: 'https://eth.llamarpc.com',
6+
rpcUrl: 'https://eth.merkle.io',
77
};
88

99
export const polygon = {

0 commit comments

Comments
 (0)