Skip to content

Commit

Permalink
chore: update explorer when using history, chainlist
Browse files Browse the repository at this point in the history
  • Loading branch information
xtools-at committed Nov 2, 2023
1 parent 5e6de54 commit 75ae7a1
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 5 deletions.
2 changes: 2 additions & 0 deletions config/chainIds.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
180,
78430,
1388,
1138,
2863311531,
14288640,
2202,
Expand Down Expand Up @@ -569,6 +570,7 @@
534352,
534351,
34,
3434,
186,
3699,
3698,
Expand Down
56 changes: 54 additions & 2 deletions config/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -1505,6 +1505,28 @@
],
"shortName": "ASAR"
},
{
"name": "AmStar Testnet",
"rpc": [
"https://testnet-rpc.amstarscan.com"
],
"faucets": [],
"nativeCurrency": {
"name": "SINSO",
"symbol": "SINSO",
"decimals": 18
},
"chainId": 1138,
"explorers": [
{
"name": "amstarscan-testnet",
"url": "https://testnet.amstarscan.com",
"standard": "EIP3091",
"iframe": true
}
],
"shortName": "ASARt"
},
{
"name": "Ancient8 Testnet",
"rpc": [
Expand Down Expand Up @@ -3279,6 +3301,13 @@
"url": "https://explorer.cascadia.foundation",
"standard": "none",
"icon": "cascadia"
},
{
"name": "Cascadia Cosmos Explorer",
"url": "https://validator.cascadia.foundation",
"standard": "none",
"icon": "cascadia",
"iframe": true
}
],
"shortName": "cascadia"
Expand Down Expand Up @@ -10581,8 +10610,7 @@
{
"name": "Oasis Emerald Testnet Explorer",
"url": "https://testnet.explorer.emerald.oasis.dev",
"standard": "EIP3091",
"iframe": true
"standard": "EIP3091"
}
],
"shortName": "emerald-testnet"
Expand Down Expand Up @@ -13791,6 +13819,30 @@
],
"shortName": "scai"
},
{
"name": "SecureChain Testnet",
"rpc": [
"https://testnet-rpc.securechain.ai"
],
"faucets": [
"https://faucet.securechain.ai"
],
"nativeCurrency": {
"name": "SCAI",
"symbol": "SCAI",
"decimals": 18
},
"chainId": 3434,
"explorers": [
{
"name": "SecureChain",
"url": "https://testnet.securechain.ai",
"standard": "EIP3091",
"iframe": true
}
],
"shortName": "SCAIt"
},
{
"name": "Seele Mainnet",
"rpc": [
Expand Down
26 changes: 24 additions & 2 deletions config/explorers.json
Original file line number Diff line number Diff line change
Expand Up @@ -1915,6 +1915,14 @@
"standard": "EIP3091"
}
],
"1138": [
{
"name": "amstarscan-testnet",
"url": "https://testnet.amstarscan.com",
"standard": "EIP3091",
"iframe": true
}
],
"1149": [
{
"name": "Plexchain Explorer",
Expand Down Expand Up @@ -2779,6 +2787,14 @@
"iframe": true
}
],
"3434": [
{
"name": "SecureChain",
"url": "https://testnet.securechain.ai",
"standard": "EIP3091",
"iframe": true
}
],
"3500": [
{
"name": "Paribu Net Testnet Explorer",
Expand Down Expand Up @@ -3203,6 +3219,13 @@
"url": "https://explorer.cascadia.foundation",
"standard": "none",
"icon": "cascadia"
},
{
"name": "Cascadia Cosmos Explorer",
"url": "https://validator.cascadia.foundation",
"standard": "none",
"icon": "cascadia",
"iframe": true
}
],
"6118": [
Expand Down Expand Up @@ -4390,8 +4413,7 @@
{
"name": "Oasis Emerald Testnet Explorer",
"url": "https://testnet.explorer.emerald.oasis.dev",
"standard": "EIP3091",
"iframe": true
"standard": "EIP3091"
}
],
"42262": [
Expand Down
2 changes: 2 additions & 0 deletions config/rpcs.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@
"1116": "https://rpc.coredao.org/",
"1117": "https://mainnet-rpc.dogcoin.me",
"1133": "https://testnet-dmc.mydefichain.com:20551",
"1138": "https://testnet-rpc.amstarscan.com",
"1149": "https://plex-rpc.plexfinance.us",
"1170": "https://json-rpc.origin.uptick.network",
"1197": "https://dataseed.iorachain.com",
Expand Down Expand Up @@ -319,6 +320,7 @@
"3333": "https://testnet.web3q.io:8545",
"3334": "https://galileo.web3q.io:8545",
"3400": "https://rpc.paribu.network",
"3434": "https://testnet-rpc.securechain.ai",
"3500": "https://rpc.testnet.paribuscan.com",
"3501": "https://rpc.jfinchain.com",
"3601": "https://eth-rpc-api.pandoproject.org/rpc",
Expand Down
3 changes: 2 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ export default function Page() {
log("history -> address");
setAddress(entry.address);

updateIframeUrl(chain, entry.address, null);

const func = newFunctions.find((f) => f.name === entry.function);
if (func) {
log("history -> function");
Expand Down Expand Up @@ -817,7 +819,6 @@ export default function Page() {
// scrolling="no"
border: 0,
}}
onError={() => updateIframeUrl(null, null, null)}
/>
) : null;

Expand Down

0 comments on commit 75ae7a1

Please sign in to comment.