Skip to content

Commit

Permalink
Merge pull request #221 from derekpierre/tapir-update
Browse files Browse the repository at this point in the history
Fresh deployment of Tapir contracts
  • Loading branch information
derekpierre authored Jan 10, 2024
2 parents 46c575c + 4ebfdd4 commit a565d0b
Show file tree
Hide file tree
Showing 7 changed files with 1,003 additions and 1,306 deletions.
2 changes: 1 addition & 1 deletion contracts/contracts/testnet/LynxSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import "../coordination/ITACoChildToRoot.sol";
import "../coordination/TACoChildApplication.sol";
import "../TACoApplication.sol";

// [Goerli] <---------> [Mumbai]
// [Sepolia] <---------> [Mumbai]
//
// TACoApplication <---> MockPolygonRoot | <deployer_account> | MockPolygonChild <--> TACoChildApplication
//
Expand Down
19 changes: 0 additions & 19 deletions contracts/contracts/testnet/TapirSet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,8 @@

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,
uint96 _minimumAuthorization
) TACoChildApplication(_rootApplication, _minimumAuthorization) Ownable(msg.sender) {}

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);
Expand Down
Loading

0 comments on commit a565d0b

Please sign in to comment.