Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ onMounted(async () => {
})
}

if (["Mocha-4", "Arabica", "Local"].includes(getNetworkName())) {
if (["Mocha-4", "Local"].includes(getNetworkName())) {
appStore.blobsState = await fetchBlobsState()
}

Expand Down
6 changes: 3 additions & 3 deletions components/Connection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -32,11 +32,11 @@ switch (hostname) {
break

case "localhost":
appStore.network = arabica
appStore.network = mocha
break

default:
appStore.network = arabica
appStore.network = mocha
break
}

Expand Down
1 change: 0 additions & 1 deletion components/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ const handleOnClose = () => {
<DropdownTitle>Celestia Network</DropdownTitle>
<DropdownItem @click="handleNavigate('https://celenium.io')">Mainnet</DropdownItem>
<DropdownItem @click="handleNavigate('https://mocha-4.celenium.io')">Mocha-4</DropdownItem>
<DropdownItem @click="handleNavigate('https://arabica.celenium.io')">Arabica</DropdownItem>
</template>
</Dropdown>
</Flex>
Expand Down
11 changes: 0 additions & 11 deletions components/cmd/CommandMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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")
},
},
],
},
]
Expand Down
4 changes: 2 additions & 2 deletions components/modals/BlobModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 4 additions & 8 deletions components/modals/LightNodeModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion components/modals/LightNodeSettingsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ watch(

<template #popup>
<DropdownTitle>Celestia Networks</DropdownTitle>
<DropdownItem v-for="network in ['Mainnet', 'Arabica', 'Mocha']" @click="handleSelectNetwork(network)">
<DropdownItem v-for="network in ['Mainnet', 'Mocha']" @click="handleSelectNetwork(network)">
{{ network }}
</DropdownItem>
</template>
Expand Down
4 changes: 0 additions & 4 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,17 @@ export default defineNuxtConfig({

API_MAINNET: "",
API_MOCHA: "",
API_ARABICA: "",
API_DEV: "",

WSS_MAINNET: "",
WSS_MOCHA: "",
WSS_ARABICA: "",
WSS_DEV: "",

BLOBSTREAM_MAINNET: "",
BLOBSTREAM_TESTNET: "",

FAUCET_ADDRESS: "",
FAUCET_MOCHA: "",
FAUCET_ARABICA: "",

BLOCKSCOUT: "",
GITHUB: "",
Expand All @@ -103,7 +100,6 @@ export default defineNuxtConfig({
ROLLUP_RANKING: "",
TVL: "",
BLOBS_MOCHA: "",
BLOBS_ARABICA: "",

SELFHOSTED: false,
},
Expand Down
12 changes: 4 additions & 8 deletions pages/constants.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"]
Expand Down Expand Up @@ -203,9 +202,6 @@ const handleCopy = (text) => {
<th>
<Text size="13" weight="600" color="tertiary" mono> Mocha </Text>
</th>
<th>
<Text size="13" weight="600" color="tertiary" mono> Arabica </Text>
</th>
</tr>
</thead>
<tbody>
Expand Down
12 changes: 3 additions & 9 deletions pages/faucet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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
}

Expand Down
1 change: 0 additions & 1 deletion server/plugins/siteConfig.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const origins = [
"https://mocha.celenium.io/",
"https://arabica.celenium.io/",
"https://mocha-4.celenium.io/",
]

Expand Down
9 changes: 0 additions & 9 deletions services/api/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down
45 changes: 0 additions & 45 deletions services/chains.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 2 additions & 16 deletions services/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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

Expand All @@ -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:
Expand All @@ -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"
Expand All @@ -104,7 +92,6 @@ export const faucetURL = () => {
const { public: p } = useRuntimeConfig()
return {
mocha: p.FAUCET_MOCHA,
arabica: p.FAUCET_ARABICA,
}
}

Expand All @@ -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
Expand Down
Loading