Skip to content

Commit

Permalink
Merge branch 'main' into chore/export-define-chain-method-in-networks
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk authored Oct 8, 2024
2 parents 934b0ac + bfe3d0f commit b23ff65
Show file tree
Hide file tree
Showing 49 changed files with 68 additions and 2,444 deletions.
4 changes: 0 additions & 4 deletions apps/laboratory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,7 @@
"@walletconnect/universal-provider": "2.17.0",
"@walletconnect/utils": "2.17.0",
"@reown/appkit": "workspace:*",
"@reown/appkit-ethers": "workspace:*",
"@reown/appkit-ethers5": "workspace:*",
"@reown/appkit-siwe": "workspace:*",
"@reown/appkit-solana": "workspace:*",
"@reown/appkit-wagmi": "workspace:*",
"@reown/appkit-wallet": "workspace:*",
"@reown/appkit-experimental": "workspace:*",
"@reown/appkit-adapter-solana": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion examples/react-solana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"@reown/appkit": "workspace:*",
"@reown/appkit-solana": "workspace:*",
"@reown/appkit-adapter-solana": "workspace:*",
"@tanstack/react-query": "5.24.8",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
19 changes: 12 additions & 7 deletions examples/react-solana/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {
useAppKitEvents,
useAppKitState,
useAppKitTheme
} from '@reown/appkit-solana/react'
} from '@reown/appkit/react'
import { SolanaAdapter } from '@reown/appkit-adapter-solana/react'
import {
PhantomWalletAdapter,
HuobiWalletAdapter,
Expand All @@ -23,6 +24,16 @@ const networks = [solana, solanaTestnet, solanaDevnet]

// 3. Create modal
createAppKit({
adapters: [
new SolanaAdapter({
wallets: [
new HuobiWalletAdapter(),
new PhantomWalletAdapter(),
new SolflareWalletAdapter(),
new TrustWalletAdapter()
]
})
],
networks,
metadata: {
name: 'AppKit React Example',
Expand All @@ -32,12 +43,6 @@ createAppKit({
},
projectId,
themeMode: 'light',
wallets: [
new HuobiWalletAdapter(),
new PhantomWalletAdapter(),
new SolflareWalletAdapter(),
new TrustWalletAdapter()
],
themeVariables: {
'--w3m-color-mix': '#00DCFF',
'--w3m-color-mix-strength': 20
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-solana/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@solana/wallet-adapter-backpack": "0.1.14",
"@solana/wallet-adapter-wallets": "0.19.32",
"@reown/appkit": "workspace:*",
"@reown/appkit-solana": "workspace:*",
"@reown/appkit-adapter-solana": "workspace:*",
"vue": "3.4.3"
},
"devDependencies": {
Expand Down
24 changes: 17 additions & 7 deletions examples/vue-solana/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import {
useAppKitState,
useAppKitTheme
} from '@reown/appkit/vue'
import { SolanaAdapter } from '@reown/appkit-adapter-solana/react'
import {
PhantomWalletAdapter,
HuobiWalletAdapter,
SolflareWalletAdapter,
TrustWalletAdapter
} from '@solana/wallet-adapter-wallets'
import { BackpackWalletAdapter } from '@solana/wallet-adapter-backpack'
import {
PhantomWalletAdapter,
Expand All @@ -26,6 +33,16 @@ const networks = [solana, solanaTestnet, solanaDevnet]
// 3. Create modal
createAppKit({
adapters: [
new SolanaAdapter({
wallets: [
new HuobiWalletAdapter(),
new PhantomWalletAdapter(),
new SolflareWalletAdapter(),
new TrustWalletAdapter()
]
})
],
metadata: {
name: 'AppKit React Example',
description: 'AppKit React Example',
Expand All @@ -35,13 +52,6 @@ createAppKit({
projectId,
themeMode: 'light',
networks,
wallets: [
new BackpackWalletAdapter(),
new HuobiWalletAdapter(),
new PhantomWalletAdapter(),
new SolflareWalletAdapter(),
new TrustWalletAdapter()
],
themeVariables: {
'--w3m-color-mix': '#00DCFF',
'--w3m-color-mix-strength': 20
Expand Down
3 changes: 2 additions & 1 deletion packages/cdn/lib/ethers.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import '@reown/appkit-polyfills'
export * as AppKit from '@reown/appkit-ethers'
export * as AppKit from '@reown/appkit'
export * as AppKitEthers from '@reown/appkit-adapter-ethers'
3 changes: 2 additions & 1 deletion packages/cdn/lib/ethers5.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import '@reown/appkit-polyfills'
export * as AppKit from '@reown/appkit-ethers5'
export * as AppKit from '@reown/appkit'
export * as AppKitEthers5 from '@reown/appkit-adapter-ethers5'
3 changes: 3 additions & 0 deletions packages/cdn/lib/solana.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import '@reown/appkit-polyfills'
export * as AppKit from '@reown/appkit'
export * as AppKitSolana from '@reown/appkit-adapter-solana'
4 changes: 2 additions & 2 deletions packages/cdn/lib/wagmi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '@reown/appkit-polyfills'
export * as AppKit from '@reown/appkit-wagmi'
export * as AppKit from '@reown/appkit'
export * as AppKitWagmi from '@reown/appkit-adapter-wagmi'
export * as Viem from 'viem'
export * as Chains from 'viem/chains'
export * as Connectors from '@wagmi/connectors'
export * as WagmiCore from '@wagmi/core'
8 changes: 5 additions & 3 deletions packages/cdn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
}
},
"dependencies": {
"@reown/appkit-wagmi": "workspace:*",
"@reown/appkit-ethers": "workspace:*",
"@reown/appkit-ethers5": "workspace:*",
"@reown/appkit": "workspace:*",
"@reown/appkit-adapter-wagmi": "workspace:*",
"@reown/appkit-adapter-ethers": "workspace:*",
"@reown/appkit-adapter-ethers5": "workspace:*",
"@reown/appkit-adapter-solana": "workspace:*",
"@reown/appkit-polyfills": "workspace:*",
"@wagmi/connectors": "5.1.9",
"@wagmi/core": "2.13.4",
Expand Down
4 changes: 0 additions & 4 deletions packages/ethers/.eslintrc.json

This file was deleted.

11 changes: 0 additions & 11 deletions packages/ethers/.npmignore

This file was deleted.

Loading

0 comments on commit b23ff65

Please sign in to comment.