@marketprotocol/abis
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1381,8 +1381,8 @@ { | ||
"links": {}, | ||
"address": "0xcd392092ad3e5d1592822455168c98a6d34b307c", | ||
"transactionHash": "0x54e91b11d25d331c3220ccf4785339d9294bd7c2f12616266fedeaaed02781f2" | ||
"address": "0x5b04afb217cd8b49d63c93c5718ec0ba949f36b1", | ||
"transactionHash": "0x016a5a953642e86f3410f905ea3a09880b1dd8afcbc94710d00e03f48e175a59" | ||
} | ||
}, | ||
"schemaVersion": "2.0.1", | ||
"updatedAt": "2018-07-27T19:00:06.731Z" | ||
"updatedAt": "2018-09-07T18:28:49.241Z" | ||
} |
@@ -10,5 +10,2 @@ const MathLib = artifacts.require( | ||
); | ||
const InitialAllocationCollateralToken = artifacts.require( | ||
'@marketprotocol/marketprotocol/InitialAllocationCollateralToken.sol' | ||
); | ||
const MarketContractOraclize = artifacts.require( | ||
@@ -70,4 +67,2 @@ '@marketprotocol/marketprotocol/MarketContractOraclize.sol' | ||
// deploy collateral token and a fake wrapped ETH | ||
deployer.deploy(InitialAllocationCollateralToken, 'Stable USD', 'USD', 1e9, 18); | ||
deployer.deploy(InitialAllocationCollateralToken, 'Fake Wrapped ETH', 'FWETH', 1e9, 18); | ||
@@ -102,26 +97,2 @@ const daysToExpiration = 28; | ||
.addFactoryAddress(factory.address) | ||
.then(function() { | ||
// deploy a single contract for testing purposes. | ||
const gasLimit = 4000000; // gas limit for contract deployment | ||
let quickExpirationTimeStamp = | ||
Math.floor(Date.now() / 1000) + 60 * 60; // expires in an hour | ||
return factory | ||
.deployMarketContractOraclize( | ||
'ETHUSD_' + new Date().toISOString().substring(0, 10), | ||
InitialAllocationCollateralToken.address, | ||
[50000, 150000, 2, 1e18, quickExpirationTimeStamp], | ||
'URL', | ||
'json(https://api.kraken.com/0/public/Ticker?pair=ETHUSD).result.XETHZUSD.c.0', | ||
{ gas: gasLimit} | ||
) | ||
.then(function(marketContractDeployResults) { | ||
const marketContractDeployedAddress = | ||
marketContractDeployResults.logs[0].args | ||
.contractAddress; | ||
return collateralPoolFactory.deployMarketCollateralPool( | ||
marketContractDeployedAddress, | ||
{ gas: 1900000 } | ||
); | ||
}); | ||
}); | ||
}); | ||
@@ -128,0 +99,0 @@ }); |
{ | ||
"name": "@marketprotocol/abis", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "MARKET Protocol truffle artifacts and ABIs", | ||
@@ -5,0 +5,0 @@ "main": "truffle-config.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2356313
50439