Reference
Registry contract
The registry is a single contract on Ethereum. Source lives in the project at contracts/SlabRegistry.sol.
Functions
bind(grader, certificate, cardName, setYear, grade, token, imageURI, description)
Writes a new binding keyed by the certificate number and stores msg.sender as the creator. Reverts with CertificateAlreadyBound if the certificate exists, EmptyField if a required field is blank.
setToken(certificate, token)
Links a token address to an existing binding. Callable only by the creator wallet. Reverts with NotCreator or CertificateNotFound.
getRecord(certificate)
Returns the full record. Reverts with CertificateNotFound.
getRecords(offset, limit)
Newest-first paginated read of all bindings.
isBound(certificate)
Cheap existence check used before submitting a bind transaction.
totalRecords()
Number of bindings written so far.
keyOf(certificate)
keccak256 of the certificate string — the storage key of a record.