0.0.0-nightly-20230904215030 • Published 5 months ago

@thorswap-lib/swapkit-core v0.0.0-nightly-20230904215030

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@thorswap-lib/swapkit-core

Install:

pnpm add @thorswap-lib/swapkit-core

SwapKitCore API:

methoddescriptionrequires package
addLiquiditytrigger LP add transaction@thorswap-lib/toolbox-cosmos
addSavingstrigger tc add saver transaction@thorswap-lib/toolbox-cosmos
approveAssetForContracttrigger asset approve for contract transaction
approveAssettrigger asset approve transaction
bondtrigger bond transaction@thorswap-lib/toolbox-cosmos
closeLoantrigger close loan transaction@thorswap-lib/toolbox-cosmos
connectEVMWalletconnect to EVM wallet@thorswap-lib/evm-web3-wallets
connectKeplrconnect to Keplr wallet@thorswap-lib/keplr
connectKeystoreconnect to Keystore wallet@thorswap-lib/keystore
connectLedgerconnect to Ledger wallet@thorswap-lib/ledger
connectXDEFIconnect to XDEFI wallet@thorswap-lib/xdefi
createLiquiditytrigger create LP pool transaction@thorswap-lib/toolbox-cosmos
deposittrigger TC router depositWithExpiry transaction@thorswap-lib/toolbox-cosmos
disconnectChaindisconnect wallet from swapKit
extendextend SwapKitCore with wallets & config variables
getAddressget wallet address by chain
getExplorerAddressUrlget explorer address url
getExplorerTxUrlget explorer tx url
getWalletByChainfetch wallet data by chain
getWalletget wallet methods by chain
isAssetApprovedForContractcheck if asset is approved for contract
isAssetApprovedcheck if asset is approved on tc router
leavetrigger leave transaction@thorswap-lib/toolbox-cosmos
openLoantrigger open loan transaction@thorswap-lib/toolbox-cosmos
registerThornametrigger register thorname transaction@thorswap-lib/toolbox-cosmos
swaptrigger swap transaction on given route & quoteMode
transfertrigger wallet transfer/send@thorswap-lib/toolbox-cosmos
unbondtrigger unbond transaction@thorswap-lib/toolbox-cosmos
upgradetrigger upgrade transaction@thorswap-lib/toolbox-cosmos
validateAddressvalidate address per chain restrictions
withdrawSavingstrigger tc withdraw saver transaction@thorswap-lib/toolbox-cosmos
withdrawtrigger LP withdraw transaction@thorswap-lib/toolbox-cosmos

SwapKitCore class properties:

propertydescription
connectedChainsconnected chains data after usage of connectX method (address, empty balance, walletType)
connectedWalletsconnected wallets method after usage of connectX method check available wallets
1.0.0

8 months ago