Skip to content

Commit

Permalink
Taiko Katla testnet added
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Jan 22, 2024
1 parent 06dad87 commit 7189047
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/abi/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"42766": "0x2f5cd4366c16AFC3b04A4b2327BbFf9e3955dbC1",
"59144": "0xbbA4dB63DA448C124ee38EeC636b697CA9bdf9e1",
"167007": "0x2f5cd4366c16AFC3b04A4b2327BbFf9e3955dbC1",
"167008": "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 @@ -17,6 +17,7 @@
"42766": "0xeA2f99fE93E5D07F61334C5Eb9c54c5D5C957a6a",
"59144": "0x2f5cd4366c16AFC3b04A4b2327BbFf9e3955dbC1",
"167007": "0xeA2f99fE93E5D07F61334C5Eb9c54c5D5C957a6a",
"167008": "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 @@ -88,6 +88,9 @@
"167007": {
".testaiko": "0x4087fb91A1fBdef05761C02714335D232a2Bf3a1"
},
"167008": {
".ktaiko": "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 @@ -88,6 +88,9 @@
"167007": {
"ETH": "0x0"
},
"167008": {
"ETH": "0x0"
},
"421611": {
"ETH": "0x0"
},
Expand Down
2 changes: 1 addition & 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==167007" class="btn-group mx-2 navbar-menu-btn">
<div v-if="chainId==167008" 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 Down
20 changes: 18 additions & 2 deletions src/hooks/useChainHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export default function useChainHelpers() {
} else if (chainId === 80001) {
return "Polygon Testnet";
} else if (chainId === 167007) {
return "Taiko Testnet";
return "Taiko Jolnir Testnet";
} else if (chainId === 167008) {
return "Taiko Katla Testnet";
} else if (chainId === 421611) {
return "Arbitrum Testnet";
} else if (chainId === 534352) {
Expand Down Expand Up @@ -159,6 +161,11 @@ export default function useChainHelpers() {
urls = [
"https://rpc.jolnir.taiko.xyz"
]
} else if (networkId === 167008) {
// Taiko Katla testnet
urls = [
"https://rpc.katla.taiko.xyz"
]
} else if (networkId === 421611) {
// Arbitrum testnet
urls = [
Expand Down Expand Up @@ -371,7 +378,7 @@ export default function useChainHelpers() {
nativeCurrency: { decimals: 18, name: "ETH", symbol: "ETH" },
rpcUrls: ["https://rpc.linea.build/"]
}]
} else if (networkName == "Taiko Testnet") {
} else if (networkName == "Taiko Jolnir Testnet") {
method = "wallet_addEthereumChain"
params = [{
blockExplorerUrls: [ "https://explorer.jolnir.taiko.xyz" ],
Expand All @@ -380,6 +387,15 @@ export default function useChainHelpers() {
nativeCurrency: { decimals: 18, name: "ETH", symbol: "ETH" },
rpcUrls: ["https://rpc.jolnir.taiko.xyz"]
}]
} else if (networkName == "Taiko Katla Testnet") {
method = "wallet_addEthereumChain"
params = [{
blockExplorerUrls: [ "https://explorer.katla.taiko.xyz" ],
chainId: "0x28c60",
chainName: "Taiko Katla Testnet",
nativeCurrency: { decimals: 18, name: "ETH", symbol: "ETH" },
rpcUrls: ["https://rpc.katla.taiko.xyz"]
}]
} else if (networkName == "ZKFair") {
method = "wallet_addEthereumChain"
params = [{
Expand Down
17 changes: 15 additions & 2 deletions src/store/modules/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export default {
59144: "Linea",
534352: "Scroll",
56: "BNB Smart Chain",
167007: "Taiko Testnet",
167007: "Taiko Jolnir Testnet",
167008: "Taiko Katla Testnet",
3110: "SatoshiVM Testnet"
}
}),
Expand Down Expand Up @@ -68,6 +69,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 === 421611) {
return "https://testnet.arbiscan.io";
} else if (chainId.value === 1313161555) {
Expand Down Expand Up @@ -118,6 +121,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 === 421611) {
return "https://testnet.arbiscan.io";
} else if (netId === 1313161555) {
Expand Down Expand Up @@ -230,6 +235,11 @@ export default {
urls = [
"https://rpc.jolnir.taiko.xyz"
]
} else if (networkId === 167008) {
// Taiko Katla testnet
urls = [
"https://rpc.katla.taiko.xyz"
]
} else if (networkId === 421611) {
// Arbitrum Rinkeby testnet
urls = [
Expand Down Expand Up @@ -355,7 +365,10 @@ export default {
state.networkName = "Polygon Testnet";
state.networkCurrency = "MATIC";
} else if (chainId.value === 167007) {
state.networkName = "Taiko Testnet";
state.networkName = "Taiko Jolnir Testnet";
state.networkCurrency = "ETH";
} else if (chainId.value === 167008) {
state.networkName = "Taiko Katla Testnet";
state.networkCurrency = "ETH";
} else if (chainId.value === 421611) {
state.networkName = "Arbitrum Testnet";
Expand Down
4 changes: 2 additions & 2 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@
</p>
</div>

<div v-if="chainId==167007">
<div v-if="chainId==167008">
<p>
Use your .testaiko domain as username on
Use your .ktaiko 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 7189047

Please sign in to comment.