This brings in the current state of the kredits contracts incl. the Contributors, Operator and Token contract.
16 lines
453 B
JavaScript
16 lines
453 B
JavaScript
var Registry = artifacts.require('./Registry.sol');
|
|
var Token = artifacts.require('./Token.sol');
|
|
|
|
module.exports = function(deployer) {
|
|
deployer.deploy(Token).then(function(token) {
|
|
console.log('Registry address: ', Registry.address);
|
|
console.log('Token address: ', Token.address);
|
|
Registry.deployed().then(function(registry) {
|
|
registry.addVersion('Token', Token.address);
|
|
registry.createProxy('Token', 1);
|
|
});
|
|
});
|
|
};
|
|
|
|
|