Skip to content

Instantly share code, notes, and snippets.

@KardanovIR
Created June 9, 2020 13:54
Show Gist options
  • Save KardanovIR/f427525d85c9156ef2494859abe0911c to your computer and use it in GitHub Desktop.
Save KardanovIR/f427525d85c9156ef2494859abe0911c to your computer and use it in GitHub Desktop.
func keyFunding (id: Int) = "funding_" + id.toString()
func keyEndTimestamp(id: Int) = keyFunding(id) + "_timestamp"
func keyImplEndTimestamp(id: Int) = keyFunding(id) + "_impl_timestamp"
func keyTargetSum(id: Int) = keyFunding(id) + "_targetSum"
func keyOwner(id: Int) = keyFunding(id) + "_owner"
func keyRaised(id: Int) = keyFunding(id) + "_raised"
func keyReleaseVotes(id: Int) = keyFunding(id) + "_release_votes"
func keyReleasedTokens(id: Int) = keyFunding(id) + "_released"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment