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

Support Wallet Connect #243

Merged
merged 27 commits into from
Jan 2, 2024
Merged

Support Wallet Connect #243

merged 27 commits into from
Jan 2, 2024

Conversation

taoalpha
Copy link
Collaborator

@taoalpha taoalpha commented Jan 15, 2022

tested with https://example.walletconnect.org/

This is for #193

@taoalpha taoalpha changed the base branch from master to factory January 15, 2022 16:38
@taoalpha taoalpha changed the title Taoalpha/walletconnect Support Wallet Connect Jan 15, 2022
@polymorpher polymorpher changed the base branch from factory to master January 17, 2022 07:23
@polymorpher
Copy link
Owner

Scheduled for v15.3

@@ -89,7 +89,7 @@ const RestoreByScan = ({ isActive, onComplete, onCancel }) => {
f()
}, [addressInput])

const onScan = async (e, isJson) => {
const onScan = async (e, { isJson }) => {
Copy link
Owner

Choose a reason for hiding this comment

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

This is causing restore by scanning seed QR code to silently fail

message.error('You can only upload JSON or JPG/PNG file')
const isSupported = ['image/jpeg', 'image/png', ...supportedNonImgFiles].includes(file.type)
if (!isSupported) {
message.error(`You can only upload JPG/PNG ${supportedNonImgFiles.length ? `or ${supportedNonImgFiles.join(',')} ` : ''}file`)
Copy link
Owner

Choose a reason for hiding this comment

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

application/json is too technical for notifications

@polymorpher
Copy link
Owner

Can you construct some minimal testing examples?

@taoalpha taoalpha force-pushed the taoalpha/walletconnect branch from 7690825 to 7577179 Compare March 29, 2022 18:04
<Divider />
<Title level={3}>Auth</Title>
<Space wrap>
<Button type='primary' shape='round' href='/auth/walletconnect'>Wallet Connect</Button>
Copy link
Owner

Choose a reason for hiding this comment

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

This is quite hidden. Probably not the best place to put it. Any suggestions for better place?

@polymorpher
Copy link
Owner

Will continue the implementation after #281 is partially done

@polymorpher
Copy link
Owner

I will get back to this after #288 #255 #283 #280 #190

# Conflicts:
#	code/client/package.json
#	code/client/src/app.less
#	code/client/src/integration/Common.jsx
@polymorpher
Copy link
Owner

WalletConnect client v1 is deprecated https://www.npmjs.com/package/@walletconnect/client, so I will rewrite this with their latest SDK https://docs.walletconnect.com/web3wallet/about

@polymorpher
Copy link
Owner

Works now end-to-end. Tested with multisig.harmony.one. Should add state persistence to outstanding, unacknowledged requests. Will do it later.

@polymorpher polymorpher merged commit e30f6f8 into master Jan 2, 2024
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