efx-api-node
Version:
<img src="https://avatars3.githubusercontent.com/u/33315316?s=200&v=4" align="right" />
17 lines (13 loc) • 418 B
JavaScript
/**
* Returns the unlockUntil
*/
module.exports = (efx, token) => {
const currency = efx.config['0x'].tokenRegistry[token]
const args = [
efx.get('account') // address _owner
]
const action = 'depositLock'
// REVIEW: not sure if we will be able to read the contract array this way
// TODO: Test it on ropsten
return efx.eth.call(efx.contract.abi.locker, currency.wrapperAddress, action, args)
}