Improve locator example

This commit is contained in:
lash 2023-03-25 11:24:23 +00:00
parent 0877fe7769
commit a28cfdbb36
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
4 changed files with 8 additions and 8 deletions

View File

@ -1,13 +1,13 @@
@subsection Accounts Index @subsection Accounts Index
Account address membership list. Typically used for access control lists.
Records time when account was added.
Addresses may be @emph{added}, @emph{removed}, aswell as @emph{deactivated} and @emph{activated}. Deactivated accounts still count towards the @code{entryCount}. Addresses may be @emph{added}, @emph{removed}, aswell as @emph{deactivated} and @emph{activated}. Deactivated accounts still count towards the @code{entryCount}.
The @code{entry} method is used to iterate the account list. The order of which accounts are returned is not guaranteed. Any returned value matching @code{address(0x00)} should be skipped, and not counted towards @code{entryCount}. The @code{entry} method is used to iterate the account list. The order of which accounts are returned is not guaranteed. Any returned value matching @code{address(0x00)} should be skipped, and not counted towards @code{entryCount}.
Also records time when account was added.
@table @dfn @table @dfn
@item ERC165 Interface identifier @item ERC165 Interface identifier
@include ../../build/AccountsIndex.interface @include ../../build/AccountsIndex.interface

View File

@ -6,7 +6,7 @@ It is used to declare or respond to certifications of vouchers, NFT, voucher mem
Addresses may be Externally Owned Accounts or smart contracts. Addresses may be Externally Owned Accounts or smart contracts.
Claims may be made with or without topics. A missing topic is synonymous with a topic valud of @code{bytes32(0x00)}. Claims may be made with or without topics. A missing topic is synonymous with a topic value of @code{bytes32(0x00)}.
Any number of claims can be made about an address under any number of topics. All claims must be stored, and returned in the order which they were added. Any number of claims can be made about an address under any number of topics. All claims must be stored, and returned in the order which they were added.

View File

@ -1,6 +1,6 @@
@subsection Expire @subsection Expire
Defines a token contract that may not be used after a certain time. Defines an expiry time after which token balances or supply @emph{cannot change}.
A contract defining an expiry @emph{must not} allow changing the expiration time to a time in the past. A contract defining an expiry @emph{must not} allow changing the expiration time to a time in the past.

View File

@ -18,12 +18,12 @@ Furthermore, it @emph{should} be possible to refer to a resource by a fully-qua
@subsubsection Expressing locators in terms of numetic token id @subsubsection Expressing locators in terms of numetic token id
Given the numeric token id @code{1234567890987654321}, and a base url @code{https://contentgateway.grassecon.net}, the result of the methods may be as follows: Given the numeric token id @code{1234567890987654321} (@code{0x112210f4b16c1cb1} hex), and a base url @code{https://contentgateway.grassecon.net}, the result of the methods may be as follows:
@table @code @table @code
@item toURI(000000000000000000000000000000000000000000000000112210f4b16c1cb1) @item toURI(toHex(1234567890987654321))
-> @code{https://contentgateway.grassecon.net/000000000000000000000000000000000000000000000000112210f4b16c1cb1} -> @code{https://contentgateway.grassecon.net/000000000000000000000000000000000000000000000000112210f4b16c1cb1}
@item toURL(000000000000000000000000000000000000000000000000112210f4b16c1cb1) @item toURL(toHex(1234567890987654321))
-> @code{https://contentgateway.grassecon.net/000000000000000000000000000000000000000000000000112210f4b16c1cb1} -> @code{https://contentgateway.grassecon.net/000000000000000000000000000000000000000000000000112210f4b16c1cb1}
@item tokenURI(1234567890987654321) @item tokenURI(1234567890987654321)
-> @code{https://contentgateway.grassecon.net/000000000000000000000000000000000000000000000000112210f4b16c1cb1} -> @code{https://contentgateway.grassecon.net/000000000000000000000000000000000000000000000000112210f4b16c1cb1}