soliditypatterns.gno
0.76 Kb ยท 20 lines
1package soliditypatterns
2
3func Render(_ string) string {
4 content := `# Common Solidity Patterns
5
6This is a list of common Solidity patterns, converted and explained to match Gno best practices.
7
8## Examples
9
10- [Basic Counter](/r/docs/soliditypatterns/counter) - Increment and decrement a counter stored in a contract.
11- [Only Owner can change](/r/docs/soliditypatterns/ownable) - Simple example of ownership over a contract.
12- [State Lock](/r/docs/soliditypatterns/statelock) - Modifiers.
13- More common examples coming soon!
14
15> [!NOTE]
16> If you have experience with Solidity, or a common pattern is missing from this list, please add more examples to the [Monorepo](https://github.com/gnolang/gno/tree/master/examples/gno.land/r/docs/soliditypatterns)!
17
18`
19 return content
20}