This repository has been archived by the owner on May 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from tellor-io/deploy
dipute update
- Loading branch information
Showing
11 changed files
with
4,176 additions
and
2,247 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
1,752 changes: 1,752 additions & 0 deletions
1,752
flat_files/Tellor_flat_2019-11-13-DisputeUpdate.sol
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/****Uncomment the body below to run this with Truffle migrate for truffle testing*/ | ||
var TellorTransfer = artifacts.require("./libraries/TellorTransfer.sol"); | ||
var TellorDispute = artifacts.require("./libraries/TellorDispute.sol"); | ||
var TellorStake = artifacts.require("./libraries/TellorStake.sol"); | ||
var TellorLibrary = artifacts.require("./libraries/TellorLibrary.sol"); | ||
var TellorGettersLibrary = artifacts.require("./libraries/TellorGettersLibrary.sol"); | ||
var OldTellor = artifacts.require("./oldContracts/OldTellor.sol"); | ||
var OldTellorTransfer = artifacts.require("./oldContracts/libraries/OldTellorTransfer.sol") | ||
var OldTellorDispute = artifacts.require("./oldContracts/libraries/OldTellorDispute.sol") | ||
var OldTellorLibrary = artifacts.require("./oldContracts/libraries/OldTellorLibrary.sol") | ||
var Tellor = artifacts.require("./Tellor.sol"); | ||
var TellorMaster = artifacts.require("./TellorMaster.sol"); | ||
/****Uncomment the body to run this with Truffle migrate for truffle testing*/ | ||
|
||
/** | ||
*@dev Use this for setting up contracts for testing | ||
*this will link the Factory and Tellor Library | ||
*These commands that need to be ran: | ||
*truffle migrate --network rinkeby | ||
*truffle exec scripts/Migrate_1.js --network rinkeby | ||
*truffle exec scripts/Migrate_2.js --network rinkeby | ||
*/ | ||
function sleep_s(secs) { | ||
secs = (+new Date) + secs * 1000; | ||
while ((+new Date) < secs); | ||
} | ||
/****Uncomment the body below to run this with Truffle migrate for truffle testing*/ | ||
// module.exports = function (deployer) { | ||
// deployer.deploy(TellorLibrary).then(() => { | ||
// deployer.deploy(Tellor); | ||
// }); | ||
// deployer.link(TellorLibrary, Tellor); | ||
// }; | ||
|
||
module.exports = async function (deployer) { | ||
|
||
//OLD DEPS | ||
await deployer.deploy(OldTellorTransfer); | ||
|
||
// deploy dispute | ||
await deployer.link(OldTellorTransfer,OldTellorDispute); | ||
await deployer.deploy(OldTellorDispute); | ||
|
||
// deploy stake | ||
await deployer.link(OldTellorTransfer,TellorStake); | ||
await deployer.link(OldTellorDispute,TellorStake); | ||
await deployer.deploy(TellorStake); | ||
|
||
// deploy getters lib | ||
await deployer.deploy(TellorGettersLibrary); | ||
|
||
// deploy lib | ||
await deployer.link(OldTellorDispute, OldTellorLibrary); | ||
await deployer.link(OldTellorTransfer, OldTellorLibrary); | ||
await deployer.link(TellorStake, OldTellorLibrary); | ||
await deployer.deploy(OldTellorLibrary); | ||
|
||
|
||
// deploy tellor | ||
await deployer.link(OldTellorTransfer,OldTellor); | ||
await deployer.link(OldTellorDispute,OldTellor); | ||
await deployer.link(TellorStake,OldTellor); | ||
await deployer.link(OldTellorLibrary,OldTellor); | ||
await deployer.deploy(OldTellor); | ||
|
||
// deploy tellor master | ||
await deployer.link(OldTellorTransfer,TellorMaster); | ||
await deployer.link(TellorGettersLibrary,TellorMaster); | ||
await deployer.link(TellorStake,TellorMaster); | ||
await deployer.deploy(OldTellor).then(async function() { | ||
await deployer.deploy(TellorMaster, OldTellor.address) | ||
}); | ||
|
||
|
||
}; |
Oops, something went wrong.