Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions contracts/proxy4tests/SafeMath.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import "../SafeMath.sol";

contract ProxySafeMath {

using SafeMath for uint256;

function testadd(uint256 a, uint256 b) public pure returns (uint256 ){
return a.add(b);
}

function testsub(uint256 a, uint256 b) public pure returns (uint256 ){
return a.sub(b);
}

function testmul(uint256 a, uint256 b) public pure returns (uint256 ){
return a.mul(b);
}

function testdiv(uint256 a, uint256 b) public pure returns (uint256 ){
return a.div(b);
}

function testmod(uint256 a, uint256 b) public pure returns (uint256 ){
return a.mod(b);
}


}
27 changes: 27 additions & 0 deletions contracts/proxy4tests/Token.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import "../Token.sol";

contract ProxyToken is Token {

constructor() public {}
function test_transfer(address sender, address recipient, uint256 amount) public {
_transfer(sender,recipient,amount);
}

function test_mint(address account, uint256 amount) public {
_mint(account,amount);
}

function test_burn(address account, uint256 value) public {
_burn(account,value);
}

function test_approve(address owner, address spender, uint256 value) public {
_approve(owner,spender,value);
}

function test_burnFrom(address account, uint256 amount) public {
_burnFrom(account,amount);
}


}
Loading