From da5d7d9d2d000d565ec0438eef1115698c30ebd5 Mon Sep 17 00:00:00 2001 From: lash Date: Wed, 2 Aug 2023 10:22:32 +0100 Subject: [PATCH] Fix remaining texinfo code examples Signed-off-by: lash --- README.md | 18 ++++++++++++------ doc/texinfo/accountsindex.sol.texi | 26 ++++++++++++++++---------- python/README.md | 18 ++++++++++++------ 3 files changed, 40 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index aeb5cfe..6ff8053 100644 --- a/README.md +++ b/README.md @@ -61,10 +61,12 @@ matching `address(0x00)` should be skipped, and not counted towards May optionally record time when account was added. -ERC165 Interface identifier +#### ERC165 Interface identifier + b7bca625 -Solidity interface definition +#### Solidity interface definition + interface IAccountsIndex { // Address added to store, index in array. event AddressAdded(uint256 indexed _idx, address _account); @@ -88,7 +90,8 @@ Solidity interface definition function time(address) external view returns (uint256); } -Reference implementation +#### Reference implementation + (v0.5.1) ### Accounts Index Mutable @@ -99,10 +102,12 @@ address list. Addresses may be *added*, *removed*, aswell as *deactivated* and *activated*. Deactivated accounts still count towards the `entryCount`. -ERC165 Interface identifier +#### ERC165 Interface identifier + 9479f0ae -Solidity interface definition +#### Solidity interface definition + interface IAccountsIndexMutable { // Active status of address changed, and by whom changed. event AddressActive(address indexed _account, bool _active); @@ -123,7 +128,8 @@ Solidity interface definition function isActive(address) external view returns (bool); } -Reference implementation +#### Reference implementation + (v0.5.1) ### Burner diff --git a/doc/texinfo/accountsindex.sol.texi b/doc/texinfo/accountsindex.sol.texi index b9adbad..003b939 100644 --- a/doc/texinfo/accountsindex.sol.texi +++ b/doc/texinfo/accountsindex.sol.texi @@ -9,14 +9,17 @@ The @code{entry} method is used to iterate the account list. The order of which May optionally record time when account was added. -@table @dfn -@item ERC165 Interface identifier +@subsubsection ERC165 Interface identifier + @include ../../build/AccountsIndex.interface -@item Solidity interface definition + +@subsubsection Solidity interface definition + @include ../../build/contract_AccountsIndex.texi -@item Reference implementation + +@subsubsection Reference implementation + @uref{git://holbrook.no/eth-accounts-index.git,} (v0.5.1) -@end table @subsection Accounts Index Mutable @@ -26,11 +29,14 @@ Extends the functionality of @code{Accounts Index} to allow changes to the addre Addresses may be @emph{added}, @emph{removed}, aswell as @emph{deactivated} and @emph{activated}. Deactivated accounts still count towards the @code{entryCount}. -@table @dfn -@item ERC165 Interface identifier +@subsubsection ERC165 Interface identifier + @include ../../build/AccountsIndexMutable.interface -@item Solidity interface definition + +@subsubsection Solidity interface definition + @include ../../build/contract_AccountsIndexMutable.texi -@item Reference implementation + +@subsubsection Reference implementation + @uref{git://holbrook.no/eth-accounts-index.git,} (v0.5.1) -@end table diff --git a/python/README.md b/python/README.md index aeb5cfe..6ff8053 100644 --- a/python/README.md +++ b/python/README.md @@ -61,10 +61,12 @@ matching `address(0x00)` should be skipped, and not counted towards May optionally record time when account was added. -ERC165 Interface identifier +#### ERC165 Interface identifier + b7bca625 -Solidity interface definition +#### Solidity interface definition + interface IAccountsIndex { // Address added to store, index in array. event AddressAdded(uint256 indexed _idx, address _account); @@ -88,7 +90,8 @@ Solidity interface definition function time(address) external view returns (uint256); } -Reference implementation +#### Reference implementation + (v0.5.1) ### Accounts Index Mutable @@ -99,10 +102,12 @@ address list. Addresses may be *added*, *removed*, aswell as *deactivated* and *activated*. Deactivated accounts still count towards the `entryCount`. -ERC165 Interface identifier +#### ERC165 Interface identifier + 9479f0ae -Solidity interface definition +#### Solidity interface definition + interface IAccountsIndexMutable { // Active status of address changed, and by whom changed. event AddressActive(address indexed _account, bool _active); @@ -123,7 +128,8 @@ Solidity interface definition function isActive(address) external view returns (bool); } -Reference implementation +#### Reference implementation + (v0.5.1) ### Burner