Code Monkey home page Code Monkey logo

alex-sdk's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

alex-sdk's Issues

Supported/unsupported coins for swap: brc20-db20

Have an issue to do with which coins we allow swaps from.

we are currently filtering coins list to swap like this:

const acceptableCoinList =
      coinsList?.filter((c) => alexSDK.getCurrencyFrom(c.principal) != null) ?? [];

in the case of brc20-db20, this passes:

alexSDK.getCurrencyFrom("SP3K8BC0PPEVCV7NZ6QSRWPQ2JE9E5B6N3PA0KBR9.brc20-db20")
// brc20-db20

but if you try to run getFee or getRoute using "brc20-db20", you will get a ClarityError thrown:

decoders.js:74 Uncaught (in promise) Error: ClarityError: 2001
    at defaultErrorDecoder (decoders.js:74:1)
    at Object.decode (decoders.js:84:1)
    at _callee2$ (alex-sdk.esm.js:4018:1)
    at tryCatch (alex-sdk.esm.js:65:1)
    at Generator.<anonymous> (alex-sdk.esm.js:146:1)
    at Generator.next (alex-sdk.esm.js:90:1)
    at asyncGeneratorStep (alex-sdk.esm.js:327:1)
    at _next (alex-sdk.esm.js:346:1)

Docs not current for `runSwap`

Working to upgrade our use of your sdk, I noticed runSwap gives me a type error on 6 args now with the router but your docs still show it as present. Also, there is outdated/unused router code in your runSwap test.

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.