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

Nonce manager #59

Merged
merged 11 commits into from Sep 7, 2020
Merged

Nonce manager #59

merged 11 commits into from Sep 7, 2020

Conversation

gakonst
Copy link
Owner

@gakonst gakonst commented Aug 20, 2020

Motivation

It'd be nice if we had a way to sign multiple transactions locally and have the client auto-figure what the nonce for the transactions should be.

Solution

Override the default remote nonce logic with a locally managed one, falling back to the on-chain call if there's a nonce mismatch

  • Also improves json error messages from the HTTP provider (finally)

@gakonst gakonst changed the base branch from master to multicall-reference August 20, 2020 20:24
Base automatically changed from multicall-reference to master August 21, 2020 12:54
@gakonst gakonst marked this pull request as ready for review September 3, 2020 14:08
@gakonst gakonst merged commit fb8f5a8 into master Sep 7, 2020
@gakonst gakonst deleted the nonce-manager branch September 7, 2020 10:26
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
* feat: create cheatcode module

* feat import MemoryStackState from upstream

* feat(memory-stack-state-owned): modify to own the backend type

requires using our patch of the upstream evm until rust-ethereum/evm#62 is merged

* feat(backend): add cheatcode backend (wrapper around backends)

* feat(evm): generalize Sputnik's stack executor to trait

This will allow us to instantiate the Sputnik EVM executor with a cheatcode-enabled one

* feat(handler): add cheatcode handler to apply cheatcodes dynamically

* feat(CheatcodeHandler): first pass at implementing SputnikExecutor

* feat: import upstream transact_call

* fix: modify transact_call to use newly exposed handler methods

* feat: import upstream call_inner

* fix: modify `call_inner` to use newly exposed handler methods

* feat: enable cheatcode via Solidity

* chore: cargo fmt

* chore: remove unused tracing and dbg macros

* feat: enable roll and warp cheatcodes

* chore: upgrade ethers to allow short human readable function sigs

* chore: cargo fmt

* feat: add helper function for instantiating cheatcode evm

* feat(cli): enable cheatcodes

* chore: bump deps
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.

None yet

3 participants