Flat precompiled files?

Is there any directory of the core Open Zeppelin Solidity contracts that are flattened into single files? For example, the ERC721.sol contract imports about 5 other files, but it can be helpful for contract validation on etherscan and other places.

Maybe this could its own little library? I get that one big file is less readable but in several situations it can be helpful.

Hmm, no we don’t provide flattened files. But it’s pretty easy to make them yourself by using truffle-flattener for example. It’s what I always use when I need to validate on Etherscan or test something on Remix.

I’d be against having a separate library with flattened files because it will be an added effort to maintain, and more things that can go wrong, or be out of sync, etc.

1 Like

Can you please offer better documentation then on how to use the flattener in combination with the new oz CLI tool? I am attempting to use it but I have my project setup for using your tools not truffle.

1 Like

Nevermind, I found some more info on more recent posts about using oz verify.
thanks!

2 Likes

Glad to hear @Skyler_Fly, whould you mind sharing it in here so anyone else looking for it can find them easily :slight_smile:

A post was split to a new topic: How to verify a regular contract inheriting from OpenZeppelin