Giter Club home page Giter Club logo

airswap.js's Introduction

airswap.js's People

Contributors

cloudonshore avatar perich avatar syjk129 avatar dmosites avatar mykolasmith avatar rhyeal avatar dependabot[bot] avatar jguyton avatar ejwessel avatar passabilities avatar

Stargazers

Buse Alacalı avatar Crypto Wolf  avatar maxbet avatar  avatar  avatar Markus Strazds avatar Pierrick Turelier avatar Albert avatar Sean Powell avatar Brian Falk avatar Siphamandla Mjoli avatar  avatar Jessyica James avatar John Johnson avatar  avatar  avatar Alexsey Ramzaev avatar  avatar Mark Guo avatar  avatar Will Pankiewicz avatar  avatar keysemails avatar

Watchers

Brian Falk avatar James Cloos avatar  avatar poire_sel avatar  avatar  avatar  avatar  avatar

airswap.js's Issues

Test Airswap.js against Testnet

Description

@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

TRANSFER_FAILED in swap function

    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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.