thirdweb 5.43.1 → 5.43.3-nightly-c2e86c682868b23f56dfff8b5633a39f94b4db7a-20240803000841
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/dist/cjs/extensions/marketplace/direct-listings/utils.js +1 -0
- package/dist/cjs/extensions/marketplace/direct-listings/utils.js.map +1 -1
- package/dist/cjs/extensions/marketplace/english-auctions/utils.js +1 -0
- package/dist/cjs/extensions/marketplace/english-auctions/utils.js.map +1 -1
- package/dist/cjs/gas/fee-data.js +1 -1
- package/dist/cjs/gas/fee-data.js.map +1 -1
- package/dist/cjs/react/core/hooks/contract/useContractEvents.js +32 -2
- package/dist/cjs/react/core/hooks/contract/useContractEvents.js.map +1 -1
- package/dist/cjs/react/core/hooks/contract/useReadContract.js.map +1 -1
- package/dist/cjs/react/core/hooks/others/useWalletBalance.js +17 -2
- package/dist/cjs/react/core/hooks/others/useWalletBalance.js.map +1 -1
- package/dist/cjs/react/core/hooks/wallets/useActiveAccount.js +1 -0
- package/dist/cjs/react/core/hooks/wallets/useActiveAccount.js.map +1 -1
- package/dist/cjs/react/core/utils/wallet.js +19 -1
- package/dist/cjs/react/core/utils/wallet.js.map +1 -1
- package/dist/cjs/react/web/hooks/transaction/useSendTransaction.js +74 -4
- package/dist/cjs/react/web/hooks/transaction/useSendTransaction.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +17 -2
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Details.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/Details.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +15 -0
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/locale/es.js +8 -8
- package/dist/cjs/react/web/ui/ConnectWallet/locale/es.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/locale/fr.js +114 -0
- package/dist/cjs/react/web/ui/ConnectWallet/locale/fr.js.map +1 -0
- package/dist/cjs/react/web/ui/ConnectWallet/locale/getConnectLocale.js +6 -0
- package/dist/cjs/react/web/ui/ConnectWallet/locale/getConnectLocale.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/locale/ja.js +12 -12
- package/dist/cjs/react/web/ui/ConnectWallet/locale/ja.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/locale/kr.js +114 -0
- package/dist/cjs/react/web/ui/ConnectWallet/locale/kr.js.map +1 -0
- package/dist/cjs/react/web/ui/ConnectWallet/locale/tl.js +12 -12
- package/dist/cjs/react/web/ui/ConnectWallet/locale/tl.js.map +1 -1
- package/dist/cjs/react/web/ui/PayEmbed.js +8 -9
- package/dist/cjs/react/web/ui/PayEmbed.js.map +1 -1
- package/dist/cjs/react/web/wallets/injected/locale/fr.js +27 -0
- package/dist/cjs/react/web/wallets/injected/locale/fr.js.map +1 -0
- package/dist/cjs/react/web/wallets/injected/locale/getInjectedWalletLocale.js +4 -0
- package/dist/cjs/react/web/wallets/injected/locale/getInjectedWalletLocale.js.map +1 -1
- package/dist/cjs/react/web/wallets/injected/locale/ja.js +8 -8
- package/dist/cjs/react/web/wallets/injected/locale/ja.js.map +1 -1
- package/dist/cjs/react/web/wallets/injected/locale/kr.js +27 -0
- package/dist/cjs/react/web/wallets/injected/locale/kr.js.map +1 -0
- package/dist/cjs/react/web/wallets/local/locale/fr.js +44 -0
- package/dist/cjs/react/web/wallets/local/locale/fr.js.map +1 -0
- package/dist/cjs/react/web/wallets/local/locale/getLocalWalletLocale.js +2 -0
- package/dist/cjs/react/web/wallets/local/locale/getLocalWalletLocale.js.map +1 -1
- package/dist/cjs/react/web/wallets/local/locale/ja.js +14 -18
- package/dist/cjs/react/web/wallets/local/locale/ja.js.map +1 -1
- package/dist/cjs/react/web/wallets/local/locale/kr.js +44 -0
- package/dist/cjs/react/web/wallets/local/locale/kr.js.map +1 -0
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js +3 -9
- package/dist/cjs/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/de.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/de.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/en.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/en.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/es.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/es.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/fr.js +56 -0
- package/dist/cjs/react/web/wallets/shared/locale/fr.js.map +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/getConnectLocale.js +4 -0
- package/dist/cjs/react/web/wallets/shared/locale/getConnectLocale.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/ja.js +21 -20
- package/dist/cjs/react/web/wallets/shared/locale/ja.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/kr.js +56 -0
- package/dist/cjs/react/web/wallets/shared/locale/kr.js.map +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/tl.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/tl.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/vi.js +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/vi.js.map +1 -1
- package/dist/cjs/react/web/wallets/smartWallet/locale/fr.js +13 -0
- package/dist/cjs/react/web/wallets/smartWallet/locale/fr.js.map +1 -0
- package/dist/cjs/react/web/wallets/smartWallet/locale/getSmartWalletLocale.js +4 -0
- package/dist/cjs/react/web/wallets/smartWallet/locale/getSmartWalletLocale.js.map +1 -1
- package/dist/cjs/react/web/wallets/smartWallet/locale/ja.js +5 -5
- package/dist/cjs/react/web/wallets/smartWallet/locale/ja.js.map +1 -1
- package/dist/cjs/react/web/wallets/smartWallet/locale/kr.js +13 -0
- package/dist/cjs/react/web/wallets/smartWallet/locale/kr.js.map +1 -0
- package/dist/cjs/react/web/wallets/walletConnect/locale.js +8 -0
- package/dist/cjs/react/web/wallets/walletConnect/locale.js.map +1 -1
- package/dist/cjs/transaction/actions/send-transaction.js +76 -5
- package/dist/cjs/transaction/actions/send-transaction.js.map +1 -1
- package/dist/cjs/transaction/prepare-contract-call.js +18 -13
- package/dist/cjs/transaction/prepare-contract-call.js.map +1 -1
- package/dist/cjs/transaction/read-contract.js +39 -6
- package/dist/cjs/transaction/read-contract.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/version.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/in-app.js +4 -1
- package/dist/cjs/wallets/in-app/web/in-app.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/index.js +1 -0
- package/dist/cjs/wallets/in-app/web/lib/auth/index.js.map +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/oauth.js +1 -1
- package/dist/cjs/wallets/in-app/web/lib/auth/oauth.js.map +1 -1
- package/dist/esm/extensions/marketplace/direct-listings/utils.js +1 -0
- package/dist/esm/extensions/marketplace/direct-listings/utils.js.map +1 -1
- package/dist/esm/extensions/marketplace/english-auctions/utils.js +1 -0
- package/dist/esm/extensions/marketplace/english-auctions/utils.js.map +1 -1
- package/dist/esm/gas/fee-data.js +1 -1
- package/dist/esm/gas/fee-data.js.map +1 -1
- package/dist/esm/react/core/hooks/contract/useContractEvents.js +32 -2
- package/dist/esm/react/core/hooks/contract/useContractEvents.js.map +1 -1
- package/dist/esm/react/core/hooks/contract/useReadContract.js.map +1 -1
- package/dist/esm/react/core/hooks/others/useWalletBalance.js +17 -2
- package/dist/esm/react/core/hooks/others/useWalletBalance.js.map +1 -1
- package/dist/esm/react/core/hooks/wallets/useActiveAccount.js +1 -0
- package/dist/esm/react/core/hooks/wallets/useActiveAccount.js.map +1 -1
- package/dist/esm/react/core/utils/wallet.js +19 -1
- package/dist/esm/react/core/utils/wallet.js.map +1 -1
- package/dist/esm/react/web/hooks/transaction/useSendTransaction.js +74 -4
- package/dist/esm/react/web/hooks/transaction/useSendTransaction.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +17 -2
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Details.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/Details.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +15 -0
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/locale/es.js +8 -8
- package/dist/esm/react/web/ui/ConnectWallet/locale/es.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/locale/fr.js +112 -0
- package/dist/esm/react/web/ui/ConnectWallet/locale/fr.js.map +1 -0
- package/dist/esm/react/web/ui/ConnectWallet/locale/getConnectLocale.js +6 -0
- package/dist/esm/react/web/ui/ConnectWallet/locale/getConnectLocale.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/locale/ja.js +12 -12
- package/dist/esm/react/web/ui/ConnectWallet/locale/ja.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/locale/kr.js +112 -0
- package/dist/esm/react/web/ui/ConnectWallet/locale/kr.js.map +1 -0
- package/dist/esm/react/web/ui/ConnectWallet/locale/tl.js +12 -12
- package/dist/esm/react/web/ui/ConnectWallet/locale/tl.js.map +1 -1
- package/dist/esm/react/web/ui/PayEmbed.js +8 -9
- package/dist/esm/react/web/ui/PayEmbed.js.map +1 -1
- package/dist/esm/react/web/wallets/injected/locale/fr.js +25 -0
- package/dist/esm/react/web/wallets/injected/locale/fr.js.map +1 -0
- package/dist/esm/react/web/wallets/injected/locale/getInjectedWalletLocale.js +4 -0
- package/dist/esm/react/web/wallets/injected/locale/getInjectedWalletLocale.js.map +1 -1
- package/dist/esm/react/web/wallets/injected/locale/ja.js +8 -8
- package/dist/esm/react/web/wallets/injected/locale/ja.js.map +1 -1
- package/dist/esm/react/web/wallets/injected/locale/kr.js +25 -0
- package/dist/esm/react/web/wallets/injected/locale/kr.js.map +1 -0
- package/dist/esm/react/web/wallets/local/locale/fr.js +42 -0
- package/dist/esm/react/web/wallets/local/locale/fr.js.map +1 -0
- package/dist/esm/react/web/wallets/local/locale/getLocalWalletLocale.js +2 -0
- package/dist/esm/react/web/wallets/local/locale/getLocalWalletLocale.js.map +1 -1
- package/dist/esm/react/web/wallets/local/locale/ja.js +14 -18
- package/dist/esm/react/web/wallets/local/locale/ja.js.map +1 -1
- package/dist/esm/react/web/wallets/local/locale/kr.js +42 -0
- package/dist/esm/react/web/wallets/local/locale/kr.js.map +1 -0
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js +3 -9
- package/dist/esm/react/web/wallets/shared/ConnectWalletSocialOptions.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/de.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/de.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/en.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/en.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/es.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/es.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/fr.js +54 -0
- package/dist/esm/react/web/wallets/shared/locale/fr.js.map +1 -0
- package/dist/esm/react/web/wallets/shared/locale/getConnectLocale.js +4 -0
- package/dist/esm/react/web/wallets/shared/locale/getConnectLocale.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/ja.js +21 -20
- package/dist/esm/react/web/wallets/shared/locale/ja.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/kr.js +54 -0
- package/dist/esm/react/web/wallets/shared/locale/kr.js.map +1 -0
- package/dist/esm/react/web/wallets/shared/locale/tl.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/tl.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/vi.js +1 -0
- package/dist/esm/react/web/wallets/shared/locale/vi.js.map +1 -1
- package/dist/esm/react/web/wallets/smartWallet/locale/fr.js +11 -0
- package/dist/esm/react/web/wallets/smartWallet/locale/fr.js.map +1 -0
- package/dist/esm/react/web/wallets/smartWallet/locale/getSmartWalletLocale.js +4 -0
- package/dist/esm/react/web/wallets/smartWallet/locale/getSmartWalletLocale.js.map +1 -1
- package/dist/esm/react/web/wallets/smartWallet/locale/ja.js +5 -5
- package/dist/esm/react/web/wallets/smartWallet/locale/ja.js.map +1 -1
- package/dist/esm/react/web/wallets/smartWallet/locale/kr.js +11 -0
- package/dist/esm/react/web/wallets/smartWallet/locale/kr.js.map +1 -0
- package/dist/esm/react/web/wallets/walletConnect/locale.js +8 -0
- package/dist/esm/react/web/wallets/walletConnect/locale.js.map +1 -1
- package/dist/esm/transaction/actions/send-transaction.js +76 -5
- package/dist/esm/transaction/actions/send-transaction.js.map +1 -1
- package/dist/esm/transaction/prepare-contract-call.js +18 -13
- package/dist/esm/transaction/prepare-contract-call.js.map +1 -1
- package/dist/esm/transaction/read-contract.js +39 -6
- package/dist/esm/transaction/read-contract.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/version.js.map +1 -1
- package/dist/esm/wallets/in-app/web/in-app.js +4 -1
- package/dist/esm/wallets/in-app/web/in-app.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/index.js +1 -0
- package/dist/esm/wallets/in-app/web/lib/auth/index.js.map +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/oauth.js +1 -1
- package/dist/esm/wallets/in-app/web/lib/auth/oauth.js.map +1 -1
- package/dist/types/extensions/marketplace/direct-listings/types.d.ts +1 -0
- package/dist/types/extensions/marketplace/direct-listings/types.d.ts.map +1 -1
- package/dist/types/extensions/marketplace/direct-listings/utils.d.ts.map +1 -1
- package/dist/types/extensions/marketplace/english-auctions/types.d.ts +1 -0
- package/dist/types/extensions/marketplace/english-auctions/types.d.ts.map +1 -1
- package/dist/types/extensions/marketplace/english-auctions/utils.d.ts.map +1 -1
- package/dist/types/react/core/hooks/contract/useContractEvents.d.ts +32 -2
- package/dist/types/react/core/hooks/contract/useContractEvents.d.ts.map +1 -1
- package/dist/types/react/core/hooks/contract/useReadContract.d.ts +28 -6
- package/dist/types/react/core/hooks/contract/useReadContract.d.ts.map +1 -1
- package/dist/types/react/core/hooks/others/useWalletBalance.d.ts +17 -2
- package/dist/types/react/core/hooks/others/useWalletBalance.d.ts.map +1 -1
- package/dist/types/react/core/hooks/wallets/useActiveAccount.d.ts +1 -0
- package/dist/types/react/core/hooks/wallets/useActiveAccount.d.ts.map +1 -1
- package/dist/types/react/core/utils/wallet.d.ts +19 -1
- package/dist/types/react/core/utils/wallet.d.ts.map +1 -1
- package/dist/types/react/web/hooks/transaction/useSendTransaction.d.ts +74 -4
- package/dist/types/react/web/hooks/transaction/useSendTransaction.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts +17 -2
- package/dist/types/react/web/ui/ConnectWallet/ConnectButton.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts +15 -0
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectEmbed.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/locale/fr.d.ts +4 -0
- package/dist/types/react/web/ui/ConnectWallet/locale/fr.d.ts.map +1 -0
- package/dist/types/react/web/ui/ConnectWallet/locale/getConnectLocale.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/locale/kr.d.ts +4 -0
- package/dist/types/react/web/ui/ConnectWallet/locale/kr.d.ts.map +1 -0
- package/dist/types/react/web/ui/PayEmbed.d.ts +1 -0
- package/dist/types/react/web/ui/PayEmbed.d.ts.map +1 -1
- package/dist/types/react/web/ui/types.d.ts +1 -1
- package/dist/types/react/web/ui/types.d.ts.map +1 -1
- package/dist/types/react/web/wallets/injected/locale/fr.d.ts +7 -0
- package/dist/types/react/web/wallets/injected/locale/fr.d.ts.map +1 -0
- package/dist/types/react/web/wallets/injected/locale/getInjectedWalletLocale.d.ts.map +1 -1
- package/dist/types/react/web/wallets/injected/locale/ja.d.ts +2 -2
- package/dist/types/react/web/wallets/injected/locale/ja.d.ts.map +1 -1
- package/dist/types/react/web/wallets/injected/locale/kr.d.ts +7 -0
- package/dist/types/react/web/wallets/injected/locale/kr.d.ts.map +1 -0
- package/dist/types/react/web/wallets/local/locale/fr.d.ts +4 -0
- package/dist/types/react/web/wallets/local/locale/fr.d.ts.map +1 -0
- package/dist/types/react/web/wallets/local/locale/getLocalWalletLocale.d.ts.map +1 -1
- package/dist/types/react/web/wallets/local/locale/ja.d.ts +2 -2
- package/dist/types/react/web/wallets/local/locale/ja.d.ts.map +1 -1
- package/dist/types/react/web/wallets/local/locale/kr.d.ts +4 -0
- package/dist/types/react/web/wallets/local/locale/kr.d.ts.map +1 -0
- package/dist/types/react/web/wallets/shared/ConnectWalletSocialOptions.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/de.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/de.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/en.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/en.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/es.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/es.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/fr.d.ts +55 -0
- package/dist/types/react/web/wallets/shared/locale/fr.d.ts.map +1 -0
- package/dist/types/react/web/wallets/shared/locale/getConnectLocale.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/ja.d.ts +4 -3
- package/dist/types/react/web/wallets/shared/locale/ja.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/kr.d.ts +55 -0
- package/dist/types/react/web/wallets/shared/locale/kr.d.ts.map +1 -0
- package/dist/types/react/web/wallets/shared/locale/tl.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/tl.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/types.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/types.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/vi.d.ts +1 -0
- package/dist/types/react/web/wallets/shared/locale/vi.d.ts.map +1 -1
- package/dist/types/react/web/wallets/smartWallet/locale/fr.d.ts +4 -0
- package/dist/types/react/web/wallets/smartWallet/locale/fr.d.ts.map +1 -0
- package/dist/types/react/web/wallets/smartWallet/locale/getSmartWalletLocale.d.ts.map +1 -1
- package/dist/types/react/web/wallets/smartWallet/locale/ja.d.ts +2 -2
- package/dist/types/react/web/wallets/smartWallet/locale/ja.d.ts.map +1 -1
- package/dist/types/react/web/wallets/smartWallet/locale/kr.d.ts +4 -0
- package/dist/types/react/web/wallets/smartWallet/locale/kr.d.ts.map +1 -0
- package/dist/types/react/web/wallets/walletConnect/locale.d.ts.map +1 -1
- package/dist/types/transaction/actions/send-transaction.d.ts +76 -5
- package/dist/types/transaction/actions/send-transaction.d.ts.map +1 -1
- package/dist/types/transaction/prepare-contract-call.d.ts +18 -13
- package/dist/types/transaction/prepare-contract-call.d.ts.map +1 -1
- package/dist/types/transaction/read-contract.d.ts +39 -6
- package/dist/types/transaction/read-contract.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/version.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/in-app.d.ts +4 -1
- package/dist/types/wallets/in-app/web/in-app.d.ts.map +1 -1
- package/dist/types/wallets/in-app/web/lib/auth/index.d.ts +1 -0
- package/dist/types/wallets/in-app/web/lib/auth/index.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/extensions/marketplace/direct-listings/types.ts +1 -0
- package/src/extensions/marketplace/direct-listings/utils.ts +1 -0
- package/src/extensions/marketplace/english-auctions/types.ts +1 -0
- package/src/extensions/marketplace/english-auctions/utils.ts +1 -0
- package/src/gas/fee-data.ts +1 -1
- package/src/react/core/hooks/contract/useContractEvents.ts +32 -2
- package/src/react/core/hooks/contract/useReadContract.ts +28 -6
- package/src/react/core/hooks/others/useWalletBalance.ts +17 -2
- package/src/react/core/hooks/wallets/useActiveAccount.ts +1 -0
- package/src/react/core/utils/wallet.ts +19 -1
- package/src/react/web/hooks/transaction/useSendTransaction.tsx +74 -4
- package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +17 -2
- package/src/react/web/ui/ConnectWallet/Details.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +15 -0
- package/src/react/web/ui/ConnectWallet/locale/es.ts +8 -8
- package/src/react/web/ui/ConnectWallet/locale/fr.ts +118 -0
- package/src/react/web/ui/ConnectWallet/locale/getConnectLocale.ts +6 -0
- package/src/react/web/ui/ConnectWallet/locale/ja.ts +12 -12
- package/src/react/web/ui/ConnectWallet/locale/kr.ts +114 -0
- package/src/react/web/ui/ConnectWallet/locale/tl.ts +12 -12
- package/src/react/web/ui/PayEmbed-disconnected.test.tsx +5 -3
- package/src/react/web/ui/PayEmbed.test.tsx +17 -16
- package/src/react/web/ui/PayEmbed.tsx +9 -4
- package/src/react/web/ui/types.ts +3 -1
- package/src/react/web/wallets/injected/locale/fr.ts +27 -0
- package/src/react/web/wallets/injected/locale/getInjectedWalletLocale.ts +4 -0
- package/src/react/web/wallets/injected/locale/ja.ts +8 -10
- package/src/react/web/wallets/injected/locale/kr.ts +25 -0
- package/src/react/web/wallets/local/locale/fr.ts +51 -0
- package/src/react/web/wallets/local/locale/getLocalWalletLocale.ts +2 -0
- package/src/react/web/wallets/local/locale/ja.ts +14 -20
- package/src/react/web/wallets/local/locale/kr.ts +47 -0
- package/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx +3 -6
- package/src/react/web/wallets/shared/locale/de.ts +1 -0
- package/src/react/web/wallets/shared/locale/en.ts +1 -0
- package/src/react/web/wallets/shared/locale/es.ts +1 -0
- package/src/react/web/wallets/shared/locale/fr.ts +59 -0
- package/src/react/web/wallets/shared/locale/getConnectLocale.ts +4 -0
- package/src/react/web/wallets/shared/locale/ja.ts +22 -21
- package/src/react/web/wallets/shared/locale/kr.ts +55 -0
- package/src/react/web/wallets/shared/locale/tl.ts +1 -0
- package/src/react/web/wallets/shared/locale/types.ts +1 -0
- package/src/react/web/wallets/shared/locale/vi.ts +1 -0
- package/src/react/web/wallets/smartWallet/locale/fr.ts +13 -0
- package/src/react/web/wallets/smartWallet/locale/getSmartWalletLocale.ts +4 -0
- package/src/react/web/wallets/smartWallet/locale/ja.ts +5 -7
- package/src/react/web/wallets/smartWallet/locale/kr.ts +11 -0
- package/src/react/web/wallets/walletConnect/locale.ts +9 -0
- package/src/transaction/actions/send-transaction.ts +76 -5
- package/src/transaction/prepare-contract-call.ts +18 -13
- package/src/transaction/read-contract.ts +39 -6
- package/src/version.ts +1 -1
- package/src/wallets/in-app/web/in-app.ts +4 -1
- package/src/wallets/in-app/web/lib/auth/index.ts +1 -0
- package/src/wallets/in-app/web/lib/auth/oauth.ts +1 -1
- package/src/wallets/smart/smart-wallet-integration.test.ts +6 -0
@@ -87,14 +87,29 @@ const TW_CONNECT_WALLET = "tw-connect-wallet";
|
|
87
87
|
* ### Customizing the default chain to connect to
|
88
88
|
*
|
89
89
|
* ```tsx
|
90
|
-
* import {
|
90
|
+
* import { sepolia } from "thirdweb/chains";
|
91
91
|
*
|
92
92
|
* <ConnectButton
|
93
93
|
* client={client}
|
94
|
-
* chain={
|
94
|
+
* chain={sepolia}
|
95
95
|
* />
|
96
96
|
* ```
|
97
97
|
*
|
98
|
+
* ### Enabling Account Abstraction
|
99
|
+
*
|
100
|
+
* By passing the `accountAbstraction` prop, ALL connected wallets will be converted to smart accounts.
|
101
|
+
* And by setting `sponsorGas` to `true`, all transactions done with those smart accounts will be sponsored.
|
102
|
+
*
|
103
|
+
* ```tsx
|
104
|
+
* <ConnectButton
|
105
|
+
* client={client}
|
106
|
+
* accountAbstraction={{
|
107
|
+
* chain: sepolia,
|
108
|
+
* sponsorGas: true,
|
109
|
+
* }}
|
110
|
+
* />;
|
111
|
+
* ```
|
112
|
+
*
|
98
113
|
* ### Enabling sign in with ethereum (Auth)
|
99
114
|
*
|
100
115
|
* ```tsx
|
@@ -639,7 +639,7 @@ function DetailsModal(props: {
|
|
639
639
|
if (screen === "transactions") {
|
640
640
|
content = (
|
641
641
|
<TransactionsScreen
|
642
|
-
title=
|
642
|
+
title={locale.buy}
|
643
643
|
onBack={() => setScreen("main")}
|
644
644
|
closeModal={closeModal}
|
645
645
|
locale={locale}
|
@@ -812,7 +812,7 @@ function DetailsModal(props: {
|
|
812
812
|
else if (screen === "buy") {
|
813
813
|
content = (
|
814
814
|
<LazyBuyScreen
|
815
|
-
title=
|
815
|
+
title={locale.buy}
|
816
816
|
isEmbed={false}
|
817
817
|
client={client}
|
818
818
|
onBack={() => setScreen("main")}
|
@@ -96,6 +96,21 @@ import { useSetupScreen } from "./screen.js";
|
|
96
96
|
* />
|
97
97
|
* ```
|
98
98
|
*
|
99
|
+
* ### Enabling Account Abstraction
|
100
|
+
*
|
101
|
+
* By passing the `accountAbstraction` prop, ALL connected wallets will be converted to smart accounts.
|
102
|
+
* And by setting `sponsorGas` to `true`, all transactions done with those smart accounts will be sponsored.
|
103
|
+
*
|
104
|
+
* ```tsx
|
105
|
+
* <ConnectEmbed
|
106
|
+
* client={client}
|
107
|
+
* accountAbstraction={{
|
108
|
+
* chain: sepolia,
|
109
|
+
* sponsorGas: true,
|
110
|
+
* }}
|
111
|
+
* />;
|
112
|
+
* ```
|
113
|
+
*
|
99
114
|
* ### Enabling sign in with ethereum (Auth)
|
100
115
|
*
|
101
116
|
* ```tsx
|
@@ -17,7 +17,7 @@ const connectWalletLocalEs: ConnectLocale = {
|
|
17
17
|
guest: "Invitado",
|
18
18
|
send: "Enviar",
|
19
19
|
receive: "Recibir",
|
20
|
-
buy: "
|
20
|
+
buy: "Comprar",
|
21
21
|
transactions: "Transactions",
|
22
22
|
payTransactions: "Fiat Transactions",
|
23
23
|
walletTransactions: "Wallet Transactions",
|
@@ -103,15 +103,15 @@ const connectWalletLocalEs: ConnectLocale = {
|
|
103
103
|
},
|
104
104
|
},
|
105
105
|
manageWallet: {
|
106
|
-
title: "
|
107
|
-
connectAnApp: "
|
108
|
-
exportPrivateKey: "
|
106
|
+
title: "Gestionar Cartera",
|
107
|
+
connectAnApp: "Conectar una Aplicación",
|
108
|
+
exportPrivateKey: "Exportar Clave Privada",
|
109
109
|
},
|
110
110
|
viewFunds: {
|
111
|
-
title: "
|
112
|
-
viewNFTs: "
|
113
|
-
viewTokens: "
|
114
|
-
viewAssets: "
|
111
|
+
title: "Ver Fondos",
|
112
|
+
viewNFTs: "Ver NFTs",
|
113
|
+
viewTokens: "Ver Tokens",
|
114
|
+
viewAssets: "Ver Activos",
|
115
115
|
},
|
116
116
|
};
|
117
117
|
|
@@ -0,0 +1,118 @@
|
|
1
|
+
import type { ConnectLocale } from "./types.js";
|
2
|
+
|
3
|
+
const connectLocaleFr: ConnectLocale = {
|
4
|
+
id: "fr_FR",
|
5
|
+
signIn: "S'authentifier",
|
6
|
+
defaultButtonTitle: "Se Connecter",
|
7
|
+
connecting: "Connexion",
|
8
|
+
switchNetwork: "Changer de réseau",
|
9
|
+
switchingNetwork: "Changement de réseau",
|
10
|
+
defaultModalTitle: "Se connecter",
|
11
|
+
recommended: "Recommandé",
|
12
|
+
installed: "Installé",
|
13
|
+
buy: "Acheter",
|
14
|
+
continueAsGuest: "Continuer en tant qu'invité",
|
15
|
+
connectAWallet: "Connecter un portefeuille",
|
16
|
+
newToWallets: "En savoir plus sur les portefeuilles",
|
17
|
+
getStarted: "Commencer",
|
18
|
+
guest: "Invité",
|
19
|
+
send: "Envoyer",
|
20
|
+
receive: "Recevoir",
|
21
|
+
currentNetwork: "Réseau actuel",
|
22
|
+
switchAccount: "Changer de compte",
|
23
|
+
requestTestnetFunds: "Demander des fonds Testnet",
|
24
|
+
transactions: "Transactions",
|
25
|
+
payTransactions: "Transactions en Euros",
|
26
|
+
walletTransactions: "Transactions du portefeuille",
|
27
|
+
viewAllTransactions: "Voir toutes les transactions",
|
28
|
+
backupWallet: "Sauvegarder le portefeuille",
|
29
|
+
guestWalletWarning:
|
30
|
+
"Ceci est un portefeuille invité temporaire. Sauvegardez le portefeuille si vous ne voulez pas perdre l'accès",
|
31
|
+
switchTo: "Passer à", // Used in "Switch to <Wallet-Name>"
|
32
|
+
connectedToSmartWallet: "Compte intelligent",
|
33
|
+
confirmInWallet: "Confirmer dans le portefeuille",
|
34
|
+
disconnectWallet: "Déconnecter le portefeuille",
|
35
|
+
copyAddress: "Copier l'adresse",
|
36
|
+
personalWallet: "Portefeuille personnel",
|
37
|
+
smartWallet: "Portefeuille intelligent",
|
38
|
+
or: "OU",
|
39
|
+
goBackButton: "Retour",
|
40
|
+
welcomeScreen: {
|
41
|
+
defaultTitle: "Votre porte d'entrée vers le monde décentralisé",
|
42
|
+
defaultSubtitle: "Connectez un portefeuille pour commencer",
|
43
|
+
},
|
44
|
+
agreement: {
|
45
|
+
prefix: "En vous connectant, vous acceptez les",
|
46
|
+
termsOfService: "Conditions d'utilisation",
|
47
|
+
and: "&",
|
48
|
+
privacyPolicy: "Politique de confidentialité",
|
49
|
+
},
|
50
|
+
networkSelector: {
|
51
|
+
title: "Sélectionner un réseau",
|
52
|
+
mainnets: "Mainnets",
|
53
|
+
testnets: "Testnets",
|
54
|
+
allNetworks: "Tous",
|
55
|
+
addCustomNetwork: "Ajouter un réseau personnalisé",
|
56
|
+
inputPlaceholder: "Rechercher un réseau ou un ID de chaîne",
|
57
|
+
categoryLabel: {
|
58
|
+
recentlyUsed: "Récemment utilisé",
|
59
|
+
popular: "Populaire",
|
60
|
+
others: "Tous les réseaux",
|
61
|
+
},
|
62
|
+
loading: "Chargement",
|
63
|
+
failedToSwitch: "Échec du changement de réseau",
|
64
|
+
},
|
65
|
+
receiveFundsScreen: {
|
66
|
+
title: "Recevoir des fonds",
|
67
|
+
instruction:
|
68
|
+
"Copiez l'adresse du portefeuille pour envoyer des fonds à ce portefeuille",
|
69
|
+
},
|
70
|
+
sendFundsScreen: {
|
71
|
+
title: "Envoyer des fonds",
|
72
|
+
submitButton: "Envoyer",
|
73
|
+
token: "Token",
|
74
|
+
sendTo: "Envoyer à",
|
75
|
+
amount: "Montant",
|
76
|
+
successMessage: "Transaction réussie",
|
77
|
+
invalidAddress: "Adresse invalide",
|
78
|
+
noTokensFound: "Aucun token trouvé",
|
79
|
+
searchToken: "Rechercher ou coller l'adresse du token",
|
80
|
+
transactionFailed: "Échec de la transaction",
|
81
|
+
transactionRejected: "Transaction rejetée",
|
82
|
+
insufficientFunds: "Fonds insuffisants",
|
83
|
+
selectTokenTitle: "Sélectionner un token",
|
84
|
+
sending: "Envoi en cours",
|
85
|
+
},
|
86
|
+
signatureScreen: {
|
87
|
+
instructionScreen: {
|
88
|
+
title: "Se connecter",
|
89
|
+
instruction:
|
90
|
+
"Veuillez signer la demande de message dans votre portefeuille pour continuer",
|
91
|
+
signInButton: "Se connecter",
|
92
|
+
disconnectWallet: "Déconnecter le portefeuille",
|
93
|
+
},
|
94
|
+
signingScreen: {
|
95
|
+
title: "Connexion en cours",
|
96
|
+
prompt: "Signez la demande de signature dans votre portefeuille",
|
97
|
+
promptForSafe:
|
98
|
+
"Signez la demande de signature dans votre portefeuille et approuvez la transaction dans Safe",
|
99
|
+
approveTransactionInSafe: "Approuvez la transaction dans Safe",
|
100
|
+
tryAgain: "Réessayer",
|
101
|
+
failedToSignIn: "Échec de la connexion",
|
102
|
+
inProgress: "En attente de confirmation",
|
103
|
+
},
|
104
|
+
},
|
105
|
+
manageWallet: {
|
106
|
+
title: "Gérer le portefeuille",
|
107
|
+
connectAnApp: "Connecter une application",
|
108
|
+
exportPrivateKey: "Exporter la clé privée",
|
109
|
+
},
|
110
|
+
viewFunds: {
|
111
|
+
title: "Voir les fonds",
|
112
|
+
viewNFTs: "Voir les NFT",
|
113
|
+
viewTokens: "Voir les tokens",
|
114
|
+
viewAssets: "Voir les actifs",
|
115
|
+
},
|
116
|
+
};
|
117
|
+
|
118
|
+
export default connectLocaleFr;
|
@@ -18,6 +18,12 @@ export async function getConnectLocale(localeId: LocaleId) {
|
|
18
18
|
case "de_DE": {
|
19
19
|
return (await import("./de.js")).default;
|
20
20
|
}
|
21
|
+
case "ko_KR": {
|
22
|
+
return (await import("./kr.js")).default;
|
23
|
+
}
|
24
|
+
case "fr_FR": {
|
25
|
+
return (await import("./fr.js")).default;
|
26
|
+
}
|
21
27
|
default: {
|
22
28
|
return (await import("./en.js")).default;
|
23
29
|
}
|
@@ -20,11 +20,11 @@ const connectWalletLocalJa: ConnectLocale = {
|
|
20
20
|
currentNetwork: "現在のネットワーク",
|
21
21
|
switchAccount: "アカウントを切り替える",
|
22
22
|
requestTestnetFunds: "テストネットの資金をリクエストする",
|
23
|
-
buy: "
|
24
|
-
transactions: "
|
25
|
-
payTransactions: "
|
26
|
-
walletTransactions: "
|
27
|
-
viewAllTransactions: "
|
23
|
+
buy: "購入",
|
24
|
+
transactions: "取引",
|
25
|
+
payTransactions: "支払い取引",
|
26
|
+
walletTransactions: "ウォレット取引",
|
27
|
+
viewAllTransactions: "全ての取引を表示",
|
28
28
|
backupWallet: "ウォレットのバックアップ",
|
29
29
|
guestWalletWarning:
|
30
30
|
"これは一時的なゲストウォレットです。アクセスできなくなることを防ぐため、バックアップをしてください",
|
@@ -103,15 +103,15 @@ const connectWalletLocalJa: ConnectLocale = {
|
|
103
103
|
},
|
104
104
|
},
|
105
105
|
manageWallet: {
|
106
|
-
title: "
|
107
|
-
connectAnApp: "
|
108
|
-
exportPrivateKey: "
|
106
|
+
title: "ウォレットを管理",
|
107
|
+
connectAnApp: "アプリを接続",
|
108
|
+
exportPrivateKey: "秘密鍵をエクスポート",
|
109
109
|
},
|
110
110
|
viewFunds: {
|
111
|
-
title: "
|
112
|
-
viewNFTs: "
|
113
|
-
viewTokens: "
|
114
|
-
viewAssets: "
|
111
|
+
title: "資金を表示",
|
112
|
+
viewNFTs: "NFTを表示",
|
113
|
+
viewTokens: "トークンを表示",
|
114
|
+
viewAssets: "資産を表示",
|
115
115
|
},
|
116
116
|
};
|
117
117
|
|
@@ -0,0 +1,114 @@
|
|
1
|
+
import type { ConnectLocale } from "./types.js";
|
2
|
+
const connectLocaleKr: ConnectLocale = {
|
3
|
+
id: "ko_KR",
|
4
|
+
signIn: "로그인",
|
5
|
+
defaultButtonTitle: "지갑 연결",
|
6
|
+
connecting: "연결 중",
|
7
|
+
switchNetwork: "네트워크 전환",
|
8
|
+
switchingNetwork: "네트워크 전환 중",
|
9
|
+
defaultModalTitle: "로그인",
|
10
|
+
recommended: "추천",
|
11
|
+
installed: "설치됨",
|
12
|
+
buy: "구매",
|
13
|
+
continueAsGuest: "게스트로 계속",
|
14
|
+
connectAWallet: "지갑 연결",
|
15
|
+
newToWallets: "지갑 사용이 처음이신가요?",
|
16
|
+
getStarted: "시작하기",
|
17
|
+
guest: "게스트",
|
18
|
+
send: "보내기",
|
19
|
+
receive: "받기",
|
20
|
+
currentNetwork: "현재 네트워크",
|
21
|
+
switchAccount: "계정 전환",
|
22
|
+
requestTestnetFunds: "테스트넷 자금 요청",
|
23
|
+
transactions: "거래",
|
24
|
+
payTransactions: "법정화폐 거래",
|
25
|
+
walletTransactions: "지갑 거래",
|
26
|
+
viewAllTransactions: "모든 거래 보기",
|
27
|
+
backupWallet: "지갑 백업",
|
28
|
+
guestWalletWarning:
|
29
|
+
"이것은 임시 게스트 지갑입니다. 접근을 잃지 않으려면 지갑을 백업하십시오",
|
30
|
+
switchTo: "전환", // Used in "<Wallet-Name> 으로 전환"
|
31
|
+
connectedToSmartWallet: "스마트 계정",
|
32
|
+
confirmInWallet: "지갑에서 확인",
|
33
|
+
disconnectWallet: "지갑 연결 해제",
|
34
|
+
copyAddress: "주소 복사",
|
35
|
+
personalWallet: "개인 지갑",
|
36
|
+
smartWallet: "스마트 지갑",
|
37
|
+
or: "또는",
|
38
|
+
goBackButton: "뒤로",
|
39
|
+
welcomeScreen: {
|
40
|
+
defaultTitle: "분산된 세계로의 게이트웨이",
|
41
|
+
defaultSubtitle: "시작하려면 지갑을 연결하십시오",
|
42
|
+
},
|
43
|
+
agreement: {
|
44
|
+
prefix: "연결함으로써 귀하는 다음에 동의하게 됩니다",
|
45
|
+
termsOfService: "서비스 약관",
|
46
|
+
and: "&",
|
47
|
+
privacyPolicy: "개인정보 보호정책",
|
48
|
+
},
|
49
|
+
networkSelector: {
|
50
|
+
title: "네트워크 선택",
|
51
|
+
mainnets: "메인넷",
|
52
|
+
testnets: "테스트넷",
|
53
|
+
allNetworks: "모두",
|
54
|
+
addCustomNetwork: "맞춤 네트워크 추가",
|
55
|
+
inputPlaceholder: "네트워크 또는 체인 ID 검색",
|
56
|
+
categoryLabel: {
|
57
|
+
recentlyUsed: "최근 사용",
|
58
|
+
popular: "인기",
|
59
|
+
others: "모든 네트워크",
|
60
|
+
},
|
61
|
+
loading: "로딩 중",
|
62
|
+
failedToSwitch: "네트워크 전환 실패",
|
63
|
+
},
|
64
|
+
receiveFundsScreen: {
|
65
|
+
title: "자금 수신",
|
66
|
+
instruction: "자금을 이 지갑으로 보내려면 지갑 주소를 복사하십시오",
|
67
|
+
},
|
68
|
+
sendFundsScreen: {
|
69
|
+
title: "자금 송금",
|
70
|
+
submitButton: "보내기",
|
71
|
+
token: "토큰",
|
72
|
+
sendTo: "보낼 곳",
|
73
|
+
amount: "금액",
|
74
|
+
successMessage: "거래 성공",
|
75
|
+
invalidAddress: "유효하지 않은 주소",
|
76
|
+
noTokensFound: "토큰을 찾을 수 없음",
|
77
|
+
searchToken: "토큰 주소 검색 또는 붙여넣기",
|
78
|
+
transactionFailed: "거래 실패",
|
79
|
+
transactionRejected: "거래 거부됨",
|
80
|
+
insufficientFunds: "자금 부족",
|
81
|
+
selectTokenTitle: "토큰 선택",
|
82
|
+
sending: "보내는 중",
|
83
|
+
},
|
84
|
+
signatureScreen: {
|
85
|
+
instructionScreen: {
|
86
|
+
title: "로그인",
|
87
|
+
instruction: "계속하려면 지갑에서 메시지 요청에 서명하십시오",
|
88
|
+
signInButton: "로그인",
|
89
|
+
disconnectWallet: "지갑 연결 해제",
|
90
|
+
},
|
91
|
+
signingScreen: {
|
92
|
+
title: "로그인 중",
|
93
|
+
prompt: "지갑에서 서명 요청에 서명하십시오",
|
94
|
+
promptForSafe:
|
95
|
+
"지갑에서 서명 요청에 서명하고 Safe에서 거래를 승인하십시오",
|
96
|
+
approveTransactionInSafe: "Safe에서 거래 승인",
|
97
|
+
tryAgain: "다시 시도",
|
98
|
+
failedToSignIn: "로그인 실패",
|
99
|
+
inProgress: "확인 대기 중",
|
100
|
+
},
|
101
|
+
},
|
102
|
+
manageWallet: {
|
103
|
+
title: "지갑 관리",
|
104
|
+
connectAnApp: "앱 연결",
|
105
|
+
exportPrivateKey: "개인 키 내보내기",
|
106
|
+
},
|
107
|
+
viewFunds: {
|
108
|
+
title: "자금 보기",
|
109
|
+
viewNFTs: "NFT 보기",
|
110
|
+
viewTokens: "토큰 보기",
|
111
|
+
viewAssets: "자산 보기",
|
112
|
+
},
|
113
|
+
};
|
114
|
+
export default connectLocaleKr;
|
@@ -15,11 +15,11 @@ const connectWalletLocalTl: ConnectLocale = {
|
|
15
15
|
newToWallets: "Bago sa mga wallet?",
|
16
16
|
getStarted: "Simulan",
|
17
17
|
guest: "Guest",
|
18
|
-
buy: "
|
19
|
-
transactions: "
|
20
|
-
payTransactions: "Fiat
|
21
|
-
walletTransactions: "Wallet
|
22
|
-
viewAllTransactions: "
|
18
|
+
buy: "Bumili",
|
19
|
+
transactions: "Mga Transaksyon",
|
20
|
+
payTransactions: "Mga Transaksyong Fiat",
|
21
|
+
walletTransactions: "Mga Transaksyon sa Wallet",
|
22
|
+
viewAllTransactions: "Tingnan ang Lahat ng Transaksyon",
|
23
23
|
send: "Ipadala",
|
24
24
|
receive: "Matanggap",
|
25
25
|
currentNetwork: "Kasalukuyang network",
|
@@ -103,15 +103,15 @@ const connectWalletLocalTl: ConnectLocale = {
|
|
103
103
|
},
|
104
104
|
},
|
105
105
|
manageWallet: {
|
106
|
-
title: "
|
107
|
-
connectAnApp: "
|
108
|
-
exportPrivateKey: "
|
106
|
+
title: "Pamahalaan ang Wallet",
|
107
|
+
connectAnApp: "Ikonekta ang isang App",
|
108
|
+
exportPrivateKey: "I-export ang Pribadong Susi",
|
109
109
|
},
|
110
110
|
viewFunds: {
|
111
|
-
title: "
|
112
|
-
viewNFTs: "
|
113
|
-
viewTokens: "
|
114
|
-
viewAssets: "
|
111
|
+
title: "Tingnan ang Pondo",
|
112
|
+
viewNFTs: "Tingnan ang mga NFT",
|
113
|
+
viewTokens: "Tingnan ang mga Token",
|
114
|
+
viewAssets: "Tingnan ang mga Asset",
|
115
115
|
},
|
116
116
|
};
|
117
117
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
2
|
-
import { render } from "../../../../test/src/react-render.js";
|
2
|
+
import { render, waitFor } from "../../../../test/src/react-render.js";
|
3
3
|
import { TEST_CLIENT } from "../../../../test/src/test-clients.js";
|
4
4
|
import { PayEmbed } from "./PayEmbed.js";
|
5
5
|
|
@@ -8,8 +8,10 @@ describe.runIf(process.env.TW_SECRET_KEY)(
|
|
8
8
|
() => {
|
9
9
|
it("renders a connect wallet button when a wallet is not connected", async () => {
|
10
10
|
const { findByText } = render(<PayEmbed client={TEST_CLIENT} />);
|
11
|
-
|
12
|
-
|
11
|
+
waitFor(async () => {
|
12
|
+
const connectWalletButton = await findByText("Connect Wallet");
|
13
|
+
expect(connectWalletButton).toBeInTheDocument();
|
14
|
+
});
|
13
15
|
});
|
14
16
|
},
|
15
17
|
);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { userEvent } from "@testing-library/user-event";
|
2
2
|
import { describe, expect, it } from "vitest";
|
3
|
-
import { render } from "../../../../test/src/react-render.js";
|
3
|
+
import { render, waitFor } from "../../../../test/src/react-render.js";
|
4
4
|
import { TEST_CLIENT } from "../../../../test/src/test-clients.js";
|
5
5
|
import { PayEmbed } from "./PayEmbed.js";
|
6
6
|
|
@@ -11,24 +11,25 @@ describe.runIf(!!process.env.TW_SECRET_KEY)(
|
|
11
11
|
const { findByRole } = render(<PayEmbed client={TEST_CLIENT} />, {
|
12
12
|
setConnectedWallet: true,
|
13
13
|
});
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
14
|
+
waitFor(async () => {
|
15
|
+
const connectWalletButton: HTMLElement = await findByRole("button", {
|
16
|
+
name: "Continue",
|
17
|
+
});
|
18
|
+
// continue button is disabled when no amount is entered
|
19
|
+
expect(connectWalletButton).toBeDisabled();
|
20
|
+
// user enters an amount
|
21
|
+
const tokenInput = await findByRole("textbox");
|
22
|
+
await userEvent.type(tokenInput, "1");
|
23
23
|
|
24
|
-
|
25
|
-
|
24
|
+
// continue button is enabled
|
25
|
+
expect(connectWalletButton).not.toBeDisabled();
|
26
26
|
|
27
|
-
|
28
|
-
|
27
|
+
// user clears the amount
|
28
|
+
await userEvent.clear(tokenInput);
|
29
29
|
|
30
|
-
|
31
|
-
|
30
|
+
// continue button is disabled again
|
31
|
+
expect(connectWalletButton).toBeDisabled();
|
32
|
+
});
|
32
33
|
});
|
33
34
|
},
|
34
35
|
);
|
@@ -126,6 +126,8 @@ export type PayEmbedProps = {
|
|
126
126
|
connectOptions?: PayEmbedConnectOptions;
|
127
127
|
|
128
128
|
style?: React.CSSProperties;
|
129
|
+
|
130
|
+
className?: string;
|
129
131
|
};
|
130
132
|
|
131
133
|
/**
|
@@ -184,10 +186,9 @@ export function PayEmbed(props: PayEmbedProps) {
|
|
184
186
|
</div>
|
185
187
|
);
|
186
188
|
} else {
|
187
|
-
// show and hide screens with CSS to not lose state when switching between them
|
188
189
|
content = (
|
189
190
|
<>
|
190
|
-
|
191
|
+
{screen === "buy" && (
|
191
192
|
<BuyScreen
|
192
193
|
title={metadata?.name || "Buy"}
|
193
194
|
isEmbed={true}
|
@@ -208,7 +209,7 @@ export function PayEmbed(props: PayEmbedProps) {
|
|
208
209
|
connectOptions={props.connectOptions}
|
209
210
|
onBack={undefined}
|
210
211
|
/>
|
211
|
-
|
212
|
+
)}
|
212
213
|
|
213
214
|
{screen === "execute-tx" &&
|
214
215
|
props.payOptions?.mode === "transaction" &&
|
@@ -230,7 +231,11 @@ export function PayEmbed(props: PayEmbedProps) {
|
|
230
231
|
|
231
232
|
return (
|
232
233
|
<CustomThemeProvider theme={theme}>
|
233
|
-
<EmbedContainer
|
234
|
+
<EmbedContainer
|
235
|
+
modalSize="compact"
|
236
|
+
style={props.style}
|
237
|
+
className={props.className}
|
238
|
+
>
|
234
239
|
<DynamicHeight>{content}</DynamicHeight>
|
235
240
|
</EmbedContainer>
|
236
241
|
</CustomThemeProvider>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import type { InjectedWalletLocale } from "./types.js";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
const injectedWalletLocaleEn = (wallet: string): InjectedWalletLocale => ({
|
7
|
+
connectionScreen: {
|
8
|
+
inProgress: "En attente de confirmation",
|
9
|
+
failed: "Connexion échouée",
|
10
|
+
instruction: `Acceptez la demande de connexion dans ${wallet}`,
|
11
|
+
retry: "Réessayer",
|
12
|
+
},
|
13
|
+
getStartedScreen: {
|
14
|
+
instruction: `Scannez le code QR pour télécharger l'application ${wallet}`,
|
15
|
+
},
|
16
|
+
scanScreen: {
|
17
|
+
instruction: `Scannez le code QR avec l'application ${wallet} pour vous connecter`,
|
18
|
+
},
|
19
|
+
getStartedLink: `Vous n'avez pas ${wallet} ?`,
|
20
|
+
download: {
|
21
|
+
chrome: "Télécharger l'extension Chrome",
|
22
|
+
android: "Télécharger sur Google Play",
|
23
|
+
iOS: "Télécharger sur l'App Store",
|
24
|
+
},
|
25
|
+
});
|
26
|
+
|
27
|
+
export default injectedWalletLocaleEn;
|
@@ -18,6 +18,10 @@ export async function getInjectedWalletLocale(
|
|
18
18
|
return (await import("./vi.js")).default;
|
19
19
|
case "de_DE":
|
20
20
|
return (await import("./de.js")).default;
|
21
|
+
case "ko_KR":
|
22
|
+
return (await import("./kr.js")).default;
|
23
|
+
case "fr_FR":
|
24
|
+
return (await import("./fr.js")).default;
|
21
25
|
default:
|
22
26
|
return (await import("./en.js")).default;
|
23
27
|
}
|
@@ -1,27 +1,25 @@
|
|
1
1
|
import type { InjectedWalletLocale } from "./types.js";
|
2
|
-
|
3
2
|
/**
|
4
3
|
* @internal
|
5
4
|
*/
|
6
|
-
const
|
5
|
+
const injectedWalletLocale = (wallet: string): InjectedWalletLocale => ({
|
7
6
|
connectionScreen: {
|
8
|
-
inProgress: "
|
7
|
+
inProgress: "確認を待っています",
|
9
8
|
failed: "接続に失敗しました",
|
10
|
-
instruction: `${
|
9
|
+
instruction: `${wallet}で接続リクエストを承認してください`,
|
11
10
|
retry: "再試行",
|
12
11
|
},
|
13
12
|
getStartedScreen: {
|
14
|
-
instruction: `QRコードをスキャンして${
|
13
|
+
instruction: `QRコードをスキャンして${wallet}アプリをダウンロードしてください`,
|
15
14
|
},
|
16
15
|
scanScreen: {
|
17
|
-
instruction: `${
|
16
|
+
instruction: `${wallet}アプリでQRコードをスキャンして接続してください`,
|
18
17
|
},
|
19
|
-
getStartedLink: `${
|
18
|
+
getStartedLink: `${wallet}をお持ちではありませんか?`,
|
20
19
|
download: {
|
21
|
-
chrome: "Chrome
|
20
|
+
chrome: "Chrome拡張機能をダウンロード",
|
22
21
|
android: "Google Playでダウンロード",
|
23
22
|
iOS: "App Storeでダウンロード",
|
24
23
|
},
|
25
24
|
});
|
26
|
-
|
27
|
-
export default injectedWalletLocaleJa;
|
25
|
+
export default injectedWalletLocale;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { InjectedWalletLocale } from "./types.js";
|
2
|
+
/**
|
3
|
+
* @internal
|
4
|
+
*/
|
5
|
+
const injectedWalletLocale = (wallet: string): InjectedWalletLocale => ({
|
6
|
+
connectionScreen: {
|
7
|
+
inProgress: "확인 대기 중",
|
8
|
+
failed: "연결 실패",
|
9
|
+
instruction: `${wallet}에서 연결 요청을 수락하세요`,
|
10
|
+
retry: "다시 시도하세요",
|
11
|
+
},
|
12
|
+
getStartedScreen: {
|
13
|
+
instruction: `Scan the QR code to download the ${wallet} app`,
|
14
|
+
},
|
15
|
+
scanScreen: {
|
16
|
+
instruction: `Scan the QR code with the ${wallet} app to connect`,
|
17
|
+
},
|
18
|
+
getStartedLink: `Don't have ${wallet}?`,
|
19
|
+
download: {
|
20
|
+
chrome: "Chrome 확장 프로그램 다운로드",
|
21
|
+
android: "Google Play에서 다운로드",
|
22
|
+
iOS: "App Store에서 다운로드",
|
23
|
+
},
|
24
|
+
});
|
25
|
+
export default injectedWalletLocale;
|