πERC884
Overview
The ERC884 contract is an implementation of the ERC884 token standard, adhering to regulations set forth by the Delaware State Senate Bill No. 69.
This standard is particularly relevant for tokenized shares in accordance with Delaware corporate law. It includes provisions for verified shareholder addresses and unique shareholder identification.
Methods
mint
mintMints tokens to a verified address.
Parameters
Parameter
Type
Description
_to
address
Address to receive the minted tokens.
_amount
uint256
Amount of tokens to mint.
holderCount
holderCountReturns the number of unique addresses that own tokens.
Returns
Return
Type
Description
-
uint
Number of unique token holders.
holderAt
holderAtRetrieves the address of a token holder by index.
Parameters
Parameter
Type
Description
index
uint256
Zero-based index of the holder.
Returns
Return
Type
Description
-
address
Address of the token holder.
addVerified
addVerifiedAdds a verified address along with an associated hash.
Parameters
Parameter
Type
Description
addr
address
Address to be verified.
hash
bytes32
Cryptographic hash of the address holder's info.
removeVerified
removeVerifiedRemoves a verified address and its associated hash.
Parameters
Parameter
Type
Description
addr
address
Verified address to be removed.
updateVerified
updateVerifiedUpdates the hash for a verified address.
Parameters
Parameter
Type
Description
addr
address
Verified address to update.
hash
bytes32
New cryptographic hash.
cancelAndReissue
cancelAndReissueCancels an original address and reissues tokens to a replacement address.
Parameters
Parameter
Type
Description
original
address
Address to be superseded.
replacement
address
Address that replaces the original.
transfer
transferTransfers tokens to a verified address.
Parameters
Parameter
Type
Description
to
address
Recipient address.
value
uint256
Amount of tokens to transfer.
Returns
Return
Type
Description
success
bool
Returns true if the transfer is successful.
transferFrom
transferFromAllows a spender to transfer tokens from one address to another.
Parameters
Parameter
Type
Description
from
address
Address to transfer tokens from.
to
address
Address to transfer tokens to.
value
uint256
Amount of tokens to transfer.
Returns
Return
Type
Description
success
bool
Returns true if the transfer is successful.
Last updated