This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@thorswap-lib/swapkit-core
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-nightly-20230904215030 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @thorswap-lib/swapkit-core

Weekly Downloads

0

Version

0.0.0-nightly-20230904215030

License

MIT

Unpacked Size

681 kB

Total Files

26

Last publish

Collaborators

  • chillios
  • mogarchy
  • olegpetrov