huff-examples icon indicating copy to clipboard operation
huff-examples copied to clipboard

feat: Foundry Port

Open refcell opened this issue 3 years ago • 5 comments

refcell avatar Aug 02 '22 15:08 refcell

whats the relationship between this repo and huffmates. for example how will the erc20 in this repo differ from huffmate? which repo do we encourage contributors to use?

devtooligan avatar Aug 02 '22 19:08 devtooligan

whats the relationship between this repo and huffmates. for example how will the erc20 in this repo differ from huffmate? which repo do we encourage contributors to use?

This is a good question, currently it is not obvious even after digesting the READMEs of both repos. The distinction is intended to be that huff-examples contain fully working, instantiable contracts (think: the mock contracts of huffmate). Whereas huffmate contains building blocks for creating contracts - they themselves are not instantiable.

Will make this distinction clear in this branches readme before merging.

refcell avatar Aug 02 '22 20:08 refcell

Further - I think it's important to have both as one serves as a way to fully understand huff contracts, whereas the other (huffmate) serves as a devtool.

Especially given the fact that huff in general is such a low-level language, it makes sense to push out as many fleshed out (well tested, heavily documented, and standardized) contracts as possible IMO

refcell avatar Aug 02 '22 20:08 refcell

thats a v clear explanation. so if thats the case should these ctrcts import the huffmate "abstract" ctrcts?

devtooligan avatar Aug 02 '22 20:08 devtooligan

thats a v clear explanation. so if thats the case should these ctrcts import the huffmate "abstract" ctrcts?

Yooo, yes that's a great idea. Will implement in this branch. Great point!

refcell avatar Aug 02 '22 20:08 refcell