BLD: marketplace switch to rinkeby post-audit

This commit is contained in:
Victor Grau Serrat
2018-03-13 22:30:45 -06:00
parent 69731b653d
commit 3e69449a6b
5 changed files with 14 additions and 22 deletions
+6 -7
View File
@@ -25,22 +25,21 @@ AUTO_INGEST = False
AUTH_SERVER = 'https://data.enigma.co'
# TODO: switch to mainnet
ETH_REMOTE_NODE = 'https://ropsten.infura.io/'
ETH_REMOTE_NODE = 'https://rinkeby.infura.io/'
MARKETPLACE_CONTRACT = 'https://raw.githubusercontent.com/enigmampc/' \
'catalyst/master/catalyst/marketplace/' \
'catalyst/rinkeby/catalyst/marketplace/' \
'contract_marketplace_address.txt'
MARKETPLACE_CONTRACT_ABI = 'https://raw.githubusercontent.com/enigmampc/' \
'catalyst/master/catalyst/marketplace/' \
'catalyst/rinkeby/catalyst/marketplace/' \
'contract_marketplace_abi.json'
# TODO: switch to mainnet
ENIGMA_CONTRACT = 'https://raw.githubusercontent.com/enigmampc/catalyst/' \
'master/catalyst/marketplace/' \
ENIGMA_CONTRACT = 'https://raw.githubusercontent.com/enigmampc/' \
'catalyst/rinkeby/catalyst/marketplace/' \
'contract_enigma_address.txt'
ENIGMA_CONTRACT_ABI = 'https://raw.githubusercontent.com/enigmampc/' \
'catalyst/master/catalyst/marketplace/' \
'catalyst/rinkeby/catalyst/marketplace/' \
'contract_enigma_abi.json'
@@ -1 +1 @@
0x7fAec9aaE31BE428DeAAE1be8195dF609079Fd10
0x39a54f480d922a58c963de8091a6c9afc69db2cf
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
0x3985f5de8fddf2e8f7705cd360b498bf35ebfbc4
0xa2b37c6cd52f60fd4eb46ca59fafcf22d081aebc
+5 -12
View File
@@ -177,10 +177,12 @@ class Marketplace:
def check_transaction(self, tx_hash):
if 'ropsten' in ETH_REMOTE_NODE:
etherscan = 'https://ropsten.etherscan.io/tx/{}'.format(
tx_hash)
etherscan = 'https://ropsten.etherscan.io/tx/'
elif 'rinkeby' in ETH_REMOTE_NODE:
etherscan = 'https://rinkeby.etherscan.io/tx/'
else:
etherscan = 'https://etherscan.io/tx/{}'.format(tx_hash)
etherscan = 'https://etherscan.io/tx/'
etherscan = '{}{}'.format(etherscan, tx_hash)
print('\nYou can check the outcome of your transaction here:\n'
'{}\n\n'.format(etherscan))
@@ -329,9 +331,6 @@ class Marketplace:
'nonce': self.web3.eth.getTransactionCount(address)}
)
if 'ropsten' in ETH_REMOTE_NODE:
tx['gas'] = min(int(tx['gas'] * 1.5), 4700000)
signed_tx = self.sign_transaction(tx)
try:
tx_hash = '0x{}'.format(
@@ -371,9 +370,6 @@ class Marketplace:
'from': address,
'nonce': self.web3.eth.getTransactionCount(address)})
if 'ropsten' in ETH_REMOTE_NODE:
tx['gas'] = min(int(tx['gas'] * 1.5), 4700000)
signed_tx = self.sign_transaction(tx)
try:
@@ -701,9 +697,6 @@ class Marketplace:
'nonce': self.web3.eth.getTransactionCount(address)}
)
if 'ropsten' in ETH_REMOTE_NODE:
tx['gas'] = min(int(tx['gas'] * 1.5), 4700000)
signed_tx = self.sign_transaction(tx)
try: