Skip to content

Commit

Permalink
Merge pull request #153 from gnosis/fix-release-blockers
Browse files Browse the repository at this point in the history
Fix release blockers
  • Loading branch information
cag committed Oct 29, 2018
2 parents 0294126 + 1981f4e commit 04e79ae
Show file tree
Hide file tree
Showing 15 changed files with 604 additions and 2,339 deletions.
1 change: 1 addition & 0 deletions contracts/Migrations.sol
@@ -1,5 +1,6 @@
pragma solidity ^0.4.24;
import "canonical-weth/contracts/WETH9.sol";
import "openzeppelin-solidity/contracts/token/ERC20/DetailedERC20.sol";

contract Migrations {
address public owner;
Expand Down
6 changes: 0 additions & 6 deletions docs/EtherToken.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/HumanFriendlyToken.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/Math.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/StandardToken.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/Token.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/index.rst
Expand Up @@ -105,18 +105,15 @@ Contributors
CentralizedOracle
DifficultyOracleFactory
DifficultyOracle
EtherToken
EventFactory
Event
FutarchyOracleFactory
FutarchyOracle
HumanFriendlyToken
LMSRMarketMaker
MajorityOracleFactory
MajorityOracle
MarketMaker
Market
Math
Oracle
OutcomeToken
ScalarEvent
Expand All @@ -126,8 +123,6 @@ Contributors
StandardMarket
StandardMarketWithPriceLoggerFactory
StandardMarketWithPriceLogger
StandardToken
Token
UltimateOracleFactory
UltimateOracle

Expand Down
18 changes: 18 additions & 0 deletions ensurebc.js
@@ -0,0 +1,18 @@
const fs = require('fs-extra')
const path = require('path')

const artifactsDir = path.join('build', 'contracts')

for(const [newName, bcName] of [
['ERC20', 'Token'],
['DetailedERC20', 'HumanFriendlyToken'],
['WETH9', 'EtherToken'],
['Fixed192x64Math', 'Math'],
])
fs.copySync(path.join(artifactsDir, newName + '.json'), path.join(artifactsDir, bcName + '.json'))

const gasStatsFile = path.join('build', 'gas-stats.json')
const gasStatsObj = fs.readJsonSync(gasStatsFile)
gasStatsObj.EtherToken = gasStatsObj.WETH9
gasStatsObj.Token = gasStatsObj.ERC20
fs.writeJsonSync(gasStatsFile, gasStatsObj, { spaces: 2 })
24 changes: 9 additions & 15 deletions migrations/05_deploy_oracle_prototypes.js
@@ -1,17 +1,11 @@
const CentralizedOracle = artifacts.require('CentralizedOracle')
const FutarchyOracle = artifacts.require('FutarchyOracle')
const MajorityOracle = artifacts.require('MajorityOracle')
const SignedMessageOracle = artifacts.require('SignedMessageOracle')
const UltimateOracle = artifacts.require('UltimateOracle')

const MAX_UINT = web3.toBigNumber(2).pow(256).sub(1)

module.exports = function (deployer) {
deployer.deploy([
CentralizedOracle,
FutarchyOracle,
MajorityOracle,
SignedMessageOracle,
UltimateOracle,
])
for(const contractName of [
'CentralizedOracle',
'FutarchyOracle',
'MajorityOracle',
'SignedMessageOracle',
'UltimateOracle',
]) {
deployer.deploy(artifacts.require(contractName))
}
}
16 changes: 7 additions & 9 deletions migrations/06_deploy_event_prototypes.js
@@ -1,11 +1,9 @@
const CategoricalEvent = artifacts.require('CategoricalEvent')
const ScalarEvent = artifacts.require('ScalarEvent')
const OutcomeToken = artifacts.require('OutcomeToken')

module.exports = function (deployer) {
deployer.deploy([
CategoricalEvent,
ScalarEvent,
OutcomeToken,
])
for(const contractName of [
'CategoricalEvent',
'ScalarEvent',
'OutcomeToken',
]) {
deployer.deploy(artifacts.require(contractName))
}
}
14 changes: 6 additions & 8 deletions migrations/07_deploy_market_prototypes.js
@@ -1,10 +1,8 @@
const CategoricalEvent = artifacts.require('CategoricalEvent')
const StandardMarket = artifacts.require('StandardMarket')
const StandardMarketWithPriceLogger = artifacts.require('StandardMarketWithPriceLogger')

module.exports = function (deployer) {
deployer.deploy([
StandardMarket,
StandardMarketWithPriceLogger,
])
for(const contractName of [
'StandardMarket',
'StandardMarketWithPriceLogger',
]) {
deployer.deploy(artifacts.require(contractName))
}
}

0 comments on commit 04e79ae

Please sign in to comment.