-
Notifications
You must be signed in to change notification settings - Fork 7
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 #881 from chronologic/develop
Update master to 1.1.6
- Loading branch information
Showing
24 changed files
with
568 additions
and
262 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
export const MOCKED_TRANSACTIONS = [ | ||
'0x123306090abab3a6e1400e9345bc60c78a8bef57', | ||
'0x456306090abab3a6e1400e9345bc60c78a8bef57' | ||
]; | ||
|
||
export const eacService = { | ||
calcEndowment(num) { | ||
return num; | ||
}, | ||
getActiveContracts: () => { | ||
return {}; | ||
}, | ||
requestFactory: () => | ||
Promise.resolve({ | ||
getRequestCreatedLogs() { | ||
return MOCKED_TRANSACTIONS.map(tx => ({ | ||
args: { | ||
request: tx, | ||
params: [] | ||
} | ||
})); | ||
} | ||
}), | ||
scheduler: () => Promise.resolve({}), | ||
|
||
transactionRequest(address) { | ||
return { | ||
address | ||
}; | ||
}, | ||
getTransactionsEventsForAddresses() { | ||
return {}; | ||
}, | ||
Util: { | ||
getBlockNumber() { | ||
return 1; | ||
}, | ||
getTimestampForBlock: () => 123 | ||
}, | ||
RequestData() { | ||
return {}; | ||
}, | ||
getTotalEthTransferred: () => { | ||
return 1000; | ||
} | ||
}; |
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
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
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
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,22 @@ | ||
import React, { Component } from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { inject, observer } from 'mobx-react'; | ||
|
||
@inject('loadingStateStore') | ||
@observer | ||
class InformativeLoader extends Component { | ||
render() { | ||
return ( | ||
<div className="text-center"> | ||
<b>{this.props.loadingStateStore.progress}%</b>{' '} | ||
{this.props.loadingStateStore.loadingMessage} | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
InformativeLoader.propTypes = { | ||
loadingStateStore: PropTypes.any | ||
}; | ||
|
||
export default InformativeLoader; |
Oops, something went wrong.