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
6 changed files
with
2,259 additions
and
249 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 |
---|---|---|
@@ -1,30 +1,53 @@ | ||
|
||
const TestRGEToken = artifacts.require("./TestRGEToken.sol"); | ||
const RougeFactory = artifacts.require("./RougeFactory.sol"); | ||
|
||
const RougeBridge = artifacts.require("./RougeBridge.sol"); | ||
// const BridgeRGEToken = artifacts.require("./BridgeRGEToken.sol"); | ||
|
||
module.exports = async function(deployer) { | ||
|
||
await Promise.all([ | ||
deployer.deploy(TestRGEToken), | ||
deployer.deploy(RougeFactory), | ||
deployer.deploy(RougeBridge, '0x345ca3e014aaf5dca488057592ee47305d9b3e10') | ||
// deployer.deploy(BridgeRGEToken, 3, '0x0', '0x0', '0x0', 'Foreign RGE', 'f_RGE') | ||
]); | ||
|
||
instances = await Promise.all([ | ||
TestRGEToken.deployed(), | ||
RougeFactory.deployed() | ||
]) | ||
|
||
rge = instances[0]; | ||
factory = instances[1]; | ||
|
||
results = await Promise.all([ | ||
rge.setFactory(factory.address), | ||
factory.setParams(rge.address, 100000) | ||
]); | ||
|
||
const RGETokenInterface = artifacts.require("./RGETokenInterface.sol") | ||
const TestRGEToken = artifacts.require("./TestRGEToken.sol") | ||
const RougeFactory = artifacts.require("./RougeFactory.sol") | ||
|
||
const RougeBridge = artifacts.require("./RougeBridge.sol") | ||
// const BridgeRGEToken = artifacts.require("./BridgeRGEToken.sol") | ||
|
||
module.exports = async function(deployer, network) { | ||
|
||
const rgeAddress = { | ||
sokol: '0x5475300766433dd082a7340fc48a445c483df68f' | ||
} | ||
|
||
if (network && rgeAddress[network]) { | ||
|
||
const rge = await RGETokenInterface.at(rgeAddress[network]) | ||
|
||
await deployer.deploy(RougeFactory) | ||
const factory = await RougeFactory.deployed() | ||
|
||
const results = await Promise.all([ | ||
rge.setFactory(factory.address), | ||
factory.setParams(rge.address, 100000) | ||
]); | ||
|
||
console.log('results', results) | ||
|
||
} else if (false) { | ||
|
||
await Promise.all([ | ||
deployer.deploy(TestRGEToken), | ||
deployer.deploy(RougeFactory), | ||
deployer.deploy(RougeBridge, '0x345ca3e014aaf5dca488057592ee47305d9b3e10') | ||
// deployer.deploy(BridgeRGEToken, 3, '0x0', '0x0', '0x0', 'Foreign RGE', 'f_RGE') | ||
]); | ||
|
||
instances = await Promise.all([ | ||
TestRGEToken.deployed(), | ||
RougeFactory.deployed() | ||
]) | ||
|
||
rge = instances[0]; | ||
factory = instances[1]; | ||
|
||
results = await Promise.all([ | ||
rge.setFactory(factory.address), | ||
factory.setParams(rge.address, 100000) | ||
]); | ||
|
||
} | ||
|
||
}; |
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,38 @@ | ||
{ | ||
"name": "Rouge Project Token List", | ||
"logoURI": "https://rouge.network/logo-100.png", | ||
"keywords": [ | ||
"solidity", | ||
"ethereum", | ||
"rge", | ||
"rouge", | ||
"coupon", | ||
"voucher", | ||
"ticket" | ||
], | ||
"tags": { | ||
"rouge": { | ||
"name": "The Rouge Project", | ||
"description": "open-source blockchain voucher and note protocol" | ||
} | ||
}, | ||
"timestamp": "2020-08-31T00:00:00+00:00", | ||
"tokens": [ | ||
{ | ||
"chainId": 1, | ||
"address": "0x96Cd136F1aFB1f8934E6Cb6495Eaf24140f70325", | ||
"symbol": "RGE", | ||
"name": "Rouge", | ||
"decimals": 6, | ||
"logoURI": "https://rouge.network/logo-100.png", | ||
"tags": [ | ||
"voucher" | ||
] | ||
} | ||
], | ||
"version": { | ||
"major": 1, | ||
"minor": 0, | ||
"patch": 0 | ||
} | ||
} |
Oops, something went wrong.