Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
sokol updates
Browse files Browse the repository at this point in the history
  • Loading branch information
clbrge committed Aug 31, 2020
1 parent c5f8151 commit 6e26747
Show file tree
Hide file tree
Showing 6 changed files with 2,259 additions and 249 deletions.
79 changes: 51 additions & 28 deletions migrations/2_deploy_contracts.js
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)
]);

}

};
38 changes: 38 additions & 0 deletions misc/rouge-tokenlist.json
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
}
}
Loading

0 comments on commit 6e26747

Please sign in to comment.