contract.hbs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {{~#*inline "typed-variable-array"~}}
  2. {{#each .}}++[.var-type]#++{{typeName}}++#++{{#if name}} ++[.var-name]#++{{name}}++#++{{/if}}{{#unless @last}}, {{/unless}}{{/each}}
  3. {{~/inline~}}
  4. {{#each linkable}}
  5. :{{name}}: pass:normal[xref:#{{anchor}}[`++{{name}}++`]]
  6. {{/each}}
  7. [.contract]
  8. [[{{anchor}}]]
  9. === `++{{name}}++`
  10. {{natspec.devdoc}}
  11. {{#if modifiers}}
  12. [.contract-index]
  13. .Modifiers
  14. --
  15. {{#each inheritedItems}}
  16. {{#unless @first}}
  17. [.contract-subindex-inherited]
  18. .{{contract.name}}
  19. {{/unless}}
  20. {{#each modifiers}}
  21. * {xref-{{slug anchor~}} }[`++{{name}}({{args.names}})++`]
  22. {{/each}}
  23. {{/each}}
  24. --
  25. {{/if}}
  26. {{#if functions}}
  27. [.contract-index]
  28. .Functions
  29. --
  30. {{#each inheritedItems}}
  31. {{#unless @first}}
  32. [.contract-subindex-inherited]
  33. .{{contract.name}}
  34. {{/unless}}
  35. {{#each functions}}
  36. * {xref-{{slug anchor~}} }[`++{{name}}({{args.names}})++`]
  37. {{/each}}
  38. {{/each}}
  39. --
  40. {{/if}}
  41. {{#if events}}
  42. [.contract-index]
  43. .Events
  44. --
  45. {{#each inheritedItems}}
  46. {{#unless @first}}
  47. [.contract-subindex-inherited]
  48. .{{contract.name}}
  49. {{/unless}}
  50. {{#each events}}
  51. * {xref-{{slug anchor~}} }[`++{{name}}({{args.names}})++`]
  52. {{/each}}
  53. {{/each}}
  54. --
  55. {{/if}}
  56. {{#each ownModifiers}}
  57. [.contract-item]
  58. [[{{anchor}}]]
  59. ==== `++{{name}}({{> typed-variable-array args}})++` [.item-kind]#modifier#
  60. {{natspec.devdoc}}
  61. {{/each}}
  62. {{#each ownFunctions}}
  63. [.contract-item]
  64. [[{{anchor}}]]
  65. ==== `++{{name}}({{> typed-variable-array args}}){{#if outputs}} → {{> typed-variable-array outputs}}{{/if}}++` [.item-kind]#{{visibility}}#
  66. {{natspec.devdoc}}
  67. {{/each}}
  68. {{#each ownEvents}}
  69. [.contract-item]
  70. [[{{anchor}}]]
  71. ==== `++{{name}}({{> typed-variable-array args}})++` [.item-kind]#event#
  72. {{natspec.devdoc}}
  73. {{/each}}