@layerswap/widget 0.1.4 → 0.1.14
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 +78 -3
- package/dist/Models/Theme.d.ts +7 -6
- package/dist/Models/Theme.js +7 -7
- package/dist/Models/WalletProvider.d.ts +0 -4
- package/dist/Models/WalletProvider.js +2 -0
- package/dist/components/Buttons/copyButton.js +4 -3
- package/dist/components/ColorSchema.js +79 -45
- package/dist/components/Common/AddressIcon.js +1 -0
- package/dist/components/Common/AverageCompletionTime.js +1 -1
- package/dist/components/Common/CountDownTimer.js +2 -2
- package/dist/components/Common/FormattedAverageCompletionTime.js +1 -1
- package/dist/components/HeaderWithMenu/index.js +1 -8
- package/dist/components/Input/Address/AddressNote.js +3 -2
- package/dist/components/Input/Address/AddressPicker/AddressWithIcon.js +2 -2
- package/dist/components/Input/Address/AddressPicker/ConnectedWallets/ConnectWalletButton.js +12 -5
- package/dist/components/Input/Address/AddressPicker/ExchangeNote.d.ts +1 -1
- package/dist/components/Input/Address/AddressPicker/ExchangeNote.js +1 -1
- package/dist/components/Input/RouteIcon.js +1 -1
- package/dist/components/LayerswapMenu/MenuList.js +2 -56
- package/dist/components/Pages/404/index.js +1 -0
- package/dist/components/Pages/Auth/Steps/CodeStep/VerifyEmailCode.js +1 -0
- package/dist/components/Pages/Auth/index.d.ts +1 -1
- package/dist/components/Pages/Auth/index.js +3 -2
- package/dist/components/Pages/Campaigns/Details/Leaderboard.js +1 -0
- package/dist/components/Pages/Campaigns/Details/index.d.ts +1 -1
- package/dist/components/Pages/Campaigns/Details/index.js +3 -2
- package/dist/components/Pages/Campaigns/index.d.ts +1 -1
- package/dist/components/Pages/Campaigns/index.js +3 -2
- package/dist/components/Pages/Maintanance/index.js +1 -0
- package/dist/components/Pages/NoCookies/index.js +1 -0
- package/dist/components/Pages/SwapHistory/History.js +1 -2
- package/dist/components/Pages/SwapHistory/index.d.ts +1 -1
- package/dist/components/Pages/SwapHistory/index.js +4 -3
- package/dist/components/Pages/SwapPages/Form/FeeDetails/Campaign.js +1 -0
- package/dist/components/Pages/SwapPages/Form/Form.js +1 -4
- package/dist/components/Pages/SwapPages/Form/SecondaryComponents/ValidationError.js +1 -1
- package/dist/components/Pages/SwapPages/Form/Select/Popover/PopoverSelect.js +1 -1
- package/dist/components/Pages/SwapPages/Form/index.js +1 -0
- package/dist/components/Pages/SwapPages/Withdraw/Coinbase/Carousel.js +8 -6
- package/dist/components/Pages/SwapPages/Withdraw/Processing/Processing.js +2 -2
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/FuelWalletWithdrawal.d.ts +0 -4
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/FuelWalletWithdrawal.js +159 -125
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/ImtblxWalletWithdrawStep.d.ts +0 -4
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/ImtblxWalletWithdrawStep.js +69 -51
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/Loopring/ActivationTokentPicker.d.ts +0 -8
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/Loopring/ActivationTokentPicker.js +87 -45
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/Loopring/hooks.d.ts +0 -40
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/Loopring/hooks.js +73 -46
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/Loopring/index.d.ts +0 -4
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/Loopring/index.js +175 -128
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/SVMWalletWithdraw/index.d.ts +0 -7
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/SVMWalletWithdraw/index.js +138 -116
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/SVMWalletWithdraw/transactionSender.d.ts +0 -8
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/SVMWalletWithdraw/transactionSender.js +96 -75
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/SophonWalletWithdraw.js +2 -2
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/StarknetWalletWithdraw.d.ts +0 -4
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/StarknetWalletWithdraw.js +88 -71
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/TonWalletWithdraw.d.ts +0 -4
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/TonWalletWithdraw.js +146 -136
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/TronWalletWithdraw.d.ts +0 -4
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/TronWalletWithdraw.js +120 -99
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/WalletTransfer/TransferToken.js +3 -3
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/WalletTransfer/buttons.js +1 -0
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/WalletTransfer/index.js +1 -1
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/WalletTransfer/transactionMessage.js +2 -2
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/WalletTransferContent.js +101 -33
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/paradex/Evm.d.ts +0 -4
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/paradex/Evm.js +60 -55
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/paradex/Starknet.d.ts +0 -4
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/paradex/Starknet.js +71 -55
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/paradex/buttons.js +1 -0
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/paradex/index.d.ts +0 -4
- package/dist/components/Pages/SwapPages/Withdraw/Wallet/paradex/index.js +56 -52
- package/dist/components/Pages/SwapPages/Withdraw/index.d.ts +1 -1
- package/dist/components/Pages/SwapPages/Withdraw/index.js +3 -2
- package/dist/components/Wallet/WalletModal/Connector.js +1 -1
- package/dist/components/Wallet/WalletProviders/FuelProvider.d.ts +0 -5
- package/dist/components/Wallet/WalletProviders/FuelProvider.js +25 -20
- package/dist/components/Wallet/WalletProviders/ImtblPassportProvider.d.ts +0 -5
- package/dist/components/Wallet/WalletProviders/ImtblPassportProvider.js +39 -36
- package/dist/components/Wallet/WalletProviders/SolanaProvider.d.ts +0 -5
- package/dist/components/Wallet/WalletProviders/SolanaProvider.js +49 -38
- package/dist/components/Wallet/WalletProviders/StarknetProvider.d.ts +0 -5
- package/dist/components/Wallet/WalletProviders/StarknetProvider.js +112 -117
- package/dist/components/Wallet/WalletProviders/TonConnectProvider.d.ts +0 -6
- package/dist/components/Wallet/WalletProviders/TonConnectProvider.js +58 -50
- package/dist/components/Wallet/WalletProviders/TronProvider.d.ts +0 -3
- package/dist/components/Wallet/WalletProviders/TronProvider.js +23 -15
- package/dist/components/Wallet/WalletProviders/Wagmi.d.ts +1 -1
- package/dist/components/Wallet/WalletProviders/Wagmi.js +20 -10
- package/dist/components/Wallet/WalletProviders/index.js +13 -6
- package/dist/components/Widget/Footer.d.ts +2 -1
- package/dist/components/Widget/Footer.js +13 -4
- package/dist/components/Widget/Index.d.ts +1 -1
- package/dist/components/Widget/Index.js +1 -1
- package/dist/components/WidgetLoading.d.ts +1 -0
- package/dist/components/WidgetLoading.js +5 -0
- package/dist/components/Wizard/Wizard.js +1 -1
- package/dist/components/shadcn/command.js +1 -1
- package/dist/components/themeWrapper.js +3 -2
- package/dist/context/{LayerswapContext.d.ts → LayerswapProvider.d.ts} +3 -8
- package/dist/context/{LayerswapContext.js → LayerswapProvider.js} +8 -9
- package/dist/context/authContext.js +1 -0
- package/dist/context/walletHooksProvider.js +1 -0
- package/dist/hooks/useWallet.js +10 -14
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/index.js +2 -4
- package/dist/index.mjs +19 -0
- package/dist/lib/AppSettings.d.ts +7 -3
- package/dist/lib/AppSettings.js +8 -7
- package/dist/lib/address/formatter/index.js +8 -9
- package/dist/lib/address/validator/index.js +18 -20
- package/dist/lib/axiosInterceptor.js +1 -2
- package/dist/lib/balances/balanceResolver.js +16 -16
- package/dist/lib/balances/providers/evmBalanceProvider.js +3 -3
- package/dist/lib/balances/providers/loopringBalanceProvider.d.ts +0 -6
- package/dist/lib/balances/providers/loopringBalanceProvider.js +56 -43
- package/dist/lib/balances/providers/paradexBalanceProvider.d.ts +0 -6
- package/dist/lib/balances/providers/paradexBalanceProvider.js +42 -42
- package/dist/lib/balances/providers/solanaBalanceProvider.d.ts +0 -6
- package/dist/lib/balances/providers/solanaBalanceProvider.js +70 -71
- package/dist/lib/balances/providers/starknetBalanceProvider.d.ts +0 -6
- package/dist/lib/balances/providers/starknetBalanceProvider.js +48 -45
- package/dist/lib/balances/providers/tonBalanceProvider.d.ts +0 -18
- package/dist/lib/balances/providers/tonBalanceProvider.js +104 -100
- package/dist/lib/balances/providers/tronBalanceResolver.js +2 -3
- package/dist/lib/fuels/common/FakeAccount.d.ts +0 -24
- package/dist/lib/fuels/common/FakeAccount.js +58 -36
- package/dist/lib/fuels/common/PredicateConnector.d.ts +0 -54
- package/dist/lib/fuels/common/PredicateConnector.js +292 -205
- package/dist/lib/fuels/common/PredicateFactory.d.ts +0 -29
- package/dist/lib/fuels/common/PredicateFactory.js +123 -76
- package/dist/lib/fuels/common/PredicateWalletAdapter.d.ts +0 -17
- package/dist/lib/fuels/common/PredicateWalletAdapter.js +44 -29
- package/dist/lib/fuels/common/index.d.ts +0 -4
- package/dist/lib/fuels/common/index.js +4 -4
- package/dist/lib/fuels/connectors/fuel-wallet/FuelWalletConnector.d.ts +0 -51
- package/dist/lib/fuels/connectors/fuel-wallet/FuelWalletConnector.js +268 -234
- package/dist/lib/fuels/connectors/fuel-wallet/index.d.ts +0 -2
- package/dist/lib/fuels/connectors/fuel-wallet/index.js +2 -2
- package/dist/lib/fuels/connectors/fuel-wallet/types.d.ts +0 -50
- package/dist/lib/fuels/connectors/fuel-wallet/types.js +53 -9
- package/dist/lib/fuels/connectors/fuelet-wallet/FueletWalletConnector.d.ts +0 -7
- package/dist/lib/fuels/connectors/fuelet-wallet/FueletWalletConnector.js +20 -19
- package/dist/lib/fuels/connectors/fuelet-wallet/index.d.ts +0 -1
- package/dist/lib/fuels/connectors/fuelet-wallet/index.js +1 -1
- package/dist/lib/gases/gasResolver.d.ts +1 -1
- package/dist/lib/gases/gasResolver.js +10 -10
- package/dist/lib/gases/providers/evmGasProvider.js +5 -4
- package/dist/lib/gases/providers/loopringGasProvider.d.ts +0 -6
- package/dist/lib/gases/providers/loopringGasProvider.js +27 -24
- package/dist/lib/gases/providers/solanaGasProvider.d.ts +0 -7
- package/dist/lib/gases/providers/solanaGasProvider.js +32 -31
- package/dist/lib/gases/providers/starknetGasProvider.d.ts +0 -7
- package/dist/lib/gases/providers/starknetGasProvider.js +34 -33
- package/dist/lib/imtbl.d.ts +0 -69
- package/dist/lib/imtbl.js +63 -60
- package/dist/lib/internalApiClient.d.ts +0 -2
- package/dist/lib/internalApiClient.js +1 -4
- package/dist/lib/layerSwapApiClient.js +3 -3
- package/dist/lib/logError.js +2 -2
- package/dist/lib/nft/nftBalanceResolver.js +1 -2
- package/dist/lib/nft/providers/starknetNftProvider.d.ts +0 -6
- package/dist/lib/nft/providers/starknetNftProvider.js +49 -50
- package/dist/lib/wallets/connectors/EthereumProvider.d.ts +2 -2
- package/dist/lib/wallets/connectors/useSyncProviders/store.d.ts +1 -4
- package/dist/lib/wallets/fuel/Bako.d.ts +0 -15
- package/dist/lib/wallets/fuel/Bako.js +34 -29
- package/dist/lib/wallets/fuel/Basko.d.ts +0 -15
- package/dist/lib/wallets/fuel/Basko.js +34 -29
- package/dist/lib/wallets/fuel/useFuel.d.ts +0 -2
- package/dist/lib/wallets/fuel/useFuel.js +211 -192
- package/dist/lib/wallets/imtblX/useImtblX.d.ts +0 -2
- package/dist/lib/wallets/imtblX/useImtblX.js +87 -87
- package/dist/lib/wallets/paradex/Authorize/Ethereum.d.ts +0 -2
- package/dist/lib/wallets/paradex/Authorize/Ethereum.js +24 -23
- package/dist/lib/wallets/paradex/Authorize/Starknet.d.ts +0 -2
- package/dist/lib/wallets/paradex/Authorize/Starknet.js +14 -13
- package/dist/lib/wallets/paradex/lib/account.d.ts +0 -28
- package/dist/lib/wallets/paradex/lib/account.js +102 -53
- package/dist/lib/wallets/paradex/lib/index.d.ts +0 -24
- package/dist/lib/wallets/paradex/lib/index.js +20 -20
- package/dist/lib/wallets/paradex/lib/paraclear-provider.d.ts +0 -6
- package/dist/lib/wallets/paradex/lib/paraclear-provider.js +13 -9
- package/dist/lib/wallets/paradex/lib/paraclear.d.ts +0 -137
- package/dist/lib/wallets/paradex/lib/paraclear.js +258 -131
- package/dist/lib/wallets/paradex/lib/starknet-account-support.d.ts +0 -22
- package/dist/lib/wallets/paradex/lib/starknet-account-support.js +296 -220
- package/dist/lib/wallets/paradex/lib/starknet-signer.d.ts +0 -15
- package/dist/lib/wallets/paradex/lib/starknet-signer.js +120 -94
- package/dist/lib/wallets/paradex/useParadex.d.ts +0 -7
- package/dist/lib/wallets/paradex/useParadex.js +197 -194
- package/dist/lib/wallets/solana/transactionBuilder.d.ts +0 -4
- package/dist/lib/wallets/solana/transactionBuilder.js +63 -39
- package/dist/lib/wallets/solana/useSVM.d.ts +0 -5
- package/dist/lib/wallets/solana/useSVM.js +139 -142
- package/dist/lib/wallets/starknet/useStarknet.d.ts +0 -2
- package/dist/lib/wallets/starknet/useStarknet.js +139 -139
- package/dist/lib/wallets/ton/client.d.ts +0 -3
- package/dist/lib/wallets/ton/client.js +7 -7
- package/dist/lib/wallets/ton/useTON.d.ts +0 -2
- package/dist/lib/wallets/ton/useTON.js +121 -122
- package/dist/lib/wallets/tron/connectors/bitkeep.d.ts +0 -61
- package/dist/lib/wallets/tron/connectors/bitkeep.js +326 -303
- package/dist/lib/wallets/tron/connectors/index.d.ts +0 -4
- package/dist/lib/wallets/tron/connectors/index.js +4 -4
- package/dist/lib/wallets/tron/connectors/okxWallet.d.ts +0 -66
- package/dist/lib/wallets/tron/connectors/okxWallet.js +364 -336
- package/dist/lib/wallets/tron/connectors/tokenPocket.d.ts +0 -72
- package/dist/lib/wallets/tron/connectors/tokenPocket.js +337 -308
- package/dist/lib/wallets/tron/connectors/tronLink/index.d.ts +0 -102
- package/dist/lib/wallets/tron/connectors/tronLink/index.js +560 -520
- package/dist/lib/wallets/tron/connectors/tronLink/types.d.ts +0 -56
- package/dist/lib/wallets/tron/connectors/tronLink/types.js +53 -1
- package/dist/lib/wallets/tron/connectors/tronLink/utils.d.ts +0 -14
- package/dist/lib/wallets/tron/connectors/tronLink/utils.js +64 -61
- package/dist/lib/wallets/tron/useTron.d.ts +0 -2
- package/dist/lib/wallets/tron/useTron.js +111 -111
- package/dist/lib/wallets/utils/resolveWalletIcon.js +1 -0
- package/package.json +26 -77
- package/dist/hooks/useCopyClipboard.d.ts +0 -1
- package/dist/hooks/useCopyClipboard.js +0 -21
- package/dist/index.cjs +0 -125
- package/dist/lib/abis/ERC20.json +0 -258
- package/dist/lib/fuels/connectors/walletConnect/WalletConnectConnector.d.ts +0 -42
- package/dist/lib/fuels/connectors/walletConnect/WalletConnectConnector.js +0 -357
- package/dist/lib/fuels/connectors/walletConnect/constants.d.ts +0 -6
- package/dist/lib/fuels/connectors/walletConnect/constants.js +0 -7
- package/dist/lib/fuels/connectors/walletConnect/index.d.ts +0 -3
- package/dist/lib/fuels/connectors/walletConnect/index.js +0 -3
- package/dist/lib/fuels/connectors/walletConnect/types.d.ts +0 -12
- package/dist/lib/fuels/connectors/walletConnect/types.js +0 -1
- package/dist/lib/fuels/connectors/walletConnect/utils/index.d.ts +0 -1
- package/dist/lib/fuels/connectors/walletConnect/utils/index.js +0 -1
- package/dist/lib/fuels/connectors/walletConnect/utils/subscribeAndEnforceChain.d.ts +0 -2
- package/dist/lib/fuels/connectors/walletConnect/utils/subscribeAndEnforceChain.js +0 -39
- package/dist/lib/fuels/connectors/walletConnect/web3Modal.d.ts +0 -10
- package/dist/lib/fuels/connectors/walletConnect/web3Modal.js +0 -38
- package/dist/lib/loopring/LoopringAPI.d.ts +0 -12
- package/dist/lib/loopring/LoopringAPI.js +0 -13
- package/dist/lib/loopring/defs.d.ts +0 -425
- package/dist/lib/loopring/defs.js +0 -217
- package/dist/lib/loopring/eddsa.d.ts +0 -29
- package/dist/lib/loopring/eddsa.js +0 -208
- package/dist/lib/loopring/field.d.ts +0 -17
- package/dist/lib/loopring/field.js +0 -61
- package/dist/lib/loopring/formatter.d.ts +0 -137
- package/dist/lib/loopring/formatter.js +0 -516
- package/dist/lib/loopring/helpers.d.ts +0 -36
- package/dist/lib/loopring/helpers.js +0 -140
- package/dist/lib/loopring/jubjub.d.ts +0 -19
- package/dist/lib/loopring/jubjub.js +0 -79
- package/dist/lib/loopring/permutation.d.ts +0 -22
- package/dist/lib/loopring/permutation.js +0 -198
- package/dist/lib/loopring/poseidon/EDDSAUtil.d.ts +0 -14
- package/dist/lib/loopring/poseidon/EDDSAUtil.js +0 -61
- package/dist/lib/loopring/poseidon/babyJub.d.ts +0 -6
- package/dist/lib/loopring/poseidon/babyJub.js +0 -51
- package/dist/lib/loopring/poseidon/eddsa.d.ts +0 -29
- package/dist/lib/loopring/poseidon/eddsa.js +0 -210
- package/dist/lib/loopring/utils.d.ts +0 -76
- package/dist/lib/loopring/utils.js +0 -230
- package/dist/styles/dialog-transition.css +0 -28
- package/dist/styles/globals.css +0 -372
- package/dist/styles/manual-trasnfer-svg.css +0 -299
- package/dist/styles/vaul.css +0 -256
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerswap/widget",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"description": "Layerswap Widget for cross-chain bridging.",
|
|
3
|
+
"version": "0.1.14",
|
|
4
|
+
"description": "Streamline your asset transaction experience with Layerswap Widget across 50+ blockchains and 15+ exchanges.",
|
|
6
5
|
"main": "dist/index.js",
|
|
7
6
|
"types": "dist/index.d.ts",
|
|
8
7
|
"exports": {
|
|
@@ -22,7 +21,7 @@
|
|
|
22
21
|
"type-check": "tsc --noEmit",
|
|
23
22
|
"clean": "rimraf dist && rm -rf tsconfig.tsbuildinfo",
|
|
24
23
|
"build:js": "tsup",
|
|
25
|
-
"build:css": "tailwindcss -c tailwind.config.js -o dist/index.css --minify
|
|
24
|
+
"build:css": "tailwindcss -c tailwind.config.js -i ./src/styles/globals.css -o dist/index.css --minify",
|
|
26
25
|
"build:types": "tsc --outDir dist",
|
|
27
26
|
"build": "yarn clean && yarn build:js && yarn build:types && yarn build:css",
|
|
28
27
|
"dev": "yarn tsc --build --watch",
|
|
@@ -44,110 +43,60 @@
|
|
|
44
43
|
],
|
|
45
44
|
"license": "MIT",
|
|
46
45
|
"peerDependencies": {
|
|
47
|
-
"react": "^
|
|
48
|
-
"react
|
|
46
|
+
"@tanstack/react-query": "^5.59.20",
|
|
47
|
+
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc",
|
|
48
|
+
"react-dom": "^16.8 || ^17.0 || ^18.0 || ^19.0.0 || ^19.0.0-rc",
|
|
49
|
+
"viem": "^2.21.16",
|
|
50
|
+
"wagmi": "^2.15.0",
|
|
51
|
+
"zustand": "^4.5.1"
|
|
49
52
|
},
|
|
50
53
|
"dependencies": {
|
|
51
|
-
"@bitget-wallet/web3-sdk": "^0.0.8",
|
|
52
|
-
"@datadog/browser-rum": "^5.9.0",
|
|
53
|
-
"@eth-optimism/contracts-ts": "^0.15.0",
|
|
54
|
-
"@ethereumjs/util": "^9.1.0",
|
|
55
|
-
"@fuel-ts/account": "^0.96.1",
|
|
56
|
-
"@fuel-ts/address": "^0.96.1",
|
|
57
|
-
"@fuels/react": "^0.36.1",
|
|
58
54
|
"@headlessui/react": "^2.1.1",
|
|
59
|
-
"@imtbl/imx-sdk": "2.1.1",
|
|
60
|
-
"@imtbl/sdk": "1.45.10",
|
|
61
55
|
"@metamask/jazzicon": "^2.0.0",
|
|
62
|
-
"@
|
|
63
|
-
"@radix-ui/react-
|
|
64
|
-
"@radix-ui/react-
|
|
65
|
-
"@radix-ui/react-
|
|
66
|
-
"@radix-ui/react-
|
|
67
|
-
"@radix-ui/react-
|
|
68
|
-
"@radix-ui/react-
|
|
69
|
-
"@radix-ui/react-
|
|
70
|
-
"@radix-ui/react-tooltip": "^1.0.7",
|
|
71
|
-
"@reown/appkit": "^1.3.2",
|
|
72
|
-
"@reown/appkit-adapter-ethers": "^1.3.2",
|
|
73
|
-
"@reown/appkit-adapter-ethers5": "^1.3.2",
|
|
74
|
-
"@reown/appkit-adapter-wagmi": "^1.3.2",
|
|
75
|
-
"@solana/spl-token": "^0.3.9",
|
|
76
|
-
"@solana/wallet-adapter-base": "0.9.18",
|
|
77
|
-
"@solana/wallet-adapter-coinbase": "^0.1.18",
|
|
78
|
-
"@solana/wallet-adapter-glow": "^0.1.18",
|
|
79
|
-
"@solana/wallet-adapter-phantom": "^0.9.24",
|
|
80
|
-
"@solana/wallet-adapter-react": "^0.15.35",
|
|
81
|
-
"@solana/wallet-adapter-solflare": "0.6.24",
|
|
82
|
-
"@solana/wallet-adapter-walletconnect": "^0.1.16",
|
|
83
|
-
"@solana/wallet-adapter-wallets": "^0.19.32",
|
|
84
|
-
"@solana/web3.js": "1.66.0",
|
|
56
|
+
"@radix-ui/react-accordion": "^1.2.8",
|
|
57
|
+
"@radix-ui/react-checkbox": "^1.2.3",
|
|
58
|
+
"@radix-ui/react-context-menu": "^2.2.12",
|
|
59
|
+
"@radix-ui/react-popover": "^1.1.11",
|
|
60
|
+
"@radix-ui/react-progress": "^1.1.4",
|
|
61
|
+
"@radix-ui/react-select": "^2.2.2",
|
|
62
|
+
"@radix-ui/react-slot": "^1.2.0",
|
|
63
|
+
"@radix-ui/react-tooltip": "^1.2.4",
|
|
85
64
|
"@stablelib/ed25519": "^2.0.2",
|
|
86
|
-
"@starknet-react/chains": "^3.1.0",
|
|
87
|
-
"@starknet-react/core": "^3.7.2",
|
|
88
|
-
"@tailwindcss/forms": "^0.5.0",
|
|
89
|
-
"@tailwindcss/typography": "^0.5.2",
|
|
90
|
-
"@tanstack/query-sync-storage-persister": "^5.66.4",
|
|
91
|
-
"@tanstack/react-query": "^5.59.20",
|
|
92
|
-
"@tanstack/react-query-persist-client": "^5.66.9",
|
|
93
65
|
"@tanstack/react-virtual": "^3.10.8",
|
|
94
|
-
"@ton/core": "^0.53.0",
|
|
95
|
-
"@ton/crypto": "^3.2.0",
|
|
96
|
-
"@ton/ton": "^13.11.1",
|
|
97
|
-
"@tonconnect/ui-react": "^2.0.0-beta.4",
|
|
98
|
-
"@tronweb3/tronwallet-adapter-react-hooks": "^1.1.9",
|
|
99
66
|
"@uidotdev/usehooks": "^2.4.1",
|
|
100
|
-
"@walletconnect/universal-provider": "
|
|
67
|
+
"@walletconnect/universal-provider": "2.19.2",
|
|
101
68
|
"axios": "^0.21.4",
|
|
102
|
-
"blake2b": "^2.1.4",
|
|
103
69
|
"bn.js": "^5.2.0",
|
|
104
70
|
"cmdk": "^0.2.0",
|
|
105
|
-
"copy-to-clipboard": "^3.3.3",
|
|
106
|
-
"crypto-js": "^4.1.1",
|
|
107
71
|
"ethers": "5.7.2",
|
|
108
72
|
"formik": "^2.2.9",
|
|
109
73
|
"framer-motion": "^10.16.15",
|
|
110
|
-
"fuels": "^0.98.0",
|
|
111
|
-
"get-starknet-core": "^3.3.4",
|
|
112
74
|
"js-sha3": "^0.8.0",
|
|
113
75
|
"js-sha512": "^0.9.0",
|
|
114
|
-
"json-rpc-2.0": "1.7.0",
|
|
115
76
|
"lucide-react": "^0.379.0",
|
|
116
|
-
"memoizee": "^0.4.17",
|
|
117
77
|
"qrcode.react": "^3.1.0",
|
|
118
78
|
"react-error-boundary": "^4.0.11",
|
|
119
79
|
"react-hot-toast": "^2.2.0",
|
|
120
|
-
"react-swipeable": "^7.0.0",
|
|
121
80
|
"react-use-intercom": "^5.4.3",
|
|
122
|
-
"starknet": "^6.23.1",
|
|
123
|
-
"starknetkit": "^2.10.4",
|
|
124
81
|
"swr": "^2.2.5",
|
|
125
82
|
"tailwindcss": "^3.0.24",
|
|
126
|
-
"tailwindcss-animate": "^1.0.5",
|
|
127
|
-
"tailwindcss-themer": "^2.0.2",
|
|
128
|
-
"ton": "^13.9.0",
|
|
129
83
|
"uuid": "^9.0.0",
|
|
130
|
-
"
|
|
131
|
-
"wagmi": "2.15.0",
|
|
132
|
-
"web-encoding": "^1.1.5",
|
|
133
|
-
"web3": "1.8.0",
|
|
134
|
-
"zksync": "0.13.1",
|
|
135
|
-
"zustand": "^4.4.1"
|
|
84
|
+
"zksync": "0.13.1"
|
|
136
85
|
},
|
|
137
86
|
"devDependencies": {
|
|
87
|
+
"@tanstack/react-query": "^5.59.20",
|
|
138
88
|
"@types/bn.js": "^5.1.0",
|
|
139
|
-
"@types/crypto-js": "^4.1.1",
|
|
140
89
|
"@types/node": "^16.11.7",
|
|
141
90
|
"@types/styled-jsx": "^3.4.4",
|
|
142
|
-
"@
|
|
91
|
+
"@walletconnect/types": "^2.20.0",
|
|
143
92
|
"autoprefixer": "^10.4.21",
|
|
144
|
-
"cross-env": "^7.0.3",
|
|
145
93
|
"eslint": "8.49.0",
|
|
146
94
|
"eslint-plugin-no-conditional-literals-in-jsx": "file:eslint-plugins/eslint-plugin-no-conditional-literals-in-jsx",
|
|
147
95
|
"postcss": "^8.5.3",
|
|
148
|
-
"tronweb": "^6.0.0",
|
|
149
96
|
"tsup": "^8.4.0",
|
|
150
|
-
"typescript": "^5.1"
|
|
97
|
+
"typescript": "^5.1",
|
|
98
|
+
"viem": "^2.21.16",
|
|
99
|
+
"wagmi": "2.15.0"
|
|
151
100
|
},
|
|
152
101
|
"resolutions": {
|
|
153
102
|
"rpc-websockets": "7.11.0",
|
|
@@ -155,7 +104,7 @@
|
|
|
155
104
|
"@radix-ui/react-dismissable-layer": "1.1.1"
|
|
156
105
|
},
|
|
157
106
|
"engines": {
|
|
158
|
-
"node": ">=
|
|
107
|
+
"node": ">=22"
|
|
159
108
|
},
|
|
160
109
|
"directories": {
|
|
161
110
|
"lib": "lib"
|
|
@@ -163,4 +112,4 @@
|
|
|
163
112
|
"bugs": {
|
|
164
113
|
"url": "https://github.com/layerswap/layerswapapp/issues"
|
|
165
114
|
}
|
|
166
|
-
}
|
|
115
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useCopyClipboard(timeout?: number): [boolean, (toCopy: string | number) => void];
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import copy from 'copy-to-clipboard';
|
|
2
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
3
|
-
export default function useCopyClipboard(timeout = 500) {
|
|
4
|
-
const [isCopied, setIsCopied] = useState(false);
|
|
5
|
-
const staticCopy = useCallback((text) => {
|
|
6
|
-
const didCopy = copy(text);
|
|
7
|
-
setIsCopied(didCopy);
|
|
8
|
-
}, []);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
if (isCopied) {
|
|
11
|
-
const hide = setTimeout(() => {
|
|
12
|
-
setIsCopied(false);
|
|
13
|
-
}, timeout);
|
|
14
|
-
return () => {
|
|
15
|
-
clearTimeout(hide);
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
return undefined;
|
|
19
|
-
}, [isCopied, setIsCopied, timeout]);
|
|
20
|
-
return [isCopied, staticCopy];
|
|
21
|
-
}
|
package/dist/index.cjs
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var Form = require('./components/Pages/SwapPages/Form');
|
|
4
|
-
var Withdraw = require('./components/Pages/SwapPages/Withdraw');
|
|
5
|
-
var SwapHistory = require('./components/Pages/SwapHistory');
|
|
6
|
-
var Auth = require('./components/Pages/Auth');
|
|
7
|
-
var Maintanance = require('./components/Pages/Maintanance');
|
|
8
|
-
var Campaigns = require('./components/Pages/Campaigns');
|
|
9
|
-
var Details = require('./components/Pages/Campaigns/Details');
|
|
10
|
-
var NoCookies = require('./components/Pages/NoCookies');
|
|
11
|
-
var _404 = require('./components/Pages/404');
|
|
12
|
-
var LayerSwapSettings = require('./Models/LayerSwapSettings');
|
|
13
|
-
var Theme = require('./Models/Theme');
|
|
14
|
-
var authContext = require('./context/authContext');
|
|
15
|
-
var GetSettings = require('./lib/GetSettings');
|
|
16
|
-
var LayerswapContext = require('./context/LayerswapContext');
|
|
17
|
-
var walletHooksProvider = require('./context/walletHooksProvider');
|
|
18
|
-
var settings = require('./context/settings');
|
|
19
|
-
var resolveWalletIcon = require('./lib/wallets/utils/resolveWalletIcon');
|
|
20
|
-
var Network = require('./Models/Network');
|
|
21
|
-
var useWallet = require('./hooks/useWallet');
|
|
22
|
-
|
|
23
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
24
|
-
|
|
25
|
-
var LayerswapContext__default = /*#__PURE__*/_interopDefault(LayerswapContext);
|
|
26
|
-
var useWallet__default = /*#__PURE__*/_interopDefault(useWallet);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Object.defineProperty(exports, "Swap", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () { return Form.Swap; }
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(exports, "SwapWithdrawal", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function () { return Withdraw.SwapWithdrawal; }
|
|
37
|
-
});
|
|
38
|
-
Object.defineProperty(exports, "TransactionsHistory", {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: function () { return SwapHistory.TransactionsHistory; }
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "Auth", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () { return Auth.Auth; }
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(exports, "Maintanance", {
|
|
47
|
-
enumerable: true,
|
|
48
|
-
get: function () { return Maintanance.Maintanance; }
|
|
49
|
-
});
|
|
50
|
-
Object.defineProperty(exports, "Campaigns", {
|
|
51
|
-
enumerable: true,
|
|
52
|
-
get: function () { return Campaigns.Campaigns; }
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "CampaignDetails", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () { return Details.CampaignDetails; }
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(exports, "NoCookies", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
get: function () { return NoCookies.NoCookies; }
|
|
61
|
-
});
|
|
62
|
-
Object.defineProperty(exports, "Custom404", {
|
|
63
|
-
enumerable: true,
|
|
64
|
-
get: function () { return _404.Custom404; }
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "LayerSwapSettings", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () { return LayerSwapSettings.LayerSwapSettings; }
|
|
69
|
-
});
|
|
70
|
-
Object.defineProperty(exports, "THEME_COLORS", {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
get: function () { return Theme.THEME_COLORS; }
|
|
73
|
-
});
|
|
74
|
-
Object.defineProperty(exports, "AuthDataUpdateContext", {
|
|
75
|
-
enumerable: true,
|
|
76
|
-
get: function () { return authContext.AuthDataUpdateContext; }
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "AuthProvider", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function () { return authContext.AuthProvider; }
|
|
81
|
-
});
|
|
82
|
-
Object.defineProperty(exports, "AuthStateContext", {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
get: function () { return authContext.AuthStateContext; }
|
|
85
|
-
});
|
|
86
|
-
Object.defineProperty(exports, "useAuthDataUpdate", {
|
|
87
|
-
enumerable: true,
|
|
88
|
-
get: function () { return authContext.useAuthDataUpdate; }
|
|
89
|
-
});
|
|
90
|
-
Object.defineProperty(exports, "useAuthState", {
|
|
91
|
-
enumerable: true,
|
|
92
|
-
get: function () { return authContext.useAuthState; }
|
|
93
|
-
});
|
|
94
|
-
Object.defineProperty(exports, "GetSettings", {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
get: function () { return GetSettings.GetSettings; }
|
|
97
|
-
});
|
|
98
|
-
Object.defineProperty(exports, "LayerswapContext", {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
get: function () { return LayerswapContext__default.default; }
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(exports, "WalletHooksProvider", {
|
|
103
|
-
enumerable: true,
|
|
104
|
-
get: function () { return walletHooksProvider.WalletHooksProvider; }
|
|
105
|
-
});
|
|
106
|
-
Object.defineProperty(exports, "useSettingsState", {
|
|
107
|
-
enumerable: true,
|
|
108
|
-
get: function () { return settings.useSettingsState; }
|
|
109
|
-
});
|
|
110
|
-
Object.defineProperty(exports, "resolveWalletConnectorIcon", {
|
|
111
|
-
enumerable: true,
|
|
112
|
-
get: function () { return resolveWalletIcon.resolveWalletConnectorIcon; }
|
|
113
|
-
});
|
|
114
|
-
Object.defineProperty(exports, "NetworkType", {
|
|
115
|
-
enumerable: true,
|
|
116
|
-
get: function () { return Network.NetworkType; }
|
|
117
|
-
});
|
|
118
|
-
Object.defineProperty(exports, "NetworkWithTokens", {
|
|
119
|
-
enumerable: true,
|
|
120
|
-
get: function () { return Network.NetworkWithTokens; }
|
|
121
|
-
});
|
|
122
|
-
Object.defineProperty(exports, "useWallet", {
|
|
123
|
-
enumerable: true,
|
|
124
|
-
get: function () { return useWallet__default.default; }
|
|
125
|
-
});
|
package/dist/lib/abis/ERC20.json
DELETED
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"members": [
|
|
4
|
-
{
|
|
5
|
-
"name": "low",
|
|
6
|
-
"offset": 0,
|
|
7
|
-
"type": "felt"
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"name": "high",
|
|
11
|
-
"offset": 1,
|
|
12
|
-
"type": "felt"
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
"name": "Uint256",
|
|
16
|
-
"size": 2,
|
|
17
|
-
"type": "struct"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"inputs": [
|
|
21
|
-
{
|
|
22
|
-
"name": "name",
|
|
23
|
-
"type": "felt"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"name": "symbol",
|
|
27
|
-
"type": "felt"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "recipient",
|
|
31
|
-
"type": "felt"
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"name": "constructor",
|
|
35
|
-
"outputs": [],
|
|
36
|
-
"type": "constructor"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"inputs": [],
|
|
40
|
-
"name": "name",
|
|
41
|
-
"outputs": [
|
|
42
|
-
{
|
|
43
|
-
"name": "name",
|
|
44
|
-
"type": "felt"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"stateMutability": "view",
|
|
48
|
-
"type": "function"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"inputs": [],
|
|
52
|
-
"name": "symbol",
|
|
53
|
-
"outputs": [
|
|
54
|
-
{
|
|
55
|
-
"name": "symbol",
|
|
56
|
-
"type": "felt"
|
|
57
|
-
}
|
|
58
|
-
],
|
|
59
|
-
"stateMutability": "view",
|
|
60
|
-
"type": "function"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"inputs": [],
|
|
64
|
-
"name": "totalSupply",
|
|
65
|
-
"outputs": [
|
|
66
|
-
{
|
|
67
|
-
"name": "totalSupply",
|
|
68
|
-
"type": "Uint256"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"stateMutability": "view",
|
|
72
|
-
"type": "function"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"inputs": [],
|
|
76
|
-
"name": "decimals",
|
|
77
|
-
"outputs": [
|
|
78
|
-
{
|
|
79
|
-
"name": "decimals",
|
|
80
|
-
"type": "felt"
|
|
81
|
-
}
|
|
82
|
-
],
|
|
83
|
-
"stateMutability": "view",
|
|
84
|
-
"type": "function"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"inputs": [
|
|
88
|
-
{
|
|
89
|
-
"name": "account",
|
|
90
|
-
"type": "felt"
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
"name": "balanceOf",
|
|
94
|
-
"outputs": [
|
|
95
|
-
{
|
|
96
|
-
"name": "balance",
|
|
97
|
-
"type": "Uint256"
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"stateMutability": "view",
|
|
101
|
-
"type": "function"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"inputs": [
|
|
105
|
-
{
|
|
106
|
-
"name": "owner",
|
|
107
|
-
"type": "felt"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"name": "spender",
|
|
111
|
-
"type": "felt"
|
|
112
|
-
}
|
|
113
|
-
],
|
|
114
|
-
"name": "allowance",
|
|
115
|
-
"outputs": [
|
|
116
|
-
{
|
|
117
|
-
"name": "remaining",
|
|
118
|
-
"type": "Uint256"
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"stateMutability": "view",
|
|
122
|
-
"type": "function"
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"inputs": [
|
|
126
|
-
{
|
|
127
|
-
"name": "recipient",
|
|
128
|
-
"type": "felt"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"name": "amount",
|
|
132
|
-
"type": "Uint256"
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
"name": "transfer",
|
|
136
|
-
"outputs": [
|
|
137
|
-
{
|
|
138
|
-
"name": "success",
|
|
139
|
-
"type": "felt"
|
|
140
|
-
}
|
|
141
|
-
],
|
|
142
|
-
"type": "function"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"inputs": [
|
|
146
|
-
{
|
|
147
|
-
"name": "sender",
|
|
148
|
-
"type": "felt"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"name": "recipient",
|
|
152
|
-
"type": "felt"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"name": "amount",
|
|
156
|
-
"type": "Uint256"
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"name": "transferFrom",
|
|
160
|
-
"outputs": [
|
|
161
|
-
{
|
|
162
|
-
"name": "success",
|
|
163
|
-
"type": "felt"
|
|
164
|
-
}
|
|
165
|
-
],
|
|
166
|
-
"type": "function"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"inputs": [
|
|
170
|
-
{
|
|
171
|
-
"name": "spender",
|
|
172
|
-
"type": "felt"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"name": "amount",
|
|
176
|
-
"type": "Uint256"
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
"name": "approve",
|
|
180
|
-
"outputs": [
|
|
181
|
-
{
|
|
182
|
-
"name": "success",
|
|
183
|
-
"type": "felt"
|
|
184
|
-
}
|
|
185
|
-
],
|
|
186
|
-
"type": "function"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"inputs": [
|
|
190
|
-
{
|
|
191
|
-
"name": "spender",
|
|
192
|
-
"type": "felt"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"name": "added_value",
|
|
196
|
-
"type": "Uint256"
|
|
197
|
-
}
|
|
198
|
-
],
|
|
199
|
-
"name": "increaseAllowance",
|
|
200
|
-
"outputs": [
|
|
201
|
-
{
|
|
202
|
-
"name": "success",
|
|
203
|
-
"type": "felt"
|
|
204
|
-
}
|
|
205
|
-
],
|
|
206
|
-
"type": "function"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"inputs": [
|
|
210
|
-
{
|
|
211
|
-
"name": "spender",
|
|
212
|
-
"type": "felt"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"name": "subtracted_value",
|
|
216
|
-
"type": "Uint256"
|
|
217
|
-
}
|
|
218
|
-
],
|
|
219
|
-
"name": "decreaseAllowance",
|
|
220
|
-
"outputs": [
|
|
221
|
-
{
|
|
222
|
-
"name": "success",
|
|
223
|
-
"type": "felt"
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
"type": "function"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"inputs": [
|
|
230
|
-
{
|
|
231
|
-
"name": "recipient",
|
|
232
|
-
"type": "felt"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"name": "amount",
|
|
236
|
-
"type": "Uint256"
|
|
237
|
-
}
|
|
238
|
-
],
|
|
239
|
-
"name": "mint",
|
|
240
|
-
"outputs": [],
|
|
241
|
-
"type": "function"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"inputs": [
|
|
245
|
-
{
|
|
246
|
-
"name": "user",
|
|
247
|
-
"type": "felt"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"name": "amount",
|
|
251
|
-
"type": "Uint256"
|
|
252
|
-
}
|
|
253
|
-
],
|
|
254
|
-
"name": "burn",
|
|
255
|
-
"outputs": [],
|
|
256
|
-
"type": "function"
|
|
257
|
-
}
|
|
258
|
-
]
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { type Config } from '@wagmi/core';
|
|
2
|
-
import { type ConnectorMetadata, FuelConnectorEventTypes, type TransactionRequestLike } from 'fuels';
|
|
3
|
-
import type { WalletConnectConfig } from './types';
|
|
4
|
-
import { Maybe, PredicateConnector, PredicateVersion, PredicateWalletAdapter, ProviderDictionary } from '../../common';
|
|
5
|
-
export declare class WalletConnectConnector extends PredicateConnector {
|
|
6
|
-
name: string;
|
|
7
|
-
installed: boolean;
|
|
8
|
-
events: typeof FuelConnectorEventTypes;
|
|
9
|
-
metadata: ConnectorMetadata;
|
|
10
|
-
private fuelProvider;
|
|
11
|
-
private ethProvider;
|
|
12
|
-
private appKit;
|
|
13
|
-
private storage;
|
|
14
|
-
private config;
|
|
15
|
-
constructor(config: WalletConnectConfig);
|
|
16
|
-
private loadPersistedConnection;
|
|
17
|
-
private createModal;
|
|
18
|
-
private handleConnect;
|
|
19
|
-
private setupWatchers;
|
|
20
|
-
protected getWagmiConfig(): Maybe<Config>;
|
|
21
|
-
protected getWalletAdapter(): PredicateWalletAdapter;
|
|
22
|
-
protected getPredicateVersions(): Record<string, PredicateVersion>;
|
|
23
|
-
protected configProviders(config: WalletConnectConfig): Promise<void>;
|
|
24
|
-
protected walletAccounts(): Promise<Array<string>>;
|
|
25
|
-
protected getAccountAddress(): Promise<Maybe<string>>;
|
|
26
|
-
protected getAccountAddresses(): Promise<Maybe<readonly string[]>>;
|
|
27
|
-
protected requireConnection(): Promise<void>;
|
|
28
|
-
protected getProviders(): Promise<ProviderDictionary>;
|
|
29
|
-
connect(): Promise<boolean>;
|
|
30
|
-
private getAccountValidations;
|
|
31
|
-
private accountHasValidation;
|
|
32
|
-
requestValidations(): Promise<void>;
|
|
33
|
-
requestValidation(address?: string): Promise<unknown>;
|
|
34
|
-
disconnect(): Promise<boolean>;
|
|
35
|
-
sendTransaction(address: string, transaction: TransactionRequestLike): Promise<string>;
|
|
36
|
-
private validateSignature;
|
|
37
|
-
private signAndValidate;
|
|
38
|
-
signMessageCustomCurve(message: string): Promise<{
|
|
39
|
-
curve: string;
|
|
40
|
-
signature: string;
|
|
41
|
-
}>;
|
|
42
|
-
}
|