Skip to content

Commit

Permalink
Merge pull request #141 from KPrasch/tapir
Browse files Browse the repository at this point in the history
Tapir Deployment
  • Loading branch information
KPrasch authored Oct 6, 2023
2 parents 6695966 + 0f7a4d2 commit be393ec
Show file tree
Hide file tree
Showing 10 changed files with 6,116 additions and 0 deletions.
33 changes: 33 additions & 0 deletions contracts/contracts/testnet/TapirSet.sol
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);
}
}
Loading

0 comments on commit be393ec

Please sign in to comment.