-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
refactor: solana walletconnect rpc interface #2677
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
} from '@solana/web3.js' | ||
|
||
import { solana } from '../../utils/ChainsUtil' | ||
import { useChakraToast } from '../Toast' | ||
|
||
const PHANTOM_TESTNET_ADDRESS = '8vCyX7oB6Pc3pbWMGYYZF5pbSnAdQ7Gyr32JqxqCy8ZR' | ||
const recipientAddress = new PublicKey(PHANTOM_TESTNET_ADDRESS) | ||
const amountInLamports = 100000000 | ||
const amountInLamports = 10000000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use underscores for better readability?
const amountInLamports = 10000000 | |
const amountInLamports = 10_000_000 |
|
||
import { solana } from '../../utils/ChainsUtil' | ||
import { useChakraToast } from '../Toast' | ||
|
||
const PHANTOM_TESTNET_ADDRESS = '8vCyX7oB6Pc3pbWMGYYZF5pbSnAdQ7Gyr32JqxqCy8ZR' | ||
const recipientAddress = new PublicKey(PHANTOM_TESTNET_ADDRESS) | ||
const amountInLamports = 50000000 | ||
const amountInLamports = 10000000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
import { OptionsController } from '@web3modal/core' | ||
|
||
import { SolStoreUtil } from '../utils/scaffold/index.js' | ||
import { UniversalProviderFactory } from './universalProvider.js' | ||
import { BaseConnector } from './baseConnector.js' | ||
import { BaseConnector, type Connector } from './baseConnector.js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
split regular imports and type imports:
import { BaseConnector, type Connector } from './baseConnector.js' | |
import { BaseConnector } from './baseConnector.js' | |
import type { Connector } from './baseConnector.js' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor code style things, looks good 👍
…or/solana-wallet-rpc-interface
…letConnect/web3modal into refactor/solana-wallet-rpc-interface
Description
This PR is updating the Solana's WalletConnectConnector RPC requests to use serialized transactions instead of object to communicate with wallets. For further work we should make adapter and walletConnectConnector to implement a same interface which is then used by the library consumers.
This PR is related to reown-com/web-examples#672
Type of change
Associated Issues
For Linear issues: Closes APKT-xxx
For GH issues: closes #...
Showcase (Optional)
Screen.Recording.2024-08-07.at.18.12.26.mov
Checklist