Network-Goods / hypercerts-protocol

MIT License
13 stars 5 forks source link

Unable to reproduce contract ABI #89

Closed jmoggr closed 1 year ago

jmoggr commented 1 year ago

LOW PRIORITY

I am not sure how to create to the contract ABIs. None of the commands in the README created the 'abi' folder and I can't find anything specifically about producing the ABI in the foundry documentation (besides that it's supposed to be created during compilation, which didn't happen for me).

I also tried compiling with solc and solcjs but was unable to get either to work with the remapping of the lib folder paths.

bitbeckers commented 1 year ago

You can run yarn hardhat compile which compiles the contracts and generates both and abi and artifacts folder. We use hardhat because of the OZ integration providing safety checks on UUPS upgrades.

jmoggr commented 1 year ago

That worked! Thanks, I'll update the README later today.