Skip to content
This repository was archived by the owner on Apr 18, 2023. It is now read-only.

Allow failures and return the hash along with the number #6

Closed
wants to merge 8 commits into from

Conversation

BlinkyStitt
Copy link

Sometimes I'm aggregating calls and I expect some failures. This lets me aggregate them.

Returning the block hash helps me in the event of a re-org.

@BlinkyStitt
Copy link
Author

This needs tests for the new functions.

@BlinkyStitt
Copy link
Author

Oops. Should have done this on a branch.

@BlinkyStitt BlinkyStitt closed this Apr 8, 2020
sambacha pushed a commit to sambacha/multicall that referenced this pull request May 5, 2022
* ⚙️ Multicall3 First Draft (#1)

* ⚙️ multicall v3

* 🚧 add multicall3 section to the readme

* forge install: solmate

* forge install: forge-std

* 🚧 foundry multicall testing

* ⚙️ multicall2 🧪

* 🎨 design >>

* 🚧 multicall3 backwards-compatibility and aggregate3 testing

* 🚧 improve the foundry config toml

* 🧪 extreme fuzzing ci profile

* 🚧 add readme note for pragma changes

* ⚙️ length and loop optimization

* 🎨 clean up multi-line splits

* 🎨 styling and remove cache

* 🎨 clean up gitignore

* ⚙️ remove solmate sorry t11s :sadblob:

* 🎉 assert specificity

* 🎨🐛 fix logo markdown rendering

* 🎨🐛 fix logo markdown rendering

* chore: config cleanup + fix solc version + increase optimizer runs

* style: add space before parentheses in for statements

* test: replace solidity assert with DSTest assertTrue

* chore: remove unused files + move remappings to config file

* ci: fix tests

* ⚙️ t11s working improvement branch

* 🚧 cleaning for merge

* chore: change memory params to calldata for gas savings

* chore: a bit of cleanup/revert string tweaks

* chore: update gas snapshots

* docs: update README

Co-authored-by: Matt Solomon <[email protected]>

* ⚙️ Community Suggestions (makerdao#3)

* ⚙️ optimize aggregate

* 🚧 pointer optimization

* build: change method from view to pure per compiler warning

Co-authored-by: Matt Solomon <[email protected]>

* 🛢️ Payable Gas Reductions (makerdao#4)

* ⚙️ make functions payable

* :gas: gas snapshot

* ⚙️ payable dev note at top of contract

* 💰 Aggregate3Value (makerdao#5)

* 🚧 aggregate3value and docs

* Update src/Multicall3.sol

Co-authored-by: Matt Solomon <[email protected]>

* ⚙️ spacing

* 🚧 specified fixes

* ⚙️ fix accumulator

Co-authored-by: Matt Solomon <[email protected]>

* 🚧 Finishing Touches (makerdao#6)

* 🚧 finalize multicall3 pr

* ⚙️ optimize call value pointer

* ⚙️ addition accessors

* 🚧 remove misc from agg3

* ⚙️ failing to revert

* wip: fix parsing of data, but foundry not catching assembly revert?

* stash

* 🚧 remove outdated gas 💩

* 🚑 add to gitignore 🔒

* feat: save gas in aggregate3Value

* chore: update revert strings for consistency/clarity

* ❌ Remove Brewfile

* docs: update docs

* docs: update comments

Co-authored-by: Matt Solomon <[email protected]>

* chore: update docs

* feat: gas savings

* docs: make comments more concise

* 🔨 bad calls length ref

* chore/docs: some cleanup

* docs: add deploys

Co-authored-by: abigger87 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant