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

Integration: transaction replay #439

Merged
merged 12 commits into from
Sep 8, 2023

Conversation

marcomariscal
Copy link
Contributor

@marcomariscal marcomariscal commented Aug 30, 2023

Description

Adds a new integration for replaying any arbitrary transaction (only mainnet for now) via the TransactionReplay widget. The widget enables users to resubmit a transaction as is, or modify any parameters. More work is needed to handle different types, complex objects as parameters, etc.

To test

The integration has been tested for different scenarios, including contract calls and simple ETH transfers. ETH transfers appear to work well, but contract calls can be complex, where changing parameters is not straightforward, and can lead to failures more often than not.

Comments

  • Viem is added here because it was more simple to decode than ethers (let me know if you'd rather me just use ethers), and wanting to use it going forward
  • useAbi and abi fetching logic can probably be moved to the backend; you'll need an etherscan api key for this
  • the corresponding backend pr to handle widget yaml updates, etc. is here

Demo

Screen.Recording.2023-08-31.at.11.12.38.AM.mov

@netlify
Copy link

netlify bot commented Aug 30, 2023

Deploy Preview for ironclad-parent ready!

Name Link
🔨 Latest commit ecb3205
🔍 Latest deploy log https://app.netlify.com/sites/ironclad-parent/deploys/64f0cf5667ef730008bfe6ba
😎 Deploy Preview https://deploy-preview-439--ironclad-parent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@marcomariscal marcomariscal merged commit 95218df into dev Sep 8, 2023
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