Skip to content

Commit

Permalink
taiko hekla testnet supported
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed May 20, 2024
1 parent b043af1 commit 13a6c9f
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/abi/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"59144": "0xbbA4dB63DA448C124ee38EeC636b697CA9bdf9e1",
"167007": "0x2f5cd4366c16AFC3b04A4b2327BbFf9e3955dbC1",
"167008": "0x2f5cd4366c16AFC3b04A4b2327BbFf9e3955dbC1",
"167009": "0x2f5cd4366c16AFC3b04A4b2327BbFf9e3955dbC1",
"421611": "0x844d982FDc1F5C8eaD82E95d522F2486a7CBb3EE",
"534352": "0x2f5cd4366c16AFC3b04A4b2327BbFf9e3955dbC1",
"1313161555": "0x2f5cd4366c16AFC3b04A4b2327BbFf9e3955dbC1"
Expand Down
1 change: 1 addition & 0 deletions src/abi/resolver.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"59144": "0x2f5cd4366c16AFC3b04A4b2327BbFf9e3955dbC1",
"167007": "0xeA2f99fE93E5D07F61334C5Eb9c54c5D5C957a6a",
"167008": "0xeA2f99fE93E5D07F61334C5Eb9c54c5D5C957a6a",
"167009": "0xeA2f99fE93E5D07F61334C5Eb9c54c5D5C957a6a",
"421611": "0xe2b9bC4c1d65B5F5583144d9d5c5F0683158C372",
"534352": "0xeA2f99fE93E5D07F61334C5Eb9c54c5D5C957a6a",
"1313161555": "0x4aBf8b364ac4aF048Ea077AAA2EDF3e1e1EC0f9c"
Expand Down
3 changes: 3 additions & 0 deletions src/abi/tlds.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
"167008": {
".ktaiko": "0x4087fb91A1fBdef05761C02714335D232a2Bf3a1"
},
"167009": {
".hekla": "0x4087fb91A1fBdef05761C02714335D232a2Bf3a1"
},
"421611": {
".smoltest": "0x0eB60B697428597CE58650173eFEd2F32ADD7E93",
".twbtest": "0xEEAEED736cc6A6e68CC2F62be19Cf7E06ad9E94A",
Expand Down
3 changes: 3 additions & 0 deletions src/abi/tokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
"167008": {
"ETH": "0x0"
},
"167009": {
"ETH": "0x0"
},
"421611": {
"ETH": "0x0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/FeaturedDomains.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
</div>

<div class="col-md-2 mb-3">
<a target="_blank" href="https://id.zkchat.net">
<a target="_blank" href="https://degenname.lol/">
<div class="container text-center">
<p class="text-break mt-3">
.zksoul
.degen
</p>
</div>
</a>
Expand Down
3 changes: 2 additions & 1 deletion src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<a class="btn btn-primary" href="https://fairchat.xyz" target="_blank">Try Fairchat.xyz</a>
</div>

<div v-if="chainId==167008" class="btn-group mx-2 navbar-menu-btn">
<div v-if="chainId==167009" class="btn-group mx-2 navbar-menu-btn">
<a class="btn btn-primary" href="https://tko.chat" target="_blank">Try TKO.chat</a>
</div>

Expand All @@ -29,6 +29,7 @@
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButton2">

<li class="dropdown-item" @click="openUrl('https://degenname.lol')">Degen Names (.degen) <i class="bi bi-box-arrow-up-right"></i></li>
<li class="dropdown-item" @click="openUrl('https://dns.dopewars.gg')">Dope Name Service (.dope) <i class="bi bi-box-arrow-up-right"></i></li>
<li class="dropdown-item" @click="openUrl('https://id.zkchat.net')">zkSoul ID (.zksoul) <i class="bi bi-box-arrow-up-right"></i></li>
<li class="dropdown-item" @click="openUrl('https://optimistic.domains')">Optimistic Domains (.op) <i class="bi bi-box-arrow-up-right"></i></li>
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useChainHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,6 @@ const chains = [
{ chainId: 81457, name: "Blast", currency: "ETH", rpc1: "https://rpc.blast.io", rpc2: "https://rpc.ankr.com/blast", blockExplorer: "https://blastscan.io"},
{ chainId: 167007, name: "Taiko Jolnir Testnet", currency: "ETH", rpc1: "https://rpc.jolnir.taiko.xyz", rpc2: "https://rpc.jolnir.taiko.xyz", blockExplorer: "https://explorer.jolnir.taiko.xyz"},
{ chainId: 167008, name: "Taiko Katla Testnet", currency: "ETH", rpc1: "https://rpc.katla.taiko.xyz", rpc2: "https://rpc.katla.taiko.xyz", blockExplorer: "https://explorer.katla.taiko.xyz"},
{ chainId: 167009, name: "Taiko Hekla Testnet", currency: "ETH", rpc1: "https://rpc.hekla.taiko.xyz", rpc2: "https://rpc.hekla.taiko.xyz", blockExplorer: "https://blockscoutapi.hekla.taiko.xyz"},
{ chainId: 534352, name: "Scroll", currency: "ETH", rpc1: "https://rpc.scroll.io", rpc2: "https://1rpc.io/scroll", blockExplorer: "https://scrollscan.com"},
];
19 changes: 13 additions & 6 deletions src/store/modules/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ export default {
59144: "Linea",
534352: "Scroll",
56: "BNB Smart Chain",
167007: "Taiko Jolnir Testnet",
167008: "Taiko Katla Testnet",
167009: "Taiko Hekla Testnet",
3110: "SatoshiVM Testnet"
}
}),
Expand Down Expand Up @@ -69,8 +68,8 @@ export default {
return "https://mumbai.polygonscan.com";
} else if (chainId.value === 167007) {
return "https://explorer.jolnir.taiko.xyz";
} else if (chainId.value === 167008) {
return "https://explorer.katla.taiko.xyz";
} else if (chainId.value === 167009) {
return "https://blockscoutapi.hekla.taiko.xyz";
} else if (chainId.value === 421611) {
return "https://testnet.arbiscan.io";
} else if (chainId.value === 1313161555) {
Expand Down Expand Up @@ -121,8 +120,8 @@ export default {
return "https://mumbai.polygonscan.com";
} else if (netId === 167007) {
return "https://explorer.jolnir.taiko.xyz";
} else if (netId === 167008) {
return "https://explorer.katla.taiko.xyz";
} else if (netId === 167009) {
return "https://blockscoutapi.hekla.taiko.xyz";
} else if (netId === 421611) {
return "https://testnet.arbiscan.io";
} else if (netId === 1313161555) {
Expand Down Expand Up @@ -240,6 +239,11 @@ export default {
urls = [
"https://rpc.katla.taiko.xyz"
]
} else if (networkId === 167009) {
// Taiko Hekla testnet
urls = [
"https://rpc.hekla.taiko.xyz"
]
} else if (networkId === 421611) {
// Arbitrum Rinkeby testnet
urls = [
Expand Down Expand Up @@ -370,6 +374,9 @@ export default {
} else if (chainId.value === 167008) {
state.networkName = "Taiko Katla Testnet";
state.networkCurrency = "ETH";
} else if (chainId.value === 167009) {
state.networkName = "Taiko Hekla Testnet";
state.networkCurrency = "ETH";
} else if (chainId.value === 421611) {
state.networkName = "Arbitrum Testnet";
state.networkCurrency = "ETH";
Expand Down
5 changes: 3 additions & 2 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

<ul class="dropdown-menu dropdown-menu-end">
<li><span class="dropdown-item" :key="tld" v-for="tld in enabledBuyingTlds" @click="changeTld(tld)">{{tld}}</span></li>
<li><span class="dropdown-item" @click="openUrl('https://degenname.lol')">.degen <i class="bi bi-box-arrow-up-right" /></span></li>
<li><span class="dropdown-item" @click="openUrl('https://optimistic.domains')">.op <i class="bi bi-box-arrow-up-right" /></span></li>
<li><span class="dropdown-item" @click="openUrl('https://id.zkchat.net')">.zksoul <i class="bi bi-box-arrow-up-right" /></span></li>
<li><span class="dropdown-item" @click="openUrl('https://fantomname.org')">.fantom <i class="bi bi-box-arrow-up-right" /></span></li>
Expand Down Expand Up @@ -78,9 +79,9 @@
</p>
</div>

<div v-if="chainId==167008">
<div v-if="chainId==167009">
<p>
Use your .ktaiko domain as username on
Use your .hekla domain as username on
<a target="_blank" href="https://tko.chat">TKO.chat</a> - the first Web3 Social app on Taiko!
</p>
</div>
Expand Down

0 comments on commit 13a6c9f

Please sign in to comment.