This repository is deprecated; see AirSwap Protocols.
airswap / airswap.js Goto Github PK
View Code? Open in Web Editor NEW[Deprecated] Modules for AirSwap Developers
License: Apache License 2.0
[Deprecated] Modules for AirSwap Developers
License: Apache License 2.0
This repository is deprecated; see AirSwap Protocols.
@cloudonshore and I were talking about their difficulty with testing the Airswap.js library and speeding up development feedback.
I am proposing to test against a forked ganache instance and having the Airswap.js tests run on that.
The following resources are not perfect, but may give some ideas on how to do this cleanly as I've already done it for this other project.
Resources:
https://github.com/Send-Tribute/tribute-utils/blob/master/src/Tribute.js
https://github.com/Send-Tribute/tribute-utils/blob/master/test/Tribute.test.js
https://github.com/Send-Tribute/tribute-utils/blob/master/package.json
https://github.com/Send-Tribute/tribute-utils/blob/master/truffle-config.js
Hi,
I work on the DevRel team at Coinbase and am submitting this issue to inform you that the WalletLink SDK has been deprecated in favor of our new Coinbase Wallet SDK. You can find more on that and how to upgrade to the latest version here.
Please let me know if you have any questions!
Thanks,
Trevor
const signer = await getSigner({ web3Provider: window.ethereum })
const order = await JSON.parse(this.state.generatedOrder)
let signedOrder = await signSwap(order, signer).catch(e => {
console.log("Error at signing : " + e);
})
await swap(signedOrder, signer);
When I call the swap function, the transaction is failed and I got "TRANSFER_FAILED" error log at etherscan.
How can I use the swap function in airswap.js?
I hope to solve this issue quickly.
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.