Add new maxMintablePerHash to createToken(), which will be the maximum that can be minted at once. This will set a hard cap on a single hash[i]->value[i] during GitConsensus.addRelease().
Also gives frontend something to use as a reasonable max to read for how much they can assign to a commit during the pre-proposal process.
Git Consensus integration tests
commits
✓ should succeed single commit that have address
✓ should succeed single commit that have address no space
- should fail all commit that have partial address
✓ [loop] should succeed all example commit that have address
✓ [loop] should fail all example commit that have no address
releases
✓ should fail release with different size hash and value arrays
✓ [loop] should fail all example tag that have no address
✓ should fail invalid release from non-governor
✓ should succeed valid release, commits from last tag to current
✓ should succeed valid release, commits from any
clones
✓ should create clones using arguments
Description
Add new
maxMintablePerHash
to createToken(), which will be the maximum that can be minted at once. This will set a hard cap on a singlehash[i]
->value[i]
duringGitConsensus.addRelease()
.Also gives frontend something to use as a reasonable max to read for how much they can assign to a commit during the pre-proposal process.
Test Coverage
Unit tests:
Integration tests: