Rename SmartToken to ERC827
This commit is contained in:
15
contracts/mocks/ERC827TokenMock.sol
Normal file
15
contracts/mocks/ERC827TokenMock.sol
Normal file
@ -0,0 +1,15 @@
|
||||
pragma solidity ^0.4.13;
|
||||
|
||||
|
||||
import '../token/ERC827.sol';
|
||||
|
||||
|
||||
// mock class using ERC827 Token
|
||||
contract ERC827TokenMock is ERC827 {
|
||||
|
||||
function ERC827TokenMock(address initialAccount, uint256 initialBalance) {
|
||||
balances[initialAccount] = initialBalance;
|
||||
totalSupply = initialBalance;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,15 +0,0 @@
|
||||
pragma solidity ^0.4.13;
|
||||
|
||||
|
||||
import '../token/SmartToken.sol';
|
||||
|
||||
|
||||
// mock class using SmartToken
|
||||
contract SmartTokenMock is SmartToken {
|
||||
|
||||
function SmartTokenMock(address initialAccount, uint256 initialBalance) {
|
||||
balances[initialAccount] = initialBalance;
|
||||
totalSupply = initialBalance;
|
||||
}
|
||||
|
||||
}
|
||||
@ -3,14 +3,14 @@ pragma solidity ^0.4.13;
|
||||
import "./StandardToken.sol";
|
||||
|
||||
/**
|
||||
@title SmartToken, an extension of ERC20 token standard
|
||||
@title ERC827, an extension of ERC20 token standard
|
||||
|
||||
Implementation the SmartToken, following the ERC20 standard with extra
|
||||
Implementation the ERC827, following the ERC20 standard with extra
|
||||
methods to transfer value and data and execute calls in transfers and
|
||||
approvals.
|
||||
Uses OpenZeppelin StandardToken.
|
||||
*/
|
||||
contract SmartToken is StandardToken {
|
||||
contract ERC827 is StandardToken {
|
||||
|
||||
/**
|
||||
@dev `approveData` is an addition to ERC20 token methods. It allows to
|
||||
Reference in New Issue
Block a user