-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: Migrate from ethers.js to viem #113
Comments
i'm working on this @ch4r10t33r |
For any transactions to be made using walletClient of viem requires a field of chain. So we will have to get viem defined chain at runtime. I plan to add the following code to /utils/common.ts which will return viem defined chain using chainId. This will be used in all the functions which needs walletClient to make transactions.
let me know if there are any suggestions or improvements. |
what is the format of private key stored in AWS secrets manager |
Hi @nikhilkumar1612 yeah it follows viem's hex format |
hi @kanthgithub @ch4r10t33r |
Hi the chainId would be there on the DEPLOYED_ERC20_PAYMASTERS if you look at the structure of ERC20_PAYMASTERS on the README.md you would see that the key is the chainId and if you see inside PriceUpdate cron fn, on the first parameter of getNetworkConfig, chain is the chainId associated to each of the paymaster addresses |
hey i have raised a pr please review. |
Arka backend presently uses ethers.js to interact with the blockchain. We ought to be migrating all these functions to viem.
The text was updated successfully, but these errors were encountered: