Rename GrantableToken to VestedToken

pull/140/head
Jorge Izquierdo 8 years ago
parent f305382ef4
commit 0b71dcded2
  1. 11
      contracts/test-helpers/GrantableTokenMock.sol
  2. 11
      contracts/test-helpers/VestedTokenMock.sol
  3. 2
      contracts/token/VestedToken.sol
  4. 4
      test/VestedToken.js

@ -1,11 +0,0 @@
pragma solidity ^0.4.4;
import '../token/GrantableToken.sol';
// mock class using StandardToken
contract GrantableTokenMock is GrantableToken {
function GrantableTokenMock(address initialAccount, uint initialBalance) {
balances[initialAccount] = initialBalance;
totalSupply = initialBalance;
}
}

@ -0,0 +1,11 @@
pragma solidity ^0.4.4;
import '../token/VestedToken.sol';
// mock class using StandardToken
contract VestedTokenMock is VestedToken {
function VestedTokenMock(address initialAccount, uint initialBalance) {
balances[initialAccount] = initialBalance;
totalSupply = initialBalance;
}
}

@ -2,7 +2,7 @@ pragma solidity ^0.4.8;
import "./StandardToken.sol";
contract GrantableToken is StandardToken {
contract VestedToken is StandardToken {
struct TokenGrant {
address granter;
uint256 value;

@ -1,7 +1,7 @@
const assertJump = require('./helpers/assertJump');
const timer = require('./helpers/timer');
contract('GrantableToken', function(accounts) {
contract('VestedToken', function(accounts) {
let token = null
let now = 0
@ -11,7 +11,7 @@ contract('GrantableToken', function(accounts) {
const receiver = accounts[1]
beforeEach(async () => {
token = await GrantableTokenMock.new(granter, 100);
token = await VestedTokenMock.new(granter, 100);
now = +new Date()/1000;
})
Loading…
Cancel
Save