Skip to content

Commit

Permalink
Add ENS support for sepolia (#4622)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR authored Mar 27, 2024
1 parent 8abb99e commit f465d8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/SetupDomain.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ onUnmounted(() => clearInterval(waitingForRegistrationInterval));
/>

<BaseMessageBlock
v-if="defaultNetwork === '5'"
v-if="defaultNetwork && env === 'demo'"
level="info"
class="mb-4"
is-responsive
Expand Down
7 changes: 5 additions & 2 deletions src/helpers/connectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const connectors = {
options: {
projectId: 'e6454bd61aba40b786e866a69bd4c5c6',
chains: [1],
optionalChains: [4, 5, 10, 42, 56, 100, 137, 246, 1088, 42161, 73799],
optionalChains: [
4, 5, 10, 42, 56, 100, 137, 246, 1088, 42161, 73799, 1115511
],
methods: ['eth_sendTransaction', 'personal_sign', 'eth_signTypedData_v4'],
optionalMethods: ['eth_accounts'],
rpcMap: {
Expand All @@ -24,7 +26,8 @@ const connectors = {
'137': `${import.meta.env.VITE_BROVIDER_URL}/137`,
'246': `${import.meta.env.VITE_BROVIDER_URL}/246`,
'42161': `${import.meta.env.VITE_BROVIDER_URL}/42161`,
'73799': `${import.meta.env.VITE_BROVIDER_URL}/73799`
'73799': `${import.meta.env.VITE_BROVIDER_URL}/73799`,
'11155111': `${import.meta.env.VITE_BROVIDER_URL}/11155111`
},
showQrModal: true
},
Expand Down
7 changes: 3 additions & 4 deletions src/helpers/ens.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import networks from '@snapshot-labs/snapshot.js/src/networks.json';
import {
ApolloClient,
createHttpLink,
InMemoryCache
} from '@apollo/client/core';

const uri =
import.meta.env.VITE_DEFAULT_NETWORK === '5'
? 'https://api.thegraph.com/subgraphs/name/ensdomains/ensgoerli'
: 'https://api.thegraph.com/subgraphs/name/ensdomains/ens';
const env = import.meta.env.VITE_DEFAULT_NETWORK;
const uri = networks[env].ensSubgraph;

const httpLink = createHttpLink({ uri });

Expand Down

0 comments on commit f465d8b

Please sign in to comment.