Files
openzeppelin-contracts/docs/contract.hbs
Agostina Blanco 5183c6a307 Show visibility (#1945)
(cherry picked from commit 77ae18f12f)
2019-10-29 17:13:03 -03:00

67 lines
1.0 KiB
Handlebars

{{#linkable}}
:{{name}}: pass:normal[xref:#{{anchor}}[`{{name}}`]]
{{/linkable}}
[.contract]
[[{{anchor}}]]
=== `{{name}}`
{{natspec.devdoc}}
{{#if modifiers}}
[.contract-index]
.Modifiers
{{#inheritance}}
{{#ownModifiers}}
* xref:#{{anchor}}[`{{signature}}`]
{{/ownModifiers}}
{{/inheritance}}
{{/if}}
{{#if functions}}
[.contract-index]
.Functions
{{#inheritance}}
{{#ownFunctions}}
* xref:#{{anchor}}[`{{signature}}`]
{{/ownFunctions}}
{{/inheritance}}
{{/if}}
{{#if events}}
[.contract-index]
.Events
{{#inheritance}}
{{#ownEvents}}
* xref:#{{anchor}}[`{{signature}}`]
{{/ownEvents}}
{{/inheritance}}
{{/if}}
{{#ownModifiers}}
[.contract-item]
[[{{anchor}}]]
==== `{{name}}({{args}})`
{{natspec.devdoc}}
{{/ownModifiers}}
{{#ownFunctions}}
[.contract-item]
[[{{anchor}}]]
==== `{{name}}({{args}}){{#if outputs}}{{outputs}}{{/if}}` [.visibility]#{{visibility}}#
{{natspec.devdoc}}
{{/ownFunctions}}
{{#ownEvents}}
[.contract-item]
[[{{anchor}}]]
==== `{{name}}({{args}})`
{{natspec.devdoc}}
{{/ownEvents}}