Skip to content

Commit

Permalink
feat(bens): add indexing reverse records to d3-connect (#1220)
Browse files Browse the repository at this point in the history
* chore(bens): add configs for indexing names from puppynet

* feat(bens): index reverse mapping changes from d3 connect protocol

* chore(bens): update ape mainnet resolver contract

* fix configs

---------

Co-authored-by: Renato Alencar <[email protected]>
  • Loading branch information
sevenzing and renatoalencar authored Jan 30, 2025
1 parent bfbcbc6 commit bc6a29f
Show file tree
Hide file tree
Showing 9 changed files with 850 additions and 26 deletions.
33 changes: 30 additions & 3 deletions blockscout-ens/bens-server/config/dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,18 @@
"url": "https://shibariumscan.io"
},
"use_protocols": [
"d3_connect"
"d3-connect-shib"
],
"rpc_url": "https://www.shibrpc.com"
},
"157": {
"blockscout": {
"url": "https://puppyscan.shib.io/"
},
"use_protocols": [
"d3-connect-shib-testnet"
],
"rpc_url": "https://puppynet.shibrpc.com"
}
},
"protocols": {
Expand Down Expand Up @@ -69,11 +78,11 @@
"docs_url": "https://docs.ens.domains/"
}
},
"d3_connect": {
"d3-connect-shib": {
"tld_list": ["shib"],
"network_id": 109,
"subgraph_name": "d3-connect-shib-subgraph",
"address_resolve_technique": "addr2name",
"address_resolve_technique": "reverse_registry",
"specific": {
"type": "d3_connect",
"native_token_contract": "0xDe74799371Ceac11A0F52BA2694392A391D0dA18",
Expand All @@ -86,6 +95,24 @@
"icon_url": "https://i.imgur.com/cD6VIXk.png",
"docs_url": "https://docs.d3.app/"
}
},
"d3-connect-shib-testnet": {
"tld_list": ["shib"],
"network_id": 157,
"subgraph_name": "d3-connect-shib-testnet-subgraph",
"address_resolve_technique": "reverse_registry",
"specific": {
"type": "d3_connect",
"native_token_contract": "0x1443bC2bBAB07437BCF9C577b647523A736bB33E",
"resolver_contract": "0xae6Bdf6e9edA0bA60F97390e70a545e91B5E8bf2"
},
"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
39 changes: 33 additions & 6 deletions blockscout-ens/bens-server/config/prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"url": "https://shibariumscan.io"
},
"use_protocols": [
"d3_connect"
"d3-connect-shib"
],
"rpc_url": "https://www.shibrpc.com"
},
Expand All @@ -56,6 +56,15 @@
"zns"
]
},
"157": {
"blockscout": {
"url": "https://puppyscan.shib.io/"
},
"use_protocols": [
"d3-connect-shib-testnet"
],
"rpc_url": "https://puppynet.shibrpc.com"
},
"690": {
"blockscout": {
"url": "https://explorer.redstone.xyz/"
Expand Down Expand Up @@ -388,15 +397,15 @@
"docs_url": "https://docs.znsconnect.io/"
}
},
"d3_connect": {
"d3-connect-shib": {
"tld_list": ["shib"],
"network_id": 109,
"subgraph_name": "d3-connect-shib-subgraph",
"address_resolve_technique": "addr2name",
"address_resolve_technique": "reverse_registry",
"specific": {
"type": "d3_connect",
"native_token_contract": "0xDe74799371Ceac11A0F52BA2694392A391D0dA18",
"resolver_contract": "0xD60D40674E678F0089736D6381071973a75B4B6f"
"resolver_contract": "0x8b9d58e6915A71Dd782F5111c886377Df1d5cBe5"
},
"meta": {
"short_name": "D3",
Expand All @@ -410,11 +419,11 @@
"tld_list": ["ape"],
"network_id": 33139,
"subgraph_name": "d3-connect-ape-subgraph",
"address_resolve_technique": "addr2name",
"address_resolve_technique": "reverse_registry",
"specific": {
"type": "d3_connect",
"native_token_contract": "0x0D435A6c16045Abeaf6A442Bf162fd52597B4Ed3",
"resolver_contract": "0xeA54b0E40E956383C95e28cb407FF35235Aa31fE"
"resolver_contract": "0x3698485B8079FBDCc86Eb4f69Ebb9349DF1fc6f4"
},
"meta": {
"short_name": "D3",
Expand All @@ -423,6 +432,24 @@
"icon_url": "https://i.imgur.com/cD6VIXk.png",
"docs_url": "https://docs.d3.app/"
}
},
"d3-connect-shib-testnet": {
"tld_list": ["shib"],
"network_id": 157,
"subgraph_name": "d3-connect-shib-testnet-subgraph",
"address_resolve_technique": "reverse_registry",
"specific": {
"type": "d3_connect",
"native_token_contract": "0x1443bC2bBAB07437BCF9C577b647523A736bB33E",
"resolver_contract": "0xae6Bdf6e9edA0bA60F97390e70a545e91B5E8bf2"
},
"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
6 changes: 6 additions & 0 deletions blockscout-ens/graph-node/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@ provider = [
{ label = "shibarium", url = "https://www.shibrpc.com", features = [] }
]
shard = "primary"

[chains.shibarium-testnet]
provider = [
{ label = "shibarium-testnet", url = "https://puppynet.shibrpc.com", 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 @@ -69,6 +69,11 @@
"subgraph_path": "../subgraphs/d3-connect-subgraph",
"subgraph_name": "d3-connect-ape-subgraph",
"network": "ape-mainnet"
},
"d3-connect-shib-testnet": {
"subgraph_path": "../subgraphs/d3-connect-subgraph",
"subgraph_name": "d3-connect-shib-testnet-subgraph",
"network": "shibarium-testnet"
}
}
}
Loading

0 comments on commit bc6a29f

Please sign in to comment.