@thorswap-lib/swapkit-core v0.0.0-nightly-20230904215030
@thorswap-lib/swapkit-core
Install:
pnpm add @thorswap-lib/swapkit-core
SwapKitCore API:
method | description | requires package |
---|---|---|
addLiquidity | trigger LP add transaction | @thorswap-lib/toolbox-cosmos |
addSavings | trigger tc add saver transaction | @thorswap-lib/toolbox-cosmos |
approveAssetForContract | trigger asset approve for contract transaction | |
approveAsset | trigger asset approve transaction | |
bond | trigger bond transaction | @thorswap-lib/toolbox-cosmos |
closeLoan | trigger close loan transaction | @thorswap-lib/toolbox-cosmos |
connectEVMWallet | connect to EVM wallet | @thorswap-lib/evm-web3-wallets |
connectKeplr | connect to Keplr wallet | @thorswap-lib/keplr |
connectKeystore | connect to Keystore wallet | @thorswap-lib/keystore |
connectLedger | connect to Ledger wallet | @thorswap-lib/ledger |
connectXDEFI | connect to XDEFI wallet | @thorswap-lib/xdefi |
createLiquidity | trigger create LP pool transaction | @thorswap-lib/toolbox-cosmos |
deposit | trigger TC router depositWithExpiry transaction | @thorswap-lib/toolbox-cosmos |
disconnectChain | disconnect wallet from swapKit | |
extend | extend SwapKitCore with wallets & config variables | |
getAddress | get wallet address by chain | |
getExplorerAddressUrl | get explorer address url | |
getExplorerTxUrl | get explorer tx url | |
getWalletByChain | fetch wallet data by chain | |
getWallet | get wallet methods by chain | |
isAssetApprovedForContract | check if asset is approved for contract | |
isAssetApproved | check if asset is approved on tc router | |
leave | trigger leave transaction | @thorswap-lib/toolbox-cosmos |
openLoan | trigger open loan transaction | @thorswap-lib/toolbox-cosmos |
registerThorname | trigger register thorname transaction | @thorswap-lib/toolbox-cosmos |
swap | trigger swap transaction on given route & quoteMode | |
transfer | trigger wallet transfer/send | @thorswap-lib/toolbox-cosmos |
unbond | trigger unbond transaction | @thorswap-lib/toolbox-cosmos |
upgrade | trigger upgrade transaction | @thorswap-lib/toolbox-cosmos |
validateAddress | validate address per chain restrictions | |
withdrawSavings | trigger tc withdraw saver transaction | @thorswap-lib/toolbox-cosmos |
withdraw | trigger LP withdraw transaction | @thorswap-lib/toolbox-cosmos |
SwapKitCore class properties:
property | description |
---|---|
connectedChains | connected chains data after usage of connectX method (address, empty balance, walletType) |
connectedWallets | connected wallets method after usage of connectX method check available wallets |
5 months ago
6 months ago
7 months ago
6 months ago
7 months ago
6 months ago
7 months ago
9 months ago
9 months ago
9 months ago
8 months ago
8 months ago
9 months ago
9 months ago
9 months ago
9 months ago
8 months ago
8 months ago
8 months ago
7 months ago
7 months ago
8 months ago
7 months ago
7 months ago
10 months ago
10 months ago
7 months ago
8 months ago
10 months ago
7 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
8 months ago
7 months ago
9 months ago
10 months ago
8 months ago
8 months ago
8 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
6 months ago
7 months ago
11 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
9 months ago
7 months ago
7 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago