Skip to content

Instantly share code, notes, and snippets.

@cloudonshore
Last active March 23, 2020 16:33
Show Gist options
  • Save cloudonshore/826505b91f64ffa2a81ebd245177d220 to your computer and use it in GitHub Desktop.
Save cloudonshore/826505b91f64ffa2a81ebd245177d220 to your computer and use it in GitHub Desktop.
import { trackSwapSwap } from 'airswap.js/src/swap/eventListeners'
import { SWAP_CONTRACT_DEPLOY_BLOCK } from 'airswap.js/src/constants'
const trackOrderFilled = (nonce, signerWallet, callback) => trackSwapSwap({
nonce,
signerWallet,
fromBlock: SWAP_CONTRACT_DEPLOY_BLOCK,
callback: (event) => {
console.log('swap filled')
callback(event)
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment