Skip to content

Comments

feat: added wallet connect integration via api#357

Open
Vorobeyko wants to merge 32 commits intomainfrom
feat/add-wc-wallet
Open

feat: added wallet connect integration via api#357
Vorobeyko wants to merge 32 commits intomainfrom
feat/add-wc-wallet

Conversation

@Vorobeyko
Copy link
Contributor

No description provided.

}

async setup() {
if (this.options.walletConfig.WALLET_TYPE === WalletConnectTypes.WC_SDK) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can try not to add this condition here

}

private setWalletPage() {
if (this.options.walletConfig.WALLET_TYPE === WalletConnectTypes.WC_SDK) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move it to the switch..case condition below?

} from './pages/elements';
import { getAddress } from 'viem';
import { isPopularMainnetNetwork, isPopularTestnetNetwork } from './helper';
import { WCSessionRequest } from '../../walletConnect/wc.service';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fill the index file and fix the import lines everywhere?


/** Confirm transaction */
async confirmTx(page: Page) {
async confirmTx(page: Page | WCSessionRequest) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the same format here?
page: T extends WalletConnectTypes.WC_SDK ? WCSessionRequest : Page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants