diff --git a/README.md b/README.md index 2abf10f1..9d9dcc0f 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,6 @@ If you want to use a prebuilt image from **GitHub Container Registry**, specify #### Faucet Configuration - **NUXT_PUBLIC_FAUCET_ADDRESS** — faucet address. - **NUXT_PUBLIC_FAUCET_MOCHA** — faucet API for the Mocha network. -- **NUXT_PUBLIC_FAUCET_ARABICA** — faucet API for the Arabica network. #### External Services Configuration - **NUXT_PUBLIC_BLOCKSCOUT** — used to check whether a batch exists in Blockscout. If found, a dedicated button will appear on the blob form/page. diff --git a/app.vue b/app.vue index 9152d6a8..cc78e20f 100644 --- a/app.vue +++ b/app.vue @@ -180,7 +180,7 @@ onMounted(async () => { }) } - if (["Mocha-4", "Arabica", "Local"].includes(getNetworkName())) { + if (["Mocha-4", "Local"].includes(getNetworkName())) { appStore.blobsState = await fetchBlobsState() } diff --git a/components/Connection.vue b/components/Connection.vue index 855bd551..e8f19b80 100644 --- a/components/Connection.vue +++ b/components/Connection.vue @@ -6,7 +6,7 @@ import { Dropdown, DropdownTitle, DropdownItem, DropdownDivider } from "@/compon /** Services */ import amp from "@/services/amp" import { disconnect } from "@/services/wallet" -import { arabica, mainnet, mocha } from "@/services/chains" +import { mainnet, mocha } from "@/services/chains" /** Store */ import { useAppStore } from "@/store/app.store" @@ -32,11 +32,11 @@ switch (hostname) { break case "localhost": - appStore.network = arabica + appStore.network = mocha break default: - appStore.network = arabica + appStore.network = mocha break } diff --git a/components/LeftSidebar.vue b/components/LeftSidebar.vue index 074d77f0..50e5af8d 100644 --- a/components/LeftSidebar.vue +++ b/components/LeftSidebar.vue @@ -385,7 +385,6 @@ const handleOnClose = () => { Celestia Network Mainnet Mocha-4 - Arabica diff --git a/components/cmd/CommandMenu.vue b/components/cmd/CommandMenu.vue index 1bd2a44b..42bfd4a1 100644 --- a/components/cmd/CommandMenu.vue +++ b/components/cmd/CommandMenu.vue @@ -557,17 +557,6 @@ const rawSettingsActions = [ window.open("https://mocha-4.celenium.io", "_blank") }, }, - { - id: id(), - type: "callback", - icon: "globe", - title: "Arabica", - subtitle: "Network", - runText: "Switch to Arabica", - callback: () => { - window.open("https://arabica.celenium.io", "_blank") - }, - }, ], }, ] diff --git a/components/modals/BlobModal.vue b/components/modals/BlobModal.vue index 677734bb..489b29eb 100644 --- a/components/modals/BlobModal.vue +++ b/components/modals/BlobModal.vue @@ -91,8 +91,8 @@ watch( () => props.show, async () => { if (props.show) { - /** Skip on the old blobs for Mocha & Arabica */ - if (["Mocha-4", "Arabica", "Local"].includes(getNetworkName())) { + /** Skip on the old blobs for Mocha */ + if (["Mocha-4", "Local"].includes(getNetworkName())) { if (new Date(cacheStore.selectedBlob.tx.time).getTime() < new Date(appStore.blobsState.oldest_blob_time).getTime()) { isOldBlob.value = true isStopped.value = true diff --git a/components/modals/LightNodeModal.vue b/components/modals/LightNodeModal.vue index babccef9..9c45ee03 100644 --- a/components/modals/LightNodeModal.vue +++ b/components/modals/LightNodeModal.vue @@ -121,7 +121,7 @@ onMounted(async () => { const disableStart = ref(false) const status = computed(() => nodeStore.status) -const networks = ["Mainnet", "Arabica", "Mocha"] +const networks = ["Mainnet", "Mocha"] const selectedNetwork = ref() const { hostname } = useRequestURL() @@ -138,20 +138,16 @@ switch (hostname) { selectedNetwork.value = 2 break - case "arabica.celenium.io": - selectedNetwork.value = 1 - break - case "dev.celenium.io": - selectedNetwork.value = 1 + selectedNetwork.value = 2 break case "localhost": - selectedNetwork.value = 1 + selectedNetwork.value = 2 break default: - selectedNetwork.value = 1 + selectedNetwork.value = 2 break } diff --git a/components/modals/LightNodeSettingsModal.vue b/components/modals/LightNodeSettingsModal.vue index 391f5e64..da713e16 100644 --- a/components/modals/LightNodeSettingsModal.vue +++ b/components/modals/LightNodeSettingsModal.vue @@ -174,7 +174,7 @@ watch( diff --git a/nuxt.config.ts b/nuxt.config.ts index fe7d23c3..68e9f6f4 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -81,12 +81,10 @@ export default defineNuxtConfig({ API_MAINNET: "", API_MOCHA: "", - API_ARABICA: "", API_DEV: "", WSS_MAINNET: "", WSS_MOCHA: "", - WSS_ARABICA: "", WSS_DEV: "", BLOBSTREAM_MAINNET: "", @@ -94,7 +92,6 @@ export default defineNuxtConfig({ FAUCET_ADDRESS: "", FAUCET_MOCHA: "", - FAUCET_ARABICA: "", BLOCKSCOUT: "", GITHUB: "", @@ -103,7 +100,6 @@ export default defineNuxtConfig({ ROLLUP_RANKING: "", TVL: "", BLOBS_MOCHA: "", - BLOBS_ARABICA: "", SELFHOSTED: false, }, diff --git a/pages/constants.vue b/pages/constants.vue index 920e66a3..7a3e7396 100644 --- a/pages/constants.vue +++ b/pages/constants.vue @@ -9,7 +9,7 @@ import { formatBytes, comma, round } from "@/services/utils" import Tooltip from "@/components/ui/Tooltip.vue" /** API */ -import { fetchMainnetConstants, fetchMochaConstants, fetchArabicaConstants } from "@/services/api/main" +import { fetchMainnetConstants, fetchMochaConstants } from "@/services/api/main" /** Store */ import { useNotificationsStore } from "@/store/notifications.store" @@ -64,15 +64,14 @@ useHead({ }) const { data: constants } = await useAsyncData(`all-constants`, async () => { - const [mainnet, mocha, arabica ] = await Promise.all([ + const [mainnet, mocha] = await Promise.all([ fetchMainnetConstants(), fetchMochaConstants(), - fetchArabicaConstants(), ]) - return { mainnet, mocha, arabica } + return { mainnet, mocha } }) -const networks = ["mainnet", "mocha", "arabica"] +const networks = ["mainnet", "mocha"] const modules = Object.keys(constants.value.mainnet.module) const constantsToMb = ["block_max_bytes", "evidence_max_bytes"] @@ -203,9 +202,6 @@ const handleCopy = (text) => { Mocha - - Arabica - diff --git a/pages/faucet.vue b/pages/faucet.vue index 79c9e3a6..76605bbf 100644 --- a/pages/faucet.vue +++ b/pages/faucet.vue @@ -74,7 +74,7 @@ useHead({ const isLoading = ref(false) const address = ref("") const account = ref() -const networks = ["Mocha", "Arabica"] +const networks = ["Mocha"] const network = ref((networks.find((n) => n === getNetworkName()) || networks[0]).toLowerCase()) const isNetworkSelectorOpen = ref(false) @@ -164,10 +164,7 @@ const handleExecute = async () => { } const handleReturnTokensClick = () => { - if ( - (useServerURL().includes("mocha") && network.value === "mocha") || - (useServerURL().includes("arabica") && network.value === "arabica") - ) { + if (useServerURL().includes("mocha") && network.value === "mocha") { cacheStore.current.address = { hash: faucetAddress() } modalsStore.open("send") } else { @@ -235,10 +232,7 @@ watch( await refreshFaucetBalance() onMounted(() => { - if ( - (useServerURL().includes("mocha") || useServerURL().includes("arabica")) && - appStore.address - ) { + if (useServerURL().includes("mocha") &&appStore.address) { address.value = appStore.address } diff --git a/server/plugins/siteConfig.js b/server/plugins/siteConfig.js index 2e7d0012..c03b6c30 100644 --- a/server/plugins/siteConfig.js +++ b/server/plugins/siteConfig.js @@ -1,6 +1,5 @@ const origins = [ "https://mocha.celenium.io/", - "https://arabica.celenium.io/", "https://mocha-4.celenium.io/", ] diff --git a/services/api/main.js b/services/api/main.js index 8d314ed5..aeda89c9 100644 --- a/services/api/main.js +++ b/services/api/main.js @@ -44,15 +44,6 @@ export const fetchMochaConstants = async () => { } } -export const fetchArabicaConstants = async () => { - try { - const data = await $fetch(`https://api-arabica-11.celenium.io/v1/constants`) - return data - } catch (error) { - console.error(error) - } -} - export const fetchEnums = async () => { try { const mainEnums = await $fetch(`${useServerURL()}/enums`) diff --git a/services/chains.js b/services/chains.js index d34c1630..3c439010 100644 --- a/services/chains.js +++ b/services/chains.js @@ -42,51 +42,6 @@ export const mocha = { features: [], } -export const arabica = { - chainId: "arabica-11", - chainName: "Celestia Arabica Testnet", - rpc: "https://rpc.celestia-arabica-11.com", - rest: "https://api.celestia-arabica-11.com", - bip44: { - coinType: 118, - }, - bech32Config: { - bech32PrefixAccAddr: "celestia", - bech32PrefixAccPub: "celestia" + "pub", - bech32PrefixValAddr: "celestia" + "valoper", - bech32PrefixValPub: "celestia" + "valoperpub", - bech32PrefixConsAddr: "celestia" + "valcons", - bech32PrefixConsPub: "celestia" + "valconspub", - }, - currencies: [ - { - coinDenom: "TIA", - coinMinimalDenom: "utia", - coinDecimals: 6, - coinGeckoId: "celestia", - }, - ], - feeCurrencies: [ - { - coinDenom: "TIA", - coinMinimalDenom: "utia", - coinDecimals: 6, - coinGeckoId: "celestia", - gasPriceStep: { - low: 0.01, - average: 0.025, - high: 0.3, - }, - }, - ], - stakeCurrency: { - coinDenom: "TIA", - coinMinimalDenom: "utia", - coinDecimals: 6, - coinGeckoId: "celestia", - }, -} - export const mainnet = { bech32Config: { bech32PrefixAccAddr: "celestia", diff --git a/services/config.js b/services/config.js index 4393089b..a492b848 100644 --- a/services/config.js +++ b/services/config.js @@ -10,9 +10,6 @@ export const useServerURL = () => { case "mocha-4.celenium.io": return p.API_MOCHA - case "arabica.celenium.io": - return p.API_ARABICA - case "dev.celenium.io": return p.API_DEV @@ -29,8 +26,6 @@ export const getServerURL = (network) => { return p.API_MAINNET case "mocha": return p.API_MOCHA - case "arabica": - return p.API_ARABICA default: return p.API_DEV @@ -49,9 +44,6 @@ export const useSocketURL = () => { case "mocha-4.celenium.io": return p.WSS_MOCHA - case "arabica.celenium.io": - return p.WSS_ARABICA - case "dev.celenium.io": return p.WSS_DEV @@ -67,7 +59,6 @@ export const useBlobstreamURL = () => { switch (requestURL.hostname) { case "mocha.celenium.io": case "mocha-4.celenium.io": - case "arabica.celenium.io": return p.BLOBSTREAM_TESTNET default: @@ -88,11 +79,8 @@ export const getStartChainDate = () => { case "mocha.celenium.io": return "2023-09-06T03:15:51.510579Z" - case "arabica.celenium.io": - return "2024-01-02T12:18:46.936662Z" - case "dev.celenium.io": - return "2024-01-02T12:18:46.936662Z" + return "2023-09-06T03:15:51.510579Z" default: return "2023-09-06T03:15:51.510579Z" @@ -104,7 +92,6 @@ export const faucetURL = () => { const { public: p } = useRuntimeConfig() return { mocha: p.FAUCET_MOCHA, - arabica: p.FAUCET_ARABICA, } } @@ -122,9 +109,8 @@ export const getBlobsURL = () => { case "mocha.celenium.io": case "mocha-4.celenium.io": return p.BLOBS_MOCHA - case "arabica.celenium.io": case "localhost": - return p.BLOBS_ARABICA + return p.BLOBS_MOCHA default: return null diff --git a/services/constants/updates.js b/services/constants/updates.js index d1f8b6ff..9443f27e 100644 --- a/services/constants/updates.js +++ b/services/constants/updates.js @@ -27,10 +27,6 @@ const updates = [ time: 1731609071, block: 3140052, }, - arabica: { - time: 1730843713, - block: 2348907, - }, }, }, { @@ -53,10 +49,6 @@ const updates = [ time: 1751370718, block: 6915786, }, - arabica: { - time: 1747381895, - block: 5975265, - }, }, }, { @@ -79,10 +71,6 @@ const updates = [ time: 1753895249, block: 7401191, }, - arabica: { - time: 1753819140, - block: 7316464, - }, }, }, { @@ -105,10 +93,6 @@ const updates = [ time: 1759454702, block: 8236886, }, - arabica: { - time: 1757398091, - block: 8105605, - }, }, }, { @@ -131,10 +115,6 @@ const updates = [ time: 1771860112, block: 10209986, }, - arabica: { - time: 1771025786, - block: 10133989, - }, }, }, ] diff --git a/services/lumina-node-wasm/lumina_node_wasm.d.ts b/services/lumina-node-wasm/lumina_node_wasm.d.ts index 31c58917..807e65a7 100644 --- a/services/lumina-node-wasm/lumina_node_wasm.d.ts +++ b/services/lumina-node-wasm/lumina_node_wasm.d.ts @@ -13,10 +13,6 @@ export enum Network { */ Mainnet = 0, /** -* Arabica testnet. -*/ - Arabica = 1, -/** * Mocha testnet. */ Mocha = 2, diff --git a/services/lumina-node-wasm/lumina_node_wasm_bg.js b/services/lumina-node-wasm/lumina_node_wasm_bg.js index ac6f9be5..d070eee0 100644 --- a/services/lumina-node-wasm/lumina_node_wasm_bg.js +++ b/services/lumina-node-wasm/lumina_node_wasm_bg.js @@ -383,11 +383,6 @@ export const Network = Object.freeze({ */ Mainnet: 0, 0: "Mainnet", - /** - * Arabica testnet. - */ - Arabica: 1, - 1: "Arabica", /** * Mocha testnet. */ diff --git a/services/utils/general.js b/services/utils/general.js index 67eecbe9..066eece4 100644 --- a/services/utils/general.js +++ b/services/utils/general.js @@ -159,9 +159,6 @@ export const getNetworkName = () => { case "mocha.celenium.io": return "Mocha-4" - case "arabica.celenium.io": - return "Arabica" - case "dev.celenium.io": return "Development"