diff --git a/abi/IMinerInterceptor.abi b/abi/Errors.abi similarity index 100% rename from abi/IMinerInterceptor.abi rename to abi/Errors.abi diff --git a/abi/IExchange.abi b/abi/IExchange.abi deleted file mode 100644 index c337fe9..0000000 --- a/abi/IExchange.abi +++ /dev/null @@ -1 +0,0 @@ -[{"constant":false,"inputs":[{"name":"owner","type":"address"},{"name":"cutoff","type":"uint256"}],"name":"cancelAllOrders","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"owner","type":"address"},{"name":"orderHashes","type":"bytes"}],"name":"cancelOrders","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"owner","type":"address"},{"name":"token1","type":"address"},{"name":"token2","type":"address"},{"name":"cutoff","type":"uint256"}],"name":"cancelAllOrdersForTradingPair","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"data","type":"bytes"}],"name":"submitRings","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"FEE_PERCENTAGE_BASE","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_ringIndex","type":"uint256"},{"indexed":true,"name":"_broker","type":"address"},{"indexed":true,"name":"_feeRecipient","type":"address"},{"components":[{"name":"orderHash","type":"bytes32"},{"name":"owner","type":"address"},{"name":"tokenS","type":"address"},{"name":"amountS","type":"uint256"},{"name":"split","type":"uint256"},{"name":"feeAmount","type":"uint256"}],"indexed":false,"name":"_fills","type":"tuple[]"}],"name":"RingMined","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_broker","type":"address"},{"indexed":false,"name":"_orderHashes","type":"bytes32[]"}],"name":"OrdersCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_broker","type":"address"},{"indexed":false,"name":"_token1","type":"address"},{"indexed":false,"name":"_token2","type":"address"},{"indexed":false,"name":"_cutoff","type":"uint256"}],"name":"AllOrdersCancelledForTradingPair","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"_owner","type":"address"},{"indexed":true,"name":"_broker","type":"address"},{"indexed":false,"name":"_cutoff","type":"uint256"}],"name":"AllOrdersCancelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"ringHash","type":"bytes32"}],"name":"InvalidRing","type":"event"}] \ No newline at end of file diff --git a/abi/IFeeHolder.abi b/abi/IFeeHolder.abi index 102ca82..362beaf 100644 --- a/abi/IFeeHolder.abi +++ b/abi/IFeeHolder.abi @@ -1 +1 @@ -[{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"feeBalances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"batch","type":"bytes32[]"}],"name":"batchAddFeeBalances","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"value","type":"uint256"}],"name":"withdrawToken","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"value","type":"uint256"}],"name":"withdrawBurned","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"token","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"TokenWithdrawn","type":"event"}] \ No newline at end of file +[{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"feeBalances","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"batch","type":"bytes32[]"}],"name":"batchAddFeeBalances","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"value","type":"uint256"}],"name":"withdrawBurned","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"token","type":"address"},{"name":"value","type":"uint256"}],"name":"withdrawToken","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"owner","type":"address"},{"indexed":false,"name":"token","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"TokenWithdrawn","type":"event"}] \ No newline at end of file diff --git a/abi/IMinerRegistry.abi b/abi/IMinerRegistry.abi deleted file mode 100644 index eed1dd5..0000000 --- a/abi/IMinerRegistry.abi +++ /dev/null @@ -1 +0,0 @@ -[{"constant":false,"inputs":[{"name":"miner","type":"address"}],"name":"registerMiner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"miner","type":"address"}],"name":"unregisterMiner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"feeRecipient","type":"address"},{"name":"start","type":"uint256"},{"name":"count","type":"uint256"}],"name":"getMiners","outputs":[{"name":"miners","type":"address[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unregisterAllMiners","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"feeRecipient","type":"address"},{"name":"miner","type":"address"}],"name":"isMinerRegistered","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"uint256"}],"name":"minersMap","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"feeRecipient","type":"address"},{"indexed":false,"name":"miner","type":"address"}],"name":"MinerRegistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"feeRecipient","type":"address"},{"indexed":false,"name":"miner","type":"address"}],"name":"MinerUnregistered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"feeRecipient","type":"address"}],"name":"AllMinersUnregistered","type":"event"}] \ No newline at end of file diff --git a/abi/IOrderInterceptor.abi b/abi/IOrderInterceptor.abi deleted file mode 100644 index 0637a08..0000000 --- a/abi/IOrderInterceptor.abi +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/abi/IRingInterceptor.abi b/abi/IRingInterceptor.abi deleted file mode 100644 index 0637a08..0000000 --- a/abi/IRingInterceptor.abi +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/abi/IRingSubmitter.abi b/abi/IRingSubmitter.abi index 5022278..7aa6964 100644 --- a/abi/IRingSubmitter.abi +++ b/abi/IRingSubmitter.abi @@ -1 +1 @@ -[{"constant":false,"inputs":[{"name":"data","type":"bytes"}],"name":"submitRings","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"FEE_PERCENTAGE_BASE","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_ringIndex","type":"uint256"},{"indexed":true,"name":"_broker","type":"address"},{"indexed":true,"name":"_feeRecipient","type":"address"},{"components":[{"name":"orderHash","type":"bytes32"},{"name":"owner","type":"address"},{"name":"tokenS","type":"address"},{"name":"amountS","type":"uint256"},{"name":"split","type":"uint256"},{"name":"feeAmount","type":"uint256"}],"indexed":false,"name":"_fills","type":"tuple[]"}],"name":"RingMined","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"ringHash","type":"bytes32"}],"name":"InvalidRing","type":"event"}] \ No newline at end of file +[{"constant":false,"inputs":[{"name":"data","type":"bytes"}],"name":"submitRings","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"FEE_PERCENTAGE_BASE","outputs":[{"name":"","type":"uint16"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"_ringIndex","type":"uint256"},{"indexed":true,"name":"_ringHash","type":"bytes32"},{"indexed":true,"name":"_feeRecipient","type":"address"},{"components":[{"name":"orderHash","type":"bytes32"},{"name":"owner","type":"address"},{"name":"tokenS","type":"address"},{"name":"amountS","type":"uint256"},{"name":"split","type":"uint256"},{"name":"feeAmount","type":"uint256"}],"indexed":false,"name":"_fills","type":"tuple[]"}],"name":"RingMined","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"ringHash","type":"bytes32"}],"name":"InvalidRing","type":"event"}] \ No newline at end of file diff --git a/abi/MultihashUtil.abi b/abi/MultihashUtil.abi index 4539a03..d5a7a0c 100644 --- a/abi/MultihashUtil.abi +++ b/abi/MultihashUtil.abi @@ -1 +1 @@ -[{"constant":true,"inputs":[],"name":"SIG_PREFIX","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"}] \ No newline at end of file +[{"constant":true,"inputs":[],"name":"SIG_PREFIX","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"SIG_712_PREFIX","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"}] \ No newline at end of file diff --git a/abi/TradeDelegateData.abi b/abi/TradeDelegateData.abi deleted file mode 100644 index 0637a08..0000000 --- a/abi/TradeDelegateData.abi +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/src/context.ts b/src/context.ts index 04db154..374cd5e 100644 --- a/src/context.ts +++ b/src/context.ts @@ -30,7 +30,6 @@ export class Context { blockTimestamp: number, tradeDelegateAddress: string, orderBrokerRegistryAddress: string, - minerBrokerRegistryAddress: string, orderRegistryAddress: string, feeHolderAddress: string, orderBookAddress: string, @@ -67,7 +66,6 @@ export class Context { this.tradeDelegate = this.TradeDelegateContract.at(tradeDelegateAddress); this.orderBrokerRegistry = this.BrokerRegistryContract.at(orderBrokerRegistryAddress); - this.minerBrokerRegistry = this.BrokerRegistryContract.at(minerBrokerRegistryAddress); this.orderRegistry = this.OrderRegistryContract.at(orderRegistryAddress); this.feeHolder = this.FeeHolderContract.at(feeHolderAddress); this.orderBook = this.OrderBookContract.at(orderBookAddress); diff --git a/src/mining.ts b/src/mining.ts index b6f9e97..a2519b1 100644 --- a/src/mining.ts +++ b/src/mining.ts @@ -32,14 +32,14 @@ export class Mining { if (!this.miner) { this.miner = this.feeRecipient; } else { - const [registered, interceptor] = await this.context.minerBrokerRegistry.getBroker( - this.feeRecipient, - this.miner, - ); - // assert(registered, "miner unregistered"); - if (registered) { - this.interceptor = interceptor; - } + // const [registered, interceptor] = await this.context.minerBrokerRegistry.getBroker( + // this.feeRecipient, + // this.miner, + // ); + // // assert(registered, "miner unregistered"); + // if (registered) { + // this.interceptor = interceptor; + // } } }