Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:feat refactor adapter clients #3076

Merged
merged 43 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2c3dd6c
wip: add chain adapter blueprints
zoruka Sep 24, 2024
5e4a290
wip: add universal provider example
zoruka Sep 25, 2024
aac1773
add poc for upa
svenvoskamp Sep 26, 2024
39a891c
wip
svenvoskamp Oct 2, 2024
34fdc42
wip
svenvoskamp Oct 9, 2024
227942d
wagmi implemenation
svenvoskamp Oct 9, 2024
da4d7b1
add ethers client
svenvoskamp Oct 11, 2024
add5422
add auth connector implementation
svenvoskamp Oct 15, 2024
040f24e
fix balance wagmi
svenvoskamp Oct 15, 2024
4b85048
add all methods
svenvoskamp Nov 5, 2024
8e7fae6
merge with main
svenvoskamp Nov 5, 2024
6fd77cf
merge with main
svenvoskamp Nov 5, 2024
3573df1
remove old clients
svenvoskamp Nov 5, 2024
4562cd3
remove old clients
svenvoskamp Nov 5, 2024
4a9080e
fix build
svenvoskamp Nov 5, 2024
f13c978
delete network controller
svenvoskamp Nov 5, 2024
7d93801
fix build
svenvoskamp Nov 5, 2024
bd6e251
feedback
svenvoskamp Nov 6, 2024
e6ab96a
merge main with branch
svenvoskamp Nov 6, 2024
1c0b3b3
fix tests
svenvoskamp Nov 6, 2024
439b52b
merge main
svenvoskamp Nov 6, 2024
d61c9da
fix controller test and imrpove performance
svenvoskamp Nov 7, 2024
fd64080
merge main
svenvoskamp Nov 7, 2024
1afdb0c
fix lab build
svenvoskamp Nov 7, 2024
e9ebd48
fix tests
svenvoskamp Nov 7, 2024
ee4c9a0
revert hard coded
svenvoskamp Nov 7, 2024
d618bb8
fix siwe tests
svenvoskamp Nov 8, 2024
49416e5
merge main
svenvoskamp Nov 8, 2024
a60cae1
fix tests solana and wagmi
svenvoskamp Nov 8, 2024
93f5d3a
fix wagmi and siwe tests
svenvoskamp Nov 11, 2024
1abeb15
merge main
svenvoskamp Nov 11, 2024
e833ed0
fix email ethers
svenvoskamp Nov 11, 2024
6e9563b
fix wallet spec tests
svenvoskamp Nov 11, 2024
f3c62b9
fix multi-chain on new arc
svenvoskamp Nov 11, 2024
ae1174e
fix multi-chain tests
svenvoskamp Nov 12, 2024
f9eae8f
fix switch chain issue
svenvoskamp Nov 12, 2024
839a0d1
fix siwe tests
svenvoskamp Nov 12, 2024
6d10d17
fix siwe tests
svenvoskamp Nov 12, 2024
9590aea
add new adapter tests
svenvoskamp Nov 13, 2024
a67a4ed
add changeset
svenvoskamp Nov 13, 2024
2abe4bd
solve unsupported chain issue
svenvoskamp Nov 13, 2024
0d3b281
show error for unsupported chain & fix solana issue
svenvoskamp Nov 13, 2024
fbef7e5
fix projectId
svenvoskamp Nov 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/laboratory/src/components/Ethers/Ethers5ModalInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function Ethers5ModalInfo() {
const { walletProvider, walletProviderType } = useAppKitProvider<UniversalProvider>('eip155')

async function getClientId() {
if (walletProviderType === 'walletConnect') {
if (walletProviderType === 'WALLET_CONNECT') {
return await walletProvider?.client?.core?.crypto?.getClientId()
}

Expand Down
2 changes: 1 addition & 1 deletion apps/laboratory/src/components/Ethers/EthersModalInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function EthersModalInfo() {
const { walletProvider, walletProviderType } = useAppKitProvider<UniversalProvider>('eip155')

async function getClientId() {
if (walletProviderType === 'walletConnect') {
if (walletProviderType === 'WALLET_CONNECT') {
return await walletProvider?.client?.core?.crypto?.getClientId()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useAppKitState } from '@reown/appkit/react'
import { SolanaTests } from './Solana/SolanaTests'
import { EthersTests } from './Ethers/EthersTests'
import { EthersModalInfo } from './Ethers/EthersModalInfo'
import { SolanaModalInfo } from './Solana/SolanaModalInfo'

export function MultiChainTestsEthersSolana() {
const { activeChain } = useAppKitState()
Expand All @@ -16,7 +17,12 @@ export function MultiChainTestsEthersSolana() {
<EthersTests />
</React.Fragment>
) : null}
{activeChain === 'solana' ? <SolanaTests /> : null}
{activeChain === 'solana' ? (
<React.Fragment>
<SolanaModalInfo />
<SolanaTests />
</React.Fragment>
) : null}
</>
)
}
2 changes: 1 addition & 1 deletion apps/laboratory/src/pages/library/wagmi.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const wagmiAdapter = new WagmiAdapter({

const modal = createAppKit({
adapters: [wagmiAdapter],
networks: wagmiAdapter.caipNetworks,
networks: ConstantsUtil.EvmNetworks,
projectId: ConstantsUtil.ProjectId,
features: {
analytics: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ test('it should switch to different namespace', async () => {
const chainName = 'Solana'

await page.switchNetwork(chainName)
await validator.expectUnauthenticated()
await page.closeModal()
await page.openAccount()
await page.openNetworks()
await validator.expectSwitchedNetwork(chainName)
Expand Down
Loading
Loading