Skip to content

Fix eth_signTypedData #2161

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

Open
wants to merge 59 commits into
base: master
Choose a base branch
from
Open

Fix eth_signTypedData #2161

wants to merge 59 commits into from

Conversation

jribbink
Copy link
Contributor

No description provided.

jribbink and others added 30 commits January 27, 2025 10:30
* Setup eth accounts handler

* Run prettier

---------

Co-authored-by: Chase Fleming <[email protected]>
* Implement eth_requestAccounts

* Add handler code

* Pass account manager and use

* Set coa address

* Move coa fetcher

* Remove comment

* Only check if changed

* Stop race conditions

* Fix types and update address

* Add basic tests

* Fix

* Use mock user

* Add test

* Add more tests

* Add test

* Add test

* Add test

* Add test

* Add test

* Add tests

* Import

* Fix prettier

* Fix prettier

---------

Co-authored-by: Chase Fleming <[email protected]>
* Add sign message

* Update packages/fcl-ethereum-provider/src/accounts/account-manager.ts

Co-authored-by: Jordan Ribbink <[email protected]>

* Push fix

* Remove comment

* Update packages/fcl-ethereum-provider/src/rpc/handlers/personal-sign.ts

Co-authored-by: Jordan Ribbink <[email protected]>

* Update packages/fcl-ethereum-provider/src/accounts/account-manager.ts

Co-authored-by: Jordan Ribbink <[email protected]>

* Update packages/fcl-ethereum-provider/src/rpc/handlers/personal-sign.ts

Co-authored-by: Jordan Ribbink <[email protected]>

* Check auth with coa address

* Add tests

* Fix params and prettier

* Run prettier

* Use RLP

* Change path

* hex array

* Fix RLP test

* Run prettier

---------

Co-authored-by: Chase Fleming <[email protected]>
Co-authored-by: Jordan Ribbink <[email protected]>
* Add eth signed typed data

* Fix

* Run prettier

* Add tests

* Run prettier

* Remove comment

* Match hashing closer to spec

* Use util

* Fix tests

* Run prettier

* Remove legacy support

* Update packages/fcl-ethereum-provider/src/hash-utils.ts

Co-authored-by: Jordan Ribbink <[email protected]>

* Fix test

---------

Co-authored-by: Chase Fleming <[email protected]>
Co-authored-by: Jordan Ribbink <[email protected]>
* Add noop for add eth chain

* Run prettier

---------

Co-authored-by: Chase Fleming <[email protected]>
* Add typed params for wallet_addEthereumChain

* Run prettier

---------

Co-authored-by: Chase Fleming <[email protected]>
* Implement wallet_switchEthereumChain

* Run prettier

---------

Co-authored-by: Chase Fleming <[email protected]>
* Move to account manager

* Setup disconnect

* Run prettier

* Fix test

* Remove import

* Push fix

* Push fix

---------

Co-authored-by: Chase Fleming <[email protected]>
* Create COA on request accounts

* Add tests

* Fix test

* Remove

* Update test

* Refactor

* Add events

* Fix tests

* Run prettier

* Fix

* Move tx

* Move cadence

---------

Co-authored-by: Chase Fleming <[email protected]>
* Add UI for storage error

* Use shadow dom

---------

Co-authored-by: Chase Fleming <[email protected]>
* wip

* Add nonce script

* Add get Nonce

* Remove

* Change

* Run prettier

* Switch to bigint

* Remove and add test

* Remove

* Update tests

* Run prettier

* Fix test

* Move tests

* Run prettier

* Update packages/fcl-ethereum-provider/src/accounts/sign-message.test.ts

Co-authored-by: Jordan Ribbink <[email protected]>

---------

Co-authored-by: Chase Fleming <[email protected]>
Co-authored-by: Jordan Ribbink <[email protected]>
* Clean prefix handling

* Run prettier

---------

Co-authored-by: Chase Fleming <[email protected]>
chasefleming and others added 14 commits February 13, 2025 16:48
* Implement disconnected spec

* Fix disconnected

* Fix error

* Fix

* Update packages/fcl-wagmi-adapter/src/index.ts

Co-authored-by: Jordan Ribbink <[email protected]>

* Update packages/fcl-wagmi-adapter/src/index.ts

Co-authored-by: Jordan Ribbink <[email protected]>

* Fix

---------

Co-authored-by: Chase Fleming <[email protected]>
Co-authored-by: Jordan Ribbink <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Version Packages (cross-vm)

* Switch to v0.0.1 release

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jordan Ribbink <[email protected]>
Copy link

changeset-bot bot commented Feb 22, 2025

⚠️ No Changeset found

Latest commit: b938441

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@jribbink jribbink changed the base branch from master to feature/cross-vm February 22, 2025 08:08
jribbink and others added 8 commits February 26, 2025 08:57
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@jribbink jribbink marked this pull request as ready for review March 6, 2025 00:12
@jribbink jribbink requested a review from a team as a code owner March 6, 2025 00:12
@jribbink jribbink changed the title Jribbink/sign typed data fix Fix eth_signTypedData Mar 6, 2025
Base automatically changed from feature/cross-vm to master March 31, 2025 21:51
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