thorswap / swapkit Goto Github PK
View Code? Open in Web Editor NEWSwapKit SDK - Integrate blockchains easily. Docs - https://docs.thorswap.finance/swapkit-docs
Home Page: https://swapkit.dev
License: Apache License 2.0
SwapKit SDK - Integrate blockchains easily. Docs - https://docs.thorswap.finance/swapkit-docs
Home Page: https://swapkit.dev
License: Apache License 2.0
Leap wallet is supporting all Cosmos chains (In SwapKit's case Gaia and Kujira), and will have support for MAYAChain in the next few weeks.
Relevant docs
https://docs.leapwallet.io/cosmos/for-dapps-connect-to-leap/add-leap-to-existing-keplr-integration
https://docs.leapwallet.io/cosmos/for-dapps-connect-to-leap/add-leap-to-a-new-dapp
All deposit transactions on the Maya chain are currently failing with the error below:
Error: Broadcasting transaction failed with code 6 (codespace: sdk). Log: all coins must be native to BASEChain: unknown request
at GA.broadcastTxSync
at async GA.broadcastTx
at async BA
at async Je$1.eval [as deposit]
const client = createSwapKit();
await client.connectKeystore(Chain.Maya, phrase);
const hash = await client.deposit({
assetValue: new AssetValue({
value: 1,
decimal: 10,
chain: Chain.Maya,
symbol: 'CACAO',
}),
memo: test,
recipient: '',
});
Also fails when registering a MayaName since it also a deposit:
const hash = await client.registerMayaname({
name: 'test1',
chain: Chain.Maya,
assetValue: new AssetValue({
value: getMAYANameCost(1),
decimal: 10,
chain: Chain.Maya,
symbol: 'CACAO',
}),
address: 'maya1.....',
});
It should work like it does for THORChain.
Package versions:
# Paste the output of `<npm|yarn|pnpm|bun pm> ls --depth=0 | grep @swapkit` here
"@swapkit/sdk": "1.0.0-rc.129"
and therefore the import fails:
dist
folder exists
"@swapkit/sdk": "1.0.0-rc.129"
Wallet Connect:
Keplr:
Keystore:
Ledger:
OKX:
Trezor:
Not all wallets support all chains they can support. Chain support for the following wallets is missing:
Describe the bug
ARB and BSC being intermingled on network selection via metamask. unable to test ARB
To Reproduce
Select ARB, select Metamask as wallet, see network switching to BSC then ARB, then see results show BSC
Expected behavior
Playground should pair arbitrium with a single network switch and show ARB assets
Info
Additional context
Im running into this same network select issue when debugging KeepKey
Describe the bug
Unable to pair multiple networks. aka BSC + BTC via vite playground and trezor
To Reproduce
connect trezor, select BSC and BTC, select connect. see only 1 network pair
Expected behavior
both networks should pair and show balances
Info
Additional context
I am running into this same error debugging KeepKey
Sonar is Kujiras Mobile Wallet, which also supports Desktops (throught scanning a QR Code)
example at e.g. https://blue.kujira.network
https://docs.kujira.app/dapps-and-infrastructure/kujira-wallet/using-sonar
Here is a sample implementation in the kujira.ui library, seems based on walletconnect
https://github.com/Team-Kujira/kujira.ui/blob/main/src/wallets/sonar.ts
Not sure were to add, do you have a public doc repo?
Can't find any references of KujiraToolbox or MayaToolboy in the Docs but it's already implemented in the Code.
https://docs.thorswap.finance/swapkit-docs/swapkit-sdk/toolboxes/cosmos#available-instances
I'm currently working on integrating SwapKit into my project, and I've come across a few challenges that I could use some guidance on. I've thoroughly reviewed the SDK code and explored the available APIs, but a couple of points are still unclear to me.
ThorName Integration:
I'm trying to understand how to add our ThorName in the SDK. The provided example lacks integration for this feature, and I'm unsure about the correct approach.
-where to get thorName (the mentioned website in the doc is not working )
Functionality Testing:
How can we effectively test the functionalities of SwapKit? Is any testnet available for testing, I'm looking for insights into a suitable testing strategy.
Service Fees :
I'm also seeking clarity on the fees associated with using SwapKit. Specifically, I'd like to know about our affiliate fee and whether there's a 30% fee mentioned in the documentation (uncertain if this is included or not)
If anyone has experience with these aspects of SwapKit or can provide guidance, I would greatly appreciate your insights. Additionally, i
Thank you in advance for your help!
There is currently a registerThorname() function.
Can you also create a registerMayaname() function?
there was a recent security issue in crypto-js, not sure if this library is affected at all, but currently using swapkit/sdk1.0.0-rc.43 breaks my github security checks. You might also want to enable them in Github for your repos.
see:
brix/crypto-js#467
can't connect Kujira chain using xdefi wallet.
there is a provider error to connect Kujira with xdefi wallet.
https://thorswap.github.io/SwapKit/
You can check the issue in your playground.
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.