UNPKG

dvf-client-js

Version:

<img src="https://avatars1.githubusercontent.com/u/56512535?s=200&v=4" align="right" />

10 lines (6 loc) 310 B
const waitForDepositCreditedOnChain = require('./helpers/waitForDepositCreditedOnChain') const depositResponse = await dvf.deposit('ETH', 0.70, starkPrivKey) if (process.env.WAIT_FOR_DEPOSIT_READY === 'true') { await waitForDepositCreditedOnChain(dvf, depositResponse) } logExampleResult(depositResponse)