-
Notifications
You must be signed in to change notification settings - Fork 795
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, interested in any thoughts/comments on this from @brockelmore @prestwich @mattsse. We can start hardcoding more addresses, e.g. the ones from MEV Inspect https://github.com/flashbots/mev-inspect-rs/blob/master/src/addresses.rs, or figure out some nice way (maybe a build.rs?) to further populate the addressbook with tokenlist information for token name / ticker / addr
Just came across this feature, and really like this idea and how it fits into
|
Thanks, Matt. Yeah. We've been collecting names and addresses since about 2016, so there are currently ~11,300 names in our database. It's here: https://github.com/TrueBlocks/trueblocks-core/blob/master/src/other/install/names/names.tab No guarantee that it's accurate (except for the entries that have We always wanted this to be public -- we don't feel bad about collecting names if people are going to post them on Twitter for example, so would be totally open to building something that works. If you look at the rest of TrueBlocks, you'll see we publish a periodic manifest of the index we build to IPFS. This lets us run this index database without any infrastructure costs. Our code reads the IPFS hash of the manifest from a smart contract and pulls the entire index database from IPFS with no servers. We're going to be adding the Here's a short video explaining that process: https://unchainedindex.io/ I made basically the same comment here: https://community.tokenlists.org/t/putting-these-token-lists-on-ipfs-and-then-publishing-the-ipfs-hash-to-a-smart-contract/596 |
Motivation
The
ethers-addressbook
crate adds the addresses of frequently used contracts for various networks (mainnet, ropsten, etc.). We expose a functioncontract
:A
Contract
struct is simply a hash map, mapping a network name to that contract's address on that network.The goal is to use this crate as dependency in Foundry to allow users to
cast send
transactions targeting contracts such asDAI
,USDC
or other commonly used ones as per the below UX:Future PRs are expected to be limited to simply adding more contracts and/or their addresses for more networks (chain IDs) in the
ethers-addressbook/src/contracts/contracts.json
JSON file.PR Checklist