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 viem #594

Open
ennioVisco opened this issue Nov 20, 2023 · 3 comments · May be fixed by #665
Open

Support viem #594

ennioVisco opened this issue Nov 20, 2023 · 3 comments · May be fixed by #665
Labels
enhancement New feature or request

Comments

@ennioVisco
Copy link

ennioVisco commented Nov 20, 2023

Although viem is the "new kid in town", it provides a very pleasand and efficient API, it is astonishingly well-documented (see it yourselves at viem.sh), and is becoming popular extremely fast (look at the library trends here: https://npmtrends.com/ethers-vs-viem-vs-web3).

Please consider adding an adapter supporting it!

Extras

Related stackexchange thread by other people: https://ethereum.stackexchange.com/questions/155920/viemadapter-for-safe-global-protocol-kit?newreg=4a47bdd49aa04caf8c92ae0eec448c46

@dasanra dasanra added the enhancement New feature or request label Nov 20, 2023
@farreldarian farreldarian linked a pull request Jan 14, 2024 that will close this issue
@farreldarian
Copy link

farreldarian commented Jan 14, 2024

I just created a draft for the ViemAdapter, still need to check on the GS026 error when testing

@ennioVisco
Copy link
Author

@farreldarian perhaps also the strategy of a custom transport implementing EIP-1193 could be a good less-heavy alternative. What do you think? (see #651)

@farreldarian
Copy link

@farreldarian perhaps also the strategy of a custom transport implementing EIP-1193 could be a good less-heavy alternative. What do you think? (see #651)

I designed it to be compatible with any client, allowing you to initialize it with any type of transport. (ref)

const adapter = new ViemAdapter({
    client: createClient({
        transport: <your-transport>,
        ...
    })
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants