Fix remaining texinfo code examples

Signed-off-by: lash <dev@holbrook.no>
This commit is contained in:
lash 2023-08-02 10:22:32 +01:00
parent f9d2af2e3b
commit da5d7d9d2d
3 changed files with 40 additions and 22 deletions

View File

@ -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
<git://holbrook.no/eth-accounts-index.git> (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
<git://holbrook.no/eth-accounts-index.git> (v0.5.1)
### Burner

View File

@ -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

View File

@ -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
<git://holbrook.no/eth-accounts-index.git> (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
<git://holbrook.no/eth-accounts-index.git> (v0.5.1)
### Burner