blockchainsllc / piet

GNU General Public License v3.0
110 stars 14 forks source link

Load contract from github #3

Open jbentke opened 5 years ago

jbentke commented 5 years ago

Would be nice to have a feature to load contracts straight from github like https://github.com/TennaGraph/TennaGraph/blob/master/smart_contracts/contracts/VotingManager.sol

hai-ko commented 5 years ago

@jbentke that is already possible by using url parameters see https://blog.slock.it/analyzing-solidity-smart-contracts-with-piet-6db33a733e79 e.g. https://piet.slock.it/?gitHubUser=gnosis&gitHubRepo=safe-contracts&subDir=contracts

jbentke commented 5 years ago

a button would be nicer thow instead of messing directly with the url

hai-ko commented 5 years ago

Agreed, I'll add this feature. I did first the URL solution because this makes it possible to send someone a link that directly loads the contracts.

KoenBal commented 4 years ago

Sometimes working in chrome https://piet.slock.it/?gitHubUser=gnosis&gitHubRepo=safe-contracts&subDir=contracts/common https://piet.slock.it/?gitHubUser=celo-org&gitHubRepo=celo-monorepo&subDir=packages/protocol/contracts/stability

I often receive the notification:

Error: Request failed with status code 403 while loading the GitHub repository. Are you trying to access a private repository? or Error: Request failed with status code 403 while loading the GitHub repository.

While it is obviously not a private repo.

no pop-up or anything in Brave https://piet.slock.it/?gitHubUser=celo-org&gitHubRepo=celo-monorepo&subDir=packages/protocol/contracts/stability

KoenBal commented 4 years ago

Oke, it seems related to the GitHub rate limit

documentation_url: "https://developer.github.com/v3/#rate-limiting" message: "API rate limit exceeded for 92.223.89.138. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)"