Add Contribution contract
The contribution contract implements an ERC721 interface which represents any contribution. The contributions are non-fungible (as opposed to the Kredits tokens) and can be not be transferred. The contract stores the history of any contribution. Contributions can be claimed which will issue the Kredits tokens to the contributor. This is an early implementation and misses some access control and probably more things.
This commit is contained in:
13
migrations/1528988660_contribution.js
Normal file
13
migrations/1528988660_contribution.js
Normal file
@@ -0,0 +1,13 @@
|
||||
var Registry = artifacts.require('./Registry.sol');
|
||||
var Contribution = artifacts.require('./Contribution.sol');
|
||||
|
||||
module.exports = function(deployer) {
|
||||
deployer.deploy(Contribution).then(function(contribution) {
|
||||
console.log('Registry address: ', Registry.address);
|
||||
console.log('Contribution address: ', Contribution.address);
|
||||
Registry.deployed().then(function(registry) {
|
||||
registry.addVersion('Contribution', Contribution.address);
|
||||
registry.createProxy('Contribution', 1);
|
||||
});
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user