@ton/appkit-react 0.0.1-alpha.2 → 0.0.2
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/README.md +211 -1
- package/dist/esm/components/block/block.js +7 -0
- package/dist/esm/components/block/block.js.map +1 -0
- package/dist/esm/components/block/block.module.css +13 -0
- package/dist/esm/components/block/block.stories.js +27 -0
- package/dist/esm/components/block/block.stories.js.map +1 -0
- package/dist/esm/components/block/index.js +9 -0
- package/dist/esm/components/block/index.js.map +1 -0
- package/dist/esm/components/button/button.js +7 -0
- package/dist/esm/components/button/button.js.map +1 -0
- package/dist/esm/components/button/button.module.css +38 -0
- package/dist/esm/components/button/button.stories.js +30 -0
- package/dist/esm/components/button/button.stories.js.map +1 -0
- package/dist/esm/components/button/index.js +9 -0
- package/dist/esm/components/button/index.js.map +1 -0
- package/dist/esm/components/circle-icon/circle-icon.js +8 -0
- package/dist/esm/components/circle-icon/circle-icon.js.map +1 -0
- package/dist/esm/components/circle-icon/circle-icon.module.css +32 -0
- package/dist/esm/components/circle-icon/circle-icon.stories.js +56 -0
- package/dist/esm/components/circle-icon/circle-icon.stories.js.map +1 -0
- package/dist/esm/components/circle-icon/index.js +9 -0
- package/dist/esm/components/circle-icon/index.js.map +1 -0
- package/dist/esm/components/ton-icon/index.js +9 -0
- package/dist/esm/components/ton-icon/index.js.map +1 -0
- package/dist/esm/components/ton-icon/ton-icon.js +8 -0
- package/dist/esm/components/ton-icon/ton-icon.js.map +1 -0
- package/dist/esm/components/ton-icon/ton-icon.stories.js +56 -0
- package/dist/esm/components/ton-icon/ton-icon.stories.js.map +1 -0
- package/dist/esm/features/balances/components/balance-badge/balance-badge.js +33 -0
- package/dist/esm/features/balances/components/balance-badge/balance-badge.js.map +1 -0
- package/dist/esm/features/balances/components/balance-badge/balance-badge.module.css +21 -0
- package/dist/esm/features/balances/components/balance-badge/balance-badge.stories.js +23 -0
- package/dist/esm/features/balances/components/balance-badge/balance-badge.stories.js.map +1 -0
- package/dist/esm/features/balances/components/balance-badge/index.js +9 -0
- package/dist/esm/features/balances/components/balance-badge/index.js.map +1 -0
- package/dist/esm/features/balances/components/currency-item/currency-item.js +8 -0
- package/dist/esm/features/balances/components/currency-item/currency-item.js.map +1 -0
- package/dist/esm/features/balances/components/currency-item/currency-item.module.css +80 -0
- package/dist/esm/features/balances/components/currency-item/currency-item.stories.js +61 -0
- package/dist/esm/features/balances/components/currency-item/currency-item.stories.js.map +1 -0
- package/dist/esm/features/balances/components/currency-item/index.js +9 -0
- package/dist/esm/features/balances/components/currency-item/index.js.map +1 -0
- package/dist/esm/features/balances/components/send-jetton-button/index.js +9 -0
- package/dist/esm/features/balances/components/send-jetton-button/index.js.map +1 -0
- package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js +43 -0
- package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.js.map +1 -0
- package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.stories.js +41 -0
- package/dist/esm/features/balances/components/send-jetton-button/send-jetton-button.stories.js.map +1 -0
- package/dist/esm/features/balances/components/send-ton-button/index.js +9 -0
- package/dist/esm/features/balances/components/send-ton-button/index.js.map +1 -0
- package/dist/esm/features/balances/components/send-ton-button/send-ton-button.js +26 -0
- package/dist/esm/features/balances/components/send-ton-button/send-ton-button.js.map +1 -0
- package/dist/esm/features/balances/components/send-ton-button/send-ton-button.stories.js +36 -0
- package/dist/esm/features/balances/components/send-ton-button/send-ton-button.stories.js.map +1 -0
- package/dist/esm/features/balances/hooks/use-balance-by-address.js +18 -0
- package/dist/esm/features/balances/hooks/use-balance-by-address.js.map +1 -0
- package/dist/esm/features/balances/hooks/use-balance.js +17 -0
- package/dist/esm/features/balances/hooks/use-balance.js.map +1 -0
- package/dist/esm/features/balances/index.js +14 -0
- package/dist/esm/features/balances/index.js.map +1 -0
- package/dist/esm/features/jettons/hooks/use-jetton-balance-by-address.js +18 -0
- package/dist/esm/features/jettons/hooks/use-jetton-balance-by-address.js.map +1 -0
- package/dist/esm/features/jettons/hooks/use-jetton-info.js +18 -0
- package/dist/esm/features/jettons/hooks/use-jetton-info.js.map +1 -0
- package/dist/esm/features/jettons/hooks/use-jetton-wallet-address.js +18 -0
- package/dist/esm/features/jettons/hooks/use-jetton-wallet-address.js.map +1 -0
- package/dist/esm/features/jettons/hooks/use-jettons-by-address.js +18 -0
- package/dist/esm/features/jettons/hooks/use-jettons-by-address.js.map +1 -0
- package/dist/esm/features/jettons/hooks/use-jettons.js +17 -0
- package/dist/esm/features/jettons/hooks/use-jettons.js.map +1 -0
- package/dist/esm/features/jettons/hooks/use-transfer-jetton.js +16 -0
- package/dist/esm/features/jettons/hooks/use-transfer-jetton.js.map +1 -0
- package/dist/esm/features/jettons/index.js +14 -0
- package/dist/esm/features/jettons/index.js.map +1 -0
- package/dist/esm/features/network/hooks/use-network.js +17 -0
- package/dist/esm/features/network/hooks/use-network.js.map +1 -0
- package/dist/esm/features/network/hooks/use-networks.js +24 -0
- package/dist/esm/features/network/hooks/use-networks.js.map +1 -0
- package/dist/esm/features/network/index.js +11 -0
- package/dist/esm/features/network/index.js.map +1 -0
- package/dist/esm/features/nft/components/nft-item/index.js +9 -0
- package/dist/esm/features/nft/components/nft-item/index.js.map +1 -0
- package/dist/esm/features/nft/components/nft-item/nft-item.js +15 -0
- package/dist/esm/features/nft/components/nft-item/nft-item.js.map +1 -0
- package/dist/esm/features/nft/components/nft-item/nft-item.module.css +74 -0
- package/dist/esm/features/nft/components/nft-item/nft-item.stories.js +52 -0
- package/dist/esm/features/nft/components/nft-item/nft-item.stories.js.map +1 -0
- package/dist/esm/features/nft/hooks/use-nft.js +18 -0
- package/dist/esm/features/nft/hooks/use-nft.js.map +1 -0
- package/dist/esm/features/nft/hooks/use-nfts-by-address.js +18 -0
- package/dist/esm/features/nft/hooks/use-nfts-by-address.js.map +1 -0
- package/dist/esm/features/nft/hooks/use-nfts.js +17 -0
- package/dist/esm/features/nft/hooks/use-nfts.js.map +1 -0
- package/dist/esm/features/nft/hooks/use-transfer-nft.js +16 -0
- package/dist/esm/features/nft/hooks/use-transfer-nft.js.map +1 -0
- package/dist/esm/features/nft/index.js +13 -0
- package/dist/esm/features/nft/index.js.map +1 -0
- package/dist/esm/features/signing/hooks/use-sign-binary.js +27 -0
- package/dist/esm/features/signing/hooks/use-sign-binary.js.map +1 -0
- package/dist/esm/features/signing/hooks/use-sign-cell.js +28 -0
- package/dist/esm/features/signing/hooks/use-sign-cell.js.map +1 -0
- package/dist/esm/features/signing/hooks/use-sign-text.js +27 -0
- package/dist/esm/features/signing/hooks/use-sign-text.js.map +1 -0
- package/dist/esm/features/signing/index.js +11 -0
- package/dist/esm/features/signing/index.js.map +1 -0
- package/dist/esm/features/swap/hooks/use-build-swap-transaction.js +16 -0
- package/dist/esm/features/swap/hooks/use-build-swap-transaction.js.map +1 -0
- package/dist/esm/features/swap/hooks/use-swap-quote.js +16 -0
- package/dist/esm/features/swap/hooks/use-swap-quote.js.map +1 -0
- package/dist/esm/features/swap/index.js +10 -0
- package/dist/esm/features/swap/index.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction/index.js +9 -0
- package/dist/esm/features/transaction/components/transaction/index.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction/transaction.js +41 -0
- package/dist/esm/features/transaction/components/transaction/transaction.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction/transaction.stories.js +47 -0
- package/dist/esm/features/transaction/components/transaction/transaction.stories.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction-provider/index.js +9 -0
- package/dist/esm/features/transaction/components/transaction-provider/index.js.map +1 -0
- package/dist/esm/features/transaction/components/transaction-provider/transaction-provider.js +64 -0
- package/dist/esm/features/transaction/components/transaction-provider/transaction-provider.js.map +1 -0
- package/dist/esm/features/transaction/hooks/use-send-transaction.js +16 -0
- package/dist/esm/features/transaction/hooks/use-send-transaction.js.map +1 -0
- package/dist/esm/features/transaction/hooks/use-transfer-ton.js +16 -0
- package/dist/esm/features/transaction/hooks/use-transfer-ton.js.map +1 -0
- package/dist/esm/features/transaction/index.js +11 -0
- package/dist/esm/features/transaction/index.js.map +1 -0
- package/dist/esm/features/wallets/components/connect-button/index.js +9 -0
- package/dist/esm/features/wallets/components/connect-button/index.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-address.js +17 -0
- package/dist/esm/features/wallets/hooks/use-address.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-connect.js +15 -0
- package/dist/esm/features/wallets/hooks/use-connect.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-connected-wallets.js +21 -0
- package/dist/esm/features/wallets/hooks/use-connected-wallets.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-connector-by-id.js +21 -0
- package/dist/esm/features/wallets/hooks/use-connector-by-id.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-connectors.js +21 -0
- package/dist/esm/features/wallets/hooks/use-connectors.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-disconnect.js +16 -0
- package/dist/esm/features/wallets/hooks/use-disconnect.js.map +1 -0
- package/dist/esm/features/wallets/hooks/use-selected-wallet.js +28 -0
- package/dist/esm/features/wallets/hooks/use-selected-wallet.js.map +1 -0
- package/dist/esm/features/wallets/index.js +16 -0
- package/dist/esm/features/wallets/index.js.map +1 -0
- package/dist/esm/hooks/use-app-kit-theme.js +17 -0
- package/dist/esm/hooks/use-app-kit-theme.js.map +1 -0
- package/dist/esm/hooks/use-app-kit.js +17 -0
- package/dist/esm/hooks/use-app-kit.js.map +1 -0
- package/dist/esm/hooks/use-i18n.js +17 -0
- package/dist/esm/hooks/use-i18n.js.map +1 -0
- package/dist/esm/index.js +26 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/libs/i18n.js +14 -0
- package/dist/esm/libs/i18n.js.map +1 -0
- package/dist/esm/libs/query.js +18 -0
- package/dist/esm/libs/query.js.map +1 -0
- package/dist/esm/locales/en.js +32 -0
- package/dist/esm/locales/en.js.map +1 -0
- package/dist/esm/providers/app-kit-provider.js +9 -0
- package/dist/esm/providers/app-kit-provider.js.map +1 -0
- package/dist/esm/providers/i18n-provider.js +51 -0
- package/dist/esm/providers/i18n-provider.js.map +1 -0
- package/dist/esm/styles/index.css +88 -0
- package/dist/esm/styles/typography.module.css +92 -0
- package/dist/esm/tonconnect/tonconnect-bridge.js +27 -0
- package/dist/esm/tonconnect/tonconnect-bridge.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/components/block/block.d.ts +13 -0
- package/dist/types/components/block/block.d.ts.map +1 -0
- package/dist/types/components/block/block.stories.d.ts +15 -0
- package/dist/types/components/block/block.stories.d.ts.map +1 -0
- package/dist/types/components/block/index.d.ts +9 -0
- package/dist/types/components/block/index.d.ts.map +1 -0
- package/dist/types/components/button/button.d.ts +10 -0
- package/dist/types/components/button/button.d.ts.map +1 -0
- package/dist/types/components/button/button.stories.d.ts +16 -0
- package/dist/types/components/button/button.stories.d.ts.map +1 -0
- package/dist/types/components/button/index.d.ts +9 -0
- package/dist/types/components/button/index.d.ts.map +1 -0
- package/dist/types/components/circle-icon/circle-icon.d.ts +16 -0
- package/dist/types/components/circle-icon/circle-icon.d.ts.map +1 -0
- package/dist/types/components/circle-icon/circle-icon.stories.d.ts +18 -0
- package/dist/types/components/circle-icon/circle-icon.stories.d.ts.map +1 -0
- package/dist/types/components/circle-icon/index.d.ts +9 -0
- package/dist/types/components/circle-icon/index.d.ts.map +1 -0
- package/dist/types/components/ton-icon/index.d.ts +9 -0
- package/dist/types/components/ton-icon/index.d.ts.map +1 -0
- package/dist/types/components/ton-icon/ton-icon.d.ts +14 -0
- package/dist/types/components/ton-icon/ton-icon.d.ts.map +1 -0
- package/dist/types/components/ton-icon/ton-icon.stories.d.ts +20 -0
- package/dist/types/components/ton-icon/ton-icon.stories.d.ts.map +1 -0
- package/dist/types/features/balances/components/balance-badge/balance-badge.d.ts +21 -0
- package/dist/types/features/balances/components/balance-badge/balance-badge.d.ts.map +1 -0
- package/dist/types/features/balances/components/balance-badge/balance-badge.stories.d.ts +16 -0
- package/dist/types/features/balances/components/balance-badge/balance-badge.stories.d.ts.map +1 -0
- package/dist/types/features/balances/components/balance-badge/index.d.ts +9 -0
- package/dist/types/features/balances/components/balance-badge/index.d.ts.map +1 -0
- package/dist/types/features/balances/components/currency-item/currency-item.d.ts +17 -0
- package/dist/types/features/balances/components/currency-item/currency-item.d.ts.map +1 -0
- package/dist/types/features/balances/components/currency-item/currency-item.stories.d.ts +19 -0
- package/dist/types/features/balances/components/currency-item/currency-item.stories.d.ts.map +1 -0
- package/dist/types/features/balances/components/currency-item/index.d.ts +9 -0
- package/dist/types/features/balances/components/currency-item/index.d.ts.map +1 -0
- package/dist/types/features/balances/components/send-jetton-button/index.d.ts +9 -0
- package/dist/types/features/balances/components/send-jetton-button/index.d.ts.map +1 -0
- package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.d.ts +21 -0
- package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.d.ts.map +1 -0
- package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts +22 -0
- package/dist/types/features/balances/components/send-jetton-button/send-jetton-button.stories.d.ts.map +1 -0
- package/dist/types/features/balances/components/send-ton-button/index.d.ts +9 -0
- package/dist/types/features/balances/components/send-ton-button/index.d.ts.map +1 -0
- package/dist/types/features/balances/components/send-ton-button/send-ton-button.d.ts +16 -0
- package/dist/types/features/balances/components/send-ton-button/send-ton-button.d.ts.map +1 -0
- package/dist/types/features/balances/components/send-ton-button/send-ton-button.stories.d.ts +21 -0
- package/dist/types/features/balances/components/send-ton-button/send-ton-button.stories.d.ts.map +1 -0
- package/dist/types/features/balances/hooks/use-balance-by-address.d.ts +16 -0
- package/dist/types/features/balances/hooks/use-balance-by-address.d.ts.map +1 -0
- package/dist/types/features/balances/hooks/use-balance.d.ts +16 -0
- package/dist/types/features/balances/hooks/use-balance.d.ts.map +1 -0
- package/dist/types/features/balances/index.d.ts +14 -0
- package/dist/types/features/balances/index.d.ts.map +1 -0
- package/dist/types/features/jettons/hooks/use-jetton-balance-by-address.d.ts +16 -0
- package/dist/types/features/jettons/hooks/use-jetton-balance-by-address.d.ts.map +1 -0
- package/dist/types/features/jettons/hooks/use-jetton-info.d.ts +16 -0
- package/dist/types/features/jettons/hooks/use-jetton-info.d.ts.map +1 -0
- package/dist/types/features/jettons/hooks/use-jetton-wallet-address.d.ts +16 -0
- package/dist/types/features/jettons/hooks/use-jetton-wallet-address.d.ts.map +1 -0
- package/dist/types/features/jettons/hooks/use-jettons-by-address.d.ts +16 -0
- package/dist/types/features/jettons/hooks/use-jettons-by-address.d.ts.map +1 -0
- package/dist/types/features/jettons/hooks/use-jettons.d.ts +16 -0
- package/dist/types/features/jettons/hooks/use-jettons.d.ts.map +1 -0
- package/dist/types/features/jettons/hooks/use-transfer-jetton.d.ts +14 -0
- package/dist/types/features/jettons/hooks/use-transfer-jetton.d.ts.map +1 -0
- package/dist/types/features/jettons/index.d.ts +14 -0
- package/dist/types/features/jettons/index.d.ts.map +1 -0
- package/dist/types/features/network/hooks/use-network.d.ts +14 -0
- package/dist/types/features/network/hooks/use-network.d.ts.map +1 -0
- package/dist/types/features/network/hooks/use-networks.d.ts +14 -0
- package/dist/types/features/network/hooks/use-networks.d.ts.map +1 -0
- package/dist/types/features/network/index.d.ts +10 -0
- package/dist/types/features/network/index.d.ts.map +1 -0
- package/dist/types/features/nft/components/nft-item/index.d.ts +9 -0
- package/dist/types/features/nft/components/nft-item/index.d.ts.map +1 -0
- package/dist/types/features/nft/components/nft-item/nft-item.d.ts +14 -0
- package/dist/types/features/nft/components/nft-item/nft-item.d.ts.map +1 -0
- package/dist/types/features/nft/components/nft-item/nft-item.stories.d.ts +25 -0
- package/dist/types/features/nft/components/nft-item/nft-item.stories.d.ts.map +1 -0
- package/dist/types/features/nft/hooks/use-nft.d.ts +16 -0
- package/dist/types/features/nft/hooks/use-nft.d.ts.map +1 -0
- package/dist/types/features/nft/hooks/use-nfts-by-address.d.ts +16 -0
- package/dist/types/features/nft/hooks/use-nfts-by-address.d.ts.map +1 -0
- package/dist/types/features/nft/hooks/use-nfts.d.ts +16 -0
- package/dist/types/features/nft/hooks/use-nfts.d.ts.map +1 -0
- package/dist/types/features/nft/hooks/use-transfer-nft.d.ts +14 -0
- package/dist/types/features/nft/hooks/use-transfer-nft.d.ts.map +1 -0
- package/dist/types/features/nft/index.d.ts +13 -0
- package/dist/types/features/nft/index.d.ts.map +1 -0
- package/dist/types/features/signing/hooks/use-sign-binary.d.ts +25 -0
- package/dist/types/features/signing/hooks/use-sign-binary.d.ts.map +1 -0
- package/dist/types/features/signing/hooks/use-sign-cell.d.ts +26 -0
- package/dist/types/features/signing/hooks/use-sign-cell.d.ts.map +1 -0
- package/dist/types/features/signing/hooks/use-sign-text.d.ts +25 -0
- package/dist/types/features/signing/hooks/use-sign-text.d.ts.map +1 -0
- package/dist/types/features/signing/index.d.ts +11 -0
- package/dist/types/features/signing/index.d.ts.map +1 -0
- package/dist/types/features/swap/hooks/use-build-swap-transaction.d.ts +13 -0
- package/dist/types/features/swap/hooks/use-build-swap-transaction.d.ts.map +1 -0
- package/dist/types/features/swap/hooks/use-swap-quote.d.ts +13 -0
- package/dist/types/features/swap/hooks/use-swap-quote.d.ts.map +1 -0
- package/dist/types/features/swap/index.d.ts +10 -0
- package/dist/types/features/swap/index.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction/index.d.ts +10 -0
- package/dist/types/features/transaction/components/transaction/index.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction/transaction.d.ts +30 -0
- package/dist/types/features/transaction/components/transaction/transaction.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction/transaction.stories.d.ts +23 -0
- package/dist/types/features/transaction/components/transaction/transaction.stories.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction-provider/index.d.ts +10 -0
- package/dist/types/features/transaction/components/transaction-provider/index.d.ts.map +1 -0
- package/dist/types/features/transaction/components/transaction-provider/transaction-provider.d.ts +36 -0
- package/dist/types/features/transaction/components/transaction-provider/transaction-provider.d.ts.map +1 -0
- package/dist/types/features/transaction/hooks/use-send-transaction.d.ts +14 -0
- package/dist/types/features/transaction/hooks/use-send-transaction.d.ts.map +1 -0
- package/dist/types/features/transaction/hooks/use-transfer-ton.d.ts +14 -0
- package/dist/types/features/transaction/hooks/use-transfer-ton.d.ts.map +1 -0
- package/dist/types/features/transaction/index.d.ts +11 -0
- package/dist/types/features/transaction/index.d.ts.map +1 -0
- package/dist/types/features/wallets/components/connect-button/index.d.ts +9 -0
- package/dist/types/features/wallets/components/connect-button/index.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-address.d.ts +13 -0
- package/dist/types/features/wallets/hooks/use-address.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-connect.d.ts +14 -0
- package/dist/types/features/wallets/hooks/use-connect.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-connected-wallets.d.ts +11 -0
- package/dist/types/features/wallets/hooks/use-connected-wallets.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-connector-by-id.d.ts +10 -0
- package/dist/types/features/wallets/hooks/use-connector-by-id.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-connectors.d.ts +11 -0
- package/dist/types/features/wallets/hooks/use-connectors.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-disconnect.d.ts +14 -0
- package/dist/types/features/wallets/hooks/use-disconnect.d.ts.map +1 -0
- package/dist/types/features/wallets/hooks/use-selected-wallet.d.ts +14 -0
- package/dist/types/features/wallets/hooks/use-selected-wallet.d.ts.map +1 -0
- package/dist/types/features/wallets/index.d.ts +16 -0
- package/dist/types/features/wallets/index.d.ts.map +1 -0
- package/dist/types/hooks/use-app-kit-theme.d.ts +10 -0
- package/dist/types/hooks/use-app-kit-theme.d.ts.map +1 -0
- package/dist/types/hooks/use-app-kit.d.ts +9 -0
- package/dist/types/hooks/use-app-kit.d.ts.map +1 -0
- package/dist/types/hooks/use-i18n.d.ts +9 -0
- package/dist/types/hooks/use-i18n.d.ts.map +1 -0
- package/dist/types/index.d.ts +26 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/libs/i18n.d.ts +34 -0
- package/dist/types/libs/i18n.d.ts.map +1 -0
- package/dist/types/libs/query.d.ts +26 -0
- package/dist/types/libs/query.d.ts.map +1 -0
- package/dist/types/locales/en.d.ts +29 -0
- package/dist/types/locales/en.d.ts.map +1 -0
- package/dist/types/providers/app-kit-provider.d.ts +15 -0
- package/dist/types/providers/app-kit-provider.d.ts.map +1 -0
- package/dist/types/providers/i18n-provider.d.ts +22 -0
- package/dist/types/providers/i18n-provider.d.ts.map +1 -0
- package/dist/types/tonconnect/tonconnect-bridge.d.ts +19 -0
- package/dist/types/tonconnect/tonconnect-bridge.d.ts.map +1 -0
- package/package.json +70 -7
- package/src/components/block/block.tsx +20 -0
- package/src/components/block/index.ts +9 -0
- package/src/components/button/button.tsx +16 -0
- package/src/components/button/index.ts +9 -0
- package/src/components/circle-icon/circle-icon.tsx +34 -0
- package/src/components/circle-icon/index.ts +9 -0
- package/src/components/ton-icon/index.ts +9 -0
- package/src/components/ton-icon/ton-icon.tsx +46 -0
- package/src/features/balances/components/balance-badge/balance-badge.tsx +47 -0
- package/src/features/balances/components/balance-badge/index.ts +9 -0
- package/src/features/balances/components/currency-item/currency-item.tsx +59 -0
- package/src/features/balances/components/currency-item/index.ts +9 -0
- package/src/features/balances/components/send-jetton-button/index.ts +9 -0
- package/src/features/balances/components/send-jetton-button/send-jetton-button.tsx +76 -0
- package/src/features/balances/components/send-ton-button/index.ts +9 -0
- package/src/features/balances/components/send-ton-button/send-ton-button.tsx +44 -0
- package/src/features/balances/hooks/use-balance-by-address.ts +33 -0
- package/src/features/balances/hooks/use-balance.ts +28 -0
- package/src/features/balances/index.ts +15 -0
- package/src/features/jettons/hooks/use-jetton-balance-by-address.ts +37 -0
- package/src/features/jettons/hooks/use-jetton-info.ts +32 -0
- package/src/features/jettons/hooks/use-jetton-wallet-address.ts +37 -0
- package/src/features/jettons/hooks/use-jettons-by-address.ts +33 -0
- package/src/features/jettons/hooks/use-jettons.ts +28 -0
- package/src/features/jettons/hooks/use-transfer-jetton.ts +44 -0
- package/src/features/jettons/index.ts +14 -0
- package/src/features/network/hooks/use-network.ts +23 -0
- package/src/features/network/hooks/use-networks.ts +35 -0
- package/src/features/network/index.ts +11 -0
- package/src/features/nft/components/nft-item/index.ts +9 -0
- package/src/features/nft/components/nft-item/nft-item.tsx +57 -0
- package/src/features/nft/hooks/use-nft.ts +29 -0
- package/src/features/nft/hooks/use-nfts-by-address.ts +29 -0
- package/src/features/nft/hooks/use-nfts.ts +28 -0
- package/src/features/nft/hooks/use-transfer-nft.ts +44 -0
- package/src/features/nft/index.ts +14 -0
- package/src/features/signing/hooks/use-sign-binary.ts +43 -0
- package/src/features/signing/hooks/use-sign-cell.ts +44 -0
- package/src/features/signing/hooks/use-sign-text.ts +43 -0
- package/src/features/signing/index.ts +11 -0
- package/src/features/swap/hooks/use-build-swap-transaction.ts +38 -0
- package/src/features/swap/hooks/use-swap-quote.ts +31 -0
- package/src/features/swap/index.ts +10 -0
- package/src/features/transaction/components/transaction/index.ts +10 -0
- package/src/features/transaction/components/transaction/transaction.tsx +105 -0
- package/src/features/transaction/components/transaction-provider/index.ts +10 -0
- package/src/features/transaction/components/transaction-provider/transaction-provider.tsx +114 -0
- package/src/features/transaction/hooks/use-send-transaction.ts +44 -0
- package/src/features/transaction/hooks/use-transfer-ton.ts +44 -0
- package/src/features/transaction/index.ts +12 -0
- package/src/features/wallets/components/connect-button/index.ts +9 -0
- package/src/features/wallets/hooks/use-address.ts +22 -0
- package/src/features/wallets/hooks/use-connect.ts +37 -0
- package/src/features/wallets/hooks/use-connected-wallets.ts +32 -0
- package/src/features/wallets/hooks/use-connector-by-id.ts +30 -0
- package/src/features/wallets/hooks/use-connectors.ts +32 -0
- package/src/features/wallets/hooks/use-disconnect.ts +39 -0
- package/src/features/wallets/hooks/use-selected-wallet.ts +44 -0
- package/src/features/wallets/index.ts +18 -0
- package/src/global.d.ts +12 -0
- package/src/hooks/use-app-kit-theme.ts +22 -0
- package/src/hooks/use-app-kit.ts +21 -0
- package/src/hooks/use-i18n.ts +21 -0
- package/src/index.ts +29 -0
- package/src/libs/i18n.ts +20 -0
- package/src/libs/query.ts +69 -0
- package/src/locales/en.ts +35 -0
- package/src/providers/app-kit-provider.tsx +30 -0
- package/src/providers/i18n-provider.tsx +83 -0
- package/src/tonconnect/tonconnect-bridge.tsx +39 -0
|
@@ -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 { GetJettonsByAddressData, GetJettonsErrorType, GetJettonsByAddressQueryConfig } from '@ton/appkit/queries';
|
|
9
|
+
import type { UseQueryReturnType } from '../../../libs/query';
|
|
10
|
+
export type UseJettonsByAddressParameters<selectData = GetJettonsByAddressData> = GetJettonsByAddressQueryConfig<selectData>;
|
|
11
|
+
export type UseJettonsByAddressReturnType<selectData = GetJettonsByAddressData> = UseQueryReturnType<selectData, GetJettonsErrorType>;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to get jettons
|
|
14
|
+
*/
|
|
15
|
+
export declare const useJettonsByAddress: <selectData = GetJettonsByAddressData>(parameters?: UseJettonsByAddressParameters<selectData>) => UseJettonsByAddressReturnType<selectData>;
|
|
16
|
+
//# sourceMappingURL=use-jettons-by-address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-jettons-by-address.d.ts","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-jettons-by-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AAIxH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,6BAA6B,CAAC,UAAU,GAAG,uBAAuB,IAC1E,8BAA8B,CAAC,UAAU,CAAC,CAAC;AAE/C,MAAM,MAAM,6BAA6B,CAAC,UAAU,GAAG,uBAAuB,IAAI,kBAAkB,CAChG,UAAU,EACV,mBAAmB,CACtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,GAAG,uBAAuB,EACpE,aAAY,6BAA6B,CAAC,UAAU,CAAM,KAC3D,6BAA6B,CAAC,UAAU,CAI1C,CAAC"}
|
|
@@ -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 { GetJettonsByAddressData } from '@ton/appkit/queries';
|
|
9
|
+
import type { UseJettonsByAddressParameters, UseJettonsByAddressReturnType } from './use-jettons-by-address';
|
|
10
|
+
export type UseJettonsParameters<selectData = GetJettonsByAddressData> = UseJettonsByAddressParameters<selectData>;
|
|
11
|
+
export type UseJettonsReturnType<selectData = GetJettonsByAddressData> = UseJettonsByAddressReturnType<selectData>;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to get jettons of the selected wallet
|
|
14
|
+
*/
|
|
15
|
+
export declare const useJettons: <selectData = GetJettonsByAddressData>(parameters?: UseJettonsParameters<selectData>) => UseJettonsReturnType<selectData>;
|
|
16
|
+
//# sourceMappingURL=use-jettons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-jettons.d.ts","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-jettons.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAInE,OAAO,KAAK,EAAE,6BAA6B,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AAE7G,MAAM,MAAM,oBAAoB,CAAC,UAAU,GAAG,uBAAuB,IAAI,6BAA6B,CAAC,UAAU,CAAC,CAAC;AAEnH,MAAM,MAAM,oBAAoB,CAAC,UAAU,GAAG,uBAAuB,IAAI,6BAA6B,CAAC,UAAU,CAAC,CAAC;AAEnH;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,UAAU,GAAG,uBAAuB,EAC3D,aAAY,oBAAoB,CAAC,UAAU,CAAM,KAClD,oBAAoB,CAAC,UAAU,CAIjC,CAAC"}
|
|
@@ -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 { TransferJettonData, TransferJettonErrorType, TransferJettonOptions, TransferJettonVariables } from '@ton/appkit/queries';
|
|
10
|
+
import type { UseMutationReturnType } from '../../../libs/query';
|
|
11
|
+
export type UseTransferJettonParameters<context = unknown> = TransferJettonOptions<context>;
|
|
12
|
+
export type UseTransferJettonReturnType<context = unknown> = UseMutationReturnType<TransferJettonData, TransferJettonErrorType, TransferJettonVariables, context, (variables: TransferJettonVariables, options?: MutateOptions<TransferJettonData, TransferJettonErrorType, TransferJettonVariables, context>) => void, MutateFunction<TransferJettonData, TransferJettonErrorType, TransferJettonVariables, context>>;
|
|
13
|
+
export declare const useTransferJetton: <context = unknown>(parameters?: UseTransferJettonParameters<context>) => UseTransferJettonReturnType<context>;
|
|
14
|
+
//# sourceMappingURL=use-transfer-jetton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-transfer-jetton.d.ts","sourceRoot":"","sources":["../../../../../src/features/jettons/hooks/use-transfer-jetton.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,KAAK,EACR,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EAC1B,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAGjE,MAAM,MAAM,2BAA2B,CAAC,OAAO,GAAG,OAAO,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAC;AAE5F,MAAM,MAAM,2BAA2B,CAAC,OAAO,GAAG,OAAO,IAAI,qBAAqB,CAC9E,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,OAAO,EACP,CACI,SAAS,EAAE,uBAAuB,EAClC,OAAO,CAAC,EAAE,aAAa,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,OAAO,CAAC,KACrG,IAAI,EACT,cAAc,CAAC,kBAAkB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAChG,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,OAAO,GAAG,OAAO,EAC/C,aAAY,2BAA2B,CAAC,OAAO,CAAM,KACtD,2BAA2B,CAAC,OAAO,CAIrC,CAAC"}
|
|
@@ -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
|
+
export * from './hooks/use-jetton-info';
|
|
9
|
+
export * from './hooks/use-jetton-wallet-address';
|
|
10
|
+
export * from './hooks/use-jetton-balance-by-address';
|
|
11
|
+
export * from './hooks/use-jettons';
|
|
12
|
+
export * from './hooks/use-jettons-by-address';
|
|
13
|
+
export * from './hooks/use-transfer-jetton';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/jettons/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,yBAAyB,CAAC;AACxC,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC"}
|
|
@@ -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 { Network } from '@ton/appkit';
|
|
9
|
+
export type UseNetworkReturnType = Network | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Hook to get network of the selected wallet
|
|
12
|
+
*/
|
|
13
|
+
export declare const useNetwork: () => UseNetworkReturnType;
|
|
14
|
+
//# sourceMappingURL=use-network.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-network.d.ts","sourceRoot":"","sources":["../../../../../src/features/network/hooks/use-network.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAK3C,MAAM,MAAM,oBAAoB,GAAG,OAAO,GAAG,SAAS,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,UAAU,QAAO,oBAI7B,CAAC"}
|
|
@@ -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 { GetNetworksReturnType } from '@ton/appkit';
|
|
9
|
+
export type UseNetworksReturnType = GetNetworksReturnType;
|
|
10
|
+
/**
|
|
11
|
+
* Hook to get all configured networks
|
|
12
|
+
*/
|
|
13
|
+
export declare const useNetworks: () => UseNetworksReturnType;
|
|
14
|
+
//# sourceMappingURL=use-networks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-networks.d.ts","sourceRoot":"","sources":["../../../../../src/features/network/hooks/use-networks.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAIzD,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,WAAW,QAAO,qBAe9B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 { useNetworks, type UseNetworksReturnType } from './hooks/use-networks';
|
|
9
|
+
export { useNetwork, type UseNetworkReturnType } from './hooks/use-network';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/network/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,WAAW,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/nft/components/nft-item/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,YAAY,CAAC"}
|
|
@@ -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 { NFT } from '@ton/appkit';
|
|
9
|
+
import type { FC, ComponentProps } from 'react';
|
|
10
|
+
export interface NftItemProps extends ComponentProps<'button'> {
|
|
11
|
+
nft: NFT;
|
|
12
|
+
}
|
|
13
|
+
export declare const NftItem: FC<NftItemProps>;
|
|
14
|
+
//# sourceMappingURL=nft-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nft-item.d.ts","sourceRoot":"","sources":["../../../../../../src/features/nft/components/nft-item/nft-item.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,KAAK,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAkBhD,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,QAAQ,CAAC;IAC1D,GAAG,EAAE,GAAG,CAAC;CACZ;AAED,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAwBpC,CAAC"}
|
|
@@ -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 { Meta, StoryObj } from '@storybook/react';
|
|
9
|
+
declare const NftItemPreview: ({ name, collectionName, image, isOnSale, onClick, className, }: {
|
|
10
|
+
name: string;
|
|
11
|
+
collectionName: string;
|
|
12
|
+
image?: string;
|
|
13
|
+
isOnSale?: boolean;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare const meta: Meta<typeof NftItemPreview>;
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof NftItemPreview>;
|
|
20
|
+
export declare const WithImage: Story;
|
|
21
|
+
export declare const WithoutImage: Story;
|
|
22
|
+
export declare const OnSale: Story;
|
|
23
|
+
export declare const LongName: Story;
|
|
24
|
+
export declare const NftGrid: Story;
|
|
25
|
+
//# sourceMappingURL=nft-item.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nft-item.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/features/nft/components/nft-item/nft-item.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAiBvD,QAAA,MAAM,cAAc,GAAI,gEAOrB;IACC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,4CAaA,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAUrC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7C,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAOpB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAyBrB,CAAC"}
|
|
@@ -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 { GetNftData, GetNftErrorType, GetNftQueryConfig } from '@ton/appkit/queries';
|
|
9
|
+
import type { UseQueryReturnType } from '../../../libs/query';
|
|
10
|
+
export type UseNftParameters<selectData = GetNftData> = GetNftQueryConfig<selectData>;
|
|
11
|
+
export type UseNftReturnType<selectData = GetNftData> = UseQueryReturnType<selectData, GetNftErrorType>;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to get a single NFT
|
|
14
|
+
*/
|
|
15
|
+
export declare const useNft: <selectData = GetNftData>(parameters?: UseNftParameters<selectData>) => UseNftReturnType<selectData>;
|
|
16
|
+
//# sourceMappingURL=use-nft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-nft.d.ts","sourceRoot":"","sources":["../../../../../src/features/nft/hooks/use-nft.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAI1F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,gBAAgB,CAAC,UAAU,GAAG,UAAU,IAAI,iBAAiB,CAAC,UAAU,CAAC,CAAC;AAEtF,MAAM,MAAM,gBAAgB,CAAC,UAAU,GAAG,UAAU,IAAI,kBAAkB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;AAExG;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,UAAU,GAAG,UAAU,EAC1C,aAAY,gBAAgB,CAAC,UAAU,CAAM,KAC9C,gBAAgB,CAAC,UAAU,CAI7B,CAAC"}
|
|
@@ -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, GetNFTsErrorType, GetNFTsQueryConfig } from '@ton/appkit/queries';
|
|
9
|
+
import type { UseQueryReturnType } from '../../../libs/query';
|
|
10
|
+
export type UseNFTsByAddressParameters<selectData = GetNFTsData> = GetNFTsQueryConfig<selectData>;
|
|
11
|
+
export type UseNFTsByAddressReturnType<selectData = GetNFTsData> = UseQueryReturnType<selectData, GetNFTsErrorType>;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to get NFTs
|
|
14
|
+
*/
|
|
15
|
+
export declare const useNFTsByAddress: <selectData = GetNFTsData>(parameters?: UseNFTsByAddressParameters<selectData>) => UseNFTsByAddressReturnType<selectData>;
|
|
16
|
+
//# sourceMappingURL=use-nfts-by-address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-nfts-by-address.d.ts","sourceRoot":"","sources":["../../../../../src/features/nft/hooks/use-nfts-by-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAI7F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,0BAA0B,CAAC,UAAU,GAAG,WAAW,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;AAElG,MAAM,MAAM,0BAA0B,CAAC,UAAU,GAAG,WAAW,IAAI,kBAAkB,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;AAEpH;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,UAAU,GAAG,WAAW,EACrD,aAAY,0BAA0B,CAAC,UAAU,CAAM,KACxD,0BAA0B,CAAC,UAAU,CAIvC,CAAC"}
|
|
@@ -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,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,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,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,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,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,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,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,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,10 @@
|
|
|
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-swap-quote';
|
|
9
|
+
export * from './hooks/use-build-swap-transaction';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/features/swap/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 { Transaction } from './transaction';
|
|
9
|
+
export type { TransactionProps, TransactionRenderProps } from './transaction';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { FC, ReactNode, ComponentProps } from 'react';
|
|
9
|
+
import type { SendTransactionParameters, SendTransactionReturnType } from '@ton/appkit';
|
|
10
|
+
export interface TransactionRenderProps {
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
onSubmit: () => void;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
text: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export type TransactionRequest = SendTransactionParameters | Promise<SendTransactionParameters> | (() => SendTransactionParameters) | (() => Promise<SendTransactionParameters>);
|
|
17
|
+
export interface TransactionProps extends Omit<ComponentProps<'button'>, 'children' | 'onError'> {
|
|
18
|
+
/** The transaction request parameters */
|
|
19
|
+
request: TransactionRequest;
|
|
20
|
+
/** Callback when an error occurs */
|
|
21
|
+
onError?: (error: Error) => void;
|
|
22
|
+
/** Callback when the transaction is successful */
|
|
23
|
+
onSuccess?: (response: SendTransactionReturnType) => void;
|
|
24
|
+
/** Custom button text */
|
|
25
|
+
text?: ReactNode;
|
|
26
|
+
/** Custom render function */
|
|
27
|
+
children?: (props: TransactionRenderProps) => ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export declare const Transaction: FC<TransactionProps>;
|
|
30
|
+
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction/transaction.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAMxF,MAAM,WAAW,sBAAsB;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,SAAS,CAAC;CACnB;AAED,MAAM,MAAM,kBAAkB,GACxB,yBAAyB,GACzB,OAAO,CAAC,yBAAyB,CAAC,GAClC,CAAC,MAAM,yBAAyB,CAAC,GACjC,CAAC,MAAM,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC;AAEjD,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC5F,yCAAyC;IACzC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,oCAAoC;IACpC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,kDAAkD;IAClD,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC1D,yBAAyB;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,sBAAsB,KAAK,SAAS,CAAC;CAC3D;AA+CD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAiB5C,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { Meta, StoryObj } from '@storybook/react';
|
|
9
|
+
declare const TransactionButtonPreview: ({ text, isLoading, disabled, }: {
|
|
10
|
+
text?: string;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const meta: Meta<typeof TransactionButtonPreview>;
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof TransactionButtonPreview>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const CustomText: Story;
|
|
19
|
+
export declare const Loading: Story;
|
|
20
|
+
export declare const Disabled: Story;
|
|
21
|
+
export declare const SendTonButton: Story;
|
|
22
|
+
export declare const SendJettonButton: Story;
|
|
23
|
+
//# sourceMappingURL=transaction.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction/transaction.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,QAAA,MAAM,wBAAwB,GAAI,gCAI/B;IACC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,4CAEA,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,wBAAwB,CAO/C,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEvD,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAIxB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAI3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAI9B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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 { TransactionProvider, useTransactionContext, TransactionContext } from './transaction-provider';
|
|
9
|
+
export type { TransactionContextType } from './transaction-provider';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction-provider/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACxG,YAAY,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC"}
|
package/dist/types/features/transaction/components/transaction-provider/transaction-provider.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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 { FC, PropsWithChildren } from 'react';
|
|
9
|
+
import type { SendTransactionReturnType } from '@ton/appkit';
|
|
10
|
+
import type { TransactionRequest } from '../transaction/transaction';
|
|
11
|
+
export interface TransactionContextType {
|
|
12
|
+
/** Function to submit the transaction */
|
|
13
|
+
onSubmit: () => void;
|
|
14
|
+
/** Whether the transaction is currently loading */
|
|
15
|
+
isLoading: boolean;
|
|
16
|
+
/** The error object if the transaction failed */
|
|
17
|
+
error?: Error | null;
|
|
18
|
+
/** The receipt of the successful transaction */
|
|
19
|
+
receipt?: SendTransactionReturnType | null;
|
|
20
|
+
/** Disable the button/interaction */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const TransactionContext: import("react").Context<TransactionContextType>;
|
|
24
|
+
export declare function useTransactionContext(): TransactionContextType;
|
|
25
|
+
export interface TransactionProviderProps extends PropsWithChildren {
|
|
26
|
+
/** The transaction request parameters */
|
|
27
|
+
request: TransactionRequest;
|
|
28
|
+
/** Callback when an error occurs */
|
|
29
|
+
onError?: (error: Error) => void;
|
|
30
|
+
/** Callback when the transaction is successful */
|
|
31
|
+
onSuccess?: (response: SendTransactionReturnType) => void;
|
|
32
|
+
/** Disable the button/interaction */
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const TransactionProvider: FC<TransactionProviderProps>;
|
|
36
|
+
//# sourceMappingURL=transaction-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction-provider.d.ts","sourceRoot":"","sources":["../../../../../../src/features/transaction/components/transaction-provider/transaction-provider.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAG7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,WAAW,sBAAsB;IACnC,yCAAyC;IACzC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,mDAAmD;IACnD,SAAS,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IACrB,gDAAgD;IAChD,OAAO,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAC3C,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,iDAK7B,CAAC;AAEH,wBAAgB,qBAAqB,2BAIpC;AAED,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB;IAC/D,yCAAyC;IACzC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,oCAAoC;IACpC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,kDAAkD;IAClD,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAC1D,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CA6D5D,CAAC"}
|