tasitlabs / tasit-sdk

A JavaScript / TypeScript SDK for making native mobile Ethereum dapps using React Native
https://tasit.dev
MIT License
97 stars 10 forks source link

Initial draft of the tool for getting the address of a dapp’s main smart contract interface #5

Open pcowgill opened 6 years ago

pcowgill commented 6 years ago

The requirements are different for a standard contract vs. a ZOS-style delegateproxy upgradeable contract

pcowgill commented 6 years ago

Perhaps make use of ERC820

pcowgill commented 5 years ago

Related: https://api.stateofthedapps.com/dapps/augur

pcowgill commented 5 years ago

Paraphrasing from a convo with State of the Dapps team on Intercom:

How does State of the Dapps fetch the mainnet contract addresses for a given project? Manual curation? Crowdsourced? An API from another data source? Thanks!

All options possible. Typically a project provides it themselves when they submit their dapp, sometimes they (the State of the Dapps team) find it themselves. If it is frequently updated or if many addresses are used with typically use an API to sync it

Projects that provide their mainnet contract addresses rank higher, so there is an incentive for providing it and keeping it up to date

State of the Dapps API docs: https://state-of-the-dapps.github.io/slate/

It's not completely documented, but sufficient for a lot of usecases.

Oh, and what API do you use?

We can hook into an API provided by projects themself to parse CSV, JSON or GraphQL endpoints to ingest their contracts

Oh okay, so it's not like Etherscan or anything

This is on a per project basis. Nothing generic