This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,485 additions
and
7,392 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
/* | ||
RGE token Interface | ||
*/ | ||
|
||
pragma solidity ^0.6.0; | ||
|
||
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
|
||
interface IRGEToken is IERC20 { | ||
|
||
/* | ||
uint8 public decimals; | ||
address public crowdsale; | ||
uint public endTGE; | ||
string public version; | ||
uint256 public reserveY1; | ||
uint256 public reserveY2; | ||
address public factory; | ||
*/ | ||
|
||
function setFactory(address _factory) external; | ||
|
||
function newCampaign(uint32 _issuance, uint256 _value) external; | ||
|
||
event Burn(address indexed burner, uint256 value); | ||
|
||
function burn(uint256 _value) external returns (bool success); | ||
|
||
} |
17 changes: 10 additions & 7 deletions
17
contracts/RougeFactoryInterface.sol → contracts/IRougeFactory.sol
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,29 +1,32 @@ | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
/* | ||
Abstract contract for Rouge Factory contracts | ||
*/ | ||
|
||
pragma solidity >=0.5.0 <0.7.0; | ||
pragma solidity ^0.6.0; | ||
|
||
import "./RGETokenInterface.sol"; | ||
import "./IRGEToken.sol"; | ||
|
||
contract RougeFactoryInterface { | ||
|
||
interface IRougeFactory { | ||
|
||
/* | ||
// The Rouge Token contract address | ||
RGETokenInterface public rge; | ||
IRGEToken public rge; | ||
// Price in RGE of the tare deposit (per token) | ||
uint256 public tare; | ||
// owner of the factory | ||
address owner; | ||
*/ | ||
|
||
// owner can (re)set tare price or RGE contract address | ||
function setParams (address _rge, uint256 _tare) public; | ||
function setParams (address _rge, uint256 _tare) external; | ||
|
||
event NewRougeCampaign(address issuer, address campaign, uint32 _issuance); | ||
|
||
function createCampaign(address _issuer, uint32 _issuance, uint256 _tokens) public; | ||
function createCampaign(address _issuer, uint32 _issuance, uint256 _tokens) external; | ||
|
||
} |
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
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
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.