@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,49 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Button } from '../../../../components/button';
|
|
3
|
+
|
|
4
|
+
const SendJettonButtonPreview = ({
|
|
5
|
+
text = "Send USDT",
|
|
6
|
+
isLoading = false,
|
|
7
|
+
disabled = false
|
|
8
|
+
}) => {
|
|
9
|
+
return /* @__PURE__ */ jsx(Button, { disabled: disabled || isLoading, children: isLoading ? "Processing..." : text });
|
|
10
|
+
};
|
|
11
|
+
const meta = {
|
|
12
|
+
title: "Public/Features/Balances/SendJettonButton",
|
|
13
|
+
component: SendJettonButtonPreview,
|
|
14
|
+
tags: ["autodocs"],
|
|
15
|
+
parameters: {
|
|
16
|
+
layout: "centered"
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
var send_jetton_button_stories_default = meta;
|
|
20
|
+
const USDT = {
|
|
21
|
+
args: {
|
|
22
|
+
text: "Send 100 USDT"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const NOT = {
|
|
26
|
+
args: {
|
|
27
|
+
text: "Send 500 NOT"
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const WithoutAmount = {
|
|
31
|
+
args: {
|
|
32
|
+
text: "Send USDT"
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const Loading = {
|
|
36
|
+
args: {
|
|
37
|
+
isLoading: true
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
const Disabled = {
|
|
41
|
+
args: {
|
|
42
|
+
text: "Send 100 USDT",
|
|
43
|
+
disabled: true
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export { Disabled, Loading, NOT, USDT, WithoutAmount, send_jetton_button_stories_default as default };
|
|
48
|
+
//# sourceMappingURL=send-jetton-button.stories.mjs.map
|
|
49
|
+
//# sourceMappingURL=send-jetton-button.stories.mjs.map
|
package/dist/features/balances/components/send-jetton-button/send-jetton-button.stories.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/features/balances/components/send-jetton-button/send-jetton-button.stories.tsx"],"names":[],"mappings":";;;AAYA,MAAM,0BAA0B,CAAC;AAAA,EAC7B,IAAA,GAAO,WAAA;AAAA,EACP,SAAA,GAAY,KAAA;AAAA,EACZ,QAAA,GAAW;AACf,CAAA,KAIM;AACF,EAAA,2BAAQ,MAAA,EAAA,EAAO,QAAA,EAAU,YAAY,SAAA,EAAY,QAAA,EAAA,SAAA,GAAY,kBAAkB,IAAA,EAAK,CAAA;AACxF,CAAA;AAEA,MAAM,IAAA,GAA6C;AAAA,EAC/C,KAAA,EAAO,2CAAA;AAAA,EACP,SAAA,EAAW,uBAAA;AAAA,EACX,IAAA,EAAM,CAAC,UAAU,CAAA;AAAA,EACjB,UAAA,EAAY;AAAA,IACR,MAAA,EAAQ;AAAA;AAEhB,CAAA;AAEA,IAAO,kCAAA,GAAQ;AAIR,MAAM,IAAA,GAAc;AAAA,EACvB,IAAA,EAAM;AAAA,IACF,IAAA,EAAM;AAAA;AAEd;AAEO,MAAM,GAAA,GAAa;AAAA,EACtB,IAAA,EAAM;AAAA,IACF,IAAA,EAAM;AAAA;AAEd;AAEO,MAAM,aAAA,GAAuB;AAAA,EAChC,IAAA,EAAM;AAAA,IACF,IAAA,EAAM;AAAA;AAEd;AAEO,MAAM,OAAA,GAAiB;AAAA,EAC1B,IAAA,EAAM;AAAA,IACF,SAAA,EAAW;AAAA;AAEnB;AAEO,MAAM,QAAA,GAAkB;AAAA,EAC3B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,eAAA;AAAA,IACN,QAAA,EAAU;AAAA;AAElB","file":"send-jetton-button.stories.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 { Meta, StoryObj } from '@storybook/react';\n\nimport { Button } from '../../../../components/button';\n\nconst SendJettonButtonPreview = ({\n text = 'Send USDT',\n isLoading = false,\n disabled = false,\n}: {\n text?: string;\n isLoading?: boolean;\n disabled?: boolean;\n}) => {\n return <Button disabled={disabled || isLoading}>{isLoading ? 'Processing...' : text}</Button>;\n};\n\nconst meta: Meta<typeof SendJettonButtonPreview> = {\n title: 'Public/Features/Balances/SendJettonButton',\n component: SendJettonButtonPreview,\n tags: ['autodocs'],\n parameters: {\n layout: 'centered',\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof SendJettonButtonPreview>;\n\nexport const USDT: Story = {\n args: {\n text: 'Send 100 USDT',\n },\n};\n\nexport const NOT: Story = {\n args: {\n text: 'Send 500 NOT',\n },\n};\n\nexport const WithoutAmount: Story = {\n args: {\n text: 'Send USDT',\n },\n};\n\nexport const Loading: Story = {\n args: {\n isLoading: true,\n },\n};\n\nexport const Disabled: Story = {\n args: {\n text: 'Send 100 USDT',\n disabled: true,\n },\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/balances/components/send-ton-button/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var sendTonButton = require('./send-ton-button');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.keys(sendTonButton).forEach(function (k) {
|
|
8
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return sendTonButton[k]; }
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
14
|
+
//# 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,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 { FC } from 'react';
|
|
9
|
+
import type { TransactionProps } from '../../../transaction';
|
|
10
|
+
export interface SendTonButtonProps extends Omit<TransactionProps, 'request'> {
|
|
11
|
+
recipientAddress: string;
|
|
12
|
+
amount: string;
|
|
13
|
+
comment?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const SendTonButton: FC<SendTonButtonProps>;
|
|
16
|
+
//# sourceMappingURL=send-ton-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-ton-button.d.ts","sourceRoot":"","sources":["../../../../../src/features/balances/components/send-ton-button/send-ton-button.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG7D,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,SAAS,CAAC;IACzE,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAoBhD,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var appkit = require('@ton/appkit');
|
|
6
|
+
var useI18n = require('../../../../hooks/use-i18n');
|
|
7
|
+
var useAppKit = require('../../../../hooks/use-app-kit');
|
|
8
|
+
var transaction = require('../../../transaction');
|
|
9
|
+
|
|
10
|
+
const SendTonButton = ({ recipientAddress, amount, comment, ...props }) => {
|
|
11
|
+
const appKit = useAppKit.useAppKit();
|
|
12
|
+
const { t } = useI18n.useI18n();
|
|
13
|
+
const createTransferTransaction = react.useCallback(async () => {
|
|
14
|
+
return appkit.createTransferTonTransaction(appKit, {
|
|
15
|
+
recipientAddress,
|
|
16
|
+
amount,
|
|
17
|
+
comment
|
|
18
|
+
});
|
|
19
|
+
}, [appKit, recipientAddress, amount, comment]);
|
|
20
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21
|
+
transaction.Transaction,
|
|
22
|
+
{
|
|
23
|
+
request: createTransferTransaction,
|
|
24
|
+
disabled: !recipientAddress || !amount,
|
|
25
|
+
text: t("balances.sendTon", { amount }),
|
|
26
|
+
...props
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.SendTonButton = SendTonButton;
|
|
32
|
+
//# sourceMappingURL=send-ton-button.js.map
|
|
33
|
+
//# sourceMappingURL=send-ton-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/features/balances/components/send-ton-button/send-ton-button.tsx"],"names":["useAppKit","useI18n","useCallback","createTransferTonTransaction","jsx","Transaction"],"mappings":";;;;;;;;;AAuBO,MAAM,aAAA,GAAwC,CAAC,EAAE,gBAAA,EAAkB,QAAQ,OAAA,EAAS,GAAG,OAAM,KAAM;AACtG,EAAA,MAAM,SAASA,mBAAA,EAAU;AACzB,EAAA,MAAM,EAAE,CAAA,EAAE,GAAIC,eAAA,EAAQ;AAEtB,EAAA,MAAM,yBAAA,GAA4BC,kBAAY,YAAY;AACtD,IAAA,OAAOC,oCAA6B,MAAA,EAAQ;AAAA,MACxC,gBAAA;AAAA,MACA,MAAA;AAAA,MACA;AAAA,KACH,CAAA;AAAA,EACL,GAAG,CAAC,MAAA,EAAQ,gBAAA,EAAkB,MAAA,EAAQ,OAAO,CAAC,CAAA;AAE9C,EAAA,uBACIC,cAAA;AAAA,IAACC,uBAAA;AAAA,IAAA;AAAA,MACG,OAAA,EAAS,yBAAA;AAAA,MACT,QAAA,EAAU,CAAC,gBAAA,IAAoB,CAAC,MAAA;AAAA,MAChC,IAAA,EAAM,CAAA,CAAE,kBAAA,EAAoB,EAAE,QAAQ,CAAA;AAAA,MACrC,GAAG;AAAA;AAAA,GACR;AAER","file":"send-ton-button.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 { useCallback } from 'react';\nimport type { FC } from 'react';\nimport { createTransferTonTransaction } from '@ton/appkit';\n\nimport { useI18n } from '../../../../hooks/use-i18n';\nimport { useAppKit } from '../../../../hooks/use-app-kit';\nimport type { TransactionProps } from '../../../transaction';\nimport { Transaction } from '../../../transaction';\n\nexport interface SendTonButtonProps extends Omit<TransactionProps, 'request'> {\n recipientAddress: string;\n amount: string;\n comment?: string;\n}\n\nexport const SendTonButton: FC<SendTonButtonProps> = ({ recipientAddress, amount, comment, ...props }) => {\n const appKit = useAppKit();\n const { t } = useI18n();\n\n const createTransferTransaction = useCallback(async () => {\n return createTransferTonTransaction(appKit, {\n recipientAddress,\n amount,\n comment,\n });\n }, [appKit, recipientAddress, amount, comment]);\n\n return (\n <Transaction\n request={createTransferTransaction}\n disabled={!recipientAddress || !amount}\n text={t('balances.sendTon', { amount })}\n {...props}\n />\n );\n};\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useCallback } from 'react';
|
|
3
|
+
import { createTransferTonTransaction } from '@ton/appkit';
|
|
4
|
+
import { useI18n } from '../../../../hooks/use-i18n';
|
|
5
|
+
import { useAppKit } from '../../../../hooks/use-app-kit';
|
|
6
|
+
import { Transaction } from '../../../transaction';
|
|
7
|
+
|
|
8
|
+
const SendTonButton = ({ recipientAddress, amount, comment, ...props }) => {
|
|
9
|
+
const appKit = useAppKit();
|
|
10
|
+
const { t } = useI18n();
|
|
11
|
+
const createTransferTransaction = useCallback(async () => {
|
|
12
|
+
return createTransferTonTransaction(appKit, {
|
|
13
|
+
recipientAddress,
|
|
14
|
+
amount,
|
|
15
|
+
comment
|
|
16
|
+
});
|
|
17
|
+
}, [appKit, recipientAddress, amount, comment]);
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
19
|
+
Transaction,
|
|
20
|
+
{
|
|
21
|
+
request: createTransferTransaction,
|
|
22
|
+
disabled: !recipientAddress || !amount,
|
|
23
|
+
text: t("balances.sendTon", { amount }),
|
|
24
|
+
...props
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export { SendTonButton };
|
|
30
|
+
//# sourceMappingURL=send-ton-button.mjs.map
|
|
31
|
+
//# sourceMappingURL=send-ton-button.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/features/balances/components/send-ton-button/send-ton-button.tsx"],"names":[],"mappings":";;;;;;;AAuBO,MAAM,aAAA,GAAwC,CAAC,EAAE,gBAAA,EAAkB,QAAQ,OAAA,EAAS,GAAG,OAAM,KAAM;AACtG,EAAA,MAAM,SAAS,SAAA,EAAU;AACzB,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,OAAA,EAAQ;AAEtB,EAAA,MAAM,yBAAA,GAA4B,YAAY,YAAY;AACtD,IAAA,OAAO,6BAA6B,MAAA,EAAQ;AAAA,MACxC,gBAAA;AAAA,MACA,MAAA;AAAA,MACA;AAAA,KACH,CAAA;AAAA,EACL,GAAG,CAAC,MAAA,EAAQ,gBAAA,EAAkB,MAAA,EAAQ,OAAO,CAAC,CAAA;AAE9C,EAAA,uBACI,GAAA;AAAA,IAAC,WAAA;AAAA,IAAA;AAAA,MACG,OAAA,EAAS,yBAAA;AAAA,MACT,QAAA,EAAU,CAAC,gBAAA,IAAoB,CAAC,MAAA;AAAA,MAChC,IAAA,EAAM,CAAA,CAAE,kBAAA,EAAoB,EAAE,QAAQ,CAAA;AAAA,MACrC,GAAG;AAAA;AAAA,GACR;AAER","file":"send-ton-button.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 { useCallback } from 'react';\nimport type { FC } from 'react';\nimport { createTransferTonTransaction } from '@ton/appkit';\n\nimport { useI18n } from '../../../../hooks/use-i18n';\nimport { useAppKit } from '../../../../hooks/use-app-kit';\nimport type { TransactionProps } from '../../../transaction';\nimport { Transaction } from '../../../transaction';\n\nexport interface SendTonButtonProps extends Omit<TransactionProps, 'request'> {\n recipientAddress: string;\n amount: string;\n comment?: string;\n}\n\nexport const SendTonButton: FC<SendTonButtonProps> = ({ recipientAddress, amount, comment, ...props }) => {\n const appKit = useAppKit();\n const { t } = useI18n();\n\n const createTransferTransaction = useCallback(async () => {\n return createTransferTonTransaction(appKit, {\n recipientAddress,\n amount,\n comment,\n });\n }, [appKit, recipientAddress, amount, comment]);\n\n return (\n <Transaction\n request={createTransferTransaction}\n disabled={!recipientAddress || !amount}\n text={t('balances.sendTon', { amount })}\n {...props}\n />\n );\n};\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 SendTonButtonPreview: ({ 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 SendTonButtonPreview>;
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof SendTonButtonPreview>;
|
|
17
|
+
export declare const Default: Story;
|
|
18
|
+
export declare const LargeAmount: Story;
|
|
19
|
+
export declare const Loading: Story;
|
|
20
|
+
export declare const Disabled: Story;
|
|
21
|
+
//# sourceMappingURL=send-ton-button.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-ton-button.stories.d.ts","sourceRoot":"","sources":["../../../../../src/features/balances/components/send-ton-button/send-ton-button.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAIvD,QAAA,MAAM,oBAAoB,GAAI,gCAI3B;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,oBAAoB,CAO3C,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEnD,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAIzB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var button = require('../../../../components/button');
|
|
7
|
+
|
|
8
|
+
const SendTonButtonPreview = ({
|
|
9
|
+
text = "Send TON",
|
|
10
|
+
isLoading = false,
|
|
11
|
+
disabled = false
|
|
12
|
+
}) => {
|
|
13
|
+
return /* @__PURE__ */ jsxRuntime.jsx(button.Button, { disabled: disabled || isLoading, children: isLoading ? "Processing..." : text });
|
|
14
|
+
};
|
|
15
|
+
const meta = {
|
|
16
|
+
title: "Public/Features/Balances/SendTonButton",
|
|
17
|
+
component: SendTonButtonPreview,
|
|
18
|
+
tags: ["autodocs"],
|
|
19
|
+
parameters: {
|
|
20
|
+
layout: "centered"
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var send_ton_button_stories_default = meta;
|
|
24
|
+
const Default = {
|
|
25
|
+
args: {
|
|
26
|
+
text: "Send 1.5 TON"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const LargeAmount = {
|
|
30
|
+
args: {
|
|
31
|
+
text: "Send 999.99 TON"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const Loading = {
|
|
35
|
+
args: {
|
|
36
|
+
isLoading: true
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const Disabled = {
|
|
40
|
+
args: {
|
|
41
|
+
text: "Send 1.5 TON",
|
|
42
|
+
disabled: true
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
exports.Default = Default;
|
|
47
|
+
exports.Disabled = Disabled;
|
|
48
|
+
exports.LargeAmount = LargeAmount;
|
|
49
|
+
exports.Loading = Loading;
|
|
50
|
+
exports.default = send_ton_button_stories_default;
|
|
51
|
+
//# sourceMappingURL=send-ton-button.stories.js.map
|
|
52
|
+
//# sourceMappingURL=send-ton-button.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/features/balances/components/send-ton-button/send-ton-button.stories.tsx"],"names":["Button"],"mappings":";;;;;;;AAYA,MAAM,uBAAuB,CAAC;AAAA,EAC1B,IAAA,GAAO,UAAA;AAAA,EACP,SAAA,GAAY,KAAA;AAAA,EACZ,QAAA,GAAW;AACf,CAAA,KAIM;AACF,EAAA,sCAAQA,aAAA,EAAA,EAAO,QAAA,EAAU,YAAY,SAAA,EAAY,QAAA,EAAA,SAAA,GAAY,kBAAkB,IAAA,EAAK,CAAA;AACxF,CAAA;AAEA,MAAM,IAAA,GAA0C;AAAA,EAC5C,KAAA,EAAO,wCAAA;AAAA,EACP,SAAA,EAAW,oBAAA;AAAA,EACX,IAAA,EAAM,CAAC,UAAU,CAAA;AAAA,EACjB,UAAA,EAAY;AAAA,IACR,MAAA,EAAQ;AAAA;AAEhB,CAAA;AAEA,IAAO,+BAAA,GAAQ;AAIR,MAAM,OAAA,GAAiB;AAAA,EAC1B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM;AAAA;AAEd;AAEO,MAAM,WAAA,GAAqB;AAAA,EAC9B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM;AAAA;AAEd;AAEO,MAAM,OAAA,GAAiB;AAAA,EAC1B,IAAA,EAAM;AAAA,IACF,SAAA,EAAW;AAAA;AAEnB;AAEO,MAAM,QAAA,GAAkB;AAAA,EAC3B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,cAAA;AAAA,IACN,QAAA,EAAU;AAAA;AAElB","file":"send-ton-button.stories.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 { Meta, StoryObj } from '@storybook/react';\n\nimport { Button } from '../../../../components/button';\n\nconst SendTonButtonPreview = ({\n text = 'Send TON',\n isLoading = false,\n disabled = false,\n}: {\n text?: string;\n isLoading?: boolean;\n disabled?: boolean;\n}) => {\n return <Button disabled={disabled || isLoading}>{isLoading ? 'Processing...' : text}</Button>;\n};\n\nconst meta: Meta<typeof SendTonButtonPreview> = {\n title: 'Public/Features/Balances/SendTonButton',\n component: SendTonButtonPreview,\n tags: ['autodocs'],\n parameters: {\n layout: 'centered',\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof SendTonButtonPreview>;\n\nexport const Default: Story = {\n args: {\n text: 'Send 1.5 TON',\n },\n};\n\nexport const LargeAmount: Story = {\n args: {\n text: 'Send 999.99 TON',\n },\n};\n\nexport const Loading: Story = {\n args: {\n isLoading: true,\n },\n};\n\nexport const Disabled: Story = {\n args: {\n text: 'Send 1.5 TON',\n disabled: true,\n },\n};\n"]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Button } from '../../../../components/button';
|
|
3
|
+
|
|
4
|
+
const SendTonButtonPreview = ({
|
|
5
|
+
text = "Send TON",
|
|
6
|
+
isLoading = false,
|
|
7
|
+
disabled = false
|
|
8
|
+
}) => {
|
|
9
|
+
return /* @__PURE__ */ jsx(Button, { disabled: disabled || isLoading, children: isLoading ? "Processing..." : text });
|
|
10
|
+
};
|
|
11
|
+
const meta = {
|
|
12
|
+
title: "Public/Features/Balances/SendTonButton",
|
|
13
|
+
component: SendTonButtonPreview,
|
|
14
|
+
tags: ["autodocs"],
|
|
15
|
+
parameters: {
|
|
16
|
+
layout: "centered"
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
var send_ton_button_stories_default = meta;
|
|
20
|
+
const Default = {
|
|
21
|
+
args: {
|
|
22
|
+
text: "Send 1.5 TON"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const LargeAmount = {
|
|
26
|
+
args: {
|
|
27
|
+
text: "Send 999.99 TON"
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const Loading = {
|
|
31
|
+
args: {
|
|
32
|
+
isLoading: true
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const Disabled = {
|
|
36
|
+
args: {
|
|
37
|
+
text: "Send 1.5 TON",
|
|
38
|
+
disabled: true
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export { Default, Disabled, LargeAmount, Loading, send_ton_button_stories_default as default };
|
|
43
|
+
//# sourceMappingURL=send-ton-button.stories.mjs.map
|
|
44
|
+
//# sourceMappingURL=send-ton-button.stories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/features/balances/components/send-ton-button/send-ton-button.stories.tsx"],"names":[],"mappings":";;;AAYA,MAAM,uBAAuB,CAAC;AAAA,EAC1B,IAAA,GAAO,UAAA;AAAA,EACP,SAAA,GAAY,KAAA;AAAA,EACZ,QAAA,GAAW;AACf,CAAA,KAIM;AACF,EAAA,2BAAQ,MAAA,EAAA,EAAO,QAAA,EAAU,YAAY,SAAA,EAAY,QAAA,EAAA,SAAA,GAAY,kBAAkB,IAAA,EAAK,CAAA;AACxF,CAAA;AAEA,MAAM,IAAA,GAA0C;AAAA,EAC5C,KAAA,EAAO,wCAAA;AAAA,EACP,SAAA,EAAW,oBAAA;AAAA,EACX,IAAA,EAAM,CAAC,UAAU,CAAA;AAAA,EACjB,UAAA,EAAY;AAAA,IACR,MAAA,EAAQ;AAAA;AAEhB,CAAA;AAEA,IAAO,+BAAA,GAAQ;AAIR,MAAM,OAAA,GAAiB;AAAA,EAC1B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM;AAAA;AAEd;AAEO,MAAM,WAAA,GAAqB;AAAA,EAC9B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM;AAAA;AAEd;AAEO,MAAM,OAAA,GAAiB;AAAA,EAC1B,IAAA,EAAM;AAAA,IACF,SAAA,EAAW;AAAA;AAEnB;AAEO,MAAM,QAAA,GAAkB;AAAA,EAC3B,IAAA,EAAM;AAAA,IACF,IAAA,EAAM,cAAA;AAAA,IACN,QAAA,EAAU;AAAA;AAElB","file":"send-ton-button.stories.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 { Meta, StoryObj } from '@storybook/react';\n\nimport { Button } from '../../../../components/button';\n\nconst SendTonButtonPreview = ({\n text = 'Send TON',\n isLoading = false,\n disabled = false,\n}: {\n text?: string;\n isLoading?: boolean;\n disabled?: boolean;\n}) => {\n return <Button disabled={disabled || isLoading}>{isLoading ? 'Processing...' : text}</Button>;\n};\n\nconst meta: Meta<typeof SendTonButtonPreview> = {\n title: 'Public/Features/Balances/SendTonButton',\n component: SendTonButtonPreview,\n tags: ['autodocs'],\n parameters: {\n layout: 'centered',\n },\n};\n\nexport default meta;\n\ntype Story = StoryObj<typeof SendTonButtonPreview>;\n\nexport const Default: Story = {\n args: {\n text: 'Send 1.5 TON',\n },\n};\n\nexport const LargeAmount: Story = {\n args: {\n text: 'Send 999.99 TON',\n },\n};\n\nexport const Loading: Story = {\n args: {\n isLoading: true,\n },\n};\n\nexport const Disabled: Story = {\n args: {\n text: 'Send 1.5 TON',\n disabled: true,\n },\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 { GetBalanceByAddressData, GetBalanceErrorType, GetBalanceByAddressQueryConfig } from '@ton/appkit/queries';
|
|
9
|
+
import type { UseQueryReturnType } from '../../../libs/query';
|
|
10
|
+
export type UseBalanceByAddressParameters<selectData = GetBalanceByAddressData> = GetBalanceByAddressQueryConfig<selectData>;
|
|
11
|
+
export type UseBalanceByAddressReturnType<selectData = GetBalanceByAddressData> = UseQueryReturnType<selectData, GetBalanceErrorType>;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to get balance
|
|
14
|
+
*/
|
|
15
|
+
export declare const useBalanceByAddress: <selectData = GetBalanceByAddressData>(parameters?: UseBalanceByAddressParameters<selectData>) => UseBalanceByAddressReturnType<selectData>;
|
|
16
|
+
//# sourceMappingURL=use-balance-by-address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-balance-by-address.d.ts","sourceRoot":"","sources":["../../../../src/features/balances/hooks/use-balance-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,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 useBalanceByAddress = (parameters = {}) => {
|
|
8
|
+
const appKit = useAppKit.useAppKit();
|
|
9
|
+
return query.useQuery(queries.getBalanceByAddressQueryOptions(appKit, parameters));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.useBalanceByAddress = useBalanceByAddress;
|
|
13
|
+
//# sourceMappingURL=use-balance-by-address.js.map
|
|
14
|
+
//# sourceMappingURL=use-balance-by-address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/balances/hooks/use-balance-by-address.ts"],"names":["useAppKit","useQuery","getBalanceByAddressQueryOptions"],"mappings":";;;;;;AA0BO,MAAM,mBAAA,GAAsB,CAC/B,UAAA,GAAwD,EAAC,KACb;AAC5C,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,cAAA,CAASC,uCAAA,CAAgC,MAAA,EAAQ,UAAU,CAAC,CAAA;AACvE","file":"use-balance-by-address.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 { getBalanceByAddressQueryOptions } from '@ton/appkit/queries';\nimport type { GetBalanceByAddressData, GetBalanceErrorType, GetBalanceByAddressQueryConfig } 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 UseBalanceByAddressParameters<selectData = GetBalanceByAddressData> =\n GetBalanceByAddressQueryConfig<selectData>;\n\nexport type UseBalanceByAddressReturnType<selectData = GetBalanceByAddressData> = UseQueryReturnType<\n selectData,\n GetBalanceErrorType\n>;\n\n/**\n * Hook to get balance\n */\nexport const useBalanceByAddress = <selectData = GetBalanceByAddressData>(\n parameters: UseBalanceByAddressParameters<selectData> = {},\n): UseBalanceByAddressReturnType<selectData> => {\n const appKit = useAppKit();\n\n return useQuery(getBalanceByAddressQueryOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getBalanceByAddressQueryOptions } from '@ton/appkit/queries';
|
|
2
|
+
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
3
|
+
import { useQuery } from '../../../libs/query';
|
|
4
|
+
|
|
5
|
+
const useBalanceByAddress = (parameters = {}) => {
|
|
6
|
+
const appKit = useAppKit();
|
|
7
|
+
return useQuery(getBalanceByAddressQueryOptions(appKit, parameters));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { useBalanceByAddress };
|
|
11
|
+
//# sourceMappingURL=use-balance-by-address.mjs.map
|
|
12
|
+
//# sourceMappingURL=use-balance-by-address.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/balances/hooks/use-balance-by-address.ts"],"names":[],"mappings":";;;;AA0BO,MAAM,mBAAA,GAAsB,CAC/B,UAAA,GAAwD,EAAC,KACb;AAC5C,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,QAAA,CAAS,+BAAA,CAAgC,MAAA,EAAQ,UAAU,CAAC,CAAA;AACvE","file":"use-balance-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 { getBalanceByAddressQueryOptions } from '@ton/appkit/queries';\nimport type { GetBalanceByAddressData, GetBalanceErrorType, GetBalanceByAddressQueryConfig } 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 UseBalanceByAddressParameters<selectData = GetBalanceByAddressData> =\n GetBalanceByAddressQueryConfig<selectData>;\n\nexport type UseBalanceByAddressReturnType<selectData = GetBalanceByAddressData> = UseQueryReturnType<\n selectData,\n GetBalanceErrorType\n>;\n\n/**\n * Hook to get balance\n */\nexport const useBalanceByAddress = <selectData = GetBalanceByAddressData>(\n parameters: UseBalanceByAddressParameters<selectData> = {},\n): UseBalanceByAddressReturnType<selectData> => {\n const appKit = useAppKit();\n\n return useQuery(getBalanceByAddressQueryOptions(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 { GetBalanceByAddressData } from '@ton/appkit/queries';
|
|
9
|
+
import type { UseBalanceByAddressParameters, UseBalanceByAddressReturnType } from './use-balance-by-address';
|
|
10
|
+
export type UseBalanceParameters<selectData = GetBalanceByAddressData> = UseBalanceByAddressParameters<selectData>;
|
|
11
|
+
export type UseBalanceReturnType<selectData = GetBalanceByAddressData> = UseBalanceByAddressReturnType<selectData>;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to get balance of the selected wallet
|
|
14
|
+
*/
|
|
15
|
+
export declare const useBalance: <selectData = GetBalanceByAddressData>(parameters?: UseBalanceParameters<selectData>) => UseBalanceReturnType<selectData>;
|
|
16
|
+
//# sourceMappingURL=use-balance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-balance.d.ts","sourceRoot":"","sources":["../../../../src/features/balances/hooks/use-balance.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,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var useAddress = require('../../wallets/hooks/use-address');
|
|
4
|
+
var useBalanceByAddress = require('./use-balance-by-address');
|
|
5
|
+
|
|
6
|
+
const useBalance = (parameters = {}) => {
|
|
7
|
+
const address = useAddress.useAddress();
|
|
8
|
+
return useBalanceByAddress.useBalanceByAddress({ ...parameters, address });
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.useBalance = useBalance;
|
|
12
|
+
//# sourceMappingURL=use-balance.js.map
|
|
13
|
+
//# sourceMappingURL=use-balance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/balances/hooks/use-balance.ts"],"names":["useAddress","useBalanceByAddress"],"mappings":";;;;;AAqBO,MAAM,UAAA,GAAa,CACtB,UAAA,GAA+C,EAAC,KACb;AACnC,EAAA,MAAM,UAAUA,qBAAA,EAAW;AAE3B,EAAA,OAAOC,uCAAA,CAAoB,EAAE,GAAG,UAAA,EAAY,SAAS,CAAA;AACzD","file":"use-balance.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 { GetBalanceByAddressData } from '@ton/appkit/queries';\n\nimport { useAddress } from '../../wallets/hooks/use-address';\nimport { useBalanceByAddress } from './use-balance-by-address';\nimport type { UseBalanceByAddressParameters, UseBalanceByAddressReturnType } from './use-balance-by-address';\n\nexport type UseBalanceParameters<selectData = GetBalanceByAddressData> = UseBalanceByAddressParameters<selectData>;\n\nexport type UseBalanceReturnType<selectData = GetBalanceByAddressData> = UseBalanceByAddressReturnType<selectData>;\n\n/**\n * Hook to get balance of the selected wallet\n */\nexport const useBalance = <selectData = GetBalanceByAddressData>(\n parameters: UseBalanceParameters<selectData> = {},\n): UseBalanceReturnType<selectData> => {\n const address = useAddress();\n\n return useBalanceByAddress({ ...parameters, address });\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useAddress } from '../../wallets/hooks/use-address';
|
|
2
|
+
import { useBalanceByAddress } from './use-balance-by-address';
|
|
3
|
+
|
|
4
|
+
const useBalance = (parameters = {}) => {
|
|
5
|
+
const address = useAddress();
|
|
6
|
+
return useBalanceByAddress({ ...parameters, address });
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { useBalance };
|
|
10
|
+
//# sourceMappingURL=use-balance.mjs.map
|
|
11
|
+
//# sourceMappingURL=use-balance.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/balances/hooks/use-balance.ts"],"names":[],"mappings":";;;AAqBO,MAAM,UAAA,GAAa,CACtB,UAAA,GAA+C,EAAC,KACb;AACnC,EAAA,MAAM,UAAU,UAAA,EAAW;AAE3B,EAAA,OAAO,mBAAA,CAAoB,EAAE,GAAG,UAAA,EAAY,SAAS,CAAA;AACzD","file":"use-balance.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 { GetBalanceByAddressData } from '@ton/appkit/queries';\n\nimport { useAddress } from '../../wallets/hooks/use-address';\nimport { useBalanceByAddress } from './use-balance-by-address';\nimport type { UseBalanceByAddressParameters, UseBalanceByAddressReturnType } from './use-balance-by-address';\n\nexport type UseBalanceParameters<selectData = GetBalanceByAddressData> = UseBalanceByAddressParameters<selectData>;\n\nexport type UseBalanceReturnType<selectData = GetBalanceByAddressData> = UseBalanceByAddressReturnType<selectData>;\n\n/**\n * Hook to get balance of the selected wallet\n */\nexport const useBalance = <selectData = GetBalanceByAddressData>(\n parameters: UseBalanceParameters<selectData> = {},\n): UseBalanceReturnType<selectData> => {\n const address = useAddress();\n\n return useBalanceByAddress({ ...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
|
+
export * from './components/currency-item';
|
|
9
|
+
export * from './components/balance-badge';
|
|
10
|
+
export * from './components/send-ton-button';
|
|
11
|
+
export * from './components/send-jetton-button';
|
|
12
|
+
export * from './hooks/use-balance';
|
|
13
|
+
export * from './hooks/use-balance-by-address';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/balances/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAEhD,cAAc,qBAAqB,CAAC;AACpC,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var currencyItem = require('./components/currency-item');
|
|
4
|
+
var balanceBadge = require('./components/balance-badge');
|
|
5
|
+
var sendTonButton = require('./components/send-ton-button');
|
|
6
|
+
var sendJettonButton = require('./components/send-jetton-button');
|
|
7
|
+
var useBalance = require('./hooks/use-balance');
|
|
8
|
+
var useBalanceByAddress = require('./hooks/use-balance-by-address');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
Object.keys(currencyItem).forEach(function (k) {
|
|
13
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return currencyItem[k]; }
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
Object.keys(balanceBadge).forEach(function (k) {
|
|
19
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return balanceBadge[k]; }
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
Object.keys(sendTonButton).forEach(function (k) {
|
|
25
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return sendTonButton[k]; }
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
Object.keys(sendJettonButton).forEach(function (k) {
|
|
31
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return sendJettonButton[k]; }
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
Object.keys(useBalance).forEach(function (k) {
|
|
37
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function () { return useBalance[k]; }
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
Object.keys(useBalanceByAddress).forEach(function (k) {
|
|
43
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return useBalanceByAddress[k]; }
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=index.js.map
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './components/currency-item';
|
|
2
|
+
export * from './components/balance-badge';
|
|
3
|
+
export * from './components/send-ton-button';
|
|
4
|
+
export * from './components/send-jetton-button';
|
|
5
|
+
export * from './hooks/use-balance';
|
|
6
|
+
export * from './hooks/use-balance-by-address';
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
8
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
|
|
@@ -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 { GetJettonBalanceByAddressData, GetJettonBalanceErrorType, GetJettonBalanceByAddressQueryConfig } from '@ton/appkit/queries';
|
|
9
|
+
import type { UseQueryReturnType } from '../../../libs/query';
|
|
10
|
+
export type UseJettonBalanceByAddressParameters<selectData = GetJettonBalanceByAddressData> = GetJettonBalanceByAddressQueryConfig<selectData>;
|
|
11
|
+
export type UseJettonBalanceByAddressReturnType<selectData = GetJettonBalanceByAddressData> = UseQueryReturnType<selectData, GetJettonBalanceErrorType>;
|
|
12
|
+
/**
|
|
13
|
+
* Hook to get jetton balance
|
|
14
|
+
*/
|
|
15
|
+
export declare const useJettonBalanceByAddress: <selectData = GetJettonBalanceByAddressData>(parameters?: UseJettonBalanceByAddressParameters<selectData>) => UseJettonBalanceByAddressReturnType<selectData>;
|
|
16
|
+
//# sourceMappingURL=use-jetton-balance-by-address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-jetton-balance-by-address.d.ts","sourceRoot":"","sources":["../../../../src/features/jettons/hooks/use-jetton-balance-by-address.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EACR,6BAA6B,EAC7B,yBAAyB,EACzB,oCAAoC,EACvC,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9D,MAAM,MAAM,mCAAmC,CAAC,UAAU,GAAG,6BAA6B,IACtF,oCAAoC,CAAC,UAAU,CAAC,CAAC;AAErD,MAAM,MAAM,mCAAmC,CAAC,UAAU,GAAG,6BAA6B,IAAI,kBAAkB,CAC5G,UAAU,EACV,yBAAyB,CAC5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,GAAI,UAAU,GAAG,6BAA6B,EAChF,aAAY,mCAAmC,CAAC,UAAU,CAAM,KACjE,mCAAmC,CAAC,UAAU,CAIhD,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 useJettonBalanceByAddress = (parameters = {}) => {
|
|
8
|
+
const appKit = useAppKit.useAppKit();
|
|
9
|
+
return query.useQuery(queries.getJettonBalanceByAddressQueryOptions(appKit, parameters));
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.useJettonBalanceByAddress = useJettonBalanceByAddress;
|
|
13
|
+
//# sourceMappingURL=use-jetton-balance-by-address.js.map
|
|
14
|
+
//# sourceMappingURL=use-jetton-balance-by-address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/jettons/hooks/use-jetton-balance-by-address.ts"],"names":["useAppKit","useQuery","getJettonBalanceByAddressQueryOptions"],"mappings":";;;;;;AA8BO,MAAM,yBAAA,GAA4B,CACrC,UAAA,GAA8D,EAAC,KACb;AAClD,EAAA,MAAM,SAASA,mBAAA,EAAU;AAEzB,EAAA,OAAOC,cAAA,CAASC,6CAAA,CAAsC,MAAA,EAAQ,UAAU,CAAC,CAAA;AAC7E","file":"use-jetton-balance-by-address.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 { getJettonBalanceByAddressQueryOptions } from '@ton/appkit/queries';\nimport type {\n GetJettonBalanceByAddressData,\n GetJettonBalanceErrorType,\n GetJettonBalanceByAddressQueryConfig,\n} 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 UseJettonBalanceByAddressParameters<selectData = GetJettonBalanceByAddressData> =\n GetJettonBalanceByAddressQueryConfig<selectData>;\n\nexport type UseJettonBalanceByAddressReturnType<selectData = GetJettonBalanceByAddressData> = UseQueryReturnType<\n selectData,\n GetJettonBalanceErrorType\n>;\n\n/**\n * Hook to get jetton balance\n */\nexport const useJettonBalanceByAddress = <selectData = GetJettonBalanceByAddressData>(\n parameters: UseJettonBalanceByAddressParameters<selectData> = {},\n): UseJettonBalanceByAddressReturnType<selectData> => {\n const appKit = useAppKit();\n\n return useQuery(getJettonBalanceByAddressQueryOptions(appKit, parameters));\n};\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getJettonBalanceByAddressQueryOptions } from '@ton/appkit/queries';
|
|
2
|
+
import { useAppKit } from '../../../hooks/use-app-kit';
|
|
3
|
+
import { useQuery } from '../../../libs/query';
|
|
4
|
+
|
|
5
|
+
const useJettonBalanceByAddress = (parameters = {}) => {
|
|
6
|
+
const appKit = useAppKit();
|
|
7
|
+
return useQuery(getJettonBalanceByAddressQueryOptions(appKit, parameters));
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { useJettonBalanceByAddress };
|
|
11
|
+
//# sourceMappingURL=use-jetton-balance-by-address.mjs.map
|
|
12
|
+
//# sourceMappingURL=use-jetton-balance-by-address.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/features/jettons/hooks/use-jetton-balance-by-address.ts"],"names":[],"mappings":";;;;AA8BO,MAAM,yBAAA,GAA4B,CACrC,UAAA,GAA8D,EAAC,KACb;AAClD,EAAA,MAAM,SAAS,SAAA,EAAU;AAEzB,EAAA,OAAO,QAAA,CAAS,qCAAA,CAAsC,MAAA,EAAQ,UAAU,CAAC,CAAA;AAC7E","file":"use-jetton-balance-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 { getJettonBalanceByAddressQueryOptions } from '@ton/appkit/queries';\nimport type {\n GetJettonBalanceByAddressData,\n GetJettonBalanceErrorType,\n GetJettonBalanceByAddressQueryConfig,\n} 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 UseJettonBalanceByAddressParameters<selectData = GetJettonBalanceByAddressData> =\n GetJettonBalanceByAddressQueryConfig<selectData>;\n\nexport type UseJettonBalanceByAddressReturnType<selectData = GetJettonBalanceByAddressData> = UseQueryReturnType<\n selectData,\n GetJettonBalanceErrorType\n>;\n\n/**\n * Hook to get jetton balance\n */\nexport const useJettonBalanceByAddress = <selectData = GetJettonBalanceByAddressData>(\n parameters: UseJettonBalanceByAddressParameters<selectData> = {},\n): UseJettonBalanceByAddressReturnType<selectData> => {\n const appKit = useAppKit();\n\n return useQuery(getJettonBalanceByAddressQueryOptions(appKit, parameters));\n};\n"]}
|