Last active
March 23, 2020 16:33
-
-
Save cloudonshore/826505b91f64ffa2a81ebd245177d220 to your computer and use it in GitHub Desktop.
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
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