interfaces.adoc 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410
  1. :github-icon: pass:[<svg class="icon"><use href="#github-icon"/></svg>]
  2. :IERC20: pass:normal[xref:token/ERC20.adoc#IERC20[`IERC20`]]
  3. :IERC20Errors: pass:normal[xref:interfaces.adoc#IERC20Errors[`IERC20Errors`]]
  4. :IERC20Metadata: pass:normal[xref:token/ERC20.adoc#IERC20Metadata[`IERC20Metadata`]]
  5. :IERC165: pass:normal[xref:utils.adoc#IERC165[`IERC165`]]
  6. :IERC721: pass:normal[xref:token/ERC721.adoc#IERC721[`IERC721`]]
  7. :IERC721Receiver: pass:normal[xref:token/ERC721.adoc#IERC721Receiver[`IERC721Receiver`]]
  8. :IERC721Enumerable: pass:normal[xref:token/ERC721.adoc#IERC721Enumerable[`IERC721Enumerable`]]
  9. :IERC721Metadata: pass:normal[xref:token/ERC721.adoc#IERC721Metadata[`IERC721Metadata`]]
  10. :IERC721Errors: pass:normal[xref:interfaces.adoc#IERC721Errors[`IERC721Errors`]]
  11. :IERC777: pass:normal[xref:interfaces.adoc#IERC777[`IERC777`]]
  12. :IERC777Recipient: pass:normal[xref:interfaces.adoc#IERC777Recipient[`IERC777Recipient`]]
  13. :IERC777Sender: pass:normal[xref:interfaces.adoc#IERC777Sender[`IERC777Sender`]]
  14. :IERC1155: pass:normal[xref:token/ERC1155.adoc#IERC1155[`IERC1155`]]
  15. :IERC1155Receiver: pass:normal[xref:token/ERC1155.adoc#IERC1155Receiver[`IERC1155Receiver`]]
  16. :IERC1155MetadataURI: pass:normal[xref:token/ERC1155.adoc#IERC1155MetadataURI[`IERC1155MetadataURI`]]
  17. :IERC1155Errors: pass:normal[xref:interfaces.adoc#IERC1155Errors[`IERC1155Errors`]]
  18. :IERC1271: pass:normal[xref:interfaces.adoc#IERC1271[`IERC1271`]]
  19. :IERC1363: pass:normal[xref:interfaces.adoc#IERC1363[`IERC1363`]]
  20. :IERC1363Receiver: pass:normal[xref:interfaces.adoc#IERC1363Receiver[`IERC1363Receiver`]]
  21. :IERC1363Spender: pass:normal[xref:interfaces.adoc#IERC1363Spender[`IERC1363Spender`]]
  22. :IERC1820Implementer: pass:normal[xref:interfaces.adoc#IERC1820Implementer[`IERC1820Implementer`]]
  23. :IERC1820Registry: pass:normal[xref:interfaces.adoc#IERC1820Registry[`IERC1820Registry`]]
  24. :IERC1822Proxiable: pass:normal[xref:interfaces.adoc#IERC1822Proxiable[`IERC1822Proxiable`]]
  25. :IERC2612: pass:normal[xref:interfaces.adoc#IERC2612[`IERC2612`]]
  26. :IERC2981: pass:normal[xref:interfaces.adoc#IERC2981[`IERC2981`]]
  27. :IERC3156FlashLender: pass:normal[xref:interfaces.adoc#IERC3156FlashLender[`IERC3156FlashLender`]]
  28. :IERC3156FlashBorrower: pass:normal[xref:interfaces.adoc#IERC3156FlashBorrower[`IERC3156FlashBorrower`]]
  29. :IERC4626: pass:normal[xref:interfaces.adoc#IERC4626[`IERC4626`]]
  30. :IERC4906: pass:normal[xref:interfaces.adoc#IERC4906[`IERC4906`]]
  31. :IERC5267: pass:normal[xref:interfaces.adoc#IERC5267[`IERC5267`]]
  32. :IERC5313: pass:normal[xref:interfaces.adoc#IERC5313[`IERC5313`]]
  33. :IERC5805: pass:normal[xref:interfaces.adoc#IERC5805[`IERC5805`]]
  34. :IERC6372: pass:normal[xref:interfaces.adoc#IERC6372[`IERC6372`]]
  35. :xref-IERC20Errors-ERC20InsufficientBalance-address-uint256-uint256-: xref:interfaces.adoc#IERC20Errors-ERC20InsufficientBalance-address-uint256-uint256-
  36. :xref-IERC20Errors-ERC20InvalidSender-address-: xref:interfaces.adoc#IERC20Errors-ERC20InvalidSender-address-
  37. :xref-IERC20Errors-ERC20InvalidReceiver-address-: xref:interfaces.adoc#IERC20Errors-ERC20InvalidReceiver-address-
  38. :xref-IERC20Errors-ERC20InsufficientAllowance-address-uint256-uint256-: xref:interfaces.adoc#IERC20Errors-ERC20InsufficientAllowance-address-uint256-uint256-
  39. :xref-IERC20Errors-ERC20InvalidApprover-address-: xref:interfaces.adoc#IERC20Errors-ERC20InvalidApprover-address-
  40. :xref-IERC20Errors-ERC20InvalidSpender-address-: xref:interfaces.adoc#IERC20Errors-ERC20InvalidSpender-address-
  41. :xref-IERC721Errors-ERC721InvalidOwner-address-: xref:interfaces.adoc#IERC721Errors-ERC721InvalidOwner-address-
  42. :xref-IERC721Errors-ERC721NonexistentToken-uint256-: xref:interfaces.adoc#IERC721Errors-ERC721NonexistentToken-uint256-
  43. :xref-IERC721Errors-ERC721IncorrectOwner-address-uint256-address-: xref:interfaces.adoc#IERC721Errors-ERC721IncorrectOwner-address-uint256-address-
  44. :xref-IERC721Errors-ERC721InvalidSender-address-: xref:interfaces.adoc#IERC721Errors-ERC721InvalidSender-address-
  45. :xref-IERC721Errors-ERC721InvalidReceiver-address-: xref:interfaces.adoc#IERC721Errors-ERC721InvalidReceiver-address-
  46. :xref-IERC721Errors-ERC721InsufficientApproval-address-uint256-: xref:interfaces.adoc#IERC721Errors-ERC721InsufficientApproval-address-uint256-
  47. :xref-IERC721Errors-ERC721InvalidApprover-address-: xref:interfaces.adoc#IERC721Errors-ERC721InvalidApprover-address-
  48. :xref-IERC721Errors-ERC721InvalidOperator-address-: xref:interfaces.adoc#IERC721Errors-ERC721InvalidOperator-address-
  49. :xref-IERC1155Errors-ERC1155InsufficientBalance-address-uint256-uint256-uint256-: xref:interfaces.adoc#IERC1155Errors-ERC1155InsufficientBalance-address-uint256-uint256-uint256-
  50. :xref-IERC1155Errors-ERC1155InvalidSender-address-: xref:interfaces.adoc#IERC1155Errors-ERC1155InvalidSender-address-
  51. :xref-IERC1155Errors-ERC1155InvalidReceiver-address-: xref:interfaces.adoc#IERC1155Errors-ERC1155InvalidReceiver-address-
  52. :xref-IERC1155Errors-ERC1155MissingApprovalForAll-address-address-: xref:interfaces.adoc#IERC1155Errors-ERC1155MissingApprovalForAll-address-address-
  53. :xref-IERC1155Errors-ERC1155InvalidApprover-address-: xref:interfaces.adoc#IERC1155Errors-ERC1155InvalidApprover-address-
  54. :xref-IERC1155Errors-ERC1155InvalidOperator-address-: xref:interfaces.adoc#IERC1155Errors-ERC1155InvalidOperator-address-
  55. :xref-IERC1155Errors-ERC1155InvalidArrayLength-uint256-uint256-: xref:interfaces.adoc#IERC1155Errors-ERC1155InvalidArrayLength-uint256-uint256-
  56. :xref-IERC1271-isValidSignature-bytes32-bytes-: xref:interfaces.adoc#IERC1271-isValidSignature-bytes32-bytes-
  57. :xref-IERC1363-transferAndCall-address-uint256-: xref:interfaces.adoc#IERC1363-transferAndCall-address-uint256-
  58. :xref-IERC1363-transferAndCall-address-uint256-bytes-: xref:interfaces.adoc#IERC1363-transferAndCall-address-uint256-bytes-
  59. :xref-IERC1363-transferFromAndCall-address-address-uint256-: xref:interfaces.adoc#IERC1363-transferFromAndCall-address-address-uint256-
  60. :xref-IERC1363-transferFromAndCall-address-address-uint256-bytes-: xref:interfaces.adoc#IERC1363-transferFromAndCall-address-address-uint256-bytes-
  61. :xref-IERC1363-approveAndCall-address-uint256-: xref:interfaces.adoc#IERC1363-approveAndCall-address-uint256-
  62. :xref-IERC1363-approveAndCall-address-uint256-bytes-: xref:interfaces.adoc#IERC1363-approveAndCall-address-uint256-bytes-
  63. :xref-IERC20-totalSupply--: xref:token/ERC20.adoc#IERC20-totalSupply--
  64. :xref-IERC20-balanceOf-address-: xref:token/ERC20.adoc#IERC20-balanceOf-address-
  65. :xref-IERC20-transfer-address-uint256-: xref:token/ERC20.adoc#IERC20-transfer-address-uint256-
  66. :xref-IERC20-allowance-address-address-: xref:token/ERC20.adoc#IERC20-allowance-address-address-
  67. :xref-IERC20-approve-address-uint256-: xref:token/ERC20.adoc#IERC20-approve-address-uint256-
  68. :xref-IERC20-transferFrom-address-address-uint256-: xref:token/ERC20.adoc#IERC20-transferFrom-address-address-uint256-
  69. :xref-IERC165-supportsInterface-bytes4-: xref:utils.adoc#IERC165-supportsInterface-bytes4-
  70. :xref-IERC20-Transfer-address-address-uint256-: xref:token/ERC20.adoc#IERC20-Transfer-address-address-uint256-
  71. :xref-IERC20-Approval-address-address-uint256-: xref:token/ERC20.adoc#IERC20-Approval-address-address-uint256-
  72. :IERC1363-transferAndCall: pass:normal[xref:interfaces.adoc#IERC1363-transferAndCall-address-uint256-bytes-[`IERC1363.transferAndCall`]]
  73. :IERC1363-transferFromAndCall: pass:normal[xref:interfaces.adoc#IERC1363-transferFromAndCall-address-address-uint256-bytes-[`IERC1363.transferFromAndCall`]]
  74. :xref-IERC1363Receiver-onTransferReceived-address-address-uint256-bytes-: xref:interfaces.adoc#IERC1363Receiver-onTransferReceived-address-address-uint256-bytes-
  75. :IERC1363-approveAndCall: pass:normal[xref:interfaces.adoc#IERC1363-approveAndCall-address-uint256-bytes-[`IERC1363.approveAndCall`]]
  76. :xref-IERC1363Spender-onApprovalReceived-address-uint256-bytes-: xref:interfaces.adoc#IERC1363Spender-onApprovalReceived-address-uint256-bytes-
  77. :IERC1820Registry: pass:normal[xref:interfaces.adoc#IERC1820Registry[`IERC1820Registry`]]
  78. :xref-IERC1820Implementer-canImplementInterfaceForAddress-bytes32-address-: xref:interfaces.adoc#IERC1820Implementer-canImplementInterfaceForAddress-bytes32-address-
  79. :IERC1820Registry-setInterfaceImplementer: pass:normal[xref:interfaces.adoc#IERC1820Registry-setInterfaceImplementer-address-bytes32-address-[`IERC1820Registry.setInterfaceImplementer`]]
  80. :IERC165: pass:normal[xref:utils.adoc#IERC165[`IERC165`]]
  81. :xref-IERC1820Registry-setManager-address-address-: xref:interfaces.adoc#IERC1820Registry-setManager-address-address-
  82. :xref-IERC1820Registry-getManager-address-: xref:interfaces.adoc#IERC1820Registry-getManager-address-
  83. :xref-IERC1820Registry-setInterfaceImplementer-address-bytes32-address-: xref:interfaces.adoc#IERC1820Registry-setInterfaceImplementer-address-bytes32-address-
  84. :xref-IERC1820Registry-getInterfaceImplementer-address-bytes32-: xref:interfaces.adoc#IERC1820Registry-getInterfaceImplementer-address-bytes32-
  85. :xref-IERC1820Registry-interfaceHash-string-: xref:interfaces.adoc#IERC1820Registry-interfaceHash-string-
  86. :xref-IERC1820Registry-updateERC165Cache-address-bytes4-: xref:interfaces.adoc#IERC1820Registry-updateERC165Cache-address-bytes4-
  87. :xref-IERC1820Registry-implementsERC165Interface-address-bytes4-: xref:interfaces.adoc#IERC1820Registry-implementsERC165Interface-address-bytes4-
  88. :xref-IERC1820Registry-implementsERC165InterfaceNoCache-address-bytes4-: xref:interfaces.adoc#IERC1820Registry-implementsERC165InterfaceNoCache-address-bytes4-
  89. :xref-IERC1820Registry-InterfaceImplementerSet-address-bytes32-address-: xref:interfaces.adoc#IERC1820Registry-InterfaceImplementerSet-address-bytes32-address-
  90. :xref-IERC1820Registry-ManagerChanged-address-address-: xref:interfaces.adoc#IERC1820Registry-ManagerChanged-address-address-
  91. :IERC165: pass:normal[xref:utils.adoc#IERC165[`IERC165`]]
  92. :IERC1820Implementer: pass:normal[xref:interfaces.adoc#IERC1820Implementer[`IERC1820Implementer`]]
  93. :IERC1820Implementer-canImplementInterfaceForAddress: pass:normal[xref:interfaces.adoc#IERC1820Implementer-canImplementInterfaceForAddress-bytes32-address-[`IERC1820Implementer.canImplementInterfaceForAddress`]]
  94. :IERC165: pass:normal[xref:utils.adoc#IERC165[`IERC165`]]
  95. :xref-IERC1822Proxiable-proxiableUUID--: xref:interfaces.adoc#IERC1822Proxiable-proxiableUUID--
  96. :xref-IERC20Permit-permit-address-address-uint256-uint256-uint8-bytes32-bytes32-: xref:token/ERC20.adoc#IERC20Permit-permit-address-address-uint256-uint256-uint8-bytes32-bytes32-
  97. :xref-IERC20Permit-nonces-address-: xref:token/ERC20.adoc#IERC20Permit-nonces-address-
  98. :xref-IERC20Permit-DOMAIN_SEPARATOR--: xref:token/ERC20.adoc#IERC20Permit-DOMAIN_SEPARATOR--
  99. :xref-IERC2981-royaltyInfo-uint256-uint256-: xref:interfaces.adoc#IERC2981-royaltyInfo-uint256-uint256-
  100. :xref-IERC165-supportsInterface-bytes4-: xref:utils.adoc#IERC165-supportsInterface-bytes4-
  101. :xref-IERC3156FlashLender-maxFlashLoan-address-: xref:interfaces.adoc#IERC3156FlashLender-maxFlashLoan-address-
  102. :xref-IERC3156FlashLender-flashFee-address-uint256-: xref:interfaces.adoc#IERC3156FlashLender-flashFee-address-uint256-
  103. :xref-IERC3156FlashLender-flashLoan-contract-IERC3156FlashBorrower-address-uint256-bytes-: xref:interfaces.adoc#IERC3156FlashLender-flashLoan-contract-IERC3156FlashBorrower-address-uint256-bytes-
  104. :xref-IERC3156FlashBorrower-onFlashLoan-address-address-uint256-uint256-bytes-: xref:interfaces.adoc#IERC3156FlashBorrower-onFlashLoan-address-address-uint256-uint256-bytes-
  105. :xref-IERC4626-asset--: xref:interfaces.adoc#IERC4626-asset--
  106. :xref-IERC4626-totalAssets--: xref:interfaces.adoc#IERC4626-totalAssets--
  107. :xref-IERC4626-convertToShares-uint256-: xref:interfaces.adoc#IERC4626-convertToShares-uint256-
  108. :xref-IERC4626-convertToAssets-uint256-: xref:interfaces.adoc#IERC4626-convertToAssets-uint256-
  109. :xref-IERC4626-maxDeposit-address-: xref:interfaces.adoc#IERC4626-maxDeposit-address-
  110. :xref-IERC4626-previewDeposit-uint256-: xref:interfaces.adoc#IERC4626-previewDeposit-uint256-
  111. :xref-IERC4626-deposit-uint256-address-: xref:interfaces.adoc#IERC4626-deposit-uint256-address-
  112. :xref-IERC4626-maxMint-address-: xref:interfaces.adoc#IERC4626-maxMint-address-
  113. :xref-IERC4626-previewMint-uint256-: xref:interfaces.adoc#IERC4626-previewMint-uint256-
  114. :xref-IERC4626-mint-uint256-address-: xref:interfaces.adoc#IERC4626-mint-uint256-address-
  115. :xref-IERC4626-maxWithdraw-address-: xref:interfaces.adoc#IERC4626-maxWithdraw-address-
  116. :xref-IERC4626-previewWithdraw-uint256-: xref:interfaces.adoc#IERC4626-previewWithdraw-uint256-
  117. :xref-IERC4626-withdraw-uint256-address-address-: xref:interfaces.adoc#IERC4626-withdraw-uint256-address-address-
  118. :xref-IERC4626-maxRedeem-address-: xref:interfaces.adoc#IERC4626-maxRedeem-address-
  119. :xref-IERC4626-previewRedeem-uint256-: xref:interfaces.adoc#IERC4626-previewRedeem-uint256-
  120. :xref-IERC4626-redeem-uint256-address-address-: xref:interfaces.adoc#IERC4626-redeem-uint256-address-address-
  121. :xref-IERC20Metadata-name--: xref:token/ERC20.adoc#IERC20Metadata-name--
  122. :xref-IERC20Metadata-symbol--: xref:token/ERC20.adoc#IERC20Metadata-symbol--
  123. :xref-IERC20Metadata-decimals--: xref:token/ERC20.adoc#IERC20Metadata-decimals--
  124. :xref-IERC20-totalSupply--: xref:token/ERC20.adoc#IERC20-totalSupply--
  125. :xref-IERC20-balanceOf-address-: xref:token/ERC20.adoc#IERC20-balanceOf-address-
  126. :xref-IERC20-transfer-address-uint256-: xref:token/ERC20.adoc#IERC20-transfer-address-uint256-
  127. :xref-IERC20-allowance-address-address-: xref:token/ERC20.adoc#IERC20-allowance-address-address-
  128. :xref-IERC20-approve-address-uint256-: xref:token/ERC20.adoc#IERC20-approve-address-uint256-
  129. :xref-IERC20-transferFrom-address-address-uint256-: xref:token/ERC20.adoc#IERC20-transferFrom-address-address-uint256-
  130. :xref-IERC4626-Deposit-address-address-uint256-uint256-: xref:interfaces.adoc#IERC4626-Deposit-address-address-uint256-uint256-
  131. :xref-IERC4626-Withdraw-address-address-address-uint256-uint256-: xref:interfaces.adoc#IERC4626-Withdraw-address-address-address-uint256-uint256-
  132. :xref-IERC20-Transfer-address-address-uint256-: xref:token/ERC20.adoc#IERC20-Transfer-address-address-uint256-
  133. :xref-IERC20-Approval-address-address-uint256-: xref:token/ERC20.adoc#IERC20-Approval-address-address-uint256-
  134. :xref-IERC5313-owner--: xref:interfaces.adoc#IERC5313-owner--
  135. :xref-IERC5267-eip712Domain--: xref:interfaces.adoc#IERC5267-eip712Domain--
  136. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  137. :xref-IVotes-getVotes-address-: xref:governance.adoc#IVotes-getVotes-address-
  138. :xref-IVotes-getPastVotes-address-uint256-: xref:governance.adoc#IVotes-getPastVotes-address-uint256-
  139. :xref-IVotes-getPastTotalSupply-uint256-: xref:governance.adoc#IVotes-getPastTotalSupply-uint256-
  140. :xref-IVotes-delegates-address-: xref:governance.adoc#IVotes-delegates-address-
  141. :xref-IVotes-delegate-address-: xref:governance.adoc#IVotes-delegate-address-
  142. :xref-IVotes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-: xref:governance.adoc#IVotes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-
  143. :xref-IERC6372-clock--: xref:interfaces.adoc#IERC6372-clock--
  144. :xref-IERC6372-CLOCK_MODE--: xref:interfaces.adoc#IERC6372-CLOCK_MODE--
  145. :xref-IVotes-DelegateChanged-address-address-address-: xref:governance.adoc#IVotes-DelegateChanged-address-address-address-
  146. :xref-IVotes-DelegateVotesChanged-address-uint256-uint256-: xref:governance.adoc#IVotes-DelegateVotesChanged-address-uint256-uint256-
  147. :xref-IVotes-VotesExpiredSignature-uint256-: xref:governance.adoc#IVotes-VotesExpiredSignature-uint256-
  148. :xref-IERC6372-clock--: xref:interfaces.adoc#IERC6372-clock--
  149. :xref-IERC6372-CLOCK_MODE--: xref:interfaces.adoc#IERC6372-CLOCK_MODE--
  150. = Interfaces
  151. [.readme-notice]
  152. NOTE: This document is better viewed at https://docs.openzeppelin.com/contracts/api/interfaces
  153. == List of standardized interfaces
  154. These interfaces are available as `.sol` files, and also as compiler `.json` ABI files (through the npm package). These
  155. are useful to interact with third party contracts that implement them.
  156. - {IERC20}
  157. - {IERC20Errors}
  158. - {IERC20Metadata}
  159. - {IERC165}
  160. - {IERC721}
  161. - {IERC721Receiver}
  162. - {IERC721Enumerable}
  163. - {IERC721Metadata}
  164. - {IERC721Errors}
  165. - {IERC777}
  166. - {IERC777Recipient}
  167. - {IERC777Sender}
  168. - {IERC1155}
  169. - {IERC1155Receiver}
  170. - {IERC1155MetadataURI}
  171. - {IERC1155Errors}
  172. - {IERC1271}
  173. - {IERC1363}
  174. - {IERC1363Receiver}
  175. - {IERC1363Spender}
  176. - {IERC1820Implementer}
  177. - {IERC1820Registry}
  178. - {IERC1822Proxiable}
  179. - {IERC2612}
  180. - {IERC2981}
  181. - {IERC3156FlashLender}
  182. - {IERC3156FlashBorrower}
  183. - {IERC4626}
  184. - {IERC4906}
  185. - {IERC5267}
  186. - {IERC5313}
  187. - {IERC5805}
  188. - {IERC6372}
  189. == Detailed ABI
  190. :ERC20InsufficientBalance: pass:normal[xref:#IERC20Errors-ERC20InsufficientBalance-address-uint256-uint256-[`++ERC20InsufficientBalance++`]]
  191. :ERC20InvalidSender: pass:normal[xref:#IERC20Errors-ERC20InvalidSender-address-[`++ERC20InvalidSender++`]]
  192. :ERC20InvalidReceiver: pass:normal[xref:#IERC20Errors-ERC20InvalidReceiver-address-[`++ERC20InvalidReceiver++`]]
  193. :ERC20InsufficientAllowance: pass:normal[xref:#IERC20Errors-ERC20InsufficientAllowance-address-uint256-uint256-[`++ERC20InsufficientAllowance++`]]
  194. :ERC20InvalidApprover: pass:normal[xref:#IERC20Errors-ERC20InvalidApprover-address-[`++ERC20InvalidApprover++`]]
  195. :ERC20InvalidSpender: pass:normal[xref:#IERC20Errors-ERC20InvalidSpender-address-[`++ERC20InvalidSpender++`]]
  196. [.contract]
  197. [[IERC20Errors]]
  198. === `++IERC20Errors++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/draft-IERC6093.sol[{github-icon},role=heading-link]
  199. [.hljs-theme-light.nopadding]
  200. ```solidity
  201. import "@openzeppelin/contracts/interfaces/draft-IERC6093.sol";
  202. ```
  203. Standard ERC20 Errors
  204. Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
  205. [.contract-index]
  206. .Errors
  207. --
  208. * {xref-IERC20Errors-ERC20InsufficientBalance-address-uint256-uint256-}[`++ERC20InsufficientBalance(sender, balance, needed)++`]
  209. * {xref-IERC20Errors-ERC20InvalidSender-address-}[`++ERC20InvalidSender(sender)++`]
  210. * {xref-IERC20Errors-ERC20InvalidReceiver-address-}[`++ERC20InvalidReceiver(receiver)++`]
  211. * {xref-IERC20Errors-ERC20InsufficientAllowance-address-uint256-uint256-}[`++ERC20InsufficientAllowance(spender, allowance, needed)++`]
  212. * {xref-IERC20Errors-ERC20InvalidApprover-address-}[`++ERC20InvalidApprover(approver)++`]
  213. * {xref-IERC20Errors-ERC20InvalidSpender-address-}[`++ERC20InvalidSpender(spender)++`]
  214. --
  215. [.contract-item]
  216. [[IERC20Errors-ERC20InsufficientBalance-address-uint256-uint256-]]
  217. ==== `[.contract-item-name]#++ERC20InsufficientBalance++#++(address sender, uint256 balance, uint256 needed)++` [.item-kind]#error#
  218. Indicates an error related to the current `balance` of a `sender`. Used in transfers.
  219. [.contract-item]
  220. [[IERC20Errors-ERC20InvalidSender-address-]]
  221. ==== `[.contract-item-name]#++ERC20InvalidSender++#++(address sender)++` [.item-kind]#error#
  222. Indicates a failure with the token `sender`. Used in transfers.
  223. [.contract-item]
  224. [[IERC20Errors-ERC20InvalidReceiver-address-]]
  225. ==== `[.contract-item-name]#++ERC20InvalidReceiver++#++(address receiver)++` [.item-kind]#error#
  226. Indicates a failure with the token `receiver`. Used in transfers.
  227. [.contract-item]
  228. [[IERC20Errors-ERC20InsufficientAllowance-address-uint256-uint256-]]
  229. ==== `[.contract-item-name]#++ERC20InsufficientAllowance++#++(address spender, uint256 allowance, uint256 needed)++` [.item-kind]#error#
  230. Indicates a failure with the `spender`’s `allowance`. Used in transfers.
  231. [.contract-item]
  232. [[IERC20Errors-ERC20InvalidApprover-address-]]
  233. ==== `[.contract-item-name]#++ERC20InvalidApprover++#++(address approver)++` [.item-kind]#error#
  234. Indicates a failure with the `approver` of a token to be approved. Used in approvals.
  235. [.contract-item]
  236. [[IERC20Errors-ERC20InvalidSpender-address-]]
  237. ==== `[.contract-item-name]#++ERC20InvalidSpender++#++(address spender)++` [.item-kind]#error#
  238. Indicates a failure with the `spender` to be approved. Used in approvals.
  239. :ERC721InvalidOwner: pass:normal[xref:#IERC721Errors-ERC721InvalidOwner-address-[`++ERC721InvalidOwner++`]]
  240. :ERC721NonexistentToken: pass:normal[xref:#IERC721Errors-ERC721NonexistentToken-uint256-[`++ERC721NonexistentToken++`]]
  241. :ERC721IncorrectOwner: pass:normal[xref:#IERC721Errors-ERC721IncorrectOwner-address-uint256-address-[`++ERC721IncorrectOwner++`]]
  242. :ERC721InvalidSender: pass:normal[xref:#IERC721Errors-ERC721InvalidSender-address-[`++ERC721InvalidSender++`]]
  243. :ERC721InvalidReceiver: pass:normal[xref:#IERC721Errors-ERC721InvalidReceiver-address-[`++ERC721InvalidReceiver++`]]
  244. :ERC721InsufficientApproval: pass:normal[xref:#IERC721Errors-ERC721InsufficientApproval-address-uint256-[`++ERC721InsufficientApproval++`]]
  245. :ERC721InvalidApprover: pass:normal[xref:#IERC721Errors-ERC721InvalidApprover-address-[`++ERC721InvalidApprover++`]]
  246. :ERC721InvalidOperator: pass:normal[xref:#IERC721Errors-ERC721InvalidOperator-address-[`++ERC721InvalidOperator++`]]
  247. [.contract]
  248. [[IERC721Errors]]
  249. === `++IERC721Errors++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/draft-IERC6093.sol[{github-icon},role=heading-link]
  250. [.hljs-theme-light.nopadding]
  251. ```solidity
  252. import "@openzeppelin/contracts/interfaces/draft-IERC6093.sol";
  253. ```
  254. Standard ERC721 Errors
  255. Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
  256. [.contract-index]
  257. .Errors
  258. --
  259. * {xref-IERC721Errors-ERC721InvalidOwner-address-}[`++ERC721InvalidOwner(owner)++`]
  260. * {xref-IERC721Errors-ERC721NonexistentToken-uint256-}[`++ERC721NonexistentToken(tokenId)++`]
  261. * {xref-IERC721Errors-ERC721IncorrectOwner-address-uint256-address-}[`++ERC721IncorrectOwner(sender, tokenId, owner)++`]
  262. * {xref-IERC721Errors-ERC721InvalidSender-address-}[`++ERC721InvalidSender(sender)++`]
  263. * {xref-IERC721Errors-ERC721InvalidReceiver-address-}[`++ERC721InvalidReceiver(receiver)++`]
  264. * {xref-IERC721Errors-ERC721InsufficientApproval-address-uint256-}[`++ERC721InsufficientApproval(operator, tokenId)++`]
  265. * {xref-IERC721Errors-ERC721InvalidApprover-address-}[`++ERC721InvalidApprover(approver)++`]
  266. * {xref-IERC721Errors-ERC721InvalidOperator-address-}[`++ERC721InvalidOperator(operator)++`]
  267. --
  268. [.contract-item]
  269. [[IERC721Errors-ERC721InvalidOwner-address-]]
  270. ==== `[.contract-item-name]#++ERC721InvalidOwner++#++(address owner)++` [.item-kind]#error#
  271. Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
  272. Used in balance queries.
  273. [.contract-item]
  274. [[IERC721Errors-ERC721NonexistentToken-uint256-]]
  275. ==== `[.contract-item-name]#++ERC721NonexistentToken++#++(uint256 tokenId)++` [.item-kind]#error#
  276. Indicates a `tokenId` whose `owner` is the zero address.
  277. [.contract-item]
  278. [[IERC721Errors-ERC721IncorrectOwner-address-uint256-address-]]
  279. ==== `[.contract-item-name]#++ERC721IncorrectOwner++#++(address sender, uint256 tokenId, address owner)++` [.item-kind]#error#
  280. Indicates an error related to the ownership over a particular token. Used in transfers.
  281. [.contract-item]
  282. [[IERC721Errors-ERC721InvalidSender-address-]]
  283. ==== `[.contract-item-name]#++ERC721InvalidSender++#++(address sender)++` [.item-kind]#error#
  284. Indicates a failure with the token `sender`. Used in transfers.
  285. [.contract-item]
  286. [[IERC721Errors-ERC721InvalidReceiver-address-]]
  287. ==== `[.contract-item-name]#++ERC721InvalidReceiver++#++(address receiver)++` [.item-kind]#error#
  288. Indicates a failure with the token `receiver`. Used in transfers.
  289. [.contract-item]
  290. [[IERC721Errors-ERC721InsufficientApproval-address-uint256-]]
  291. ==== `[.contract-item-name]#++ERC721InsufficientApproval++#++(address operator, uint256 tokenId)++` [.item-kind]#error#
  292. Indicates a failure with the `operator`’s approval. Used in transfers.
  293. [.contract-item]
  294. [[IERC721Errors-ERC721InvalidApprover-address-]]
  295. ==== `[.contract-item-name]#++ERC721InvalidApprover++#++(address approver)++` [.item-kind]#error#
  296. Indicates a failure with the `approver` of a token to be approved. Used in approvals.
  297. [.contract-item]
  298. [[IERC721Errors-ERC721InvalidOperator-address-]]
  299. ==== `[.contract-item-name]#++ERC721InvalidOperator++#++(address operator)++` [.item-kind]#error#
  300. Indicates a failure with the `operator` to be approved. Used in approvals.
  301. :ERC1155InsufficientBalance: pass:normal[xref:#IERC1155Errors-ERC1155InsufficientBalance-address-uint256-uint256-uint256-[`++ERC1155InsufficientBalance++`]]
  302. :ERC1155InvalidSender: pass:normal[xref:#IERC1155Errors-ERC1155InvalidSender-address-[`++ERC1155InvalidSender++`]]
  303. :ERC1155InvalidReceiver: pass:normal[xref:#IERC1155Errors-ERC1155InvalidReceiver-address-[`++ERC1155InvalidReceiver++`]]
  304. :ERC1155MissingApprovalForAll: pass:normal[xref:#IERC1155Errors-ERC1155MissingApprovalForAll-address-address-[`++ERC1155MissingApprovalForAll++`]]
  305. :ERC1155InvalidApprover: pass:normal[xref:#IERC1155Errors-ERC1155InvalidApprover-address-[`++ERC1155InvalidApprover++`]]
  306. :ERC1155InvalidOperator: pass:normal[xref:#IERC1155Errors-ERC1155InvalidOperator-address-[`++ERC1155InvalidOperator++`]]
  307. :ERC1155InvalidArrayLength: pass:normal[xref:#IERC1155Errors-ERC1155InvalidArrayLength-uint256-uint256-[`++ERC1155InvalidArrayLength++`]]
  308. [.contract]
  309. [[IERC1155Errors]]
  310. === `++IERC1155Errors++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/draft-IERC6093.sol[{github-icon},role=heading-link]
  311. [.hljs-theme-light.nopadding]
  312. ```solidity
  313. import "@openzeppelin/contracts/interfaces/draft-IERC6093.sol";
  314. ```
  315. Standard ERC1155 Errors
  316. Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
  317. [.contract-index]
  318. .Errors
  319. --
  320. * {xref-IERC1155Errors-ERC1155InsufficientBalance-address-uint256-uint256-uint256-}[`++ERC1155InsufficientBalance(sender, balance, needed, tokenId)++`]
  321. * {xref-IERC1155Errors-ERC1155InvalidSender-address-}[`++ERC1155InvalidSender(sender)++`]
  322. * {xref-IERC1155Errors-ERC1155InvalidReceiver-address-}[`++ERC1155InvalidReceiver(receiver)++`]
  323. * {xref-IERC1155Errors-ERC1155MissingApprovalForAll-address-address-}[`++ERC1155MissingApprovalForAll(operator, owner)++`]
  324. * {xref-IERC1155Errors-ERC1155InvalidApprover-address-}[`++ERC1155InvalidApprover(approver)++`]
  325. * {xref-IERC1155Errors-ERC1155InvalidOperator-address-}[`++ERC1155InvalidOperator(operator)++`]
  326. * {xref-IERC1155Errors-ERC1155InvalidArrayLength-uint256-uint256-}[`++ERC1155InvalidArrayLength(idsLength, valuesLength)++`]
  327. --
  328. [.contract-item]
  329. [[IERC1155Errors-ERC1155InsufficientBalance-address-uint256-uint256-uint256-]]
  330. ==== `[.contract-item-name]#++ERC1155InsufficientBalance++#++(address sender, uint256 balance, uint256 needed, uint256 tokenId)++` [.item-kind]#error#
  331. Indicates an error related to the current `balance` of a `sender`. Used in transfers.
  332. [.contract-item]
  333. [[IERC1155Errors-ERC1155InvalidSender-address-]]
  334. ==== `[.contract-item-name]#++ERC1155InvalidSender++#++(address sender)++` [.item-kind]#error#
  335. Indicates a failure with the token `sender`. Used in transfers.
  336. [.contract-item]
  337. [[IERC1155Errors-ERC1155InvalidReceiver-address-]]
  338. ==== `[.contract-item-name]#++ERC1155InvalidReceiver++#++(address receiver)++` [.item-kind]#error#
  339. Indicates a failure with the token `receiver`. Used in transfers.
  340. [.contract-item]
  341. [[IERC1155Errors-ERC1155MissingApprovalForAll-address-address-]]
  342. ==== `[.contract-item-name]#++ERC1155MissingApprovalForAll++#++(address operator, address owner)++` [.item-kind]#error#
  343. Indicates a failure with the `operator`’s approval. Used in transfers.
  344. [.contract-item]
  345. [[IERC1155Errors-ERC1155InvalidApprover-address-]]
  346. ==== `[.contract-item-name]#++ERC1155InvalidApprover++#++(address approver)++` [.item-kind]#error#
  347. Indicates a failure with the `approver` of a token to be approved. Used in approvals.
  348. [.contract-item]
  349. [[IERC1155Errors-ERC1155InvalidOperator-address-]]
  350. ==== `[.contract-item-name]#++ERC1155InvalidOperator++#++(address operator)++` [.item-kind]#error#
  351. Indicates a failure with the `operator` to be approved. Used in approvals.
  352. [.contract-item]
  353. [[IERC1155Errors-ERC1155InvalidArrayLength-uint256-uint256-]]
  354. ==== `[.contract-item-name]#++ERC1155InvalidArrayLength++#++(uint256 idsLength, uint256 valuesLength)++` [.item-kind]#error#
  355. Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
  356. Used in batch transfers.
  357. :isValidSignature: pass:normal[xref:#IERC1271-isValidSignature-bytes32-bytes-[`++isValidSignature++`]]
  358. [.contract]
  359. [[IERC1271]]
  360. === `++IERC1271++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC1271.sol[{github-icon},role=heading-link]
  361. [.hljs-theme-light.nopadding]
  362. ```solidity
  363. import "@openzeppelin/contracts/interfaces/IERC1271.sol";
  364. ```
  365. Interface of the ERC1271 standard signature validation method for
  366. contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
  367. [.contract-index]
  368. .Functions
  369. --
  370. * {xref-IERC1271-isValidSignature-bytes32-bytes-}[`++isValidSignature(hash, signature)++`]
  371. --
  372. [.contract-item]
  373. [[IERC1271-isValidSignature-bytes32-bytes-]]
  374. ==== `[.contract-item-name]#++isValidSignature++#++(bytes32 hash, bytes signature) → bytes4 magicValue++` [.item-kind]#external#
  375. Should return whether the signature provided is valid for the provided data
  376. :transferAndCall: pass:normal[xref:#IERC1363-transferAndCall-address-uint256-[`++transferAndCall++`]]
  377. :transferAndCall: pass:normal[xref:#IERC1363-transferAndCall-address-uint256-bytes-[`++transferAndCall++`]]
  378. :transferFromAndCall: pass:normal[xref:#IERC1363-transferFromAndCall-address-address-uint256-[`++transferFromAndCall++`]]
  379. :transferFromAndCall: pass:normal[xref:#IERC1363-transferFromAndCall-address-address-uint256-bytes-[`++transferFromAndCall++`]]
  380. :approveAndCall: pass:normal[xref:#IERC1363-approveAndCall-address-uint256-[`++approveAndCall++`]]
  381. :approveAndCall: pass:normal[xref:#IERC1363-approveAndCall-address-uint256-bytes-[`++approveAndCall++`]]
  382. [.contract]
  383. [[IERC1363]]
  384. === `++IERC1363++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC1363.sol[{github-icon},role=heading-link]
  385. [.hljs-theme-light.nopadding]
  386. ```solidity
  387. import "@openzeppelin/contracts/interfaces/IERC1363.sol";
  388. ```
  389. Interface of an ERC1363 compliant contract, as defined in the
  390. https://eips.ethereum.org/EIPS/eip-1363[EIP].
  391. Defines a interface for ERC20 tokens that supports executing recipient
  392. code after `transfer` or `transferFrom`, or spender code after `approve`.
  393. [.contract-index]
  394. .Functions
  395. --
  396. * {xref-IERC1363-transferAndCall-address-uint256-}[`++transferAndCall(to, amount)++`]
  397. * {xref-IERC1363-transferAndCall-address-uint256-bytes-}[`++transferAndCall(to, amount, data)++`]
  398. * {xref-IERC1363-transferFromAndCall-address-address-uint256-}[`++transferFromAndCall(from, to, amount)++`]
  399. * {xref-IERC1363-transferFromAndCall-address-address-uint256-bytes-}[`++transferFromAndCall(from, to, amount, data)++`]
  400. * {xref-IERC1363-approveAndCall-address-uint256-}[`++approveAndCall(spender, amount)++`]
  401. * {xref-IERC1363-approveAndCall-address-uint256-bytes-}[`++approveAndCall(spender, amount, data)++`]
  402. [.contract-subindex-inherited]
  403. .IERC20
  404. * {xref-IERC20-totalSupply--}[`++totalSupply()++`]
  405. * {xref-IERC20-balanceOf-address-}[`++balanceOf(account)++`]
  406. * {xref-IERC20-transfer-address-uint256-}[`++transfer(to, value)++`]
  407. * {xref-IERC20-allowance-address-address-}[`++allowance(owner, spender)++`]
  408. * {xref-IERC20-approve-address-uint256-}[`++approve(spender, value)++`]
  409. * {xref-IERC20-transferFrom-address-address-uint256-}[`++transferFrom(from, to, value)++`]
  410. [.contract-subindex-inherited]
  411. .IERC165
  412. * {xref-IERC165-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  413. --
  414. [.contract-index]
  415. .Events
  416. --
  417. [.contract-subindex-inherited]
  418. .IERC20
  419. * {xref-IERC20-Transfer-address-address-uint256-}[`++Transfer(from, to, value)++`]
  420. * {xref-IERC20-Approval-address-address-uint256-}[`++Approval(owner, spender, value)++`]
  421. [.contract-subindex-inherited]
  422. .IERC165
  423. --
  424. [.contract-item]
  425. [[IERC1363-transferAndCall-address-uint256-]]
  426. ==== `[.contract-item-name]#++transferAndCall++#++(address to, uint256 amount) → bool++` [.item-kind]#external#
  427. Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver
  428. [.contract-item]
  429. [[IERC1363-transferAndCall-address-uint256-bytes-]]
  430. ==== `[.contract-item-name]#++transferAndCall++#++(address to, uint256 amount, bytes data) → bool++` [.item-kind]#external#
  431. Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver
  432. [.contract-item]
  433. [[IERC1363-transferFromAndCall-address-address-uint256-]]
  434. ==== `[.contract-item-name]#++transferFromAndCall++#++(address from, address to, uint256 amount) → bool++` [.item-kind]#external#
  435. Transfer tokens from one address to another and then call `onTransferReceived` on receiver
  436. [.contract-item]
  437. [[IERC1363-transferFromAndCall-address-address-uint256-bytes-]]
  438. ==== `[.contract-item-name]#++transferFromAndCall++#++(address from, address to, uint256 amount, bytes data) → bool++` [.item-kind]#external#
  439. Transfer tokens from one address to another and then call `onTransferReceived` on receiver
  440. [.contract-item]
  441. [[IERC1363-approveAndCall-address-uint256-]]
  442. ==== `[.contract-item-name]#++approveAndCall++#++(address spender, uint256 amount) → bool++` [.item-kind]#external#
  443. Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
  444. and then call `onApprovalReceived` on spender.
  445. [.contract-item]
  446. [[IERC1363-approveAndCall-address-uint256-bytes-]]
  447. ==== `[.contract-item-name]#++approveAndCall++#++(address spender, uint256 amount, bytes data) → bool++` [.item-kind]#external#
  448. Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
  449. and then call `onApprovalReceived` on spender.
  450. :onTransferReceived: pass:normal[xref:#IERC1363Receiver-onTransferReceived-address-address-uint256-bytes-[`++onTransferReceived++`]]
  451. [.contract]
  452. [[IERC1363Receiver]]
  453. === `++IERC1363Receiver++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC1363Receiver.sol[{github-icon},role=heading-link]
  454. [.hljs-theme-light.nopadding]
  455. ```solidity
  456. import "@openzeppelin/contracts/interfaces/IERC1363Receiver.sol";
  457. ```
  458. Interface for any contract that wants to support {IERC1363-transferAndCall}
  459. or {IERC1363-transferFromAndCall} from {ERC1363} token contracts.
  460. [.contract-index]
  461. .Functions
  462. --
  463. * {xref-IERC1363Receiver-onTransferReceived-address-address-uint256-bytes-}[`++onTransferReceived(operator, from, amount, data)++`]
  464. --
  465. [.contract-item]
  466. [[IERC1363Receiver-onTransferReceived-address-address-uint256-bytes-]]
  467. ==== `[.contract-item-name]#++onTransferReceived++#++(address operator, address from, uint256 amount, bytes data) → bytes4++` [.item-kind]#external#
  468. Any ERC1363 smart contract calls this function on the recipient
  469. after a `transfer` or a `transferFrom`. This function MAY throw to revert and reject the
  470. transfer. Return of other than the magic value MUST result in the
  471. transaction being reverted.
  472. Note: the token contract address is always the message sender.
  473. :onApprovalReceived: pass:normal[xref:#IERC1363Spender-onApprovalReceived-address-uint256-bytes-[`++onApprovalReceived++`]]
  474. [.contract]
  475. [[IERC1363Spender]]
  476. === `++IERC1363Spender++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC1363Spender.sol[{github-icon},role=heading-link]
  477. [.hljs-theme-light.nopadding]
  478. ```solidity
  479. import "@openzeppelin/contracts/interfaces/IERC1363Spender.sol";
  480. ```
  481. Interface for any contract that wants to support {IERC1363-approveAndCall}
  482. from {ERC1363} token contracts.
  483. [.contract-index]
  484. .Functions
  485. --
  486. * {xref-IERC1363Spender-onApprovalReceived-address-uint256-bytes-}[`++onApprovalReceived(owner, amount, data)++`]
  487. --
  488. [.contract-item]
  489. [[IERC1363Spender-onApprovalReceived-address-uint256-bytes-]]
  490. ==== `[.contract-item-name]#++onApprovalReceived++#++(address owner, uint256 amount, bytes data) → bytes4++` [.item-kind]#external#
  491. Any ERC1363 smart contract calls this function on the recipient
  492. after an `approve`. This function MAY throw to revert and reject the
  493. approval. Return of other than the magic value MUST result in the
  494. transaction being reverted.
  495. Note: the token contract address is always the message sender.
  496. :canImplementInterfaceForAddress: pass:normal[xref:#IERC1820Implementer-canImplementInterfaceForAddress-bytes32-address-[`++canImplementInterfaceForAddress++`]]
  497. [.contract]
  498. [[IERC1820Implementer]]
  499. === `++IERC1820Implementer++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC1820Implementer.sol[{github-icon},role=heading-link]
  500. [.hljs-theme-light.nopadding]
  501. ```solidity
  502. import "@openzeppelin/contracts/interfaces/IERC1820Implementer.sol";
  503. ```
  504. Interface for an ERC1820 implementer, as defined in the
  505. https://eips.ethereum.org/EIPS/eip-1820#interface-implementation-erc1820implementerinterface[EIP].
  506. Used by contracts that will be registered as implementers in the
  507. {IERC1820Registry}.
  508. [.contract-index]
  509. .Functions
  510. --
  511. * {xref-IERC1820Implementer-canImplementInterfaceForAddress-bytes32-address-}[`++canImplementInterfaceForAddress(interfaceHash, account)++`]
  512. --
  513. [.contract-item]
  514. [[IERC1820Implementer-canImplementInterfaceForAddress-bytes32-address-]]
  515. ==== `[.contract-item-name]#++canImplementInterfaceForAddress++#++(bytes32 interfaceHash, address account) → bytes32++` [.item-kind]#external#
  516. Returns a special value (`ERC1820_ACCEPT_MAGIC`) if this contract
  517. implements `interfaceHash` for `account`.
  518. See {IERC1820Registry-setInterfaceImplementer}.
  519. :InterfaceImplementerSet: pass:normal[xref:#IERC1820Registry-InterfaceImplementerSet-address-bytes32-address-[`++InterfaceImplementerSet++`]]
  520. :ManagerChanged: pass:normal[xref:#IERC1820Registry-ManagerChanged-address-address-[`++ManagerChanged++`]]
  521. :setManager: pass:normal[xref:#IERC1820Registry-setManager-address-address-[`++setManager++`]]
  522. :getManager: pass:normal[xref:#IERC1820Registry-getManager-address-[`++getManager++`]]
  523. :setInterfaceImplementer: pass:normal[xref:#IERC1820Registry-setInterfaceImplementer-address-bytes32-address-[`++setInterfaceImplementer++`]]
  524. :getInterfaceImplementer: pass:normal[xref:#IERC1820Registry-getInterfaceImplementer-address-bytes32-[`++getInterfaceImplementer++`]]
  525. :interfaceHash: pass:normal[xref:#IERC1820Registry-interfaceHash-string-[`++interfaceHash++`]]
  526. :updateERC165Cache: pass:normal[xref:#IERC1820Registry-updateERC165Cache-address-bytes4-[`++updateERC165Cache++`]]
  527. :implementsERC165Interface: pass:normal[xref:#IERC1820Registry-implementsERC165Interface-address-bytes4-[`++implementsERC165Interface++`]]
  528. :implementsERC165InterfaceNoCache: pass:normal[xref:#IERC1820Registry-implementsERC165InterfaceNoCache-address-bytes4-[`++implementsERC165InterfaceNoCache++`]]
  529. [.contract]
  530. [[IERC1820Registry]]
  531. === `++IERC1820Registry++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC1820Registry.sol[{github-icon},role=heading-link]
  532. [.hljs-theme-light.nopadding]
  533. ```solidity
  534. import "@openzeppelin/contracts/interfaces/IERC1820Registry.sol";
  535. ```
  536. Interface of the global ERC1820 Registry, as defined in the
  537. https://eips.ethereum.org/EIPS/eip-1820[EIP]. Accounts may register
  538. implementers for interfaces in this registry, as well as query support.
  539. Implementers may be shared by multiple accounts, and can also implement more
  540. than a single interface for each account. Contracts can implement interfaces
  541. for themselves, but externally-owned accounts (EOA) must delegate this to a
  542. contract.
  543. {IERC165} interfaces can also be queried via the registry.
  544. For an in-depth explanation and source code analysis, see the EIP text.
  545. [.contract-index]
  546. .Functions
  547. --
  548. * {xref-IERC1820Registry-setManager-address-address-}[`++setManager(account, newManager)++`]
  549. * {xref-IERC1820Registry-getManager-address-}[`++getManager(account)++`]
  550. * {xref-IERC1820Registry-setInterfaceImplementer-address-bytes32-address-}[`++setInterfaceImplementer(account, _interfaceHash, implementer)++`]
  551. * {xref-IERC1820Registry-getInterfaceImplementer-address-bytes32-}[`++getInterfaceImplementer(account, _interfaceHash)++`]
  552. * {xref-IERC1820Registry-interfaceHash-string-}[`++interfaceHash(interfaceName)++`]
  553. * {xref-IERC1820Registry-updateERC165Cache-address-bytes4-}[`++updateERC165Cache(account, interfaceId)++`]
  554. * {xref-IERC1820Registry-implementsERC165Interface-address-bytes4-}[`++implementsERC165Interface(account, interfaceId)++`]
  555. * {xref-IERC1820Registry-implementsERC165InterfaceNoCache-address-bytes4-}[`++implementsERC165InterfaceNoCache(account, interfaceId)++`]
  556. --
  557. [.contract-index]
  558. .Events
  559. --
  560. * {xref-IERC1820Registry-InterfaceImplementerSet-address-bytes32-address-}[`++InterfaceImplementerSet(account, interfaceHash, implementer)++`]
  561. * {xref-IERC1820Registry-ManagerChanged-address-address-}[`++ManagerChanged(account, newManager)++`]
  562. --
  563. [.contract-item]
  564. [[IERC1820Registry-setManager-address-address-]]
  565. ==== `[.contract-item-name]#++setManager++#++(address account, address newManager)++` [.item-kind]#external#
  566. Sets `newManager` as the manager for `account`. A manager of an
  567. account is able to set interface implementers for it.
  568. By default, each account is its own manager. Passing a value of `0x0` in
  569. `newManager` will reset the manager to this initial state.
  570. Emits a {ManagerChanged} event.
  571. Requirements:
  572. - the caller must be the current manager for `account`.
  573. [.contract-item]
  574. [[IERC1820Registry-getManager-address-]]
  575. ==== `[.contract-item-name]#++getManager++#++(address account) → address++` [.item-kind]#external#
  576. Returns the manager for `account`.
  577. See {setManager}.
  578. [.contract-item]
  579. [[IERC1820Registry-setInterfaceImplementer-address-bytes32-address-]]
  580. ==== `[.contract-item-name]#++setInterfaceImplementer++#++(address account, bytes32 _interfaceHash, address implementer)++` [.item-kind]#external#
  581. Sets the `implementer` contract as ``account``'s implementer for
  582. `interfaceHash`.
  583. `account` being the zero address is an alias for the caller's address.
  584. The zero address can also be used in `implementer` to remove an old one.
  585. See {interfaceHash} to learn how these are created.
  586. Emits an {InterfaceImplementerSet} event.
  587. Requirements:
  588. - the caller must be the current manager for `account`.
  589. - `interfaceHash` must not be an {IERC165} interface id (i.e. it must not
  590. end in 28 zeroes).
  591. - `implementer` must implement {IERC1820Implementer} and return true when
  592. queried for support, unless `implementer` is the caller. See
  593. {IERC1820Implementer-canImplementInterfaceForAddress}.
  594. [.contract-item]
  595. [[IERC1820Registry-getInterfaceImplementer-address-bytes32-]]
  596. ==== `[.contract-item-name]#++getInterfaceImplementer++#++(address account, bytes32 _interfaceHash) → address++` [.item-kind]#external#
  597. Returns the implementer of `interfaceHash` for `account`. If no such
  598. implementer is registered, returns the zero address.
  599. If `interfaceHash` is an {IERC165} interface id (i.e. it ends with 28
  600. zeroes), `account` will be queried for support of it.
  601. `account` being the zero address is an alias for the caller's address.
  602. [.contract-item]
  603. [[IERC1820Registry-interfaceHash-string-]]
  604. ==== `[.contract-item-name]#++interfaceHash++#++(string interfaceName) → bytes32++` [.item-kind]#external#
  605. Returns the interface hash for an `interfaceName`, as defined in the
  606. corresponding
  607. https://eips.ethereum.org/EIPS/eip-1820#interface-name[section of the EIP].
  608. [.contract-item]
  609. [[IERC1820Registry-updateERC165Cache-address-bytes4-]]
  610. ==== `[.contract-item-name]#++updateERC165Cache++#++(address account, bytes4 interfaceId)++` [.item-kind]#external#
  611. [.contract-item]
  612. [[IERC1820Registry-implementsERC165Interface-address-bytes4-]]
  613. ==== `[.contract-item-name]#++implementsERC165Interface++#++(address account, bytes4 interfaceId) → bool++` [.item-kind]#external#
  614. [.contract-item]
  615. [[IERC1820Registry-implementsERC165InterfaceNoCache-address-bytes4-]]
  616. ==== `[.contract-item-name]#++implementsERC165InterfaceNoCache++#++(address account, bytes4 interfaceId) → bool++` [.item-kind]#external#
  617. [.contract-item]
  618. [[IERC1820Registry-InterfaceImplementerSet-address-bytes32-address-]]
  619. ==== `[.contract-item-name]#++InterfaceImplementerSet++#++(address indexed account, bytes32 indexed interfaceHash, address indexed implementer)++` [.item-kind]#event#
  620. [.contract-item]
  621. [[IERC1820Registry-ManagerChanged-address-address-]]
  622. ==== `[.contract-item-name]#++ManagerChanged++#++(address indexed account, address indexed newManager)++` [.item-kind]#event#
  623. :proxiableUUID: pass:normal[xref:#IERC1822Proxiable-proxiableUUID--[`++proxiableUUID++`]]
  624. [.contract]
  625. [[IERC1822Proxiable]]
  626. === `++IERC1822Proxiable++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/draft-IERC1822.sol[{github-icon},role=heading-link]
  627. [.hljs-theme-light.nopadding]
  628. ```solidity
  629. import "@openzeppelin/contracts/interfaces/draft-IERC1822.sol";
  630. ```
  631. ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified
  632. proxy whose upgrades are fully controlled by the current implementation.
  633. [.contract-index]
  634. .Functions
  635. --
  636. * {xref-IERC1822Proxiable-proxiableUUID--}[`++proxiableUUID()++`]
  637. --
  638. [.contract-item]
  639. [[IERC1822Proxiable-proxiableUUID--]]
  640. ==== `[.contract-item-name]#++proxiableUUID++#++() → bytes32++` [.item-kind]#external#
  641. Returns the storage slot that the proxiable contract assumes is being used to store the implementation
  642. address.
  643. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks
  644. bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this
  645. function revert if invoked through a proxy.
  646. [.contract]
  647. [[IERC2612]]
  648. === `++IERC2612++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC2612.sol[{github-icon},role=heading-link]
  649. [.hljs-theme-light.nopadding]
  650. ```solidity
  651. import "@openzeppelin/contracts/interfaces/IERC2612.sol";
  652. ```
  653. [.contract-index]
  654. .Functions
  655. --
  656. [.contract-subindex-inherited]
  657. .IERC20Permit
  658. * {xref-IERC20Permit-permit-address-address-uint256-uint256-uint8-bytes32-bytes32-}[`++permit(owner, spender, value, deadline, v, r, s)++`]
  659. * {xref-IERC20Permit-nonces-address-}[`++nonces(owner)++`]
  660. * {xref-IERC20Permit-DOMAIN_SEPARATOR--}[`++DOMAIN_SEPARATOR()++`]
  661. --
  662. :royaltyInfo: pass:normal[xref:#IERC2981-royaltyInfo-uint256-uint256-[`++royaltyInfo++`]]
  663. [.contract]
  664. [[IERC2981]]
  665. === `++IERC2981++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC2981.sol[{github-icon},role=heading-link]
  666. [.hljs-theme-light.nopadding]
  667. ```solidity
  668. import "@openzeppelin/contracts/interfaces/IERC2981.sol";
  669. ```
  670. Interface for the NFT Royalty Standard.
  671. A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
  672. support for royalty payments across all NFT marketplaces and ecosystem participants.
  673. [.contract-index]
  674. .Functions
  675. --
  676. * {xref-IERC2981-royaltyInfo-uint256-uint256-}[`++royaltyInfo(tokenId, salePrice)++`]
  677. [.contract-subindex-inherited]
  678. .IERC165
  679. * {xref-IERC165-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  680. --
  681. [.contract-item]
  682. [[IERC2981-royaltyInfo-uint256-uint256-]]
  683. ==== `[.contract-item-name]#++royaltyInfo++#++(uint256 tokenId, uint256 salePrice) → address receiver, uint256 royaltyAmount++` [.item-kind]#external#
  684. Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
  685. exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
  686. :maxFlashLoan: pass:normal[xref:#IERC3156FlashLender-maxFlashLoan-address-[`++maxFlashLoan++`]]
  687. :flashFee: pass:normal[xref:#IERC3156FlashLender-flashFee-address-uint256-[`++flashFee++`]]
  688. :flashLoan: pass:normal[xref:#IERC3156FlashLender-flashLoan-contract-IERC3156FlashBorrower-address-uint256-bytes-[`++flashLoan++`]]
  689. [.contract]
  690. [[IERC3156FlashLender]]
  691. === `++IERC3156FlashLender++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC3156FlashLender.sol[{github-icon},role=heading-link]
  692. [.hljs-theme-light.nopadding]
  693. ```solidity
  694. import "@openzeppelin/contracts/interfaces/IERC3156FlashLender.sol";
  695. ```
  696. Interface of the ERC3156 FlashLender, as defined in
  697. https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
  698. [.contract-index]
  699. .Functions
  700. --
  701. * {xref-IERC3156FlashLender-maxFlashLoan-address-}[`++maxFlashLoan(token)++`]
  702. * {xref-IERC3156FlashLender-flashFee-address-uint256-}[`++flashFee(token, amount)++`]
  703. * {xref-IERC3156FlashLender-flashLoan-contract-IERC3156FlashBorrower-address-uint256-bytes-}[`++flashLoan(receiver, token, amount, data)++`]
  704. --
  705. [.contract-item]
  706. [[IERC3156FlashLender-maxFlashLoan-address-]]
  707. ==== `[.contract-item-name]#++maxFlashLoan++#++(address token) → uint256++` [.item-kind]#external#
  708. The amount of currency available to be lended.
  709. [.contract-item]
  710. [[IERC3156FlashLender-flashFee-address-uint256-]]
  711. ==== `[.contract-item-name]#++flashFee++#++(address token, uint256 amount) → uint256++` [.item-kind]#external#
  712. The fee to be charged for a given loan.
  713. [.contract-item]
  714. [[IERC3156FlashLender-flashLoan-contract-IERC3156FlashBorrower-address-uint256-bytes-]]
  715. ==== `[.contract-item-name]#++flashLoan++#++(contract IERC3156FlashBorrower receiver, address token, uint256 amount, bytes data) → bool++` [.item-kind]#external#
  716. Initiate a flash loan.
  717. :onFlashLoan: pass:normal[xref:#IERC3156FlashBorrower-onFlashLoan-address-address-uint256-uint256-bytes-[`++onFlashLoan++`]]
  718. [.contract]
  719. [[IERC3156FlashBorrower]]
  720. === `++IERC3156FlashBorrower++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC3156FlashBorrower.sol[{github-icon},role=heading-link]
  721. [.hljs-theme-light.nopadding]
  722. ```solidity
  723. import "@openzeppelin/contracts/interfaces/IERC3156FlashBorrower.sol";
  724. ```
  725. Interface of the ERC3156 FlashBorrower, as defined in
  726. https://eips.ethereum.org/EIPS/eip-3156[ERC-3156].
  727. [.contract-index]
  728. .Functions
  729. --
  730. * {xref-IERC3156FlashBorrower-onFlashLoan-address-address-uint256-uint256-bytes-}[`++onFlashLoan(initiator, token, amount, fee, data)++`]
  731. --
  732. [.contract-item]
  733. [[IERC3156FlashBorrower-onFlashLoan-address-address-uint256-uint256-bytes-]]
  734. ==== `[.contract-item-name]#++onFlashLoan++#++(address initiator, address token, uint256 amount, uint256 fee, bytes data) → bytes32++` [.item-kind]#external#
  735. Receive a flash loan.
  736. :Deposit: pass:normal[xref:#IERC4626-Deposit-address-address-uint256-uint256-[`++Deposit++`]]
  737. :Withdraw: pass:normal[xref:#IERC4626-Withdraw-address-address-address-uint256-uint256-[`++Withdraw++`]]
  738. :asset: pass:normal[xref:#IERC4626-asset--[`++asset++`]]
  739. :totalAssets: pass:normal[xref:#IERC4626-totalAssets--[`++totalAssets++`]]
  740. :convertToShares: pass:normal[xref:#IERC4626-convertToShares-uint256-[`++convertToShares++`]]
  741. :convertToAssets: pass:normal[xref:#IERC4626-convertToAssets-uint256-[`++convertToAssets++`]]
  742. :maxDeposit: pass:normal[xref:#IERC4626-maxDeposit-address-[`++maxDeposit++`]]
  743. :previewDeposit: pass:normal[xref:#IERC4626-previewDeposit-uint256-[`++previewDeposit++`]]
  744. :deposit: pass:normal[xref:#IERC4626-deposit-uint256-address-[`++deposit++`]]
  745. :maxMint: pass:normal[xref:#IERC4626-maxMint-address-[`++maxMint++`]]
  746. :previewMint: pass:normal[xref:#IERC4626-previewMint-uint256-[`++previewMint++`]]
  747. :mint: pass:normal[xref:#IERC4626-mint-uint256-address-[`++mint++`]]
  748. :maxWithdraw: pass:normal[xref:#IERC4626-maxWithdraw-address-[`++maxWithdraw++`]]
  749. :previewWithdraw: pass:normal[xref:#IERC4626-previewWithdraw-uint256-[`++previewWithdraw++`]]
  750. :withdraw: pass:normal[xref:#IERC4626-withdraw-uint256-address-address-[`++withdraw++`]]
  751. :maxRedeem: pass:normal[xref:#IERC4626-maxRedeem-address-[`++maxRedeem++`]]
  752. :previewRedeem: pass:normal[xref:#IERC4626-previewRedeem-uint256-[`++previewRedeem++`]]
  753. :redeem: pass:normal[xref:#IERC4626-redeem-uint256-address-address-[`++redeem++`]]
  754. [.contract]
  755. [[IERC4626]]
  756. === `++IERC4626++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC4626.sol[{github-icon},role=heading-link]
  757. [.hljs-theme-light.nopadding]
  758. ```solidity
  759. import "@openzeppelin/contracts/interfaces/IERC4626.sol";
  760. ```
  761. Interface of the ERC4626 "Tokenized Vault Standard", as defined in
  762. https://eips.ethereum.org/EIPS/eip-4626[ERC-4626].
  763. [.contract-index]
  764. .Functions
  765. --
  766. * {xref-IERC4626-asset--}[`++asset()++`]
  767. * {xref-IERC4626-totalAssets--}[`++totalAssets()++`]
  768. * {xref-IERC4626-convertToShares-uint256-}[`++convertToShares(assets)++`]
  769. * {xref-IERC4626-convertToAssets-uint256-}[`++convertToAssets(shares)++`]
  770. * {xref-IERC4626-maxDeposit-address-}[`++maxDeposit(receiver)++`]
  771. * {xref-IERC4626-previewDeposit-uint256-}[`++previewDeposit(assets)++`]
  772. * {xref-IERC4626-deposit-uint256-address-}[`++deposit(assets, receiver)++`]
  773. * {xref-IERC4626-maxMint-address-}[`++maxMint(receiver)++`]
  774. * {xref-IERC4626-previewMint-uint256-}[`++previewMint(shares)++`]
  775. * {xref-IERC4626-mint-uint256-address-}[`++mint(shares, receiver)++`]
  776. * {xref-IERC4626-maxWithdraw-address-}[`++maxWithdraw(owner)++`]
  777. * {xref-IERC4626-previewWithdraw-uint256-}[`++previewWithdraw(assets)++`]
  778. * {xref-IERC4626-withdraw-uint256-address-address-}[`++withdraw(assets, receiver, owner)++`]
  779. * {xref-IERC4626-maxRedeem-address-}[`++maxRedeem(owner)++`]
  780. * {xref-IERC4626-previewRedeem-uint256-}[`++previewRedeem(shares)++`]
  781. * {xref-IERC4626-redeem-uint256-address-address-}[`++redeem(shares, receiver, owner)++`]
  782. [.contract-subindex-inherited]
  783. .IERC20Metadata
  784. * {xref-IERC20Metadata-name--}[`++name()++`]
  785. * {xref-IERC20Metadata-symbol--}[`++symbol()++`]
  786. * {xref-IERC20Metadata-decimals--}[`++decimals()++`]
  787. [.contract-subindex-inherited]
  788. .IERC20
  789. * {xref-IERC20-totalSupply--}[`++totalSupply()++`]
  790. * {xref-IERC20-balanceOf-address-}[`++balanceOf(account)++`]
  791. * {xref-IERC20-transfer-address-uint256-}[`++transfer(to, value)++`]
  792. * {xref-IERC20-allowance-address-address-}[`++allowance(owner, spender)++`]
  793. * {xref-IERC20-approve-address-uint256-}[`++approve(spender, value)++`]
  794. * {xref-IERC20-transferFrom-address-address-uint256-}[`++transferFrom(from, to, value)++`]
  795. --
  796. [.contract-index]
  797. .Events
  798. --
  799. * {xref-IERC4626-Deposit-address-address-uint256-uint256-}[`++Deposit(sender, owner, assets, shares)++`]
  800. * {xref-IERC4626-Withdraw-address-address-address-uint256-uint256-}[`++Withdraw(sender, receiver, owner, assets, shares)++`]
  801. [.contract-subindex-inherited]
  802. .IERC20Metadata
  803. [.contract-subindex-inherited]
  804. .IERC20
  805. * {xref-IERC20-Transfer-address-address-uint256-}[`++Transfer(from, to, value)++`]
  806. * {xref-IERC20-Approval-address-address-uint256-}[`++Approval(owner, spender, value)++`]
  807. --
  808. [.contract-item]
  809. [[IERC4626-asset--]]
  810. ==== `[.contract-item-name]#++asset++#++() → address assetTokenAddress++` [.item-kind]#external#
  811. Returns the address of the underlying token used for the Vault for accounting, depositing, and withdrawing.
  812. - MUST be an ERC-20 token contract.
  813. - MUST NOT revert.
  814. [.contract-item]
  815. [[IERC4626-totalAssets--]]
  816. ==== `[.contract-item-name]#++totalAssets++#++() → uint256 totalManagedAssets++` [.item-kind]#external#
  817. Returns the total amount of the underlying asset that is “managed” by Vault.
  818. - SHOULD include any compounding that occurs from yield.
  819. - MUST be inclusive of any fees that are charged against assets in the Vault.
  820. - MUST NOT revert.
  821. [.contract-item]
  822. [[IERC4626-convertToShares-uint256-]]
  823. ==== `[.contract-item-name]#++convertToShares++#++(uint256 assets) → uint256 shares++` [.item-kind]#external#
  824. Returns the amount of shares that the Vault would exchange for the amount of assets provided, in an ideal
  825. scenario where all the conditions are met.
  826. - MUST NOT be inclusive of any fees that are charged against assets in the Vault.
  827. - MUST NOT show any variations depending on the caller.
  828. - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
  829. - MUST NOT revert.
  830. NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the
  831. “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and
  832. from.
  833. [.contract-item]
  834. [[IERC4626-convertToAssets-uint256-]]
  835. ==== `[.contract-item-name]#++convertToAssets++#++(uint256 shares) → uint256 assets++` [.item-kind]#external#
  836. Returns the amount of assets that the Vault would exchange for the amount of shares provided, in an ideal
  837. scenario where all the conditions are met.
  838. - MUST NOT be inclusive of any fees that are charged against assets in the Vault.
  839. - MUST NOT show any variations depending on the caller.
  840. - MUST NOT reflect slippage or other on-chain conditions, when performing the actual exchange.
  841. - MUST NOT revert.
  842. NOTE: This calculation MAY NOT reflect the “per-user” price-per-share, and instead should reflect the
  843. “average-user’s” price-per-share, meaning what the average user should expect to see when exchanging to and
  844. from.
  845. [.contract-item]
  846. [[IERC4626-maxDeposit-address-]]
  847. ==== `[.contract-item-name]#++maxDeposit++#++(address receiver) → uint256 maxAssets++` [.item-kind]#external#
  848. Returns the maximum amount of the underlying asset that can be deposited into the Vault for the receiver,
  849. through a deposit call.
  850. - MUST return a limited value if receiver is subject to some deposit limit.
  851. - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of assets that may be deposited.
  852. - MUST NOT revert.
  853. [.contract-item]
  854. [[IERC4626-previewDeposit-uint256-]]
  855. ==== `[.contract-item-name]#++previewDeposit++#++(uint256 assets) → uint256 shares++` [.item-kind]#external#
  856. Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block, given
  857. current on-chain conditions.
  858. - MUST return as close to and no more than the exact amount of Vault shares that would be minted in a deposit
  859. call in the same transaction. I.e. deposit should return the same or more shares as previewDeposit if called
  860. in the same transaction.
  861. - MUST NOT account for deposit limits like those returned from maxDeposit and should always act as though the
  862. deposit would be accepted, regardless if the user has enough tokens approved, etc.
  863. - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
  864. - MUST NOT revert.
  865. NOTE: any unfavorable discrepancy between convertToShares and previewDeposit SHOULD be considered slippage in
  866. share price or some other type of condition, meaning the depositor will lose assets by depositing.
  867. [.contract-item]
  868. [[IERC4626-deposit-uint256-address-]]
  869. ==== `[.contract-item-name]#++deposit++#++(uint256 assets, address receiver) → uint256 shares++` [.item-kind]#external#
  870. Mints shares Vault shares to receiver by depositing exactly amount of underlying tokens.
  871. - MUST emit the Deposit event.
  872. - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
  873. deposit execution, and are accounted for during deposit.
  874. - MUST revert if all of assets cannot be deposited (due to deposit limit being reached, slippage, the user not
  875. approving enough underlying tokens to the Vault contract, etc).
  876. NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
  877. [.contract-item]
  878. [[IERC4626-maxMint-address-]]
  879. ==== `[.contract-item-name]#++maxMint++#++(address receiver) → uint256 maxShares++` [.item-kind]#external#
  880. Returns the maximum amount of the Vault shares that can be minted for the receiver, through a mint call.
  881. - MUST return a limited value if receiver is subject to some mint limit.
  882. - MUST return 2 ** 256 - 1 if there is no limit on the maximum amount of shares that may be minted.
  883. - MUST NOT revert.
  884. [.contract-item]
  885. [[IERC4626-previewMint-uint256-]]
  886. ==== `[.contract-item-name]#++previewMint++#++(uint256 shares) → uint256 assets++` [.item-kind]#external#
  887. Allows an on-chain or off-chain user to simulate the effects of their mint at the current block, given
  888. current on-chain conditions.
  889. - MUST return as close to and no fewer than the exact amount of assets that would be deposited in a mint call
  890. in the same transaction. I.e. mint should return the same or fewer assets as previewMint if called in the
  891. same transaction.
  892. - MUST NOT account for mint limits like those returned from maxMint and should always act as though the mint
  893. would be accepted, regardless if the user has enough tokens approved, etc.
  894. - MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
  895. - MUST NOT revert.
  896. NOTE: any unfavorable discrepancy between convertToAssets and previewMint SHOULD be considered slippage in
  897. share price or some other type of condition, meaning the depositor will lose assets by minting.
  898. [.contract-item]
  899. [[IERC4626-mint-uint256-address-]]
  900. ==== `[.contract-item-name]#++mint++#++(uint256 shares, address receiver) → uint256 assets++` [.item-kind]#external#
  901. Mints exactly shares Vault shares to receiver by depositing amount of underlying tokens.
  902. - MUST emit the Deposit event.
  903. - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the mint
  904. execution, and are accounted for during mint.
  905. - MUST revert if all of shares cannot be minted (due to deposit limit being reached, slippage, the user not
  906. approving enough underlying tokens to the Vault contract, etc).
  907. NOTE: most implementations will require pre-approval of the Vault with the Vault’s underlying asset token.
  908. [.contract-item]
  909. [[IERC4626-maxWithdraw-address-]]
  910. ==== `[.contract-item-name]#++maxWithdraw++#++(address owner) → uint256 maxAssets++` [.item-kind]#external#
  911. Returns the maximum amount of the underlying asset that can be withdrawn from the owner balance in the
  912. Vault, through a withdraw call.
  913. - MUST return a limited value if owner is subject to some withdrawal limit or timelock.
  914. - MUST NOT revert.
  915. [.contract-item]
  916. [[IERC4626-previewWithdraw-uint256-]]
  917. ==== `[.contract-item-name]#++previewWithdraw++#++(uint256 assets) → uint256 shares++` [.item-kind]#external#
  918. Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block,
  919. given current on-chain conditions.
  920. - MUST return as close to and no fewer than the exact amount of Vault shares that would be burned in a withdraw
  921. call in the same transaction. I.e. withdraw should return the same or fewer shares as previewWithdraw if
  922. called
  923. in the same transaction.
  924. - MUST NOT account for withdrawal limits like those returned from maxWithdraw and should always act as though
  925. the withdrawal would be accepted, regardless if the user has enough shares, etc.
  926. - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
  927. - MUST NOT revert.
  928. NOTE: any unfavorable discrepancy between convertToShares and previewWithdraw SHOULD be considered slippage in
  929. share price or some other type of condition, meaning the depositor will lose assets by depositing.
  930. [.contract-item]
  931. [[IERC4626-withdraw-uint256-address-address-]]
  932. ==== `[.contract-item-name]#++withdraw++#++(uint256 assets, address receiver, address owner) → uint256 shares++` [.item-kind]#external#
  933. Burns shares from owner and sends exactly assets of underlying tokens to receiver.
  934. - MUST emit the Withdraw event.
  935. - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
  936. withdraw execution, and are accounted for during withdraw.
  937. - MUST revert if all of assets cannot be withdrawn (due to withdrawal limit being reached, slippage, the owner
  938. not having enough shares, etc).
  939. Note that some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
  940. Those methods should be performed separately.
  941. [.contract-item]
  942. [[IERC4626-maxRedeem-address-]]
  943. ==== `[.contract-item-name]#++maxRedeem++#++(address owner) → uint256 maxShares++` [.item-kind]#external#
  944. Returns the maximum amount of Vault shares that can be redeemed from the owner balance in the Vault,
  945. through a redeem call.
  946. - MUST return a limited value if owner is subject to some withdrawal limit or timelock.
  947. - MUST return balanceOf(owner) if owner is not subject to any withdrawal limit or timelock.
  948. - MUST NOT revert.
  949. [.contract-item]
  950. [[IERC4626-previewRedeem-uint256-]]
  951. ==== `[.contract-item-name]#++previewRedeem++#++(uint256 shares) → uint256 assets++` [.item-kind]#external#
  952. Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block,
  953. given current on-chain conditions.
  954. - MUST return as close to and no more than the exact amount of assets that would be withdrawn in a redeem call
  955. in the same transaction. I.e. redeem should return the same or more assets as previewRedeem if called in the
  956. same transaction.
  957. - MUST NOT account for redemption limits like those returned from maxRedeem and should always act as though the
  958. redemption would be accepted, regardless if the user has enough shares, etc.
  959. - MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
  960. - MUST NOT revert.
  961. NOTE: any unfavorable discrepancy between convertToAssets and previewRedeem SHOULD be considered slippage in
  962. share price or some other type of condition, meaning the depositor will lose assets by redeeming.
  963. [.contract-item]
  964. [[IERC4626-redeem-uint256-address-address-]]
  965. ==== `[.contract-item-name]#++redeem++#++(uint256 shares, address receiver, address owner) → uint256 assets++` [.item-kind]#external#
  966. Burns exactly shares from owner and sends assets of underlying tokens to receiver.
  967. - MUST emit the Withdraw event.
  968. - MAY support an additional flow in which the underlying tokens are owned by the Vault contract before the
  969. redeem execution, and are accounted for during redeem.
  970. - MUST revert if all of shares cannot be redeemed (due to withdrawal limit being reached, slippage, the owner
  971. not having enough shares, etc).
  972. NOTE: some implementations will require pre-requesting to the Vault before a withdrawal may be performed.
  973. Those methods should be performed separately.
  974. [.contract-item]
  975. [[IERC4626-Deposit-address-address-uint256-uint256-]]
  976. ==== `[.contract-item-name]#++Deposit++#++(address indexed sender, address indexed owner, uint256 assets, uint256 shares)++` [.item-kind]#event#
  977. [.contract-item]
  978. [[IERC4626-Withdraw-address-address-address-uint256-uint256-]]
  979. ==== `[.contract-item-name]#++Withdraw++#++(address indexed sender, address indexed receiver, address indexed owner, uint256 assets, uint256 shares)++` [.item-kind]#event#
  980. :owner: pass:normal[xref:#IERC5313-owner--[`++owner++`]]
  981. [.contract]
  982. [[IERC5313]]
  983. === `++IERC5313++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC5313.sol[{github-icon},role=heading-link]
  984. [.hljs-theme-light.nopadding]
  985. ```solidity
  986. import "@openzeppelin/contracts/interfaces/IERC5313.sol";
  987. ```
  988. Interface for the Light Contract Ownership Standard.
  989. A standardized minimal interface required to identify an account that controls a contract
  990. [.contract-index]
  991. .Functions
  992. --
  993. * {xref-IERC5313-owner--}[`++owner()++`]
  994. --
  995. [.contract-item]
  996. [[IERC5313-owner--]]
  997. ==== `[.contract-item-name]#++owner++#++() → address++` [.item-kind]#external#
  998. Gets the address of the owner.
  999. :EIP712DomainChanged: pass:normal[xref:#IERC5267-EIP712DomainChanged--[`++EIP712DomainChanged++`]]
  1000. :eip712Domain: pass:normal[xref:#IERC5267-eip712Domain--[`++eip712Domain++`]]
  1001. [.contract]
  1002. [[IERC5267]]
  1003. === `++IERC5267++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC5267.sol[{github-icon},role=heading-link]
  1004. [.hljs-theme-light.nopadding]
  1005. ```solidity
  1006. import "@openzeppelin/contracts/interfaces/IERC5267.sol";
  1007. ```
  1008. [.contract-index]
  1009. .Functions
  1010. --
  1011. * {xref-IERC5267-eip712Domain--}[`++eip712Domain()++`]
  1012. --
  1013. [.contract-index]
  1014. .Events
  1015. --
  1016. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  1017. --
  1018. [.contract-item]
  1019. [[IERC5267-eip712Domain--]]
  1020. ==== `[.contract-item-name]#++eip712Domain++#++() → bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions++` [.item-kind]#external#
  1021. returns the fields and values that describe the domain separator used by this contract for EIP-712
  1022. signature.
  1023. [.contract-item]
  1024. [[IERC5267-EIP712DomainChanged--]]
  1025. ==== `[.contract-item-name]#++EIP712DomainChanged++#++()++` [.item-kind]#event#
  1026. MAY be emitted to signal that the domain could have changed.
  1027. [.contract]
  1028. [[IERC5805]]
  1029. === `++IERC5805++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC5805.sol[{github-icon},role=heading-link]
  1030. [.hljs-theme-light.nopadding]
  1031. ```solidity
  1032. import "@openzeppelin/contracts/interfaces/IERC5805.sol";
  1033. ```
  1034. [.contract-index]
  1035. .Functions
  1036. --
  1037. [.contract-subindex-inherited]
  1038. .IVotes
  1039. * {xref-IVotes-getVotes-address-}[`++getVotes(account)++`]
  1040. * {xref-IVotes-getPastVotes-address-uint256-}[`++getPastVotes(account, timepoint)++`]
  1041. * {xref-IVotes-getPastTotalSupply-uint256-}[`++getPastTotalSupply(timepoint)++`]
  1042. * {xref-IVotes-delegates-address-}[`++delegates(account)++`]
  1043. * {xref-IVotes-delegate-address-}[`++delegate(delegatee)++`]
  1044. * {xref-IVotes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-}[`++delegateBySig(delegatee, nonce, expiry, v, r, s)++`]
  1045. [.contract-subindex-inherited]
  1046. .IERC6372
  1047. * {xref-IERC6372-clock--}[`++clock()++`]
  1048. * {xref-IERC6372-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  1049. --
  1050. [.contract-index]
  1051. .Events
  1052. --
  1053. [.contract-subindex-inherited]
  1054. .IVotes
  1055. * {xref-IVotes-DelegateChanged-address-address-address-}[`++DelegateChanged(delegator, fromDelegate, toDelegate)++`]
  1056. * {xref-IVotes-DelegateVotesChanged-address-uint256-uint256-}[`++DelegateVotesChanged(delegate, previousVotes, newVotes)++`]
  1057. [.contract-subindex-inherited]
  1058. .IERC6372
  1059. --
  1060. [.contract-index]
  1061. .Errors
  1062. --
  1063. [.contract-subindex-inherited]
  1064. .IVotes
  1065. * {xref-IVotes-VotesExpiredSignature-uint256-}[`++VotesExpiredSignature(expiry)++`]
  1066. [.contract-subindex-inherited]
  1067. .IERC6372
  1068. --
  1069. :clock: pass:normal[xref:#IERC6372-clock--[`++clock++`]]
  1070. :CLOCK_MODE: pass:normal[xref:#IERC6372-CLOCK_MODE--[`++CLOCK_MODE++`]]
  1071. [.contract]
  1072. [[IERC6372]]
  1073. === `++IERC6372++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0/contracts/interfaces/IERC6372.sol[{github-icon},role=heading-link]
  1074. [.hljs-theme-light.nopadding]
  1075. ```solidity
  1076. import "@openzeppelin/contracts/interfaces/IERC6372.sol";
  1077. ```
  1078. [.contract-index]
  1079. .Functions
  1080. --
  1081. * {xref-IERC6372-clock--}[`++clock()++`]
  1082. * {xref-IERC6372-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  1083. --
  1084. [.contract-item]
  1085. [[IERC6372-clock--]]
  1086. ==== `[.contract-item-name]#++clock++#++() → uint48++` [.item-kind]#external#
  1087. Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting).
  1088. [.contract-item]
  1089. [[IERC6372-CLOCK_MODE--]]
  1090. ==== `[.contract-item-name]#++CLOCK_MODE++#++() → string++` [.item-kind]#external#
  1091. Description of the clock