WalletConnect / web-examples

Wallet and dapp examples implementing WalletConnect v2
https://walletconnect.com
Apache License 2.0
360 stars 319 forks source link

Local aa infra without foundry chain #637

Closed KannuSingh closed 1 month ago

KannuSingh commented 1 month ago

This PR removes the toggle enable local AA and instead checks the .env values for NEXT_PUBLIC_LOCAL_BUNDLER_URL, NEXT_PUBLIC_LOCAL_PAYMASTER_URL, and NEXT_PUBLIC_LOCAL_CLIENT_URL to override the respective URLs.

The previous implementation(#634) assumed

For more information on how to set up local testing, refer to how to setup local-testing.

When running the project locally and wanting to use the local forked network and AA setup, just add the .env variable values, and the project will automatically use the local setup:

NEXT_PUBLIC_LOCAL_BUNDLER_URL=
NEXT_PUBLIC_LOCAL_PAYMASTER_URL=
NEXT_PUBLIC_LOCAL_CLIENT_URL=
vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
decentralized-relay-wallet ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 3:28pm
react-wallet-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 3:28pm
10 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **decentralized-relay-app** | ⬜️ Ignored ([Inspect](https://vercel.com/walletconnect/decentralized-relay-app/3W3MB66EhNaNZGDpKV9SYRwsinfi)) | [Visit Preview](https://decentralized-relay-app-git-local-aa-infr-9f794d-walletconnect1.vercel.app) | | Jul 10, 2024 3:28pm | | **malicious-dapp-verify-simulation** | ⬜️ Ignored ([Inspect](https://vercel.com/walletconnect/malicious-dapp-verify-simulation/7zWrWCsTreyNHLdUwfVtufQECN2i)) | [Visit Preview](https://malicious-dapp-verify-simulation-git-loca-32d1dc-walletconnect1.vercel.app) | | Jul 10, 2024 3:28pm | | **react-auth-dapp** | ⬜️ Ignored ([Inspect](https://vercel.com/walletconnect/react-auth-dapp/FJP7EuWaMgNiXa8KDK79j2BVuK2z)) | [Visit Preview](https://react-auth-dapp-git-local-aa-infra-withou-fafc8b-walletconnect1.vercel.app) | | Jul 10, 2024 3:28pm | | **react-auth-wallet** | ⬜️ Ignored ([Inspect](https://vercel.com/walletconnect/react-auth-wallet/4r3zkPGmnBLPX5zLTN1dPi1jjUmX)) | [Visit Preview](https://react-auth-wallet-git-local-aa-infra-with-81d33b-walletconnect1.vercel.app) | | Jul 10, 2024 3:28pm | | **react-dapp-v2** | ⬜️ Ignored ([Inspect](https://vercel.com/walletconnect/react-dapp-v2/3GKh6MYdutDCvEypvnWPhGee1Nbz)) | [Visit Preview](https://react-dapp-v2-git-local-aa-infra-without-aeb62e-walletconnect1.vercel.app) | | Jul 10, 2024 3:28pm | | **react-dapp-v2-cosmos-provider** | ⬜️ Ignored ([Inspect](https://vercel.com/walletconnect/react-dapp-v2-cosmos-provider/3EeCyqMvvNvBy7GfLedDuVS43qNe)) | [Visit Preview](https://react-dapp-v2-cosmos-provider-git-local-a-00f7e2-walletconnect1.vercel.app) | | Jul 10, 2024 3:28pm | | **react-dapp-v2-with-ethers** | ⬜️ Ignored ([Inspect](https://vercel.com/walletconnect/react-dapp-v2-with-ethers/HDriHmNFgM2UeL1n6RXKdBNtLbeh)) | [Visit Preview](https://react-dapp-v2-with-ethers-git-local-aa-in-04be72-walletconnect1.vercel.app) | | Jul 10, 2024 3:28pm | | **react-dapp-v2-with-web3js** | ⬜️ Ignored ([Inspect](https://vercel.com/walletconnect/react-dapp-v2-with-web3js/57AMqczRdZAzmHyDgVErUDvd2jxC)) | [Visit Preview](https://react-dapp-v2-with-web3js-git-local-aa-in-3bc16e-walletconnect1.vercel.app) | | Jul 10, 2024 3:28pm | | **svelte-web3modal** | ⬜️ Ignored ([Inspect](https://vercel.com/walletconnect/svelte-web3modal/7ze2oMUvrSQLxdgLiTf54USmjUxc)) | [Visit Preview](https://svelte-web3modal-git-local-aa-infra-witho-d565e0-walletconnect1.vercel.app) | | Jul 10, 2024 3:28pm | | **vue-dapp-auth** | ⬜️ Ignored ([Inspect](https://vercel.com/walletconnect/vue-dapp-auth/7HXAargYUhYc89ctumgy5Fuf6g5w)) | [Visit Preview](https://vue-dapp-auth-git-local-aa-infra-without-af42c6-walletconnect1.vercel.app) | | Jul 10, 2024 3:28pm |