-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from KPrasch/tapir
Tapir Deployment
- Loading branch information
Showing
10 changed files
with
6,116 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
|
||
pragma solidity ^0.8.0; | ||
|
||
import "@openzeppelin/contracts/access/Ownable.sol"; | ||
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | ||
|
||
import "../coordination/TACoChildApplication.sol"; | ||
|
||
contract TapirTACoChildApplication is TACoChildApplication, Ownable { | ||
constructor(ITACoChildToRoot _rootApplication) TACoChildApplication(_rootApplication) {} | ||
|
||
function setCoordinator(address _coordinator) external onlyOwner { | ||
require(_coordinator != address(0), "Coordinator must be specified"); | ||
require( | ||
address(Coordinator(_coordinator).application()) == address(this), | ||
"Invalid coordinator" | ||
); | ||
coordinator = _coordinator; | ||
} | ||
} | ||
|
||
contract TapirRitualToken is ERC20("TapirRitualToken", "TRT") { | ||
constructor(uint256 _totalSupplyOfTokens) { | ||
_mint(msg.sender, _totalSupplyOfTokens); | ||
} | ||
} | ||
|
||
contract TapirStakingToken is ERC20("TapirStakingToken", "TST") { | ||
constructor(uint256 _totalSupplyOfTokens) { | ||
_mint(msg.sender, _totalSupplyOfTokens); | ||
} | ||
} |
Oops, something went wrong.