@ton/appkit-react 0.0.1-alpha.1 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +199 -3
- package/dist/components/block/block.d.ts +13 -0
- package/dist/components/block/block.d.ts.map +1 -0
- package/dist/components/block/block.js +18 -0
- package/dist/components/block/block.js.map +1 -0
- package/dist/components/block/block.mjs +11 -0
- package/dist/components/block/block.mjs.map +1 -0
- package/dist/components/block/block.module.css +13 -0
- package/dist/components/block/block.module.css.map +1 -0
- package/dist/components/block/block.stories.d.ts +15 -0
- package/dist/components/block/block.stories.d.ts.map +1 -0
- package/dist/components/block/block.stories.js +45 -0
- package/dist/components/block/block.stories.js.map +1 -0
- package/dist/components/block/block.stories.mjs +39 -0
- package/dist/components/block/block.stories.mjs.map +1 -0
- package/dist/components/block/index.d.ts +9 -0
- package/dist/components/block/index.d.ts.map +1 -0
- package/dist/components/block/index.js +14 -0
- package/dist/components/block/index.js.map +1 -0
- package/dist/components/block/index.mjs +3 -0
- package/dist/components/block/index.mjs.map +1 -0
- package/dist/components/button/button.d.ts +10 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +18 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/button.mjs +11 -0
- package/dist/components/button/button.mjs.map +1 -0
- package/dist/components/button/button.module.css +33 -0
- package/dist/components/button/button.module.css.map +1 -0
- package/dist/components/button/button.stories.d.ts +16 -0
- package/dist/components/button/button.stories.d.ts.map +1 -0
- package/dist/components/button/button.stories.js +53 -0
- package/dist/components/button/button.stories.js.map +1 -0
- package/dist/components/button/button.stories.mjs +46 -0
- package/dist/components/button/button.stories.mjs.map +1 -0
- package/dist/components/button/index.d.ts +9 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +12 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button/index.mjs +3 -0
- package/dist/components/button/index.mjs.map +1 -0
- package/dist/components/circle-icon/circle-icon.d.ts +16 -0
- package/dist/components/circle-icon/circle-icon.d.ts.map +1 -0
- package/dist/components/circle-icon/circle-icon.js +22 -0
- package/dist/components/circle-icon/circle-icon.js.map +1 -0
- package/dist/components/circle-icon/circle-icon.mjs +15 -0
- package/dist/components/circle-icon/circle-icon.mjs.map +1 -0
- package/dist/components/circle-icon/circle-icon.module.css +31 -0
- package/dist/components/circle-icon/circle-icon.module.css.map +1 -0
- package/dist/components/circle-icon/circle-icon.stories.d.ts +18 -0
- package/dist/components/circle-icon/circle-icon.stories.d.ts.map +1 -0
- package/dist/components/circle-icon/circle-icon.stories.js +62 -0
- package/dist/components/circle-icon/circle-icon.stories.js.map +1 -0
- package/dist/components/circle-icon/circle-icon.stories.mjs +53 -0
- package/dist/components/circle-icon/circle-icon.stories.mjs.map +1 -0
- package/dist/components/circle-icon/index.d.ts +9 -0
- package/dist/components/circle-icon/index.d.ts.map +1 -0
- package/dist/components/circle-icon/index.js +14 -0
- package/dist/components/circle-icon/index.js.map +1 -0
- package/dist/components/circle-icon/index.mjs +3 -0
- package/dist/components/circle-icon/index.mjs.map +1 -0
- package/dist/components/ton-icon/index.d.ts +9 -0
- package/dist/components/ton-icon/index.d.ts.map +1 -0
- package/dist/components/ton-icon/index.js +16 -0
- package/dist/components/ton-icon/index.js.map +1 -0
- package/dist/components/ton-icon/index.mjs +3 -0
- package/dist/components/ton-icon/index.mjs.map +1 -0
- package/dist/components/ton-icon/ton-icon.d.ts +14 -0
- package/dist/components/ton-icon/ton-icon.d.ts.map +1 -0
- package/dist/components/ton-icon/ton-icon.js +39 -0
- package/dist/components/ton-icon/ton-icon.js.map +1 -0
- package/dist/components/ton-icon/ton-icon.mjs +36 -0
- package/dist/components/ton-icon/ton-icon.mjs.map +1 -0
- package/dist/components/ton-icon/ton-icon.stories.d.ts +20 -0
- package/dist/components/ton-icon/ton-icon.stories.d.ts.map +1 -0
- package/dist/components/ton-icon/ton-icon.stories.js +71 -0
- package/dist/components/ton-icon/ton-icon.stories.js.map +1 -0
- package/dist/components/ton-icon/ton-icon.stories.mjs +60 -0
- package/dist/components/ton-icon/ton-icon.stories.mjs.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.d.ts +21 -0
- package/dist/features/balances/components/balance-badge/balance-badge.d.ts.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.js +41 -0
- package/dist/features/balances/components/balance-badge/balance-badge.js.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.mjs +34 -0
- package/dist/features/balances/components/balance-badge/balance-badge.mjs.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.module.css +19 -0
- package/dist/features/balances/components/balance-badge/balance-badge.module.css.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.stories.d.ts +16 -0
- package/dist/features/balances/components/balance-badge/balance-badge.stories.d.ts.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.stories.js +59 -0
- package/dist/features/balances/components/balance-badge/balance-badge.stories.js.map +1 -0
- package/dist/features/balances/components/balance-badge/balance-badge.stories.mjs +51 -0
- package/dist/features/balances/components/balance-badge/balance-badge.stories.mjs.map +1 -0
- package/dist/features/balances/components/balance-badge/index.d.ts +9 -0
- package/dist/features/balances/components/balance-badge/index.d.ts.map +1 -0
- package/dist/features/balances/components/balance-badge/index.js +12 -0
- package/dist/features/balances/components/balance-badge/index.js.map +1 -0
- package/dist/features/balances/components/balance-badge/index.mjs +3 -0
- package/dist/features/balances/components/balance-badge/index.mjs.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.d.ts +17 -0
- package/dist/features/balances/components/currency-item/currency-item.d.ts.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.js +44 -0
- package/dist/features/balances/components/currency-item/currency-item.js.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.mjs +37 -0
- package/dist/features/balances/components/currency-item/currency-item.mjs.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.module.css +69 -0
- package/dist/features/balances/components/currency-item/currency-item.module.css.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.stories.d.ts +19 -0
- package/dist/features/balances/components/currency-item/currency-item.stories.d.ts.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.stories.js +89 -0
- package/dist/features/balances/components/currency-item/currency-item.stories.js.map +1 -0
- package/dist/features/balances/components/currency-item/currency-item.stories.mjs +79 -0
- package/dist/features/balances/components/currency-item/currency-item.stories.mjs.map +1 -0
- package/dist/features/balances/components/currency-item/index.d.ts +9 -0
- package/dist/features/balances/components/currency-item/index.d.ts.map +1 -0
- package/dist/features/balances/components/currency-item/index.js +14 -0
- package/dist/features/balances/components/currency-item/index.js.map +1 -0
- package/dist/features/balances/components/currency-item/index.mjs +3 -0
- package/dist/features/balances/components/currency-item/index.mjs.map +1 -0
- package/dist/features/balances/components/send-jetton-button/index.d.ts +9 -0
- package/dist/features/balances/components/send-jetton-button/index.d.ts.map +1 -0
- package/dist/features/balances/components/send-jetton-button/index.js +14 -0
- package/dist/features/balances/components/send-jetton-button/index.js.map +1 -0
- package/dist/features/balances/components/send-jetton-button/index.mjs +3 -0
- package/dist/features/balances/components/send-jetton-button/index.mjs.map +1 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.d.ts +21 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.d.ts.map +1 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.js +56 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.js.map +1 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.mjs +54 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.mjs.map +1 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts +22 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts.map +1 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.js +58 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.js.map +1 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs +49 -0
- package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs.map +1 -0
- package/dist/features/balances/components/send-ton-button/index.d.ts +9 -0
- package/dist/features/balances/components/send-ton-button/index.d.ts.map +1 -0
- package/dist/features/balances/components/send-ton-button/index.js +14 -0
- package/dist/features/balances/components/send-ton-button/index.js.map +1 -0
- package/dist/features/balances/components/send-ton-button/index.mjs +3 -0
- package/dist/features/balances/components/send-ton-button/index.mjs.map +1 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.d.ts +16 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.d.ts.map +1 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.js +33 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.js.map +1 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.mjs +31 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.mjs.map +1 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.d.ts +21 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.d.ts.map +1 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.js +52 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.js.map +1 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.mjs +44 -0
- package/dist/features/balances/components/send-ton-button/send-ton-button.stories.mjs.map +1 -0
- package/dist/features/balances/hooks/use-balance-by-address.d.ts +16 -0
- package/dist/features/balances/hooks/use-balance-by-address.d.ts.map +1 -0
- package/dist/features/balances/hooks/use-balance-by-address.js +14 -0
- package/dist/features/balances/hooks/use-balance-by-address.js.map +1 -0
- package/dist/features/balances/hooks/use-balance-by-address.mjs +12 -0
- package/dist/features/balances/hooks/use-balance-by-address.mjs.map +1 -0
- package/dist/features/balances/hooks/use-balance.d.ts +16 -0
- package/dist/features/balances/hooks/use-balance.d.ts.map +1 -0
- package/dist/features/balances/hooks/use-balance.js +13 -0
- package/dist/features/balances/hooks/use-balance.js.map +1 -0
- package/dist/features/balances/hooks/use-balance.mjs +11 -0
- package/dist/features/balances/hooks/use-balance.mjs.map +1 -0
- package/dist/features/balances/index.d.ts +14 -0
- package/dist/features/balances/index.d.ts.map +1 -0
- package/dist/features/balances/index.js +49 -0
- package/dist/features/balances/index.js.map +1 -0
- package/dist/features/balances/index.mjs +8 -0
- package/dist/features/balances/index.mjs.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.d.ts +16 -0
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.d.ts.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.js +14 -0
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.js.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.mjs +12 -0
- package/dist/features/jettons/hooks/use-jetton-balance-by-address.mjs.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-info.d.ts +16 -0
- package/dist/features/jettons/hooks/use-jetton-info.d.ts.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-info.js +14 -0
- package/dist/features/jettons/hooks/use-jetton-info.js.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-info.mjs +12 -0
- package/dist/features/jettons/hooks/use-jetton-info.mjs.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-wallet-address.d.ts +16 -0
- package/dist/features/jettons/hooks/use-jetton-wallet-address.d.ts.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-wallet-address.js +14 -0
- package/dist/features/jettons/hooks/use-jetton-wallet-address.js.map +1 -0
- package/dist/features/jettons/hooks/use-jetton-wallet-address.mjs +12 -0
- package/dist/features/jettons/hooks/use-jetton-wallet-address.mjs.map +1 -0
- package/dist/features/jettons/hooks/use-jettons-by-address.d.ts +16 -0
- package/dist/features/jettons/hooks/use-jettons-by-address.d.ts.map +1 -0
- package/dist/features/jettons/hooks/use-jettons-by-address.js +14 -0
- package/dist/features/jettons/hooks/use-jettons-by-address.js.map +1 -0
- package/dist/features/jettons/hooks/use-jettons-by-address.mjs +12 -0
- package/dist/features/jettons/hooks/use-jettons-by-address.mjs.map +1 -0
- package/dist/features/jettons/hooks/use-jettons.d.ts +16 -0
- package/dist/features/jettons/hooks/use-jettons.d.ts.map +1 -0
- package/dist/features/jettons/hooks/use-jettons.js +13 -0
- package/dist/features/jettons/hooks/use-jettons.js.map +1 -0
- package/dist/features/jettons/hooks/use-jettons.mjs +11 -0
- package/dist/features/jettons/hooks/use-jettons.mjs.map +1 -0
- package/dist/features/jettons/hooks/use-transfer-jetton.d.ts +14 -0
- package/dist/features/jettons/hooks/use-transfer-jetton.d.ts.map +1 -0
- package/dist/features/jettons/hooks/use-transfer-jetton.js +14 -0
- package/dist/features/jettons/hooks/use-transfer-jetton.js.map +1 -0
- package/dist/features/jettons/hooks/use-transfer-jetton.mjs +12 -0
- package/dist/features/jettons/hooks/use-transfer-jetton.mjs.map +1 -0
- package/dist/features/jettons/index.d.ts +14 -0
- package/dist/features/jettons/index.d.ts.map +1 -0
- package/dist/features/jettons/index.js +49 -0
- package/dist/features/jettons/index.js.map +1 -0
- package/dist/features/jettons/index.mjs +8 -0
- package/dist/features/jettons/index.mjs.map +1 -0
- package/dist/features/network/hooks/use-network.d.ts +14 -0
- package/dist/features/network/hooks/use-network.d.ts.map +1 -0
- package/dist/features/network/hooks/use-network.js +13 -0
- package/dist/features/network/hooks/use-network.js.map +1 -0
- package/dist/features/network/hooks/use-network.mjs +11 -0
- package/dist/features/network/hooks/use-network.mjs.map +1 -0
- package/dist/features/network/hooks/use-networks.d.ts +14 -0
- package/dist/features/network/hooks/use-networks.d.ts.map +1 -0
- package/dist/features/network/hooks/use-networks.js +23 -0
- package/dist/features/network/hooks/use-networks.js.map +1 -0
- package/dist/features/network/hooks/use-networks.mjs +21 -0
- package/dist/features/network/hooks/use-networks.mjs.map +1 -0
- package/dist/features/network/index.d.ts +10 -0
- package/dist/features/network/index.d.ts.map +1 -0
- package/dist/features/network/index.js +17 -0
- package/dist/features/network/index.js.map +1 -0
- package/dist/features/network/index.mjs +4 -0
- package/dist/features/network/index.mjs.map +1 -0
- package/dist/features/nft/components/nft-item/index.d.ts +9 -0
- package/dist/features/nft/components/nft-item/index.d.ts.map +1 -0
- package/dist/features/nft/components/nft-item/index.js +14 -0
- package/dist/features/nft/components/nft-item/index.js.map +1 -0
- package/dist/features/nft/components/nft-item/index.mjs +3 -0
- package/dist/features/nft/components/nft-item/index.mjs.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.d.ts +14 -0
- package/dist/features/nft/components/nft-item/nft-item.d.ts.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.js +43 -0
- package/dist/features/nft/components/nft-item/nft-item.js.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.mjs +36 -0
- package/dist/features/nft/components/nft-item/nft-item.mjs.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.module.css +65 -0
- package/dist/features/nft/components/nft-item/nft-item.module.css.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.stories.d.ts +25 -0
- package/dist/features/nft/components/nft-item/nft-item.stories.d.ts.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.stories.js +124 -0
- package/dist/features/nft/components/nft-item/nft-item.stories.js.map +1 -0
- package/dist/features/nft/components/nft-item/nft-item.stories.mjs +110 -0
- package/dist/features/nft/components/nft-item/nft-item.stories.mjs.map +1 -0
- package/dist/features/nft/hooks/use-nft.d.ts +16 -0
- package/dist/features/nft/hooks/use-nft.d.ts.map +1 -0
- package/dist/features/nft/hooks/use-nft.js +14 -0
- package/dist/features/nft/hooks/use-nft.js.map +1 -0
- package/dist/features/nft/hooks/use-nft.mjs +12 -0
- package/dist/features/nft/hooks/use-nft.mjs.map +1 -0
- package/dist/features/nft/hooks/use-nfts-by-address.d.ts +16 -0
- package/dist/features/nft/hooks/use-nfts-by-address.d.ts.map +1 -0
- package/dist/features/nft/hooks/use-nfts-by-address.js +14 -0
- package/dist/features/nft/hooks/use-nfts-by-address.js.map +1 -0
- package/dist/features/nft/hooks/use-nfts-by-address.mjs +12 -0
- package/dist/features/nft/hooks/use-nfts-by-address.mjs.map +1 -0
- package/dist/features/nft/hooks/use-nfts.d.ts +16 -0
- package/dist/features/nft/hooks/use-nfts.d.ts.map +1 -0
- package/dist/features/nft/hooks/use-nfts.js +13 -0
- package/dist/features/nft/hooks/use-nfts.js.map +1 -0
- package/dist/features/nft/hooks/use-nfts.mjs +11 -0
- package/dist/features/nft/hooks/use-nfts.mjs.map +1 -0
- package/dist/features/nft/hooks/use-transfer-nft.d.ts +14 -0
- package/dist/features/nft/hooks/use-transfer-nft.d.ts.map +1 -0
- package/dist/features/nft/hooks/use-transfer-nft.js +14 -0
- package/dist/features/nft/hooks/use-transfer-nft.js.map +1 -0
- package/dist/features/nft/hooks/use-transfer-nft.mjs +12 -0
- package/dist/features/nft/hooks/use-transfer-nft.mjs.map +1 -0
- package/dist/features/nft/index.d.ts +13 -0
- package/dist/features/nft/index.d.ts.map +1 -0
- package/dist/features/nft/index.js +42 -0
- package/dist/features/nft/index.js.map +1 -0
- package/dist/features/nft/index.mjs +7 -0
- package/dist/features/nft/index.mjs.map +1 -0
- package/dist/features/signing/hooks/use-sign-binary.d.ts +25 -0
- package/dist/features/signing/hooks/use-sign-binary.d.ts.map +1 -0
- package/dist/features/signing/hooks/use-sign-binary.js +14 -0
- package/dist/features/signing/hooks/use-sign-binary.js.map +1 -0
- package/dist/features/signing/hooks/use-sign-binary.mjs +12 -0
- package/dist/features/signing/hooks/use-sign-binary.mjs.map +1 -0
- package/dist/features/signing/hooks/use-sign-cell.d.ts +26 -0
- package/dist/features/signing/hooks/use-sign-cell.d.ts.map +1 -0
- package/dist/features/signing/hooks/use-sign-cell.js +14 -0
- package/dist/features/signing/hooks/use-sign-cell.js.map +1 -0
- package/dist/features/signing/hooks/use-sign-cell.mjs +12 -0
- package/dist/features/signing/hooks/use-sign-cell.mjs.map +1 -0
- package/dist/features/signing/hooks/use-sign-text.d.ts +25 -0
- package/dist/features/signing/hooks/use-sign-text.d.ts.map +1 -0
- package/dist/features/signing/hooks/use-sign-text.js +14 -0
- package/dist/features/signing/hooks/use-sign-text.js.map +1 -0
- package/dist/features/signing/hooks/use-sign-text.mjs +12 -0
- package/dist/features/signing/hooks/use-sign-text.mjs.map +1 -0
- package/dist/features/signing/index.d.ts +11 -0
- package/dist/features/signing/index.d.ts.map +1 -0
- package/dist/features/signing/index.js +28 -0
- package/dist/features/signing/index.js.map +1 -0
- package/dist/features/signing/index.mjs +5 -0
- package/dist/features/signing/index.mjs.map +1 -0
- package/dist/features/swap/hooks/use-build-swap-transaction.d.ts +13 -0
- package/dist/features/swap/hooks/use-build-swap-transaction.d.ts.map +1 -0
- package/dist/features/swap/hooks/use-build-swap-transaction.js +14 -0
- package/dist/features/swap/hooks/use-build-swap-transaction.js.map +1 -0
- package/dist/features/swap/hooks/use-build-swap-transaction.mjs +12 -0
- package/dist/features/swap/hooks/use-build-swap-transaction.mjs.map +1 -0
- package/dist/features/swap/hooks/use-swap-quote.d.ts +13 -0
- package/dist/features/swap/hooks/use-swap-quote.d.ts.map +1 -0
- package/dist/features/swap/hooks/use-swap-quote.js +14 -0
- package/dist/features/swap/hooks/use-swap-quote.js.map +1 -0
- package/dist/features/swap/hooks/use-swap-quote.mjs +12 -0
- package/dist/features/swap/hooks/use-swap-quote.mjs.map +1 -0
- package/dist/features/swap/index.d.ts +10 -0
- package/dist/features/swap/index.d.ts.map +1 -0
- package/dist/features/swap/index.js +21 -0
- package/dist/features/swap/index.js.map +1 -0
- package/dist/features/swap/index.mjs +4 -0
- package/dist/features/swap/index.mjs.map +1 -0
- package/dist/features/transaction/components/transaction/index.d.ts +10 -0
- package/dist/features/transaction/components/transaction/index.d.ts.map +1 -0
- package/dist/features/transaction/components/transaction/index.js +12 -0
- package/dist/features/transaction/components/transaction/index.js.map +1 -0
- package/dist/features/transaction/components/transaction/index.mjs +3 -0
- package/dist/features/transaction/components/transaction/index.mjs.map +1 -0
- package/dist/features/transaction/components/transaction/transaction.d.ts +30 -0
- package/dist/features/transaction/components/transaction/transaction.d.ts.map +1 -0
- package/dist/features/transaction/components/transaction/transaction.js +49 -0
- package/dist/features/transaction/components/transaction/transaction.js.map +1 -0
- package/dist/features/transaction/components/transaction/transaction.mjs +47 -0
- package/dist/features/transaction/components/transaction/transaction.mjs.map +1 -0
- package/dist/features/transaction/components/transaction/transaction.stories.d.ts +23 -0
- package/dist/features/transaction/components/transaction/transaction.stories.d.ts.map +1 -0
- package/dist/features/transaction/components/transaction/transaction.stories.js +64 -0
- package/dist/features/transaction/components/transaction/transaction.stories.js.map +1 -0
- package/dist/features/transaction/components/transaction/transaction.stories.mjs +54 -0
- package/dist/features/transaction/components/transaction/transaction.stories.mjs.map +1 -0
- package/dist/features/transaction/components/transaction-provider/index.d.ts +10 -0
- package/dist/features/transaction/components/transaction-provider/index.d.ts.map +1 -0
- package/dist/features/transaction/components/transaction-provider/index.js +20 -0
- package/dist/features/transaction/components/transaction-provider/index.js.map +1 -0
- package/dist/features/transaction/components/transaction-provider/index.mjs +3 -0
- package/dist/features/transaction/components/transaction-provider/index.mjs.map +1 -0
- package/dist/features/transaction/components/transaction-provider/transaction-provider.d.ts +36 -0
- package/dist/features/transaction/components/transaction-provider/transaction-provider.d.ts.map +1 -0
- package/dist/features/transaction/components/transaction-provider/transaction-provider.js +76 -0
- package/dist/features/transaction/components/transaction-provider/transaction-provider.js.map +1 -0
- package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs +72 -0
- package/dist/features/transaction/components/transaction-provider/transaction-provider.mjs.map +1 -0
- package/dist/features/transaction/hooks/use-send-transaction.d.ts +14 -0
- package/dist/features/transaction/hooks/use-send-transaction.d.ts.map +1 -0
- package/dist/features/transaction/hooks/use-send-transaction.js +14 -0
- package/dist/features/transaction/hooks/use-send-transaction.js.map +1 -0
- package/dist/features/transaction/hooks/use-send-transaction.mjs +12 -0
- package/dist/features/transaction/hooks/use-send-transaction.mjs.map +1 -0
- package/dist/features/transaction/hooks/use-transfer-ton.d.ts +14 -0
- package/dist/features/transaction/hooks/use-transfer-ton.d.ts.map +1 -0
- package/dist/features/transaction/hooks/use-transfer-ton.js +14 -0
- package/dist/features/transaction/hooks/use-transfer-ton.js.map +1 -0
- package/dist/features/transaction/hooks/use-transfer-ton.mjs +12 -0
- package/dist/features/transaction/hooks/use-transfer-ton.mjs.map +1 -0
- package/dist/features/transaction/index.d.ts +11 -0
- package/dist/features/transaction/index.d.ts.map +1 -0
- package/dist/features/transaction/index.js +28 -0
- package/dist/features/transaction/index.js.map +1 -0
- package/dist/features/transaction/index.mjs +5 -0
- package/dist/features/transaction/index.mjs.map +1 -0
- package/dist/features/wallets/components/connect-button/index.d.ts +9 -0
- package/dist/features/wallets/components/connect-button/index.d.ts.map +1 -0
- package/dist/features/wallets/components/connect-button/index.js +12 -0
- package/dist/features/wallets/components/connect-button/index.js.map +1 -0
- package/dist/features/wallets/components/connect-button/index.mjs +3 -0
- package/dist/features/wallets/components/connect-button/index.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-address.d.ts +13 -0
- package/dist/features/wallets/hooks/use-address.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-address.js +13 -0
- package/dist/features/wallets/hooks/use-address.js.map +1 -0
- package/dist/features/wallets/hooks/use-address.mjs +11 -0
- package/dist/features/wallets/hooks/use-address.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-connect.d.ts +14 -0
- package/dist/features/wallets/hooks/use-connect.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-connect.js +14 -0
- package/dist/features/wallets/hooks/use-connect.js.map +1 -0
- package/dist/features/wallets/hooks/use-connect.mjs +12 -0
- package/dist/features/wallets/hooks/use-connect.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-connected-wallets.d.ts +11 -0
- package/dist/features/wallets/hooks/use-connected-wallets.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-connected-wallets.js +23 -0
- package/dist/features/wallets/hooks/use-connected-wallets.js.map +1 -0
- package/dist/features/wallets/hooks/use-connected-wallets.mjs +21 -0
- package/dist/features/wallets/hooks/use-connected-wallets.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-connector-by-id.d.ts +10 -0
- package/dist/features/wallets/hooks/use-connector-by-id.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-connector-by-id.js +23 -0
- package/dist/features/wallets/hooks/use-connector-by-id.js.map +1 -0
- package/dist/features/wallets/hooks/use-connector-by-id.mjs +21 -0
- package/dist/features/wallets/hooks/use-connector-by-id.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-connectors.d.ts +11 -0
- package/dist/features/wallets/hooks/use-connectors.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-connectors.js +23 -0
- package/dist/features/wallets/hooks/use-connectors.js.map +1 -0
- package/dist/features/wallets/hooks/use-connectors.mjs +21 -0
- package/dist/features/wallets/hooks/use-connectors.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-disconnect.d.ts +14 -0
- package/dist/features/wallets/hooks/use-disconnect.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-disconnect.js +14 -0
- package/dist/features/wallets/hooks/use-disconnect.js.map +1 -0
- package/dist/features/wallets/hooks/use-disconnect.mjs +12 -0
- package/dist/features/wallets/hooks/use-disconnect.mjs.map +1 -0
- package/dist/features/wallets/hooks/use-selected-wallet.d.ts +14 -0
- package/dist/features/wallets/hooks/use-selected-wallet.d.ts.map +1 -0
- package/dist/features/wallets/hooks/use-selected-wallet.js +30 -0
- package/dist/features/wallets/hooks/use-selected-wallet.js.map +1 -0
- package/dist/features/wallets/hooks/use-selected-wallet.mjs +28 -0
- package/dist/features/wallets/hooks/use-selected-wallet.mjs.map +1 -0
- package/dist/features/wallets/index.d.ts +16 -0
- package/dist/features/wallets/index.d.ts.map +1 -0
- package/dist/features/wallets/index.js +63 -0
- package/dist/features/wallets/index.js.map +1 -0
- package/dist/features/wallets/index.mjs +10 -0
- package/dist/features/wallets/index.mjs.map +1 -0
- package/dist/global.d.js +4 -0
- package/dist/global.d.js.map +1 -0
- package/dist/global.d.mjs +3 -0
- package/dist/global.d.mjs.map +1 -0
- package/dist/hooks/use-app-kit-theme.d.ts +10 -0
- package/dist/hooks/use-app-kit-theme.d.ts.map +1 -0
- package/dist/hooks/use-app-kit-theme.js +16 -0
- package/dist/hooks/use-app-kit-theme.js.map +1 -0
- package/dist/hooks/use-app-kit-theme.mjs +14 -0
- package/dist/hooks/use-app-kit-theme.mjs.map +1 -0
- package/dist/hooks/use-app-kit.d.ts +9 -0
- package/dist/hooks/use-app-kit.d.ts.map +1 -0
- package/dist/hooks/use-app-kit.js +16 -0
- package/dist/hooks/use-app-kit.js.map +1 -0
- package/dist/hooks/use-app-kit.mjs +14 -0
- package/dist/hooks/use-app-kit.mjs.map +1 -0
- package/dist/hooks/use-i18n.d.ts +9 -0
- package/dist/hooks/use-i18n.d.ts.map +1 -0
- package/dist/hooks/use-i18n.js +16 -0
- package/dist/hooks/use-i18n.js.map +1 -0
- package/dist/hooks/use-i18n.mjs +14 -0
- package/dist/hooks/use-i18n.mjs.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +123 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +20 -0
- package/dist/index.mjs.map +1 -0
- package/dist/libs/i18n.d.ts +34 -0
- package/dist/libs/i18n.d.ts.map +1 -0
- package/dist/libs/i18n.js +22 -0
- package/dist/libs/i18n.js.map +1 -0
- package/dist/libs/i18n.mjs +11 -0
- package/dist/libs/i18n.mjs.map +1 -0
- package/dist/libs/query.d.ts +26 -0
- package/dist/libs/query.d.ts.map +1 -0
- package/dist/libs/query.js +20 -0
- package/dist/libs/query.js.map +1 -0
- package/dist/libs/query.mjs +15 -0
- package/dist/libs/query.mjs.map +1 -0
- package/dist/locales/en.d.ts +29 -0
- package/dist/locales/en.d.ts.map +1 -0
- package/dist/locales/en.js +30 -0
- package/dist/locales/en.js.map +1 -0
- package/dist/locales/en.mjs +28 -0
- package/dist/locales/en.mjs.map +1 -0
- package/dist/providers/app-kit-provider.d.ts +15 -0
- package/dist/providers/app-kit-provider.d.ts.map +1 -0
- package/dist/providers/app-kit-provider.js +16 -0
- package/dist/providers/app-kit-provider.js.map +1 -0
- package/dist/providers/app-kit-provider.mjs +13 -0
- package/dist/providers/app-kit-provider.mjs.map +1 -0
- package/dist/providers/i18n-provider.d.ts +22 -0
- package/dist/providers/i18n-provider.d.ts.map +1 -0
- package/dist/providers/i18n-provider.js +55 -0
- package/dist/providers/i18n-provider.js.map +1 -0
- package/dist/providers/i18n-provider.mjs +52 -0
- package/dist/providers/i18n-provider.mjs.map +1 -0
- package/dist/styles/index.css +73 -0
- package/dist/styles/index.css.map +1 -0
- package/dist/styles/typography.module.css +79 -0
- package/dist/styles/typography.module.css.map +1 -0
- package/dist/tonconnect/tonconnect-bridge.d.ts +19 -0
- package/dist/tonconnect/tonconnect-bridge.d.ts.map +1 -0
- package/dist/tonconnect/tonconnect-bridge.js +23 -0
- package/dist/tonconnect/tonconnect-bridge.js.map +1 -0
- package/dist/tonconnect/tonconnect-bridge.mjs +21 -0
- package/dist/tonconnect/tonconnect-bridge.mjs.map +1 -0
- package/package.json +68 -9
- package/index.js +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getNFTsQueryOptions } from '@ton/appkit/queries';
|
|
2
|
+
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
3
|
+
import { useQuery } from '../../../libs/query';
|
|
4
|
+
|
|
5
|
+
const useNFTsByAddress = (parameters = {}) => {
|
|
6
|
+
const appKit = useAppKit();
|
|
7
|
+
return useQuery(getNFTsQueryOptions(appKit, parameters));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { useNFTsByAddress };
|
|
11
|
+
//# sourceMappingURL=use-nfts-by-address.mjs.map
|
|
12
|
+
//# sourceMappingURL=use-nfts-by-address.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/nft/hooks/use-nfts-by-address.ts"],"names":[],"mappings":";;;;AAsBO,MAAM,gBAAA,GAAmB,CAC5B,UAAA,GAAqD,EAAC,KACb;AACzC,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,QAAA,CAAS,mBAAA,CAAoB,MAAA,EAAQ,UAAU,CAAC,CAAA;AAC3D","file":"use-nfts-by-address.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport { getNFTsQueryOptions } from '@ton/appkit/queries';\nimport type { GetNFTsData, GetNFTsErrorType, GetNFTsQueryConfig } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useQuery } from '../../../libs/query';\nimport type { UseQueryReturnType } from '../../../libs/query';\n\nexport type UseNFTsByAddressParameters<selectData = GetNFTsData> = GetNFTsQueryConfig<selectData>;\n\nexport type UseNFTsByAddressReturnType<selectData = GetNFTsData> = UseQueryReturnType<selectData, GetNFTsErrorType>;\n\n/**\n * Hook to get NFTs\n */\nexport const useNFTsByAddress = <selectData = GetNFTsData>(\n parameters: UseNFTsByAddressParameters<selectData> = {},\n): UseNFTsByAddressReturnType<selectData> => {\n const appKit = useAppKit();\n\n return useQuery(getNFTsQueryOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { GetNFTsData } from '@ton/appkit/queries';
|
|
9
|
+
import type { UseNFTsByAddressParameters, UseNFTsByAddressReturnType } from './use-nfts-by-address';
|
|
10
|
+
export type UseNFTsParameters<selectData = GetNFTsData> = UseNFTsByAddressParameters<selectData>;
|
|
11
|
+
export type UseNFTsReturnType<selectData = GetNFTsData> = UseNFTsByAddressReturnType<selectData>;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to get NFTs of the selected wallet
|
|
14
|
+
*/
|
|
15
|
+
export declare const useNfts: <selectData = GetNFTsData>(parameters?: UseNFTsParameters<selectData>) => UseNFTsReturnType<selectData>;
|
|
16
|
+
//# sourceMappingURL=use-nfts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-nfts.d.ts","sourceRoot":"","sources":["../../../../src/features/nft/hooks/use-nfts.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,OAAO,KAAK,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEpG,MAAM,MAAM,iBAAiB,CAAC,UAAU,GAAG,WAAW,IAAI,0BAA0B,CAAC,UAAU,CAAC,CAAC;AAEjG,MAAM,MAAM,iBAAiB,CAAC,UAAU,GAAG,WAAW,IAAI,0BAA0B,CAAC,UAAU,CAAC,CAAC;AAEjG;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,UAAU,GAAG,WAAW,EAC5C,aAAY,iBAAiB,CAAC,UAAU,CAAM,KAC/C,iBAAiB,CAAC,UAAU,CAI9B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var useAddress = require('../../wallets/hooks/use-address');
|
|
4
|
+
var useNftsByAddress = require('./use-nfts-by-address');
|
|
5
|
+
|
|
6
|
+
const useNfts = (parameters = {}) => {
|
|
7
|
+
const address = useAddress.useAddress();
|
|
8
|
+
return useNftsByAddress.useNFTsByAddress({ ...parameters, address });
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.useNfts = useNfts;
|
|
12
|
+
//# sourceMappingURL=use-nfts.js.map
|
|
13
|
+
//# sourceMappingURL=use-nfts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/nft/hooks/use-nfts.ts"],"names":["useAddress","useNFTsByAddress"],"mappings":";;;;;AAqBO,MAAM,OAAA,GAAU,CACnB,UAAA,GAA4C,EAAC,KACb;AAChC,EAAA,MAAM,UAAUA,qBAAA,EAAW;AAE3B,EAAA,OAAOC,iCAAA,CAAiB,EAAE,GAAG,UAAA,EAAY,SAAS,CAAA;AACtD","file":"use-nfts.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { GetNFTsData } from '@ton/appkit/queries';\n\nimport { useAddress } from '../../wallets/hooks/use-address';\nimport { useNFTsByAddress } from './use-nfts-by-address';\nimport type { UseNFTsByAddressParameters, UseNFTsByAddressReturnType } from './use-nfts-by-address';\n\nexport type UseNFTsParameters<selectData = GetNFTsData> = UseNFTsByAddressParameters<selectData>;\n\nexport type UseNFTsReturnType<selectData = GetNFTsData> = UseNFTsByAddressReturnType<selectData>;\n\n/**\n * Hook to get NFTs of the selected wallet\n */\nexport const useNfts = <selectData = GetNFTsData>(\n parameters: UseNFTsParameters<selectData> = {},\n): UseNFTsReturnType<selectData> => {\n const address = useAddress();\n\n return useNFTsByAddress({ ...parameters, address });\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useAddress } from '../../wallets/hooks/use-address';
|
|
2
|
+
import { useNFTsByAddress } from './use-nfts-by-address';
|
|
3
|
+
|
|
4
|
+
const useNfts = (parameters = {}) => {
|
|
5
|
+
const address = useAddress();
|
|
6
|
+
return useNFTsByAddress({ ...parameters, address });
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { useNfts };
|
|
10
|
+
//# sourceMappingURL=use-nfts.mjs.map
|
|
11
|
+
//# sourceMappingURL=use-nfts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/nft/hooks/use-nfts.ts"],"names":[],"mappings":";;;AAqBO,MAAM,OAAA,GAAU,CACnB,UAAA,GAA4C,EAAC,KACb;AAChC,EAAA,MAAM,UAAU,UAAA,EAAW;AAE3B,EAAA,OAAO,gBAAA,CAAiB,EAAE,GAAG,UAAA,EAAY,SAAS,CAAA;AACtD","file":"use-nfts.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { GetNFTsData } from '@ton/appkit/queries';\n\nimport { useAddress } from '../../wallets/hooks/use-address';\nimport { useNFTsByAddress } from './use-nfts-by-address';\nimport type { UseNFTsByAddressParameters, UseNFTsByAddressReturnType } from './use-nfts-by-address';\n\nexport type UseNFTsParameters<selectData = GetNFTsData> = UseNFTsByAddressParameters<selectData>;\n\nexport type UseNFTsReturnType<selectData = GetNFTsData> = UseNFTsByAddressReturnType<selectData>;\n\n/**\n * Hook to get NFTs of the selected wallet\n */\nexport const useNfts = <selectData = GetNFTsData>(\n parameters: UseNFTsParameters<selectData> = {},\n): UseNFTsReturnType<selectData> => {\n const address = useAddress();\n\n return useNFTsByAddress({ ...parameters, address });\n};\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { MutateFunction, MutateOptions } from '@tanstack/react-query';
|
|
9
|
+
import type { TransferNftData, TransferNftErrorType, TransferNftOptions, TransferNftVariables } from '@ton/appkit/queries';
|
|
10
|
+
import type { UseMutationReturnType } from '../../../libs/query';
|
|
11
|
+
export type UseTransferNftParameters<context = unknown> = TransferNftOptions<context>;
|
|
12
|
+
export type UseTransferNftReturnType<context = unknown> = UseMutationReturnType<TransferNftData, TransferNftErrorType, TransferNftVariables, context, (variables: TransferNftVariables, options?: MutateOptions<TransferNftData, TransferNftErrorType, TransferNftVariables, context>) => void, MutateFunction<TransferNftData, TransferNftErrorType, TransferNftVariables, context>>;
|
|
13
|
+
export declare const useTransferNft: <context = unknown>(parameters?: UseTransferNftParameters<context>) => UseTransferNftReturnType<context>;
|
|
14
|
+
//# sourceMappingURL=use-transfer-nft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-transfer-nft.d.ts","sourceRoot":"","sources":["../../../../src/features/nft/hooks/use-transfer-nft.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EACR,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACvB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,MAAM,MAAM,wBAAwB,CAAC,OAAO,GAAG,OAAO,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAEtF,MAAM,MAAM,wBAAwB,CAAC,OAAO,GAAG,OAAO,IAAI,qBAAqB,CAC3E,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,EACP,CACI,SAAS,EAAE,oBAAoB,EAC/B,OAAO,CAAC,EAAE,aAAa,CAAC,eAAe,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,OAAO,CAAC,KAC5F,IAAI,EACT,cAAc,CAAC,eAAe,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,OAAO,CAAC,CACvF,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,GAAG,OAAO,EAC5C,aAAY,wBAAwB,CAAC,OAAO,CAAM,KACnD,wBAAwB,CAAC,OAAO,CAIlC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var queries = require('@ton/appkit/queries');
|
|
4
|
+
var query = require('../../../libs/query');
|
|
5
|
+
var useAppKit = require('../../../hooks/use-app-kit');
|
|
6
|
+
|
|
7
|
+
const useTransferNft = (parameters = {}) => {
|
|
8
|
+
const appKit = useAppKit.useAppKit();
|
|
9
|
+
return query.useMutation(queries.transferNftMutationOptions(appKit, parameters));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.useTransferNft = useTransferNft;
|
|
13
|
+
//# sourceMappingURL=use-transfer-nft.js.map
|
|
14
|
+
//# sourceMappingURL=use-transfer-nft.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/nft/hooks/use-transfer-nft.ts"],"names":["useAppKit","useMutation","transferNftMutationOptions"],"mappings":";;;;;;AAqCO,MAAM,cAAA,GAAiB,CAC1B,UAAA,GAAgD,EAAC,KACb;AACpC,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,iBAAA,CAAYC,kCAAA,CAA2B,MAAA,EAAQ,UAAU,CAAC,CAAA;AACrE","file":"use-transfer-nft.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use client';\n\nimport type { MutateFunction, MutateOptions } from '@tanstack/react-query';\nimport type {\n TransferNftData,\n TransferNftErrorType,\n TransferNftOptions,\n TransferNftVariables,\n} from '@ton/appkit/queries';\nimport { transferNftMutationOptions } from '@ton/appkit/queries';\n\nimport { useMutation } from '../../../libs/query';\nimport type { UseMutationReturnType } from '../../../libs/query';\nimport { useAppKit } from '../../../hooks/use-app-kit';\n\nexport type UseTransferNftParameters<context = unknown> = TransferNftOptions<context>;\n\nexport type UseTransferNftReturnType<context = unknown> = UseMutationReturnType<\n TransferNftData,\n TransferNftErrorType,\n TransferNftVariables,\n context,\n (\n variables: TransferNftVariables,\n options?: MutateOptions<TransferNftData, TransferNftErrorType, TransferNftVariables, context>,\n ) => void,\n MutateFunction<TransferNftData, TransferNftErrorType, TransferNftVariables, context>\n>;\n\nexport const useTransferNft = <context = unknown>(\n parameters: UseTransferNftParameters<context> = {},\n): UseTransferNftReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(transferNftMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { transferNftMutationOptions } from '@ton/appkit/queries';
|
|
2
|
+
import { useMutation } from '../../../libs/query';
|
|
3
|
+
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
4
|
+
|
|
5
|
+
const useTransferNft = (parameters = {}) => {
|
|
6
|
+
const appKit = useAppKit();
|
|
7
|
+
return useMutation(transferNftMutationOptions(appKit, parameters));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { useTransferNft };
|
|
11
|
+
//# sourceMappingURL=use-transfer-nft.mjs.map
|
|
12
|
+
//# sourceMappingURL=use-transfer-nft.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/nft/hooks/use-transfer-nft.ts"],"names":[],"mappings":";;;;AAqCO,MAAM,cAAA,GAAiB,CAC1B,UAAA,GAAgD,EAAC,KACb;AACpC,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,WAAA,CAAY,0BAAA,CAA2B,MAAA,EAAQ,UAAU,CAAC,CAAA;AACrE","file":"use-transfer-nft.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use client';\n\nimport type { MutateFunction, MutateOptions } from '@tanstack/react-query';\nimport type {\n TransferNftData,\n TransferNftErrorType,\n TransferNftOptions,\n TransferNftVariables,\n} from '@ton/appkit/queries';\nimport { transferNftMutationOptions } from '@ton/appkit/queries';\n\nimport { useMutation } from '../../../libs/query';\nimport type { UseMutationReturnType } from '../../../libs/query';\nimport { useAppKit } from '../../../hooks/use-app-kit';\n\nexport type UseTransferNftParameters<context = unknown> = TransferNftOptions<context>;\n\nexport type UseTransferNftReturnType<context = unknown> = UseMutationReturnType<\n TransferNftData,\n TransferNftErrorType,\n TransferNftVariables,\n context,\n (\n variables: TransferNftVariables,\n options?: MutateOptions<TransferNftData, TransferNftErrorType, TransferNftVariables, context>,\n ) => void,\n MutateFunction<TransferNftData, TransferNftErrorType, TransferNftVariables, context>\n>;\n\nexport const useTransferNft = <context = unknown>(\n parameters: UseTransferNftParameters<context> = {},\n): UseTransferNftReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(transferNftMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export * from './components/nft-item';
|
|
9
|
+
export * from './hooks/use-nfts';
|
|
10
|
+
export * from './hooks/use-nft';
|
|
11
|
+
export * from './hooks/use-nfts-by-address';
|
|
12
|
+
export * from './hooks/use-transfer-nft';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/nft/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,uBAAuB,CAAC;AAEtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var nftItem = require('./components/nft-item');
|
|
4
|
+
var useNfts = require('./hooks/use-nfts');
|
|
5
|
+
var useNft = require('./hooks/use-nft');
|
|
6
|
+
var useNftsByAddress = require('./hooks/use-nfts-by-address');
|
|
7
|
+
var useTransferNft = require('./hooks/use-transfer-nft');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.keys(nftItem).forEach(function (k) {
|
|
12
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return nftItem[k]; }
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
Object.keys(useNfts).forEach(function (k) {
|
|
18
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return useNfts[k]; }
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
Object.keys(useNft).forEach(function (k) {
|
|
24
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return useNft[k]; }
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
Object.keys(useNftsByAddress).forEach(function (k) {
|
|
30
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return useNftsByAddress[k]; }
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
Object.keys(useTransferNft).forEach(function (k) {
|
|
36
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return useTransferNft[k]; }
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './components/nft-item';
|
|
2
|
+
export * from './hooks/use-nfts';
|
|
3
|
+
export * from './hooks/use-nft';
|
|
4
|
+
export * from './hooks/use-nfts-by-address';
|
|
5
|
+
export * from './hooks/use-transfer-nft';
|
|
6
|
+
//# sourceMappingURL=index.mjs.map
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { UseMutationResult } from '@tanstack/react-query';
|
|
9
|
+
import type { SignBinaryData, SignBinaryErrorType, SignBinaryOptions, SignBinaryVariables } from '@ton/appkit/queries';
|
|
10
|
+
export type UseSignBinaryParameters<context = unknown> = SignBinaryOptions<context>;
|
|
11
|
+
export type UseSignBinaryReturnType<context = unknown> = UseMutationResult<SignBinaryData, SignBinaryErrorType, SignBinaryVariables, context>;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to sign binary data with the connected wallet.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: signBinary, isPending } = useSignBinary();
|
|
18
|
+
*
|
|
19
|
+
* const handleSign = () => {
|
|
20
|
+
* signBinary({ bytes: btoa("binary data") });
|
|
21
|
+
* };
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const useSignBinary: <context = unknown>(parameters?: UseSignBinaryParameters<context>) => UseSignBinaryReturnType<context>;
|
|
25
|
+
//# sourceMappingURL=use-sign-binary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sign-binary.d.ts","sourceRoot":"","sources":["../../../../src/features/signing/hooks/use-sign-binary.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAKvH,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CAAC,OAAO,CAAC,CAAC;AAEpF,MAAM,MAAM,uBAAuB,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CACtE,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,CACV,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,GAAG,OAAO,EAC3C,aAAa,uBAAuB,CAAC,OAAO,CAAC,KAC9C,uBAAuB,CAAC,OAAO,CAIjC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var queries = require('@ton/appkit/queries');
|
|
4
|
+
var useAppKit = require('../../../hooks/use-app-kit');
|
|
5
|
+
var query = require('../../../libs/query');
|
|
6
|
+
|
|
7
|
+
const useSignBinary = (parameters) => {
|
|
8
|
+
const appKit = useAppKit.useAppKit();
|
|
9
|
+
return query.useMutation(queries.signBinaryMutationOptions(appKit, parameters));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.useSignBinary = useSignBinary;
|
|
13
|
+
//# sourceMappingURL=use-sign-binary.js.map
|
|
14
|
+
//# sourceMappingURL=use-sign-binary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/signing/hooks/use-sign-binary.ts"],"names":["useAppKit","useMutation","signBinaryMutationOptions"],"mappings":";;;;;;AAoCO,MAAM,aAAA,GAAgB,CACzB,UAAA,KACmC;AACnC,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,iBAAA,CAAYC,iCAAA,CAA0B,MAAA,EAAQ,UAAU,CAAC,CAAA;AACpE","file":"use-sign-binary.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { UseMutationResult } from '@tanstack/react-query';\nimport { signBinaryMutationOptions } from '@ton/appkit/queries';\nimport type { SignBinaryData, SignBinaryErrorType, SignBinaryOptions, SignBinaryVariables } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseSignBinaryParameters<context = unknown> = SignBinaryOptions<context>;\n\nexport type UseSignBinaryReturnType<context = unknown> = UseMutationResult<\n SignBinaryData,\n SignBinaryErrorType,\n SignBinaryVariables,\n context\n>;\n\n/**\n * Hook to sign binary data with the connected wallet.\n *\n * @example\n * ```tsx\n * const { mutate: signBinary, isPending } = useSignBinary();\n *\n * const handleSign = () => {\n * signBinary({ bytes: btoa(\"binary data\") });\n * };\n * ```\n */\nexport const useSignBinary = <context = unknown>(\n parameters?: UseSignBinaryParameters<context>,\n): UseSignBinaryReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(signBinaryMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { signBinaryMutationOptions } from '@ton/appkit/queries';
|
|
2
|
+
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
3
|
+
import { useMutation } from '../../../libs/query';
|
|
4
|
+
|
|
5
|
+
const useSignBinary = (parameters) => {
|
|
6
|
+
const appKit = useAppKit();
|
|
7
|
+
return useMutation(signBinaryMutationOptions(appKit, parameters));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { useSignBinary };
|
|
11
|
+
//# sourceMappingURL=use-sign-binary.mjs.map
|
|
12
|
+
//# sourceMappingURL=use-sign-binary.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/signing/hooks/use-sign-binary.ts"],"names":[],"mappings":";;;;AAoCO,MAAM,aAAA,GAAgB,CACzB,UAAA,KACmC;AACnC,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,WAAA,CAAY,yBAAA,CAA0B,MAAA,EAAQ,UAAU,CAAC,CAAA;AACpE","file":"use-sign-binary.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { UseMutationResult } from '@tanstack/react-query';\nimport { signBinaryMutationOptions } from '@ton/appkit/queries';\nimport type { SignBinaryData, SignBinaryErrorType, SignBinaryOptions, SignBinaryVariables } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseSignBinaryParameters<context = unknown> = SignBinaryOptions<context>;\n\nexport type UseSignBinaryReturnType<context = unknown> = UseMutationResult<\n SignBinaryData,\n SignBinaryErrorType,\n SignBinaryVariables,\n context\n>;\n\n/**\n * Hook to sign binary data with the connected wallet.\n *\n * @example\n * ```tsx\n * const { mutate: signBinary, isPending } = useSignBinary();\n *\n * const handleSign = () => {\n * signBinary({ bytes: btoa(\"binary data\") });\n * };\n * ```\n */\nexport const useSignBinary = <context = unknown>(\n parameters?: UseSignBinaryParameters<context>,\n): UseSignBinaryReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(signBinaryMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { UseMutationResult } from '@tanstack/react-query';
|
|
9
|
+
import type { SignCellData, SignCellErrorType, SignCellOptions, SignCellVariables } from '@ton/appkit/queries';
|
|
10
|
+
export type UseSignCellParameters<context = unknown> = SignCellOptions<context>;
|
|
11
|
+
export type UseSignCellReturnType<context = unknown> = UseMutationResult<SignCellData, SignCellErrorType, SignCellVariables, context>;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to sign TON Cell data with the connected wallet.
|
|
14
|
+
* Used for on-chain signature verification.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { mutate: signCell, isPending } = useSignCell();
|
|
19
|
+
*
|
|
20
|
+
* const handleSign = () => {
|
|
21
|
+
* signCell({ cell: bocBase64, schema: "transfer#abc amount:uint64 = Transfer" });
|
|
22
|
+
* };
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare const useSignCell: <context = unknown>(parameters?: UseSignCellParameters<context>) => UseSignCellReturnType<context>;
|
|
26
|
+
//# sourceMappingURL=use-sign-cell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sign-cell.d.ts","sourceRoot":"","sources":["../../../../src/features/signing/hooks/use-sign-cell.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK/G,MAAM,MAAM,qBAAqB,CAAC,OAAO,GAAG,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;AAEhF,MAAM,MAAM,qBAAqB,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CACpE,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACV,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,GAAG,OAAO,EACzC,aAAa,qBAAqB,CAAC,OAAO,CAAC,KAC5C,qBAAqB,CAAC,OAAO,CAI/B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var queries = require('@ton/appkit/queries');
|
|
4
|
+
var useAppKit = require('../../../hooks/use-app-kit');
|
|
5
|
+
var query = require('../../../libs/query');
|
|
6
|
+
|
|
7
|
+
const useSignCell = (parameters) => {
|
|
8
|
+
const appKit = useAppKit.useAppKit();
|
|
9
|
+
return query.useMutation(queries.signCellMutationOptions(appKit, parameters));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.useSignCell = useSignCell;
|
|
13
|
+
//# sourceMappingURL=use-sign-cell.js.map
|
|
14
|
+
//# sourceMappingURL=use-sign-cell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/signing/hooks/use-sign-cell.ts"],"names":["useAppKit","useMutation","signCellMutationOptions"],"mappings":";;;;;;AAqCO,MAAM,WAAA,GAAc,CACvB,UAAA,KACiC;AACjC,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,iBAAA,CAAYC,+BAAA,CAAwB,MAAA,EAAQ,UAAU,CAAC,CAAA;AAClE","file":"use-sign-cell.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { UseMutationResult } from '@tanstack/react-query';\nimport { signCellMutationOptions } from '@ton/appkit/queries';\nimport type { SignCellData, SignCellErrorType, SignCellOptions, SignCellVariables } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseSignCellParameters<context = unknown> = SignCellOptions<context>;\n\nexport type UseSignCellReturnType<context = unknown> = UseMutationResult<\n SignCellData,\n SignCellErrorType,\n SignCellVariables,\n context\n>;\n\n/**\n * Hook to sign TON Cell data with the connected wallet.\n * Used for on-chain signature verification.\n *\n * @example\n * ```tsx\n * const { mutate: signCell, isPending } = useSignCell();\n *\n * const handleSign = () => {\n * signCell({ cell: bocBase64, schema: \"transfer#abc amount:uint64 = Transfer\" });\n * };\n * ```\n */\nexport const useSignCell = <context = unknown>(\n parameters?: UseSignCellParameters<context>,\n): UseSignCellReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(signCellMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { signCellMutationOptions } from '@ton/appkit/queries';
|
|
2
|
+
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
3
|
+
import { useMutation } from '../../../libs/query';
|
|
4
|
+
|
|
5
|
+
const useSignCell = (parameters) => {
|
|
6
|
+
const appKit = useAppKit();
|
|
7
|
+
return useMutation(signCellMutationOptions(appKit, parameters));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { useSignCell };
|
|
11
|
+
//# sourceMappingURL=use-sign-cell.mjs.map
|
|
12
|
+
//# sourceMappingURL=use-sign-cell.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/signing/hooks/use-sign-cell.ts"],"names":[],"mappings":";;;;AAqCO,MAAM,WAAA,GAAc,CACvB,UAAA,KACiC;AACjC,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,WAAA,CAAY,uBAAA,CAAwB,MAAA,EAAQ,UAAU,CAAC,CAAA;AAClE","file":"use-sign-cell.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { UseMutationResult } from '@tanstack/react-query';\nimport { signCellMutationOptions } from '@ton/appkit/queries';\nimport type { SignCellData, SignCellErrorType, SignCellOptions, SignCellVariables } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseSignCellParameters<context = unknown> = SignCellOptions<context>;\n\nexport type UseSignCellReturnType<context = unknown> = UseMutationResult<\n SignCellData,\n SignCellErrorType,\n SignCellVariables,\n context\n>;\n\n/**\n * Hook to sign TON Cell data with the connected wallet.\n * Used for on-chain signature verification.\n *\n * @example\n * ```tsx\n * const { mutate: signCell, isPending } = useSignCell();\n *\n * const handleSign = () => {\n * signCell({ cell: bocBase64, schema: \"transfer#abc amount:uint64 = Transfer\" });\n * };\n * ```\n */\nexport const useSignCell = <context = unknown>(\n parameters?: UseSignCellParameters<context>,\n): UseSignCellReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(signCellMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { UseMutationResult } from '@tanstack/react-query';
|
|
9
|
+
import type { SignTextData, SignTextErrorType, SignTextOptions, SignTextVariables } from '@ton/appkit/queries';
|
|
10
|
+
export type UseSignTextParameters<context = unknown> = SignTextOptions<context>;
|
|
11
|
+
export type UseSignTextReturnType<context = unknown> = UseMutationResult<SignTextData, SignTextErrorType, SignTextVariables, context>;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to sign text messages with the connected wallet.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { mutate: signText, isPending } = useSignText();
|
|
18
|
+
*
|
|
19
|
+
* const handleSign = () => {
|
|
20
|
+
* signText({ text: "Hello World" });
|
|
21
|
+
* };
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const useSignText: <context = unknown>(parameters?: UseSignTextParameters<context>) => UseSignTextReturnType<context>;
|
|
25
|
+
//# sourceMappingURL=use-sign-text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-sign-text.d.ts","sourceRoot":"","sources":["../../../../src/features/signing/hooks/use-sign-text.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAK/G,MAAM,MAAM,qBAAqB,CAAC,OAAO,GAAG,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;AAEhF,MAAM,MAAM,qBAAqB,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CACpE,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,CACV,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,GAAG,OAAO,EACzC,aAAY,qBAAqB,CAAC,OAAO,CAAM,KAChD,qBAAqB,CAAC,OAAO,CAI/B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var queries = require('@ton/appkit/queries');
|
|
4
|
+
var useAppKit = require('../../../hooks/use-app-kit');
|
|
5
|
+
var query = require('../../../libs/query');
|
|
6
|
+
|
|
7
|
+
const useSignText = (parameters = {}) => {
|
|
8
|
+
const appKit = useAppKit.useAppKit();
|
|
9
|
+
return query.useMutation(queries.signTextMutationOptions(appKit, parameters));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.useSignText = useSignText;
|
|
13
|
+
//# sourceMappingURL=use-sign-text.js.map
|
|
14
|
+
//# sourceMappingURL=use-sign-text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/signing/hooks/use-sign-text.ts"],"names":["useAppKit","useMutation","signTextMutationOptions"],"mappings":";;;;;;AAoCO,MAAM,WAAA,GAAc,CACvB,UAAA,GAA6C,EAAC,KACb;AACjC,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,iBAAA,CAAYC,+BAAA,CAAwB,MAAA,EAAQ,UAAU,CAAC,CAAA;AAClE","file":"use-sign-text.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { UseMutationResult } from '@tanstack/react-query';\nimport { signTextMutationOptions } from '@ton/appkit/queries';\nimport type { SignTextData, SignTextErrorType, SignTextOptions, SignTextVariables } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseSignTextParameters<context = unknown> = SignTextOptions<context>;\n\nexport type UseSignTextReturnType<context = unknown> = UseMutationResult<\n SignTextData,\n SignTextErrorType,\n SignTextVariables,\n context\n>;\n\n/**\n * Hook to sign text messages with the connected wallet.\n *\n * @example\n * ```tsx\n * const { mutate: signText, isPending } = useSignText();\n *\n * const handleSign = () => {\n * signText({ text: \"Hello World\" });\n * };\n * ```\n */\nexport const useSignText = <context = unknown>(\n parameters: UseSignTextParameters<context> = {},\n): UseSignTextReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(signTextMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { signTextMutationOptions } from '@ton/appkit/queries';
|
|
2
|
+
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
3
|
+
import { useMutation } from '../../../libs/query';
|
|
4
|
+
|
|
5
|
+
const useSignText = (parameters = {}) => {
|
|
6
|
+
const appKit = useAppKit();
|
|
7
|
+
return useMutation(signTextMutationOptions(appKit, parameters));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { useSignText };
|
|
11
|
+
//# sourceMappingURL=use-sign-text.mjs.map
|
|
12
|
+
//# sourceMappingURL=use-sign-text.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/signing/hooks/use-sign-text.ts"],"names":[],"mappings":";;;;AAoCO,MAAM,WAAA,GAAc,CACvB,UAAA,GAA6C,EAAC,KACb;AACjC,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,WAAA,CAAY,uBAAA,CAAwB,MAAA,EAAQ,UAAU,CAAC,CAAA;AAClE","file":"use-sign-text.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\nimport type { UseMutationResult } from '@tanstack/react-query';\nimport { signTextMutationOptions } from '@ton/appkit/queries';\nimport type { SignTextData, SignTextErrorType, SignTextOptions, SignTextVariables } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseSignTextParameters<context = unknown> = SignTextOptions<context>;\n\nexport type UseSignTextReturnType<context = unknown> = UseMutationResult<\n SignTextData,\n SignTextErrorType,\n SignTextVariables,\n context\n>;\n\n/**\n * Hook to sign text messages with the connected wallet.\n *\n * @example\n * ```tsx\n * const { mutate: signText, isPending } = useSignText();\n *\n * const handleSign = () => {\n * signText({ text: \"Hello World\" });\n * };\n * ```\n */\nexport const useSignText = <context = unknown>(\n parameters: UseSignTextParameters<context> = {},\n): UseSignTextReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(signTextMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export * from './hooks/use-sign-text';
|
|
9
|
+
export * from './hooks/use-sign-binary';
|
|
10
|
+
export * from './hooks/use-sign-cell';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/signing/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var useSignText = require('./hooks/use-sign-text');
|
|
4
|
+
var useSignBinary = require('./hooks/use-sign-binary');
|
|
5
|
+
var useSignCell = require('./hooks/use-sign-cell');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.keys(useSignText).forEach(function (k) {
|
|
10
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return useSignText[k]; }
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
Object.keys(useSignBinary).forEach(function (k) {
|
|
16
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return useSignBinary[k]; }
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
Object.keys(useSignCell).forEach(function (k) {
|
|
22
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return useSignCell[k]; }
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { UseMutationResult } from '@tanstack/react-query';
|
|
9
|
+
import type { BuildSwapTransactionData, BuildSwapTransactionErrorType, BuildSwapTransactionMutationOptions, BuildSwapTransactionVariables } from '@ton/appkit/queries';
|
|
10
|
+
export type UseBuildSwapTransactionParameters<context = unknown> = BuildSwapTransactionMutationOptions<context>;
|
|
11
|
+
export type UseBuildSwapTransactionReturnType<context = unknown> = UseMutationResult<BuildSwapTransactionData, BuildSwapTransactionErrorType, BuildSwapTransactionVariables, context>;
|
|
12
|
+
export declare const useBuildSwapTransaction: <context = unknown>(parameters?: UseBuildSwapTransactionParameters<context>) => UseBuildSwapTransactionReturnType<context>;
|
|
13
|
+
//# sourceMappingURL=use-build-swap-transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-build-swap-transaction.d.ts","sourceRoot":"","sources":["../../../../src/features/swap/hooks/use-build-swap-transaction.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,OAAO,KAAK,EACR,wBAAwB,EACxB,6BAA6B,EAC7B,mCAAmC,EACnC,6BAA6B,EAChC,MAAM,qBAAqB,CAAC;AAK7B,MAAM,MAAM,iCAAiC,CAAC,OAAO,GAAG,OAAO,IAAI,mCAAmC,CAAC,OAAO,CAAC,CAAC;AAEhH,MAAM,MAAM,iCAAiC,CAAC,OAAO,GAAG,OAAO,IAAI,iBAAiB,CAChF,wBAAwB,EACxB,6BAA6B,EAC7B,6BAA6B,EAC7B,OAAO,CACV,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,OAAO,GAAG,OAAO,EACrD,aAAa,iCAAiC,CAAC,OAAO,CAAC,KACxD,iCAAiC,CAAC,OAAO,CAI3C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var queries = require('@ton/appkit/queries');
|
|
4
|
+
var useAppKit = require('../../../hooks/use-app-kit');
|
|
5
|
+
var query = require('../../../libs/query');
|
|
6
|
+
|
|
7
|
+
const useBuildSwapTransaction = (parameters) => {
|
|
8
|
+
const appKit = useAppKit.useAppKit();
|
|
9
|
+
return query.useMutation(queries.buildSwapTransactionMutationOptions(appKit, parameters));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.useBuildSwapTransaction = useBuildSwapTransaction;
|
|
13
|
+
//# sourceMappingURL=use-build-swap-transaction.js.map
|
|
14
|
+
//# sourceMappingURL=use-build-swap-transaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/swap/hooks/use-build-swap-transaction.ts"],"names":["useAppKit","useMutation","buildSwapTransactionMutationOptions"],"mappings":";;;;;;AA+BO,MAAM,uBAAA,GAA0B,CACnC,UAAA,KAC6C;AAC7C,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,iBAAA,CAAYC,2CAAA,CAAoC,MAAA,EAAQ,UAAU,CAAC,CAAA;AAC9E","file":"use-build-swap-transaction.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use client';\n\nimport type { UseMutationResult } from '@tanstack/react-query';\nimport { buildSwapTransactionMutationOptions } from '@ton/appkit/queries';\nimport type {\n BuildSwapTransactionData,\n BuildSwapTransactionErrorType,\n BuildSwapTransactionMutationOptions,\n BuildSwapTransactionVariables,\n} from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseBuildSwapTransactionParameters<context = unknown> = BuildSwapTransactionMutationOptions<context>;\n\nexport type UseBuildSwapTransactionReturnType<context = unknown> = UseMutationResult<\n BuildSwapTransactionData,\n BuildSwapTransactionErrorType,\n BuildSwapTransactionVariables,\n context\n>;\n\nexport const useBuildSwapTransaction = <context = unknown>(\n parameters?: UseBuildSwapTransactionParameters<context>,\n): UseBuildSwapTransactionReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(buildSwapTransactionMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { buildSwapTransactionMutationOptions } from '@ton/appkit/queries';
|
|
2
|
+
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
3
|
+
import { useMutation } from '../../../libs/query';
|
|
4
|
+
|
|
5
|
+
const useBuildSwapTransaction = (parameters) => {
|
|
6
|
+
const appKit = useAppKit();
|
|
7
|
+
return useMutation(buildSwapTransactionMutationOptions(appKit, parameters));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { useBuildSwapTransaction };
|
|
11
|
+
//# sourceMappingURL=use-build-swap-transaction.mjs.map
|
|
12
|
+
//# sourceMappingURL=use-build-swap-transaction.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/swap/hooks/use-build-swap-transaction.ts"],"names":[],"mappings":";;;;AA+BO,MAAM,uBAAA,GAA0B,CACnC,UAAA,KAC6C;AAC7C,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,WAAA,CAAY,mCAAA,CAAoC,MAAA,EAAQ,UAAU,CAAC,CAAA;AAC9E","file":"use-build-swap-transaction.mjs","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use client';\n\nimport type { UseMutationResult } from '@tanstack/react-query';\nimport { buildSwapTransactionMutationOptions } from '@ton/appkit/queries';\nimport type {\n BuildSwapTransactionData,\n BuildSwapTransactionErrorType,\n BuildSwapTransactionMutationOptions,\n BuildSwapTransactionVariables,\n} from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useMutation } from '../../../libs/query';\n\nexport type UseBuildSwapTransactionParameters<context = unknown> = BuildSwapTransactionMutationOptions<context>;\n\nexport type UseBuildSwapTransactionReturnType<context = unknown> = UseMutationResult<\n BuildSwapTransactionData,\n BuildSwapTransactionErrorType,\n BuildSwapTransactionVariables,\n context\n>;\n\nexport const useBuildSwapTransaction = <context = unknown>(\n parameters?: UseBuildSwapTransactionParameters<context>,\n): UseBuildSwapTransactionReturnType<context> => {\n const appKit = useAppKit();\n\n return useMutation(buildSwapTransactionMutationOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) TonTech.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
import type { GetSwapQuoteData, GetSwapQuoteErrorType, GetSwapQuoteQueryConfig } from '@ton/appkit/queries';
|
|
9
|
+
import type { UseQueryReturnType } from '../../../libs/query';
|
|
10
|
+
export type UseSwapQuoteParameters<selectData = GetSwapQuoteData> = GetSwapQuoteQueryConfig<selectData>;
|
|
11
|
+
export type UseSwapQuoteReturnType<selectData = GetSwapQuoteData> = UseQueryReturnType<selectData, GetSwapQuoteErrorType>;
|
|
12
|
+
export declare const useSwapQuote: <selectData = GetSwapQuoteData>(parameters?: UseSwapQuoteParameters<selectData>) => UseSwapQuoteReturnType<selectData>;
|
|
13
|
+
//# sourceMappingURL=use-swap-quote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-swap-quote.d.ts","sourceRoot":"","sources":["../../../../src/features/swap/hooks/use-swap-quote.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAI5G,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,sBAAsB,CAAC,UAAU,GAAG,gBAAgB,IAAI,uBAAuB,CAAC,UAAU,CAAC,CAAC;AAExG,MAAM,MAAM,sBAAsB,CAAC,UAAU,GAAG,gBAAgB,IAAI,kBAAkB,CAClF,UAAU,EACV,qBAAqB,CACxB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,GAAG,gBAAgB,EACtD,aAAY,sBAAsB,CAAC,UAAU,CAAM,KACpD,sBAAsB,CAAC,UAAU,CAInC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var queries = require('@ton/appkit/queries');
|
|
4
|
+
var useAppKit = require('../../../hooks/use-app-kit');
|
|
5
|
+
var query = require('../../../libs/query');
|
|
6
|
+
|
|
7
|
+
const useSwapQuote = (parameters = {}) => {
|
|
8
|
+
const appKit = useAppKit.useAppKit();
|
|
9
|
+
return query.useQuery(queries.getSwapQuoteQueryOptions(appKit, parameters));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.useSwapQuote = useSwapQuote;
|
|
13
|
+
//# sourceMappingURL=use-swap-quote.js.map
|
|
14
|
+
//# sourceMappingURL=use-swap-quote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/swap/hooks/use-swap-quote.ts"],"names":["useAppKit","useQuery","getSwapQuoteQueryOptions"],"mappings":";;;;;;AAwBO,MAAM,YAAA,GAAe,CACxB,UAAA,GAAiD,EAAC,KACb;AACrC,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,cAAA,CAASC,gCAAA,CAAyB,MAAA,EAAQ,UAAU,CAAC,CAAA;AAChE","file":"use-swap-quote.js","sourcesContent":["/**\n * Copyright (c) TonTech.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use client';\n\nimport { getSwapQuoteQueryOptions } from '@ton/appkit/queries';\nimport type { GetSwapQuoteData, GetSwapQuoteErrorType, GetSwapQuoteQueryConfig } from '@ton/appkit/queries';\n\nimport { useAppKit } from '../../../hooks/use-app-kit';\nimport { useQuery } from '../../../libs/query';\nimport type { UseQueryReturnType } from '../../../libs/query';\n\nexport type UseSwapQuoteParameters<selectData = GetSwapQuoteData> = GetSwapQuoteQueryConfig<selectData>;\n\nexport type UseSwapQuoteReturnType<selectData = GetSwapQuoteData> = UseQueryReturnType<\n selectData,\n GetSwapQuoteErrorType\n>;\n\nexport const useSwapQuote = <selectData = GetSwapQuoteData>(\n parameters: UseSwapQuoteParameters<selectData> = {},\n): UseSwapQuoteReturnType<selectData> => {\n const appKit = useAppKit();\n\n return useQuery(getSwapQuoteQueryOptions(appKit, parameters));\n};\n"]}
|