Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config(bens): index address lookups for apechain testnet #1242

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions blockscout-ens/bens-server/config/dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,24 @@
"d3-connect-shib-testnet"
],
"rpc_url": "https://puppynet.shibrpc.com"
},
"33111": {
"blockscout": {
"url": "https://curtis.explorer.caldera.xyz/"
},
"use_protocols": [
"d3-connect-ape-testnet"
],
"rpc_url": "https://curtis.rpc.caldera.xyz/http"
},
"33139": {
"blockscout": {
"url": "https://apescan.io/"
},
"use_protocols": [
"d3-connect-ape-mainnet"
],
"rpc_url": "https://rpc.apechain.com/"
}
},
"protocols": {
Expand Down Expand Up @@ -113,6 +131,42 @@
"icon_url": "https://i.imgur.com/cD6VIXk.png",
"docs_url": "https://docs.d3.app/"
}
},
"d3-connect-ape-testnet": {
"tld_list": ["ape"],
"network_id": 33111,
"subgraph_name": "d3-connect-ape-testnet-subgraph",
"address_resolve_technique": "reverse_registry",
"specific": {
"type": "d3_connect",
"native_token_contract": "0xA6A33ddE98BAb3ee5262e7e1a14ee5B1F06D0D40",
"resolver_contract": "0x2ad234136165B59f98cf03f696cB84eaf48E30cF"
},
"meta": {
"short_name": "D3 Connect",
"title": "D3 Connect",
"description": "D3 Connect is a platform for connecting to the Shibarium network.",
"icon_url": "https://i.imgur.com/cD6VIXk.png",
"docs_url": "https://docs.d3.app/"
}
},
"d3-connect-ape-mainnet": {
"tld_list": ["ape"],
"network_id": 33139,
"subgraph_name": "d3-connect-ape-mainnet-subgraph",
"address_resolve_technique": "reverse_registry",
"specific": {
"type": "d3_connect",
"native_token_contract": "0x0D435A6c16045Abeaf6A442Bf162fd52597B4Ed3",
"resolver_contract": "0x3698485B8079FBDCc86Eb4f69Ebb9349DF1fc6f4"
},
"meta": {
"short_name": "D3 Connect",
"title": "D3 Connect",
"description": "D3 Connect is a platform for connecting to the Shibarium network.",
"icon_url": "https://i.imgur.com/cD6VIXk.png",
"docs_url": "https://docs.d3.app/"
}
}
}
}
Expand Down
27 changes: 27 additions & 0 deletions blockscout-ens/bens-server/config/prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@
"base-name-service", "ens"
]
},
"33111": {
"blockscout": {
"url": "https://curtis.explorer.caldera.xyz/"
},
"use_protocols": [
"d3-connect-ape-testnet"
],
"rpc_url": "https://curtis.rpc.caldera.xyz/http"
},
"33139": {
"blockscout": {
"url": "https://apechain.calderaexplorer.xyz"
Expand Down Expand Up @@ -449,6 +458,24 @@
"docs_url": "https://docs.d3.app/"
}
},
"d3-connect-ape-testnet": {
"tld_list": ["ape"],
"network_id": 33111,
"subgraph_name": "d3-connect-ape-testnet-subgraph",
"address_resolve_technique": "reverse_registry",
"specific": {
"type": "d3_connect",
"native_token_contract": "0xA6A33ddE98BAb3ee5262e7e1a14ee5B1F06D0D40",
"resolver_contract": "0x2ad234136165B59f98cf03f696cB84eaf48E30cF"
},
"meta": {
"short_name": "D3 Connect",
"title": "D3 Connect",
"description": "D3 Connect is a platform for connecting to the Shibarium network.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Update the protocol description.

The description incorrectly mentions "Shibarium network" for the Apechain testnet protocol.

-          "description": "D3 Connect is a platform for connecting to the Shibarium network.",
+          "description": "D3 Connect is a platform for connecting to the Apechain network.",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"description": "D3 Connect is a platform for connecting to the Shibarium network.",
"description": "D3 Connect is a platform for connecting to the Apechain network.",

"icon_url": "https://i.imgur.com/cD6VIXk.png",
"docs_url": "https://docs.d3.app/"
}
},
"d3-connect-shib-testnet": {
"tld_list": ["shib"],
"network_id": 157,
Expand Down
12 changes: 12 additions & 0 deletions blockscout-ens/graph-node/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,16 @@ shard = "primary"
provider = [
{ label = "shibarium-testnet", url = "https://puppynet.shibrpc.com", features = [] }
]
shard = "primary"

[chains.ape-mainnet]
provider = [
{ label = "ape-mainnet", url = "https://rpc.apechain.com", features = [] }
]
shard = "primary"

[chains.ape-testnet]
provider = [
{ label = "ape-testnet", url = "https://curtis.rpc.caldera.xyz/http", features = [] }
]
shard = "primary"
5 changes: 5 additions & 0 deletions blockscout-ens/graph-node/deployer/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
"subgraph_name": "d3-connect-ape-subgraph",
"network": "ape-mainnet"
},
"d3-connect-ape-testnet": {
"subgraph_path": "../subgraphs/d3-connect-subgraph",
"subgraph_name": "d3-connect-ape-testnet-subgraph",
"network": "ape-testnet"
},
"d3-connect-shib-testnet": {
"subgraph_path": "../subgraphs/d3-connect-subgraph",
"subgraph_name": "d3-connect-shib-testnet-subgraph",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@
},
"": ""
},
"ape-testnet": {
"Registry": {
"address": "0xA6A33ddE98BAb3ee5262e7e1a14ee5B1F06D0D40",
"startBlock": 1902834
},
"Resolver": {
"address": "0x2ad234136165B59f98cf03f696cB84eaf48E30cF",
"startBlock": 14614509
},
"": ""
},
"shibarium-testnet": {
"Registry": {
"address": "0x1443bC2bBAB07437BCF9C577b647523A736bB33E",
Expand Down
Loading