alexgo-io / alex-sdk Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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)
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.
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.