thirdweb 5.44.0 → 5.44.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/README.md +1 -1
- package/dist/cjs/auth/constants.js +1 -1
- package/dist/cjs/auth/constants.js.map +1 -1
- package/dist/cjs/auth/verify-hash.js +9 -17
- package/dist/cjs/auth/verify-hash.js.map +1 -1
- package/dist/cjs/pay/buyWithFiat/getQuote.js +1 -0
- package/dist/cjs/pay/buyWithFiat/getQuote.js.map +1 -1
- package/dist/cjs/react/core/hooks/auth/useSiweAuth.js +1 -2
- package/dist/cjs/react/core/hooks/auth/useSiweAuth.js.map +1 -1
- package/dist/cjs/react/native/ui/connect/ConnectButton.js +1 -1
- package/dist/cjs/react/native/ui/connect/ConnectButton.js.map +1 -1
- package/dist/cjs/react/native/ui/connect/ConnectModal.js +3 -1
- package/dist/cjs/react/native/ui/connect/ConnectModal.js.map +1 -1
- package/dist/cjs/react/native/ui/connect/ConnectedModal.js +2 -2
- package/dist/cjs/react/native/ui/connect/ConnectedModal.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +2 -2
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +3 -1
- package/dist/cjs/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js +3 -1
- package/dist/cjs/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
- package/dist/cjs/transaction/serialize-transaction.js +12 -5
- package/dist/cjs/transaction/serialize-transaction.js.map +1 -1
- package/dist/cjs/utils/signatures/sign.js +2 -2
- package/dist/cjs/utils/signatures/sign.js.map +1 -1
- package/dist/cjs/utils/signatures/signature-to-hex.js +8 -10
- package/dist/cjs/utils/signatures/signature-to-hex.js.map +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wallets/__generated__/getWalletInfo.js +155 -110
- package/dist/cjs/wallets/__generated__/getWalletInfo.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/app.keplr/index.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/app.keplr/index.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/app.tofee/image.js +7 -0
- package/dist/cjs/wallets/__generated__/wallet/app.tofee/image.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/app.tofee/index.js +34 -0
- package/dist/cjs/wallets/__generated__/wallet/app.tofee/index.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/app.walletnow/image.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/app.walletnow/image.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/co.swopme/image.js +7 -0
- package/dist/cjs/wallets/__generated__/wallet/co.swopme/image.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/{io.toric → co.swopme}/index.js +8 -8
- package/dist/cjs/wallets/__generated__/wallet/co.swopme/index.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/com.bifrostwallet/index.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/com.bifrostwallet/index.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/com.bitpay/image.js +7 -0
- package/dist/cjs/wallets/__generated__/wallet/com.bitpay/image.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/com.bitpay/index.js +34 -0
- package/dist/cjs/wallets/__generated__/wallet/com.bitpay/index.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/com.blanqlabs.wallet/index.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/com.blanqlabs.wallet/index.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/com.elrond.maiar.wallet/image.js +7 -0
- package/dist/cjs/wallets/__generated__/wallet/com.elrond.maiar.wallet/image.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/com.elrond.maiar.wallet/index.js +34 -0
- package/dist/cjs/wallets/__generated__/wallet/com.elrond.maiar.wallet/index.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/com.mewwallet/image.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/com.mewwallet/image.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/com.okex.wallet/index.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/com.okex.wallet/index.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/com.safemoon/image.js +7 -0
- package/dist/cjs/wallets/__generated__/wallet/{finance.ottr → com.safemoon}/image.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/com.safemoon/index.js +34 -0
- package/dist/cjs/wallets/__generated__/wallet/com.safemoon/index.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/com.walletconnect.com/image.js +7 -0
- package/dist/cjs/wallets/__generated__/wallet/com.walletconnect.com/image.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/com.walletconnect.com/index.js +34 -0
- package/dist/cjs/wallets/__generated__/wallet/com.walletconnect.com/index.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/com.zypto/image.js +7 -0
- package/dist/cjs/wallets/__generated__/wallet/com.zypto/image.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/{cool.pay → com.zypto}/index.js +9 -9
- package/dist/cjs/wallets/__generated__/wallet/com.zypto/index.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/fun.tobi/index.js +2 -2
- package/dist/cjs/wallets/__generated__/wallet/fun.tobi/index.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/inc.tomo/image.js +7 -0
- package/dist/cjs/wallets/__generated__/wallet/{cool.pay → inc.tomo}/image.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/inc.tomo/index.js +34 -0
- package/dist/cjs/wallets/__generated__/wallet/inc.tomo/index.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/io.leapwallet.CompassWallet/image.js +7 -0
- package/dist/cjs/wallets/__generated__/wallet/io.leapwallet.CompassWallet/image.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/io.leapwallet.CompassWallet/index.js +34 -0
- package/dist/cjs/wallets/__generated__/wallet/io.leapwallet.CompassWallet/index.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/io.metamask/image.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/io.metamask/index.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/io.uptn/image.js +7 -0
- package/dist/cjs/wallets/__generated__/wallet/io.uptn/image.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/io.uptn/index.js +34 -0
- package/dist/cjs/wallets/__generated__/wallet/io.uptn/index.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/io.wallypto/image.js +7 -0
- package/dist/cjs/wallets/__generated__/wallet/io.wallypto/image.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/{finance.ottr → io.wallypto}/index.js +8 -8
- package/dist/cjs/wallets/__generated__/wallet/io.wallypto/index.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/me.iopay/image.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/me.iopay/image.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/me.iopay/index.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/technology.jambo/image.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/technology.jambo/image.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/technology.jambo/index.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/xyz.orion/image.js +7 -0
- package/dist/cjs/wallets/__generated__/wallet/xyz.orion/image.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/xyz.orion/index.js +34 -0
- package/dist/cjs/wallets/__generated__/wallet/xyz.orion/index.js.map +1 -0
- package/dist/cjs/wallets/__generated__/wallet/xyz.timelesswallet/image.js +1 -1
- package/dist/cjs/wallets/__generated__/wallet/xyz.timelesswallet/image.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet/xyz.timelesswallet/index.js +7 -7
- package/dist/cjs/wallets/__generated__/wallet/xyz.timelesswallet/index.js.map +1 -1
- package/dist/cjs/wallets/__generated__/wallet-infos.js +114 -82
- package/dist/cjs/wallets/__generated__/wallet-infos.js.map +1 -1
- package/dist/cjs/wallets/custom/adapter/image.js +5 -0
- package/dist/cjs/wallets/custom/adapter/image.js.map +1 -0
- package/dist/cjs/wallets/custom/adapter/index.js +31 -0
- package/dist/cjs/wallets/custom/adapter/index.js.map +1 -0
- package/dist/cjs/wallets/smart/smart-wallet.js +1 -1
- package/dist/esm/auth/constants.js +1 -1
- package/dist/esm/auth/constants.js.map +1 -1
- package/dist/esm/auth/verify-hash.js +6 -14
- package/dist/esm/auth/verify-hash.js.map +1 -1
- package/dist/esm/pay/buyWithFiat/getQuote.js +1 -0
- package/dist/esm/pay/buyWithFiat/getQuote.js.map +1 -1
- package/dist/esm/react/core/hooks/auth/useSiweAuth.js +1 -2
- package/dist/esm/react/core/hooks/auth/useSiweAuth.js.map +1 -1
- package/dist/esm/react/native/ui/connect/ConnectButton.js +1 -1
- package/dist/esm/react/native/ui/connect/ConnectButton.js.map +1 -1
- package/dist/esm/react/native/ui/connect/ConnectModal.js +3 -1
- package/dist/esm/react/native/ui/connect/ConnectModal.js.map +1 -1
- package/dist/esm/react/native/ui/connect/ConnectedModal.js +2 -2
- package/dist/esm/react/native/ui/connect/ConnectedModal.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/ConnectButton.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js +2 -2
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectEmbed.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js +3 -1
- package/dist/esm/react/web/ui/ConnectWallet/Modal/ConnectModalContent.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js +3 -1
- package/dist/esm/react/web/ui/ConnectWallet/screens/SignatureScreen.js.map +1 -1
- package/dist/esm/transaction/serialize-transaction.js +12 -5
- package/dist/esm/transaction/serialize-transaction.js.map +1 -1
- package/dist/esm/utils/signatures/sign.js +2 -2
- package/dist/esm/utils/signatures/sign.js.map +1 -1
- package/dist/esm/utils/signatures/signature-to-hex.js +8 -10
- package/dist/esm/utils/signatures/signature-to-hex.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/esm/wallets/__generated__/getWalletInfo.js +155 -110
- package/dist/esm/wallets/__generated__/getWalletInfo.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/app.keplr/index.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/app.keplr/index.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/app.tofee/image.js +5 -0
- package/dist/esm/wallets/__generated__/wallet/app.tofee/image.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/app.tofee/index.js +31 -0
- package/dist/esm/wallets/__generated__/wallet/app.tofee/index.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/app.walletnow/image.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/app.walletnow/image.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/co.swopme/image.js +5 -0
- package/dist/esm/wallets/__generated__/wallet/co.swopme/image.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/{io.toric → co.swopme}/index.js +8 -8
- package/dist/esm/wallets/__generated__/wallet/co.swopme/index.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/com.bifrostwallet/index.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/com.bifrostwallet/index.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/com.bitpay/image.js +5 -0
- package/dist/esm/wallets/__generated__/wallet/com.bitpay/image.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/com.bitpay/index.js +31 -0
- package/dist/esm/wallets/__generated__/wallet/com.bitpay/index.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/com.blanqlabs.wallet/index.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/com.blanqlabs.wallet/index.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/com.elrond.maiar.wallet/image.js +5 -0
- package/dist/esm/wallets/__generated__/wallet/com.elrond.maiar.wallet/image.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/com.elrond.maiar.wallet/index.js +31 -0
- package/dist/esm/wallets/__generated__/wallet/com.elrond.maiar.wallet/index.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/com.mewwallet/image.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/com.mewwallet/image.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/com.okex.wallet/index.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/com.okex.wallet/index.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/com.safemoon/image.js +5 -0
- package/dist/esm/wallets/__generated__/wallet/{finance.ottr → com.safemoon}/image.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/com.safemoon/index.js +31 -0
- package/dist/esm/wallets/__generated__/wallet/com.safemoon/index.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/com.walletconnect.com/image.js +5 -0
- package/dist/esm/wallets/__generated__/wallet/com.walletconnect.com/image.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/com.walletconnect.com/index.js +31 -0
- package/dist/esm/wallets/__generated__/wallet/com.walletconnect.com/index.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/com.zypto/image.js +5 -0
- package/dist/esm/wallets/__generated__/wallet/com.zypto/image.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/{cool.pay → com.zypto}/index.js +9 -9
- package/dist/esm/wallets/__generated__/wallet/com.zypto/index.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/fun.tobi/index.js +2 -2
- package/dist/esm/wallets/__generated__/wallet/fun.tobi/index.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/inc.tomo/image.js +5 -0
- package/dist/esm/wallets/__generated__/wallet/{io.toric → inc.tomo}/image.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/inc.tomo/index.js +31 -0
- package/dist/esm/wallets/__generated__/wallet/inc.tomo/index.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/io.leapwallet.CompassWallet/image.js +5 -0
- package/dist/esm/wallets/__generated__/wallet/io.leapwallet.CompassWallet/image.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/io.leapwallet.CompassWallet/index.js +31 -0
- package/dist/esm/wallets/__generated__/wallet/io.leapwallet.CompassWallet/index.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/io.metamask/image.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/io.metamask/index.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/io.uptn/image.js +5 -0
- package/dist/esm/wallets/__generated__/wallet/io.uptn/image.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/io.uptn/index.js +31 -0
- package/dist/esm/wallets/__generated__/wallet/io.uptn/index.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/io.wallypto/image.js +5 -0
- package/dist/esm/wallets/__generated__/wallet/io.wallypto/image.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/{finance.ottr → io.wallypto}/index.js +8 -8
- package/dist/esm/wallets/__generated__/wallet/io.wallypto/index.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/me.iopay/image.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/me.iopay/image.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/me.iopay/index.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/technology.jambo/image.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/technology.jambo/image.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/technology.jambo/index.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/xyz.orion/image.js +5 -0
- package/dist/esm/wallets/__generated__/wallet/xyz.orion/image.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/xyz.orion/index.js +31 -0
- package/dist/esm/wallets/__generated__/wallet/xyz.orion/index.js.map +1 -0
- package/dist/esm/wallets/__generated__/wallet/xyz.timelesswallet/image.js +1 -1
- package/dist/esm/wallets/__generated__/wallet/xyz.timelesswallet/image.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet/xyz.timelesswallet/index.js +7 -7
- package/dist/esm/wallets/__generated__/wallet/xyz.timelesswallet/index.js.map +1 -1
- package/dist/esm/wallets/__generated__/wallet-infos.js +114 -82
- package/dist/esm/wallets/__generated__/wallet-infos.js.map +1 -1
- package/dist/esm/wallets/custom/adapter/image.js +3 -0
- package/dist/esm/wallets/custom/adapter/image.js.map +1 -0
- package/dist/esm/wallets/custom/adapter/index.js +28 -0
- package/dist/esm/wallets/custom/adapter/index.js.map +1 -0
- package/dist/esm/wallets/smart/smart-wallet.js +1 -1
- package/dist/types/auth/constants.d.ts +1 -1
- package/dist/types/auth/constants.d.ts.map +1 -1
- package/dist/types/auth/verify-hash.d.ts.map +1 -1
- package/dist/types/pay/buyWithFiat/getQuote.d.ts +26 -0
- package/dist/types/pay/buyWithFiat/getQuote.d.ts.map +1 -1
- package/dist/types/react/core/hooks/auth/useSiweAuth.d.ts +2 -2
- package/dist/types/react/core/hooks/auth/useSiweAuth.d.ts.map +1 -1
- package/dist/types/react/native/ui/connect/ConnectModal.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/Modal/ConnectModalContent.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/screens/SignatureScreen.d.ts.map +1 -1
- package/dist/types/transaction/serialize-transaction.d.ts.map +1 -1
- package/dist/types/utils/signatures/signature-to-hex.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/dist/types/wallets/__generated__/getWalletInfo.d.ts.map +1 -1
- package/dist/types/wallets/__generated__/wallet/app.keplr/index.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/app.tofee/image.d.ts +3 -0
- package/dist/types/wallets/__generated__/wallet/app.tofee/image.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/app.tofee/index.d.ts +29 -0
- package/dist/types/wallets/__generated__/wallet/app.tofee/index.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/app.walletnow/image.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/app.walletnow/image.d.ts.map +1 -1
- package/dist/types/wallets/__generated__/wallet/co.swopme/image.d.ts +3 -0
- package/dist/types/wallets/__generated__/wallet/co.swopme/image.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/{io.toric → co.swopme}/index.d.ts +8 -8
- package/dist/types/wallets/__generated__/wallet/co.swopme/index.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/com.bifrostwallet/index.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/com.bitpay/image.d.ts +3 -0
- package/dist/types/wallets/__generated__/wallet/com.bitpay/image.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/com.bitpay/index.d.ts +29 -0
- package/dist/types/wallets/__generated__/wallet/com.bitpay/index.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/com.blanqlabs.wallet/index.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/com.elrond.maiar.wallet/image.d.ts +3 -0
- package/dist/types/wallets/__generated__/wallet/com.elrond.maiar.wallet/image.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/com.elrond.maiar.wallet/index.d.ts +29 -0
- package/dist/types/wallets/__generated__/wallet/com.elrond.maiar.wallet/index.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/com.mewwallet/image.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/com.mewwallet/image.d.ts.map +1 -1
- package/dist/types/wallets/__generated__/wallet/com.okex.wallet/index.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/com.safemoon/image.d.ts +3 -0
- package/dist/types/wallets/__generated__/wallet/com.safemoon/image.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/com.safemoon/index.d.ts +29 -0
- package/dist/types/wallets/__generated__/wallet/{finance.ottr → com.safemoon}/index.d.ts.map +1 -1
- package/dist/types/wallets/__generated__/wallet/com.walletconnect.com/image.d.ts +3 -0
- package/dist/types/wallets/__generated__/wallet/com.walletconnect.com/image.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/com.walletconnect.com/index.d.ts +29 -0
- package/dist/types/wallets/__generated__/wallet/com.walletconnect.com/index.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/com.zypto/image.d.ts +3 -0
- package/dist/types/wallets/__generated__/wallet/com.zypto/image.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/{cool.pay → com.zypto}/index.d.ts +9 -9
- package/dist/types/wallets/__generated__/wallet/com.zypto/index.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/fun.tobi/index.d.ts +2 -2
- package/dist/types/wallets/__generated__/wallet/inc.tomo/image.d.ts +3 -0
- package/dist/types/wallets/__generated__/wallet/inc.tomo/image.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/inc.tomo/index.d.ts +29 -0
- package/dist/types/wallets/__generated__/wallet/{cool.pay → inc.tomo}/index.d.ts.map +1 -1
- package/dist/types/wallets/__generated__/wallet/io.leapwallet.CompassWallet/image.d.ts +3 -0
- package/dist/types/wallets/__generated__/wallet/io.leapwallet.CompassWallet/image.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/io.leapwallet.CompassWallet/index.d.ts +29 -0
- package/dist/types/wallets/__generated__/wallet/io.leapwallet.CompassWallet/index.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/io.metamask/image.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/io.metamask/index.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/io.uptn/image.d.ts +3 -0
- package/dist/types/wallets/__generated__/wallet/io.uptn/image.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/io.uptn/index.d.ts +29 -0
- package/dist/types/wallets/__generated__/wallet/io.uptn/index.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/io.wallypto/image.d.ts +3 -0
- package/dist/types/wallets/__generated__/wallet/io.wallypto/image.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/{finance.ottr → io.wallypto}/index.d.ts +8 -8
- package/dist/types/wallets/__generated__/wallet/io.wallypto/index.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/me.iopay/image.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/me.iopay/image.d.ts.map +1 -1
- package/dist/types/wallets/__generated__/wallet/me.iopay/index.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/technology.jambo/image.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/technology.jambo/image.d.ts.map +1 -1
- package/dist/types/wallets/__generated__/wallet/technology.jambo/index.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/xyz.orion/image.d.ts +3 -0
- package/dist/types/wallets/__generated__/wallet/xyz.orion/image.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/xyz.orion/index.d.ts +29 -0
- package/dist/types/wallets/__generated__/wallet/xyz.orion/index.d.ts.map +1 -0
- package/dist/types/wallets/__generated__/wallet/xyz.timelesswallet/image.d.ts +1 -1
- package/dist/types/wallets/__generated__/wallet/xyz.timelesswallet/image.d.ts.map +1 -1
- package/dist/types/wallets/__generated__/wallet/xyz.timelesswallet/index.d.ts +7 -7
- package/dist/types/wallets/__generated__/wallet/xyz.timelesswallet/index.d.ts.map +1 -1
- package/dist/types/wallets/__generated__/wallet-ids.d.ts +2 -2
- package/dist/types/wallets/__generated__/wallet-ids.d.ts.map +1 -1
- package/dist/types/wallets/__generated__/wallet-infos.d.ts +93 -69
- package/dist/types/wallets/__generated__/wallet-infos.d.ts.map +1 -1
- package/dist/types/wallets/custom/adapter/image.d.ts +3 -0
- package/dist/types/wallets/custom/adapter/image.d.ts.map +1 -0
- package/dist/types/wallets/custom/adapter/index.d.ts +28 -0
- package/dist/types/wallets/custom/adapter/index.d.ts.map +1 -0
- package/dist/types/wallets/getAllWalletsList.d.ts +93 -69
- package/dist/types/wallets/getAllWalletsList.d.ts.map +1 -1
- package/dist/types/wallets/smart/smart-wallet.d.ts +1 -1
- package/package.json +1 -1
- package/src/auth/constants.ts +1 -1
- package/src/auth/verify-hash.ts +6 -17
- package/src/extensions/airdrop/write/claimERC1155.test.ts +1 -1
- package/src/extensions/airdrop/write/claimERC20.test.ts +1 -1
- package/src/extensions/airdrop/write/claimERC721.test.ts +1 -1
- package/src/pay/buyWithFiat/getQuote.ts +29 -0
- package/src/react/core/hooks/auth/useSiweAuth.ts +2 -3
- package/src/react/native/ui/connect/ConnectButton.tsx +1 -1
- package/src/react/native/ui/connect/ConnectModal.tsx +3 -1
- package/src/react/native/ui/connect/ConnectedModal.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/ConnectButton.tsx +1 -1
- package/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx +2 -2
- package/src/react/web/ui/ConnectWallet/Modal/ConnectModalContent.tsx +3 -2
- package/src/react/web/ui/ConnectWallet/screens/SignatureScreen.tsx +3 -1
- package/src/transaction/actions/to-serializable-transaction.test.ts +1 -1
- package/src/transaction/serialize-transaction.test.ts +1 -1
- package/src/transaction/serialize-transaction.ts +15 -5
- package/src/utils/signatures/sign-message.test.ts +9 -0
- package/src/utils/signatures/sign.ts +2 -2
- package/src/utils/signatures/signature-to-hex.test.ts +28 -0
- package/src/utils/signatures/signature-to-hex.ts +6 -11
- package/src/version.ts +1 -1
- package/src/wallets/__generated__/getWalletInfo.ts +224 -151
- package/src/wallets/__generated__/wallet/app.keplr/index.ts +1 -1
- package/src/wallets/__generated__/wallet/app.tofee/image.ts +7 -0
- package/src/wallets/__generated__/wallet/{cool.pay → app.tofee}/index.ts +8 -9
- package/src/wallets/__generated__/wallet/app.walletnow/image.ts +1 -1
- package/src/wallets/__generated__/wallet/co.swopme/image.ts +7 -0
- package/src/wallets/__generated__/wallet/{finance.ottr → co.swopme}/index.ts +8 -8
- package/src/wallets/__generated__/wallet/com.bifrostwallet/index.ts +1 -1
- package/src/wallets/__generated__/wallet/com.bitpay/image.ts +7 -0
- package/src/wallets/__generated__/wallet/com.bitpay/index.ts +31 -0
- package/src/wallets/__generated__/wallet/com.blanqlabs.wallet/index.ts +1 -1
- package/src/wallets/__generated__/wallet/com.elrond.maiar.wallet/image.ts +7 -0
- package/src/wallets/__generated__/wallet/com.elrond.maiar.wallet/index.ts +32 -0
- package/src/wallets/__generated__/wallet/com.mewwallet/image.ts +1 -1
- package/src/wallets/__generated__/wallet/com.okex.wallet/index.ts +1 -1
- package/src/wallets/__generated__/wallet/com.safemoon/image.ts +7 -0
- package/src/wallets/__generated__/wallet/com.safemoon/index.ts +32 -0
- package/src/wallets/__generated__/wallet/com.walletconnect.com/image.ts +7 -0
- package/src/wallets/__generated__/wallet/com.walletconnect.com/index.ts +31 -0
- package/src/wallets/__generated__/wallet/com.zypto/image.ts +7 -0
- package/src/wallets/__generated__/wallet/com.zypto/index.ts +31 -0
- package/src/wallets/__generated__/wallet/fun.tobi/index.ts +2 -2
- package/src/wallets/__generated__/wallet/inc.tomo/image.ts +7 -0
- package/src/wallets/__generated__/wallet/inc.tomo/index.ts +32 -0
- package/src/wallets/__generated__/wallet/io.leapwallet.CompassWallet/image.ts +7 -0
- package/src/wallets/__generated__/wallet/io.leapwallet.CompassWallet/index.ts +32 -0
- package/src/wallets/__generated__/wallet/io.metamask/image.ts +1 -1
- package/src/wallets/__generated__/wallet/io.metamask/index.ts +1 -1
- package/src/wallets/__generated__/wallet/io.uptn/image.ts +7 -0
- package/src/wallets/__generated__/wallet/io.uptn/index.ts +31 -0
- package/src/wallets/__generated__/wallet/io.wallypto/image.ts +7 -0
- package/src/wallets/__generated__/wallet/{io.toric → io.wallypto}/index.ts +8 -9
- package/src/wallets/__generated__/wallet/me.iopay/image.ts +1 -1
- package/src/wallets/__generated__/wallet/me.iopay/index.ts +1 -1
- package/src/wallets/__generated__/wallet/technology.jambo/image.ts +1 -1
- package/src/wallets/__generated__/wallet/technology.jambo/index.ts +1 -1
- package/src/wallets/__generated__/wallet/xyz.orion/image.ts +7 -0
- package/src/wallets/__generated__/wallet/xyz.orion/index.ts +31 -0
- package/src/wallets/__generated__/wallet/xyz.timelesswallet/image.ts +1 -1
- package/src/wallets/__generated__/wallet/xyz.timelesswallet/index.ts +9 -7
- package/src/wallets/__generated__/wallet-ids.ts +45 -33
- package/src/wallets/__generated__/wallet-infos.ts +114 -82
- package/src/wallets/custom/adapter/image.ts +4 -0
- package/src/wallets/custom/adapter/index.ts +27 -0
- package/src/wallets/smart/smart-wallet.ts +1 -1
- package/dist/cjs/wallets/__generated__/wallet/cool.pay/image.js +0 -7
- package/dist/cjs/wallets/__generated__/wallet/cool.pay/index.js.map +0 -1
- package/dist/cjs/wallets/__generated__/wallet/finance.ottr/image.js +0 -7
- package/dist/cjs/wallets/__generated__/wallet/finance.ottr/index.js.map +0 -1
- package/dist/cjs/wallets/__generated__/wallet/io.gate.wallet/image.js +0 -7
- package/dist/cjs/wallets/__generated__/wallet/io.gate.wallet/image.js.map +0 -1
- package/dist/cjs/wallets/__generated__/wallet/io.gate.wallet/index.js +0 -34
- package/dist/cjs/wallets/__generated__/wallet/io.gate.wallet/index.js.map +0 -1
- package/dist/cjs/wallets/__generated__/wallet/io.toric/image.js +0 -7
- package/dist/cjs/wallets/__generated__/wallet/io.toric/image.js.map +0 -1
- package/dist/cjs/wallets/__generated__/wallet/io.toric/index.js.map +0 -1
- package/dist/esm/wallets/__generated__/wallet/cool.pay/image.js +0 -5
- package/dist/esm/wallets/__generated__/wallet/cool.pay/image.js.map +0 -1
- package/dist/esm/wallets/__generated__/wallet/cool.pay/index.js.map +0 -1
- package/dist/esm/wallets/__generated__/wallet/finance.ottr/image.js +0 -5
- package/dist/esm/wallets/__generated__/wallet/finance.ottr/index.js.map +0 -1
- package/dist/esm/wallets/__generated__/wallet/io.gate.wallet/image.js +0 -5
- package/dist/esm/wallets/__generated__/wallet/io.gate.wallet/image.js.map +0 -1
- package/dist/esm/wallets/__generated__/wallet/io.gate.wallet/index.js +0 -31
- package/dist/esm/wallets/__generated__/wallet/io.gate.wallet/index.js.map +0 -1
- package/dist/esm/wallets/__generated__/wallet/io.toric/image.js +0 -5
- package/dist/esm/wallets/__generated__/wallet/io.toric/index.js.map +0 -1
- package/dist/types/wallets/__generated__/wallet/cool.pay/image.d.ts +0 -3
- package/dist/types/wallets/__generated__/wallet/cool.pay/image.d.ts.map +0 -1
- package/dist/types/wallets/__generated__/wallet/finance.ottr/image.d.ts +0 -3
- package/dist/types/wallets/__generated__/wallet/finance.ottr/image.d.ts.map +0 -1
- package/dist/types/wallets/__generated__/wallet/io.gate.wallet/image.d.ts +0 -3
- package/dist/types/wallets/__generated__/wallet/io.gate.wallet/image.d.ts.map +0 -1
- package/dist/types/wallets/__generated__/wallet/io.gate.wallet/index.d.ts +0 -29
- package/dist/types/wallets/__generated__/wallet/io.gate.wallet/index.d.ts.map +0 -1
- package/dist/types/wallets/__generated__/wallet/io.toric/image.d.ts +0 -3
- package/dist/types/wallets/__generated__/wallet/io.toric/image.d.ts.map +0 -1
- package/dist/types/wallets/__generated__/wallet/io.toric/index.d.ts.map +0 -1
- package/src/wallets/__generated__/wallet/cool.pay/image.ts +0 -7
- package/src/wallets/__generated__/wallet/finance.ottr/image.ts +0 -7
- package/src/wallets/__generated__/wallet/io.gate.wallet/image.ts +0 -7
- package/src/wallets/__generated__/wallet/io.gate.wallet/index.ts +0 -32
- package/src/wallets/__generated__/wallet/io.toric/image.ts +0 -7
@@ -10,86 +10,95 @@ export declare function getAllWalletsList(): Promise<[{
|
|
10
10
|
readonly id: "com.trustwallet.app";
|
11
11
|
readonly name: "Trust Wallet";
|
12
12
|
}, {
|
13
|
-
readonly id: "
|
14
|
-
readonly name: "
|
13
|
+
readonly id: "com.okex.wallet";
|
14
|
+
readonly name: "OKX Wallet";
|
15
15
|
}, {
|
16
|
-
readonly id: "
|
17
|
-
readonly name: "
|
16
|
+
readonly id: "com.bitget.web3";
|
17
|
+
readonly name: "Bitget Wallet";
|
18
|
+
}, {
|
19
|
+
readonly id: "com.binance";
|
20
|
+
readonly name: "Binance Web3 Wallet";
|
18
21
|
}, {
|
19
22
|
readonly id: "org.uniswap";
|
20
23
|
readonly name: "Uniswap Wallet";
|
21
24
|
}, {
|
22
|
-
readonly id: "
|
23
|
-
readonly name: "
|
24
|
-
}, {
|
25
|
-
readonly id: "im.token";
|
26
|
-
readonly name: "imToken";
|
27
|
-
}, {
|
28
|
-
readonly id: "xyz.argent";
|
29
|
-
readonly name: "Argent";
|
30
|
-
}, {
|
31
|
-
readonly id: "com.bitget.web3";
|
32
|
-
readonly name: "Bitget Wallet";
|
25
|
+
readonly id: "com.safepal";
|
26
|
+
readonly name: "SafePal";
|
33
27
|
}, {
|
34
|
-
readonly id: "
|
35
|
-
readonly name: "
|
28
|
+
readonly id: "me.rainbow";
|
29
|
+
readonly name: "Rainbow";
|
36
30
|
}, {
|
37
|
-
readonly id: "com.
|
38
|
-
readonly name: "
|
31
|
+
readonly id: "com.bybit";
|
32
|
+
readonly name: "Bybit Wallet";
|
39
33
|
}, {
|
40
34
|
readonly id: "pro.tokenpocket";
|
41
35
|
readonly name: "TokenPocket";
|
42
36
|
}, {
|
43
|
-
readonly id: "com.
|
44
|
-
readonly name: "
|
45
|
-
}, {
|
46
|
-
readonly id: "xyz.frontier.wallet";
|
47
|
-
readonly name: "Frontier";
|
37
|
+
readonly id: "com.ledger";
|
38
|
+
readonly name: "Ledger Live";
|
48
39
|
}, {
|
49
|
-
readonly id: "
|
50
|
-
readonly name: "
|
40
|
+
readonly id: "xyz.timelesswallet";
|
41
|
+
readonly name: "Timeless X";
|
51
42
|
}, {
|
52
|
-
readonly id: "
|
53
|
-
readonly name: "
|
43
|
+
readonly id: "global.safe";
|
44
|
+
readonly name: "Safe";
|
54
45
|
}, {
|
55
|
-
readonly id: "
|
56
|
-
readonly name: "
|
46
|
+
readonly id: "io.zerion.wallet";
|
47
|
+
readonly name: "Zerion";
|
57
48
|
}, {
|
58
|
-
readonly id: "com.
|
59
|
-
readonly name: "
|
49
|
+
readonly id: "com.robinhood.wallet";
|
50
|
+
readonly name: "Robinhood Wallet";
|
60
51
|
}, {
|
61
52
|
readonly id: "io.1inch.wallet";
|
62
53
|
readonly name: "1inch Wallet";
|
63
54
|
}, {
|
64
|
-
readonly id: "com.
|
65
|
-
readonly name: "
|
55
|
+
readonly id: "com.crypto";
|
56
|
+
readonly name: "Crypto.com | DeFi Wallet";
|
66
57
|
}, {
|
67
58
|
readonly id: "com.exodus";
|
68
59
|
readonly name: "Exodus";
|
69
60
|
}, {
|
70
|
-
readonly id: "
|
71
|
-
readonly name: "
|
61
|
+
readonly id: "xyz.argent";
|
62
|
+
readonly name: "Argent";
|
63
|
+
}, {
|
64
|
+
readonly id: "im.token";
|
65
|
+
readonly name: "imToken";
|
66
|
+
}, {
|
67
|
+
readonly id: "com.zengo";
|
68
|
+
readonly name: "Zengo Wallet";
|
69
|
+
}, {
|
70
|
+
readonly id: "com.blockchain";
|
71
|
+
readonly name: "Blockchain.com";
|
72
|
+
}, {
|
73
|
+
readonly id: "com.kraken";
|
74
|
+
readonly name: "Kraken Wallet ";
|
72
75
|
}, {
|
73
76
|
readonly id: "com.mewwallet";
|
74
77
|
readonly name: "MEW wallet";
|
78
|
+
}, {
|
79
|
+
readonly id: "org.mathwallet";
|
80
|
+
readonly name: "MathWallet";
|
75
81
|
}, {
|
76
82
|
readonly id: "com.alphawallet";
|
77
83
|
readonly name: "AlphaWallet";
|
84
|
+
}, {
|
85
|
+
readonly id: "com.unstoppabledomains";
|
86
|
+
readonly name: "Unstoppable Domains";
|
78
87
|
}, {
|
79
88
|
readonly id: "app.keyring";
|
80
89
|
readonly name: "KEYRING PRO";
|
90
|
+
}, {
|
91
|
+
readonly id: "xyz.frontier.wallet";
|
92
|
+
readonly name: "Frontier";
|
93
|
+
}, {
|
94
|
+
readonly id: "app.omni";
|
95
|
+
readonly name: "Omni";
|
81
96
|
}, {
|
82
97
|
readonly id: "co.lobstr";
|
83
98
|
readonly name: "LOBSTR Wallet";
|
84
99
|
}, {
|
85
100
|
readonly id: "app.onto";
|
86
101
|
readonly name: "ONTO";
|
87
|
-
}, {
|
88
|
-
readonly id: "org.mathwallet";
|
89
|
-
readonly name: "MathWallet";
|
90
|
-
}, {
|
91
|
-
readonly id: "com.unstoppabledomains";
|
92
|
-
readonly name: "Unstoppable Domains";
|
93
102
|
}, {
|
94
103
|
readonly id: "technology.obvious";
|
95
104
|
readonly name: "Obvious";
|
@@ -120,9 +129,6 @@ export declare function getAllWalletsList(): Promise<[{
|
|
120
129
|
}, {
|
121
130
|
readonly id: "io.myabcwallet";
|
122
131
|
readonly name: "ABC Wallet";
|
123
|
-
}, {
|
124
|
-
readonly id: "finance.ottr";
|
125
|
-
readonly name: "Ottr Finance";
|
126
132
|
}, {
|
127
133
|
readonly id: "co.arculus";
|
128
134
|
readonly name: "Arculus Wallet";
|
@@ -459,9 +465,6 @@ export declare function getAllWalletsList(): Promise<[{
|
|
459
465
|
}, {
|
460
466
|
readonly id: "com.kriptonio";
|
461
467
|
readonly name: "Kriptonio";
|
462
|
-
}, {
|
463
|
-
readonly id: "xyz.timelesswallet";
|
464
|
-
readonly name: "Timeless Wallet";
|
465
468
|
}, {
|
466
469
|
readonly id: "com.brave.wallet";
|
467
470
|
readonly name: "Bitski";
|
@@ -543,9 +546,6 @@ export declare function getAllWalletsList(): Promise<[{
|
|
543
546
|
}, {
|
544
547
|
readonly id: "com.tomi";
|
545
548
|
readonly name: "tomiPAY";
|
546
|
-
}, {
|
547
|
-
readonly id: "com.bybit";
|
548
|
-
readonly name: "Bybit Wallet";
|
549
549
|
}, {
|
550
550
|
readonly id: "app.subwallet";
|
551
551
|
readonly name: "SubWallet";
|
@@ -843,9 +843,6 @@ export declare function getAllWalletsList(): Promise<[{
|
|
843
843
|
}, {
|
844
844
|
readonly id: "io.noone";
|
845
845
|
readonly name: "Noone Wallet";
|
846
|
-
}, {
|
847
|
-
readonly id: "io.gate.wallet";
|
848
|
-
readonly name: "GateWallet";
|
849
846
|
}, {
|
850
847
|
readonly id: "com.bitso";
|
851
848
|
readonly name: "Bitso Web3 Wallet";
|
@@ -861,9 +858,6 @@ export declare function getAllWalletsList(): Promise<[{
|
|
861
858
|
}, {
|
862
859
|
readonly id: "io.bharatbox";
|
863
860
|
readonly name: "BharatBox App";
|
864
|
-
}, {
|
865
|
-
readonly id: "com.blanqlabs.wallet";
|
866
|
-
readonly name: "Blanq";
|
867
861
|
}, {
|
868
862
|
readonly id: "foundation.klaytn";
|
869
863
|
readonly name: "Kaikas";
|
@@ -882,9 +876,6 @@ export declare function getAllWalletsList(): Promise<[{
|
|
882
876
|
}, {
|
883
877
|
readonly id: "com.getcogni";
|
884
878
|
readonly name: "Cogni ";
|
885
|
-
}, {
|
886
|
-
readonly id: "io.toric";
|
887
|
-
readonly name: "Toric Wallet";
|
888
879
|
}, {
|
889
880
|
readonly id: "com.fastex.wallet";
|
890
881
|
readonly name: "Fastex Wallet";
|
@@ -939,9 +930,6 @@ export declare function getAllWalletsList(): Promise<[{
|
|
939
930
|
}, {
|
940
931
|
readonly id: "money.keychain";
|
941
932
|
readonly name: "Keychain";
|
942
|
-
}, {
|
943
|
-
readonly id: "cool.pay";
|
944
|
-
readonly name: "paycool";
|
945
933
|
}, {
|
946
934
|
readonly id: "com.mpcvault.broswerplugin";
|
947
935
|
readonly name: "MPCVault | Team crypto wallet";
|
@@ -963,9 +951,6 @@ export declare function getAllWalletsList(): Promise<[{
|
|
963
951
|
}, {
|
964
952
|
readonly id: "com.bettatrade";
|
965
953
|
readonly name: "Bettatrade";
|
966
|
-
}, {
|
967
|
-
readonly id: "com.kraken";
|
968
|
-
readonly name: "Kraken Wallet ";
|
969
954
|
}, {
|
970
955
|
readonly id: "io.scramberry";
|
971
956
|
readonly name: "ScramberryWallet";
|
@@ -1044,21 +1029,51 @@ export declare function getAllWalletsList(): Promise<[{
|
|
1044
1029
|
}, {
|
1045
1030
|
readonly id: "io.guardiianwallet";
|
1046
1031
|
readonly name: "GUARDIIAN Wallet";
|
1032
|
+
}, {
|
1033
|
+
readonly id: "io.wallypto";
|
1034
|
+
readonly name: "Wallypto";
|
1035
|
+
}, {
|
1036
|
+
readonly id: "com.safemoon";
|
1037
|
+
readonly name: "SafeMoon";
|
1038
|
+
}, {
|
1039
|
+
readonly id: "com.elrond.maiar.wallet";
|
1040
|
+
readonly name: "xPortal";
|
1041
|
+
}, {
|
1042
|
+
readonly id: "co.swopme";
|
1043
|
+
readonly name: "SWOP";
|
1044
|
+
}, {
|
1045
|
+
readonly id: "com.bitpay";
|
1046
|
+
readonly name: "BitPay Wallet";
|
1047
|
+
}, {
|
1048
|
+
readonly id: "app.tofee";
|
1049
|
+
readonly name: "Tofee Wallet Official";
|
1050
|
+
}, {
|
1051
|
+
readonly id: "com.zypto";
|
1052
|
+
readonly name: "Zypto";
|
1053
|
+
}, {
|
1054
|
+
readonly id: "xyz.orion";
|
1055
|
+
readonly name: "Orion";
|
1056
|
+
}, {
|
1057
|
+
readonly id: "io.uptn";
|
1058
|
+
readonly name: "UPTN";
|
1059
|
+
}, {
|
1060
|
+
readonly id: "com.coinbase.wallet";
|
1061
|
+
readonly name: "Coinbase Wallet";
|
1047
1062
|
}, {
|
1048
1063
|
readonly id: "io.rabby";
|
1049
1064
|
readonly name: "Rabby";
|
1050
1065
|
}, {
|
1051
1066
|
readonly id: "app.phantom";
|
1052
1067
|
readonly name: "Phantom";
|
1053
|
-
}, {
|
1054
|
-
readonly id: "com.coinbase.wallet";
|
1055
|
-
readonly name: "Coinbase Wallet";
|
1056
1068
|
}, {
|
1057
1069
|
readonly id: "io.xdefi";
|
1058
1070
|
readonly name: "XDEFI Wallet";
|
1059
1071
|
}, {
|
1060
1072
|
readonly id: "com.moongate.one";
|
1061
1073
|
readonly name: "MG";
|
1074
|
+
}, {
|
1075
|
+
readonly id: "com.blanqlabs.wallet";
|
1076
|
+
readonly name: "Blanq";
|
1062
1077
|
}, {
|
1063
1078
|
readonly id: "tech.levain";
|
1064
1079
|
readonly name: "Levain";
|
@@ -1074,6 +1089,15 @@ export declare function getAllWalletsList(): Promise<[{
|
|
1074
1089
|
}, {
|
1075
1090
|
readonly id: "io.finoa";
|
1076
1091
|
readonly name: "FinoaConnect";
|
1092
|
+
}, {
|
1093
|
+
readonly id: "inc.tomo";
|
1094
|
+
readonly name: "tomo extension wallet";
|
1095
|
+
}, {
|
1096
|
+
readonly id: "com.walletconnect.com";
|
1097
|
+
readonly name: "SampleW";
|
1098
|
+
}, {
|
1099
|
+
readonly id: "io.leapwallet.CompassWallet";
|
1100
|
+
readonly name: "Compass Wallet";
|
1077
1101
|
}, {
|
1078
1102
|
readonly id: "com.lootrush";
|
1079
1103
|
readonly name: "LootRush";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getAllWalletsList.d.ts","sourceRoot":"","sources":["../../../src/wallets/getAllWalletsList.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAsB,iBAAiB
|
1
|
+
{"version":3,"file":"getAllWalletsList.d.ts","sourceRoot":"","sources":["../../../src/wallets/getAllWalletsList.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAsB,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEtC"}
|
@@ -28,7 +28,7 @@ import type { CreateWalletArgs } from "../wallet-types.js";
|
|
28
28
|
* The `sponsorGas` option is used to enable sponsored gas for transactions automatically.
|
29
29
|
*
|
30
30
|
* ```ts
|
31
|
-
* import {
|
31
|
+
* import { smartWallet, inAppWallet } from "thirdweb/wallets";
|
32
32
|
* import { sepolia } from "thirdweb/chains";
|
33
33
|
* import { sendTransaction } from "thirdweb";
|
34
34
|
*
|
package/package.json
CHANGED
package/src/auth/constants.ts
CHANGED
@@ -27,4 +27,4 @@ export const universalSignatureValidatorAbi = [
|
|
27
27
|
] as const;
|
28
28
|
|
29
29
|
export const universalSignatureValidatorByteCode =
|
30
|
-
"
|
30
|
+
"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572";
|
package/src/auth/verify-hash.ts
CHANGED
@@ -2,13 +2,11 @@ import { equalBytes } from "@noble/curves/abstract/utils";
|
|
2
2
|
import { type Signature, encodeDeployData, serializeSignature } from "viem";
|
3
3
|
import type { Chain } from "../chains/types.js";
|
4
4
|
import type { ThirdwebClient } from "../client/client.js";
|
5
|
-
import { getContract } from "../contract/contract.js";
|
6
5
|
import { eth_call } from "../rpc/actions/eth_call.js";
|
7
6
|
import { getRpcClient } from "../rpc/rpc.js";
|
8
7
|
import { fromBytes } from "../utils/encoding/from-bytes.js";
|
9
8
|
import { type Hex, isHex } from "../utils/encoding/hex.js";
|
10
9
|
import { toBytes } from "../utils/encoding/to-bytes.js";
|
11
|
-
import { DEFAULT_ACCOUNT_FACTORY } from "../wallets/smart/lib/constants.js";
|
12
10
|
import {
|
13
11
|
universalSignatureValidatorAbi,
|
14
12
|
universalSignatureValidatorByteCode,
|
@@ -75,27 +73,18 @@ export async function verifyHash({
|
|
75
73
|
);
|
76
74
|
})();
|
77
75
|
|
78
|
-
const accountContract = getContract({
|
79
|
-
address,
|
80
|
-
chain,
|
81
|
-
client,
|
82
|
-
});
|
83
|
-
|
84
76
|
const wrappedSignature = await (async () => {
|
77
|
+
// If no factory is provided, we have to assume its already deployed or is an EOA
|
78
|
+
// TODO: Figure out how to automatically tell if our default factory was used
|
79
|
+
if (!accountFactory) return signatureHex;
|
80
|
+
|
85
81
|
// If this sigature was already wrapped for ERC-6492, carry on
|
86
82
|
if (isErc6492Signature(signatureHex)) return signatureHex;
|
87
83
|
|
88
|
-
// If the contract is already deployed, return the original signature
|
89
|
-
const { isContractDeployed } = await import(
|
90
|
-
"../utils/bytecode/is-contract-deployed.js"
|
91
|
-
);
|
92
|
-
const isDeployed = await isContractDeployed(accountContract);
|
93
|
-
if (!isDeployed) return signatureHex;
|
94
|
-
|
95
84
|
// Otherwise, serialize the signature for ERC-6492 validation
|
96
85
|
return serializeErc6492Signature({
|
97
|
-
address: accountFactory
|
98
|
-
data: accountFactory
|
86
|
+
address: accountFactory.address,
|
87
|
+
data: accountFactory.verificationCalldata,
|
99
88
|
signature: signatureHex,
|
100
89
|
});
|
101
90
|
})();
|
@@ -26,7 +26,7 @@ import { saveSnapshot } from "./saveSnapshot.js";
|
|
26
26
|
|
27
27
|
// skip this test suite if there is no secret key available to test with
|
28
28
|
// TODO: remove reliance on secret key during unit tests entirely
|
29
|
-
describe.runIf(process.env.TW_SECRET_KEY)("claimERC1155", () => {
|
29
|
+
describe.runIf(process.env.TW_SECRET_KEY).skip("claimERC1155", () => {
|
30
30
|
let airdropContract: ThirdwebContract;
|
31
31
|
let erc1155TokenContract: ThirdwebContract;
|
32
32
|
|
@@ -24,7 +24,7 @@ import { saveSnapshot } from "./saveSnapshot.js";
|
|
24
24
|
|
25
25
|
// skip this test suite if there is no secret key available to test with
|
26
26
|
// TODO: remove reliance on secret key during unit tests entirely
|
27
|
-
describe.runIf(process.env.TW_SECRET_KEY)("claimERC20", () => {
|
27
|
+
describe.runIf(process.env.TW_SECRET_KEY).skip("claimERC20", () => {
|
28
28
|
let airdropContract: ThirdwebContract;
|
29
29
|
let erc20TokenContract: ThirdwebContract;
|
30
30
|
|
@@ -26,7 +26,7 @@ import { saveSnapshot } from "./saveSnapshot.js";
|
|
26
26
|
|
27
27
|
// skip this test suite if there is no secret key available to test with
|
28
28
|
// TODO: remove reliance on secret key during unit tests entirely
|
29
|
-
describe.runIf(process.env.TW_SECRET_KEY)("claimERC721", () => {
|
29
|
+
describe.runIf(process.env.TW_SECRET_KEY).skip("claimERC721", () => {
|
30
30
|
let airdropContract: ThirdwebContract;
|
31
31
|
let erc721TokenContract: ThirdwebContract;
|
32
32
|
|
@@ -75,6 +75,13 @@ export type GetBuyWithFiatQuoteParams = {
|
|
75
75
|
* This details will be stored with the purchase and can be retrieved later via the status API or Webhook
|
76
76
|
*/
|
77
77
|
purchaseData?: object;
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Optional parameter to onramp gas with the purchase
|
81
|
+
* If native token, will onramp extra native token amount
|
82
|
+
* If erc20, will onramp native token + erc20
|
83
|
+
*/
|
84
|
+
toGasAmountWei?: string;
|
78
85
|
};
|
79
86
|
|
80
87
|
/**
|
@@ -190,6 +197,27 @@ export type BuyWithFiatQuote = {
|
|
190
197
|
};
|
191
198
|
};
|
192
199
|
|
200
|
+
/**
|
201
|
+
* Gas Token that will be sent to the user's wallet address by the on-ramp provider.
|
202
|
+
*
|
203
|
+
* Only used for ERC20 + Gas on-ramp flow. This will hold the details of the gas token and amount sent for gas.
|
204
|
+
*
|
205
|
+
* In Native Currency case, extra for gas will be added to the output amount of the onramp.
|
206
|
+
*/
|
207
|
+
gasToken?: {
|
208
|
+
amount: string;
|
209
|
+
amountWei: string;
|
210
|
+
amountUSDCents: number;
|
211
|
+
token: {
|
212
|
+
chainId: number;
|
213
|
+
decimals: number;
|
214
|
+
name: string;
|
215
|
+
priceUSDCents: number;
|
216
|
+
symbol: string;
|
217
|
+
tokenAddress: string;
|
218
|
+
};
|
219
|
+
};
|
220
|
+
|
193
221
|
/**
|
194
222
|
* Link to the on-ramp provider UI that will prompt the user to buy the token with fiat currency.
|
195
223
|
*
|
@@ -274,6 +302,7 @@ export async function getBuyWithFiatQuote(
|
|
274
302
|
isTestMode: params.isTestMode,
|
275
303
|
purchaseData: params.purchaseData,
|
276
304
|
fromAddress: params.fromAddress,
|
305
|
+
toGasAmountWei: params.toGasAmountWei,
|
277
306
|
}),
|
278
307
|
});
|
279
308
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
2
2
|
import type { LoginPayload } from "../../../../auth/core/types.js";
|
3
3
|
import type { VerifyLoginPayloadParams } from "../../../../auth/core/verify-login-payload.js";
|
4
|
-
import type { Wallet } from "../../../../wallets/interfaces/wallet.js";
|
4
|
+
import type { Account, Wallet } from "../../../../wallets/interfaces/wallet.js";
|
5
5
|
|
6
6
|
/**
|
7
7
|
* Options for Setting up SIWE (Sign in with Ethereum) Authentication
|
@@ -48,10 +48,9 @@ export type SiweAuthOptions = {
|
|
48
48
|
*/
|
49
49
|
export function useSiweAuth(
|
50
50
|
activeWallet?: Wallet,
|
51
|
+
activeAccount?: Account,
|
51
52
|
authOptions?: SiweAuthOptions,
|
52
53
|
) {
|
53
|
-
const activeAccount = activeWallet?.getAccount();
|
54
|
-
|
55
54
|
const requiresAuth = !!authOptions;
|
56
55
|
|
57
56
|
const queryClient = useQueryClient();
|
@@ -45,7 +45,7 @@ export function ConnectButton(props: ConnectButtonProps) {
|
|
45
45
|
const wallet = useActiveWallet();
|
46
46
|
const account = useActiveAccount();
|
47
47
|
const status = useActiveWalletConnectionStatus();
|
48
|
-
const siweAuth = useSiweAuth(wallet, props.auth);
|
48
|
+
const siweAuth = useSiweAuth(wallet, account, props.auth);
|
49
49
|
useAutoConnect(props);
|
50
50
|
|
51
51
|
const fadeAnim = useRef(new Animated.Value(0)); // For background opacity
|
@@ -9,6 +9,7 @@ import type { Theme } from "../../../core/design-system/index.js";
|
|
9
9
|
import { useSiweAuth } from "../../../core/hooks/auth/useSiweAuth.js";
|
10
10
|
import type { ConnectButtonProps } from "../../../core/hooks/connection/ConnectButtonProps.js";
|
11
11
|
import type { ConnectEmbedProps } from "../../../core/hooks/connection/ConnectEmbedProps.js";
|
12
|
+
import { useActiveAccount } from "../../../core/hooks/wallets/useActiveAccount.js";
|
12
13
|
import { useActiveWallet } from "../../../core/hooks/wallets/useActiveWallet.js";
|
13
14
|
import { useDisconnect } from "../../../core/hooks/wallets/useDisconnect.js";
|
14
15
|
import { useConnectionManager } from "../../../core/providers/connection-manager.js";
|
@@ -60,7 +61,8 @@ export type ModalState =
|
|
60
61
|
export function ConnectEmbed(props: ConnectEmbedProps) {
|
61
62
|
const theme = parseTheme(props.theme);
|
62
63
|
const wallet = useActiveWallet();
|
63
|
-
const
|
64
|
+
const account = useActiveAccount();
|
65
|
+
const siweAuth = useSiweAuth(wallet, account, props.auth);
|
64
66
|
const needsAuth = siweAuth.requiresAuth && !siweAuth.isLoggedIn;
|
65
67
|
const isConnected = wallet && !needsAuth;
|
66
68
|
const adaptedProps = {
|
@@ -310,9 +310,9 @@ const ViewFunds = (props: ConnectedModalPropsInner) => {
|
|
310
310
|
};
|
311
311
|
|
312
312
|
const DisconnectWallet = (props: ConnectedModalProps) => {
|
313
|
-
const { wallet, theme, onClose } = props;
|
313
|
+
const { wallet, account, theme, onClose } = props;
|
314
314
|
const { disconnect } = useDisconnect();
|
315
|
-
const siweAuth = useSiweAuth(wallet, props.auth);
|
315
|
+
const siweAuth = useSiweAuth(wallet, account, props.auth);
|
316
316
|
return (
|
317
317
|
<TouchableOpacity
|
318
318
|
style={styles.walletMenuRow}
|
@@ -363,7 +363,7 @@ function ConnectButtonInner(
|
|
363
363
|
) {
|
364
364
|
const activeWallet = useActiveWallet();
|
365
365
|
const activeAccount = useActiveAccount();
|
366
|
-
const siweAuth = useSiweAuth(activeWallet, props.auth);
|
366
|
+
const siweAuth = useSiweAuth(activeWallet, activeAccount, props.auth);
|
367
367
|
const [showSignatureModal, setShowSignatureModal] = useState(false);
|
368
368
|
|
369
369
|
// if wallet gets disconnected suddently, close the signature modal if it's open
|
@@ -181,7 +181,7 @@ import { useSetupScreen } from "./screen.js";
|
|
181
181
|
export function ConnectEmbed(props: ConnectEmbedProps) {
|
182
182
|
const activeWallet = useActiveWallet();
|
183
183
|
const activeAccount = useActiveAccount();
|
184
|
-
const siweAuth = useSiweAuth(activeWallet, props.auth);
|
184
|
+
const siweAuth = useSiweAuth(activeWallet, activeAccount, props.auth);
|
185
185
|
const show =
|
186
186
|
!activeAccount || (siweAuth.requiresAuth && !siweAuth.isLoggedIn);
|
187
187
|
|
@@ -334,8 +334,8 @@ const ConnectEmbedContent = (props: {
|
|
334
334
|
});
|
335
335
|
const { setScreen, initialScreen, screen } = screenSetup;
|
336
336
|
const activeWallet = useActiveWallet();
|
337
|
-
const siweAuth = useSiweAuth(activeWallet, props.auth);
|
338
337
|
const activeAccount = useActiveAccount();
|
338
|
+
const siweAuth = useSiweAuth(activeWallet, activeAccount, props.auth);
|
339
339
|
|
340
340
|
const isAutoConnecting = useIsAutoConnecting();
|
341
341
|
|
@@ -9,6 +9,7 @@ import {
|
|
9
9
|
type SiweAuthOptions,
|
10
10
|
useSiweAuth,
|
11
11
|
} from "../../../../core/hooks/auth/useSiweAuth.js";
|
12
|
+
import { useActiveAccount } from "../../../../core/hooks/wallets/useActiveAccount.js";
|
12
13
|
import { useActiveWallet } from "../../../../core/hooks/wallets/useActiveWallet.js";
|
13
14
|
import { useSetActiveWallet } from "../../../../core/hooks/wallets/useSetActiveWallet.js";
|
14
15
|
import { useConnectionManager } from "../../../../core/providers/connection-manager.js";
|
@@ -76,9 +77,9 @@ export const ConnectModalContent = (props: {
|
|
76
77
|
const { screen, setScreen, initialScreen } = props.screenSetup;
|
77
78
|
const setActiveWallet = useSetActiveWallet();
|
78
79
|
const setSelectionData = useSetSelectionData();
|
79
|
-
|
80
80
|
const activeWallet = useActiveWallet();
|
81
|
-
const
|
81
|
+
const activeAccount = useActiveAccount();
|
82
|
+
const siweAuth = useSiweAuth(activeWallet, activeAccount, props.auth);
|
82
83
|
const showSignatureScreen = siweAuth.requiresAuth && !siweAuth.isLoggedIn;
|
83
84
|
const connectionManager = useConnectionManager();
|
84
85
|
|
@@ -11,6 +11,7 @@ import {
|
|
11
11
|
} from "../../../../core/design-system/index.js";
|
12
12
|
import { useSiweAuth } from "../../../../core/hooks/auth/useSiweAuth.js";
|
13
13
|
import type { ConnectButtonProps } from "../../../../core/hooks/connection/ConnectButtonProps.js";
|
14
|
+
import { useActiveAccount } from "../../../../core/hooks/wallets/useActiveAccount.js";
|
14
15
|
import { useActiveWallet } from "../../../../core/hooks/wallets/useActiveWallet.js";
|
15
16
|
import { useDisconnect } from "../../../../core/hooks/wallets/useDisconnect.js";
|
16
17
|
import { wait } from "../../../../core/utils/wait.js";
|
@@ -46,7 +47,8 @@ export const SignatureScreen: React.FC<{
|
|
46
47
|
} = props;
|
47
48
|
|
48
49
|
const activeWallet = useActiveWallet();
|
49
|
-
const
|
50
|
+
const activeAccount = useActiveAccount();
|
51
|
+
const siweAuth = useSiweAuth(activeWallet, activeAccount, props.auth);
|
50
52
|
const [status, setStatus] = useState<Status>("idle");
|
51
53
|
const { disconnect } = useDisconnect();
|
52
54
|
const wallet = useActiveWallet();
|
@@ -14,7 +14,7 @@ import {
|
|
14
14
|
import { serializeTransaction } from "../serialize-transaction.js";
|
15
15
|
import { toSerializableTransaction } from "./to-serializable-transaction.js";
|
16
16
|
|
17
|
-
describe("toSerializableTransaction", () => {
|
17
|
+
describe.runIf(process.env.TW_SECRET_KEY)("toSerializableTransaction", () => {
|
18
18
|
let transaction: PreparedTransaction;
|
19
19
|
beforeAll(() => {
|
20
20
|
transaction = prepareTransaction({
|
@@ -26,7 +26,7 @@ const BASE_TRANSACTION = {
|
|
26
26
|
value: toWei("1"),
|
27
27
|
} as const satisfies TransactionSerializableBase;
|
28
28
|
|
29
|
-
describe("eip1559", () => {
|
29
|
+
describe.runIf(process.env.TW_SECRET_KEY)("eip1559", () => {
|
30
30
|
const baseEip1559 = {
|
31
31
|
...BASE_TRANSACTION,
|
32
32
|
chainId: 1,
|
@@ -246,7 +246,12 @@ function serializeTransactionLegacy(
|
|
246
246
|
if (typeof s === "undefined")
|
247
247
|
throw new Error(`Invalid legacy signature value s: ${s}`);
|
248
248
|
|
249
|
-
serializedTransaction = [
|
249
|
+
serializedTransaction = [
|
250
|
+
...serializedTransaction,
|
251
|
+
toHex(v_),
|
252
|
+
r === "0x00" ? "0x" : r,
|
253
|
+
s === "0x00" ? "0x" : s,
|
254
|
+
];
|
250
255
|
} else if (chainId > 0) {
|
251
256
|
serializedTransaction = [
|
252
257
|
...serializedTransaction,
|
@@ -262,11 +267,16 @@ function serializeTransactionLegacy(
|
|
262
267
|
export function toYParitySignatureArray(
|
263
268
|
signature: ExactPartial<Signature>,
|
264
269
|
): Hex[] {
|
265
|
-
const {
|
266
|
-
|
267
|
-
if (typeof
|
270
|
+
const { v, yParity } = signature;
|
271
|
+
|
272
|
+
if (typeof signature.r === "undefined") return [];
|
273
|
+
if (typeof signature.s === "undefined") return [];
|
274
|
+
|
268
275
|
if (typeof v === "undefined" && typeof yParity === "undefined") return [];
|
269
276
|
|
277
|
+
const r = trim(signature.r);
|
278
|
+
const s = trim(signature.s);
|
279
|
+
|
270
280
|
const yParity_ = (() => {
|
271
281
|
if (yParity === 1 || yParity === 0) return yParity ? toHex(1) : "0x";
|
272
282
|
if (typeof yParity !== "undefined")
|
@@ -276,5 +286,5 @@ export function toYParitySignatureArray(
|
|
276
286
|
if (v === 1n || v === 28n) return toHex(1);
|
277
287
|
throw new Error(`Invalid signature value v: ${v}`);
|
278
288
|
})();
|
279
|
-
return [yParity_,
|
289
|
+
return [yParity_, r === "0x00" ? "0x" : r, s === "0x00" ? "0x" : s];
|
280
290
|
}
|