Skip to content

Migrate from ethers to alloy, a macro for calls, and bugfixes - #8

Open
BlinkyStitt wants to merge 35 commits into
georgewhewell:mainfrom
SatoshiAndKin:main
Open

Migrate from ethers to alloy, a macro for calls, and bugfixes#8
BlinkyStitt wants to merge 35 commits into
georgewhewell:mainfrom
SatoshiAndKin:main

Conversation

@BlinkyStitt

Copy link
Copy Markdown

I migrated most of the code from ethers to alloy. Then I used some AI tools to finish the migration. I also worked with the AI to add some helpful macros for using a contract instance instead of taking the address. the old call way still works.

I also noticed that the example bin was not properly printing its logs and it was using delegatecall when it should have been using call. I fixed the decoding for dynamic types.

Before:

$ cargo run --example example

...

Logs:
LogStringFilter(LogStringFilter { message: "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\u{12}" })
LogUintFilter(LogUintFilter { message: 0 })

Now:

$ PROVIDER_URL=http://yourrpc:8545 cargo run --example example

...

Logs:
LogString(LogString { message: "Checking balance.." })
LogUint(LogUint { message: 877304035508619364349897 })

BlinkyStitt and others added 21 commits December 17, 2025 12:02
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Expose CALL/DELEGATECALL/STATICCALL APIs and macro support; add tests for flag encoding.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Default to http://localhost:8545 when PROVIDER_URL is not set.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@georgewhewell

Copy link
Copy Markdown
Owner

hey @BlinkyStitt sorry i didn't see this PR for so long :(

i haven't had occasion to use this lib since the original code, but would be nice to have it usable still- happy to merge this if you are using it and it works? thanks for sharing :)

BlinkyStitt and others added 3 commits May 21, 2026 20:05
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
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