|
| 1 | +{{reset-function-counts}}<a id="{{anchor}}"></a> |
| 2 | + |
| 3 | +<div style=\{{marginTop: "4em"}} className="w-full flex flex-row items-center justify-between"> |
| 4 | + |
| 5 | +## `{{{name}}}` |
| 6 | + |
| 7 | +<a target="_blank" style=\{{marginTop: "1.5em"}} href="https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v{{oz-version}}/{{__item_context.file.absolutePath}}"> |
| 8 | +<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-github-icon lucide-github"><path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/><path d="M9 18c-4.51 2-5-2-7-2"/></svg> |
| 9 | +</a> |
| 10 | + |
| 11 | +</div> |
| 12 | + |
| 13 | +```solidity |
| 14 | +import "@openzeppelin/{{__item_context.file.absolutePath}}"; |
| 15 | +``` |
| 16 | + |
| 17 | +{{{process-natspec natspec.dev}}} |
| 18 | + |
| 19 | +{{#if modifiers}} |
| 20 | +<div className="bg-secondary p-4 rounded-md mb-6"> |
| 21 | +<h3 style=\{{ marginTop: "0"}}>Modifiers</h3> |
| 22 | +<div className="font-mono"> |
| 23 | +{{#each modifiers}} |
| 24 | +- [{{{name}}}({{names params}})](#{{anchor}}) |
| 25 | +{{/each}} |
| 26 | +</div> |
| 27 | +</div> |
| 28 | +{{/if}} |
| 29 | + |
| 30 | + |
| 31 | +{{#if has-functions}} |
| 32 | +<div className="bg-secondary p-4 rounded-md mb-6"> |
| 33 | +<h3 style=\{{ marginTop: "0"}}>Functions</h3> |
| 34 | +<div className="font-mono"> |
| 35 | +{{#each inherited-functions}} |
| 36 | +{{#unless @first}} |
| 37 | +#### {{contract.name}} [!toc] |
| 38 | +{{/unless}} |
| 39 | +{{#each functions}} |
| 40 | +- [{{{name}}}({{names params}})](#{{anchor}}) |
| 41 | +{{/each}} |
| 42 | +{{/each}} |
| 43 | +</div> |
| 44 | +</div> |
| 45 | +{{/if}} |
| 46 | + |
| 47 | +{{#if has-events}} |
| 48 | +<div className="bg-secondary p-4 rounded-md mb-6"> |
| 49 | +<h3 style=\{{ marginTop: "0"}}>Events</h3> |
| 50 | +<div className="font-mono"> |
| 51 | +{{#each inheritance}} |
| 52 | +{{#unless @first}} |
| 53 | +#### {{name}} [!toc] |
| 54 | +{{/unless}} |
| 55 | +{{#each events}} |
| 56 | +- [{{{name}}}({{names params}})](#{{anchor}}) |
| 57 | +{{/each}} |
| 58 | +{{/each}} |
| 59 | +</div> |
| 60 | +</div> |
| 61 | +{{/if}} |
| 62 | + |
| 63 | +{{#if has-errors}} |
| 64 | +<div className="bg-secondary p-4 rounded-md mb-6"> |
| 65 | +<h3 style=\{{ marginTop: "0"}}>Errors</h3> |
| 66 | +<div className="font-mono"> |
| 67 | +{{#each inheritance}} |
| 68 | +{{#unless @first}} |
| 69 | +#### {{name}} [!toc] |
| 70 | +{{/unless}} |
| 71 | +{{#each errors}} |
| 72 | +- [{{{name}}}({{names params}})](#{{anchor}}) |
| 73 | +{{/each}} |
| 74 | +{{/each}} |
| 75 | +</div> |
| 76 | +</div> |
| 77 | +{{/if}} |
| 78 | + |
| 79 | +{{#each modifiers}} |
| 80 | +<a id="{{anchor}}"></a> |
| 81 | + |
| 82 | +<div className="border rounded-md mb-4"> |
| 83 | +<div className="bg-secondary flex w-full justify-between px-4"> |
| 84 | +<p className="font-bold text-sm font-mono">{{{name}}}({{typed-params params}})</p> |
| 85 | +<div className="flex flex-row items-center gap-2"> |
| 86 | +<p className="font-light text-sm">{{visibility}}</p> |
| 87 | +<a className="peer" data-card href="{{anchor}}">#</a> |
| 88 | +</div> |
| 89 | +</div> |
| 90 | + |
| 91 | +<div className="px-4"> |
| 92 | + |
| 93 | +{{{process-natspec natspec.dev}}} |
| 94 | + |
| 95 | +</div> |
| 96 | +</div> |
| 97 | + |
| 98 | +{{/each}} |
| 99 | + |
| 100 | +{{#each functions}} |
| 101 | +<a id="{{anchor}}"></a> |
| 102 | + |
| 103 | +<div className="border rounded-md mb-4"> |
| 104 | +<div className="bg-secondary flex w-full justify-between px-4"> |
| 105 | +<p className="font-bold text-sm font-mono">{{{name}}}({{typed-params params}}){{#if returns2}} → {{typed-params returns2}}{{/if}}</p> |
| 106 | +<div className="flex flex-row items-center gap-2"> |
| 107 | +<p className="font-light text-sm">{{visibility}}</p> |
| 108 | +<a className="peer" data-card href="{{anchor}}">#</a> |
| 109 | +</div> |
| 110 | +</div> |
| 111 | +<div className="px-4"> |
| 112 | + |
| 113 | +{{{process-natspec natspec.dev}}} |
| 114 | + |
| 115 | +</div> |
| 116 | +</div> |
| 117 | + |
| 118 | +{{/each}} |
| 119 | + |
| 120 | +{{#each events}} |
| 121 | +<a id="{{anchor}}"></a> |
| 122 | + |
| 123 | +<div className="border rounded-md mb-4"> |
| 124 | +<div className="bg-secondary flex w-full justify-between px-4"> |
| 125 | +<p className="font-bold text-sm font-mono">{{{name}}}({{typed-params params}})</p> |
| 126 | +<div className="flex flex-row items-center gap-2"> |
| 127 | +<p className="font-light text-sm">event</p> |
| 128 | +<a className="peer" data-card href="{{anchor}}">#</a> |
| 129 | +</div> |
| 130 | +</div> |
| 131 | + |
| 132 | +<div className="px-4"> |
| 133 | + |
| 134 | +{{{process-natspec natspec.dev}}} |
| 135 | + |
| 136 | +</div> |
| 137 | +</div> |
| 138 | +{{/each}} |
| 139 | + |
| 140 | +{{#each errors}} |
| 141 | +<a id="{{anchor}}"></a> |
| 142 | + |
| 143 | +<div className="border rounded-md mb-4"> |
| 144 | +<div className="bg-secondary flex w-full justify-between px-4"> |
| 145 | +<p className="font-bold text-sm font-mono">{{{name}}}({{typed-params params}})</p> |
| 146 | +<div className="flex flex-row items-center gap-2"> |
| 147 | +<p className="font-light text-sm">error</p> |
| 148 | +<a className="peer" data-card href="{{anchor}}">#</a> |
| 149 | +</div> |
| 150 | +</div> |
| 151 | +<div className="px-4"> |
| 152 | + |
| 153 | +{{{process-natspec natspec.dev}}} |
| 154 | + |
| 155 | +</div> |
| 156 | +</div> |
| 157 | + |
| 158 | +{{/each}} |
0 commit comments