-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [REFACTOR] Compatibility changes to the contracts and configurations for compilation against solidity v0.6.2 * migration to @animoca/ethereum-contracts-core_library:1.0.0, added IERC20Detailed.sol and example migrations * Rename ERC20Base to ERC20Full * Added IERC20 * switch to public dependency registry for core_library Co-authored-by: Jan-Paul Azucena <[email protected]> Co-authored-by: Nathan Sala <[email protected]>
- Loading branch information
1 parent
eb95f93
commit 332f776
Showing
21 changed files
with
1,752 additions
and
929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Solidity ERC20 Base | ||
|
||
* `ERC20Base.sol`: An ERC20 Implementation including whitelisted operators. | ||
* `ERC20Full.sol`: An ERC20 Implementation with Detailed, ERC165 and operators whitelisting interfaces. | ||
* `ERC20Fees.sol`: A contract to be inherited from for enabling ERC20-based GSN meta-transactions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
pragma solidity ^0.6.6; | ||
|
||
contract Migrations { | ||
address public owner; | ||
uint public last_completed_migration; | ||
|
||
constructor() public { | ||
owner = msg.sender; | ||
} | ||
|
||
modifier restricted() { | ||
if (msg.sender == owner) _; | ||
} | ||
|
||
function setCompleted(uint completed) public restricted { | ||
last_completed_migration = completed; | ||
} | ||
|
||
function upgrade(address new_address) public restricted { | ||
Migrations upgraded = Migrations(new_address); | ||
upgraded.setCompleted(last_completed_migration); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
pragma solidity ^0.6.6; | ||
|
||
import "../../../token/ERC20/ERC20Full.sol"; | ||
import "../../../token/ERC20/IERC20Detailed.sol"; | ||
|
||
contract ERC20FullMock is ERC20Full { | ||
|
||
string public override name = "ERC20Full"; | ||
string public override symbol = "E2F"; | ||
uint8 public override decimals = 18; | ||
|
||
constructor (uint256 initialBalance) public ERC20Full(initialBalance) {} | ||
|
||
function underscoreApprove(address owner, address spender, uint256 value) public { | ||
super._approve(owner, spender, value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.