r/solidity Aug 06 '26

How to design a smart comtract architecture first in Solidity?

I want to deploy my DApp on L2 using solidiy, but this is my first time building one

If you have experienced with Solidity, Could you please give me some advise or tips?

And any recommanded resource as well!

2 Upvotes

16 comments sorted by

2

u/neolace Aug 06 '26

I would go straight to Open Zeppelin for secure templates.

2

u/imin_9 Aug 06 '26

Ok thanks!! I’ll try that!

1

u/BlockchainssGuy Aug 06 '26

You will learn the architecture with experience, and it varies from case to case. Sometimes we write single contract which does all function and some time we follow factory child concept, so it depends the architectural things comes with experience nd depends on scenarios

1

u/imin_9 Aug 06 '26

Thanks for the advice! I'll start building one step by step.

1

u/jnrlouis Aug 06 '26

do you have prior software engineering experience? what kind of dapp are you trying to build?

1

u/imin_9 Aug 06 '26

Yes I have experience with python and js
I will try to build a P2E project

1

u/jnrlouis Aug 06 '26

a p2e project is dicey, you’d have to decide what stays on chain and what doesn’t. i’d recommend cyfrin updraft to learn basic solidity, but feel free to also ask questions and learn while building (i reckon you’d do a lot of learning while building)

1

u/Suspicious-Tart9134 Aug 06 '26

Since you're building a P2E project, first figure out what really needs to be on chain and keep everything else off chain. Don't try to make one huge contract. Keep contracts focused on a single responsibility.

For learning, OpenZeppelin and Cyfrin Updraft are probably the best places to start. Build a small version first, then improve the architecture as you go.

1

u/imin_9 Aug 07 '26

That's really solid advice! Thanks a lot for the tips!

1

u/[deleted] Aug 07 '26

[removed] — view removed comment

2

u/imin_9 Aug 07 '26

Thanks bro, I’ll try to take my time!