We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Below are the test cases for the engagement contract.
uint private _counter; // increment on issue function mapping(uint id, uint) private _tokenCount; // nb of accounts that have minted a token
PROVIDER_ROLE
Creates a new token and adds a cid to it's metadata.
Mint a token balance to 1.
Burn the token balance to 0.
Return a formatted uri: ipfs://hash/id/account.json
ipfs://hash/id/account.json
Update the cid for a given date.
Return a formatted uri: ipfs://hash.json
ipfs://hash.json
The text was updated successfully, but these errors were encountered:
@mehdi-torabiv
I think we need 2 new mappings: mintedAt and burnedAt.
mintedAt
burnedAt
getScore
Missing test cases for issue(string memory cid).
Sorry, something went wrong.
No branches or pull requests
Test cases
Below are the test cases for the engagement contract.
variables
deployment
Success
PROVIDER_ROLE
#9issue(string memory tokenCid)
Creates a new token and adds a cid to it's metadata.
Success
mint(uint id, string memory account)
Mint a token balance to 1.
Success
Revert
burn(uint id, string memory account)
Burn the token balance to 0.
Success
Revert
getScore(uint date, uint id, string memory account)
Return a formatted uri:
ipfs://hash/id/account.json
Success
Revert
updateScores(uint date, string memory cid)
Update the cid for a given date.
Success
Revert
PROVIDER_ROLE
) #34uri(uint id)
Return a formatted uri:
ipfs://hash.json
Success
Revert
The text was updated successfully, but these errors were encountered: