Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

Releases: gitcoinco/gitcoin-erc721

Add function to setTokenURI

27 Oct 22:22
Compare
Choose a tag to compare

What's New

We can now (as a contract owner), use the setTokenURI() function to set the token metadata after it has been minted.

Initial Audit Complete

26 Oct 22:31
Compare
Choose a tag to compare

What's new

Implemented audit recommendations made by @decanus. Notes are here:
https://hackmd.io/s/H1jzwl0iX

Updates include:

  • Set dummy kudos in constructor function instead of mint() function
  • Remove payable modifier from functions that don't require it
  • Return ETH to msg.sender after paying the fees to the token owner and contract owner.
  • Add new test to make sure that extra ETH is being returned to msg.sender when running the clone() function.

Bug Fix Release

23 Oct 19:33
Compare
Choose a tag to compare

What's new

  • Fixed an issue where if you tried to run getLatestId before any data was pushed to the kudos array, an underflow would occur.

Feature release

22 Oct 21:58
f47ac98
Compare
Choose a tag to compare

Whats New

This version adds a couple new functions, most notably, getLatestId and setMintable. Also there is a new public variable name isMintable.

  • getLatestId. This is the new way to find out the latest kudos id. This is the preferred method over totalSupply(), because totalSupply() will not output the correct kudos id once we start burning tokens.
  • setMintable. This is true by default. If its set to false, it disables the ability to mint or clone and new kudos. Setting this allows us to "deprecate" contracts, by not letting anyone mint new kudos.

Initial Release

19 Oct 02:37
Compare
Choose a tag to compare

Whats New

First release of the Kudos.sol contract to the mainnet. The deploy didn't work using truffle migrate, had to release using the truffle console:

truffle console --network live
In the console,
var tx = Kudos.new({gasPrice: 3 * 10**9, nonce: 4 })

The contract is deployed to address 0x56c72cda0b04fc39a25d0b6a64fa258fad46d664 on the mainnet.

Known bugs

In this version, there is no reliable way to find the latest kudos id. I was using totalSupply() but this is not reliable when you start burning tokens. Need to upgrade to the newest version to fix this.