trufflesuite / truffle

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
14.02k stars 2.31k forks source link

Truffle Box that uses a Diamond #3113

Open mudgen opened 4 years ago

mudgen commented 4 years ago

It would be really great if there was a Truffle box that used a Diamond so people would have a nice example of how to use diamonds with Truffle.

"A diamond is a set of contracts that can access the same storage variables and share the same Ethereum address."

The Diamond Standard is here: https://github.com/ethereum/EIPs/issues/2535

haltman-at commented 4 years ago

Hm, Truffle boxes are actually under https://github.com/truffle-box , but I guess there's no way to file an issue for an organization as a whole, so maybe this is an OK place for it? @cds-amal?

mudgen commented 4 years ago

Yes, I initially looked for a way to open an issue there but I couldn't.

cds-amal commented 4 years ago

Hi @mudgen, That's a great idea! Do you have an example box? We would love to add it to our community boxes.

mudgen commented 4 years ago

@cds-amal I don't have one. But the reference implementation for diamonds is here: https://github.com/mudgen/Diamond

I was hoping someone who knows how to make truffle boxes might use the Diamond reference implementation and make one.

fainashalts commented 4 years ago

@mudgen or anyone else who's interested in tackling this, here is a link for how to create a box: https://www.trufflesuite.com/docs/truffle/advanced/creating-a-truffle-box