Skip to content

Commit 7adf367

Browse files
committed
Rm Mammoth network
1 parent ef8a374 commit 7adf367

File tree

14 files changed

+15
-157
lines changed

14 files changed

+15
-157
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ If you want to use a prebuilt image from **GitHub Container Registry**, specify
8585
- **NUXT_PUBLIC_FAUCET_ADDRESS** — faucet address.
8686
- **NUXT_PUBLIC_FAUCET_MOCHA** — faucet API for the Mocha network.
8787
- **NUXT_PUBLIC_FAUCET_ARABICA** — faucet API for the Arabica network.
88-
- **NUXT_PUBLIC_FAUCET_MAMMOTH** — faucet API for the Mammoth network.
8988

9089
#### External Services Configuration
9190
- **NUXT_PUBLIC_BLOCKSCOUT** — used to check whether a batch exists in Blockscout. If found, a dedicated button will appear on the blob form/page.

components/Connection.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Dropdown, DropdownTitle, DropdownItem, DropdownDivider } from "@/compon
66
/** Services */
77
import amp from "@/services/amp"
88
import { disconnect } from "@/services/wallet"
9-
import { arabica, mainnet, mammoth, mocha } from "@/services/chains"
9+
import { arabica, mainnet, mocha } from "@/services/chains"
1010
1111
/** Store */
1212
import { useAppStore } from "@/store/app.store"
@@ -30,10 +30,6 @@ switch (hostname) {
3030
appStore.network = mocha
3131
break
3232
33-
case "mammoth.celenium.io":
34-
appStore.network = mammoth
35-
break
36-
3733
case "localhost":
3834
appStore.network = arabica
3935
break

components/LeftSidebar.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,7 @@ const handleOnClose = () => {
239239
<Flex justify="between" align="center">
240240
<NuxtLink to="/" :class="$style.logo">
241241
<Flex align="center" gap="8">
242-
<Icon v-if="getNetworkName() !== 'Mammoth'" name="logo" size="16" color="tertiary" :class="$style.logo_symbol" />
243-
<Text v-else size="16" style="filter: grayscale(1)">🦣</Text>
242+
<Icon name="logo" size="16" color="tertiary" :class="$style.logo_symbol" />
244243

245244
<svg width="86" height="14" viewBox="0 0 96 16" xmlns="http://www.w3.org/2000/svg" :class="$style.logo_name">
246245
<path
@@ -354,7 +353,6 @@ const handleOnClose = () => {
354353
<DropdownItem @click="handleNavigate('https://celenium.io')">Mainnet</DropdownItem>
355354
<DropdownItem @click="handleNavigate('https://mocha-4.celenium.io')">Mocha-4</DropdownItem>
356355
<DropdownItem @click="handleNavigate('https://arabica.celenium.io')">Arabica</DropdownItem>
357-
<DropdownItem @click="handleNavigate('https://mammoth.celenium.io')">Mammoth</DropdownItem>
358356
</template>
359357
</Dropdown>
360358
</Flex>

components/cmd/CommandMenu.vue

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ const appConfig = useAppConfig()
4040
4141
const developerMode = useCookie("developerMode", { default: () => false })
4242
const theme = useCookie("theme", { default: () => "dark" })
43-
const showPromoBackground = useCookie("showPromoBackground", { default: () => true })
4443
4544
const route = useRoute()
4645
const router = useRouter()
@@ -837,36 +836,6 @@ const developerGroup = computed(() => {
837836
})
838837
839838
const rawOtherActions = [
840-
{
841-
type: "callback",
842-
icon: "settings",
843-
title: "Toggle Promo Background",
844-
subtitle: "Command",
845-
runText: "Toggle",
846-
callback: () => {
847-
if (getNetworkName() !== "Mammoth") {
848-
notificationsStore.create({
849-
notification: {
850-
type: "info",
851-
icon: "info",
852-
title: `Available for the mammoth network only`,
853-
autoDestroy: true,
854-
},
855-
})
856-
return
857-
}
858-
859-
showPromoBackground.value = !showPromoBackground.value
860-
notificationsStore.create({
861-
notification: {
862-
type: "info",
863-
icon: "info",
864-
title: `Promo background ${showPromoBackground.value ? "enabled" : "disabled"}`,
865-
autoDestroy: true,
866-
},
867-
})
868-
},
869-
},
870839
{
871840
type: "callback",
872841
icon: "terminal",

components/modals/LightNodeModal.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ onMounted(async () => {
121121
const disableStart = ref(false)
122122
const status = computed(() => nodeStore.status)
123123
124-
const networks = ["Mainnet", "Arabica", "Mocha", "Mammoth"]
124+
const networks = ["Mainnet", "Arabica", "Mocha"]
125125
const selectedNetwork = ref()
126126
127127
const { hostname } = useRequestURL()
@@ -142,10 +142,6 @@ switch (hostname) {
142142
selectedNetwork.value = 1
143143
break
144144
145-
case "mammoth.celenium.io":
146-
selectedNetwork.value = 3
147-
break
148-
149145
case "dev.celenium.io":
150146
selectedNetwork.value = 1
151147
break

layouts/default.vue

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@ import AdvBanner from "@/components/shared/AdvBanner.vue"
55
/** Services */
66
import { getNetworkName } from "@/services/utils/general"
77
8-
const showPromoBackground = useCookie("showPromoBackground", { default: () => true })
98
</script>
109

1110
<template>
1211
<Flex direction="column">
1312
<Flex justify="center" :class="$style.wrapper">
14-
<img v-if="getNetworkName() === 'Mammoth' && showPromoBackground" src="/img/mammoth.jpeg" :class="$style.mammoth_bg" />
15-
1613
<LeftSidebar :class="$style.sidebar" />
1714

1815
<Flex direction="column" align="center" :class="$style.content">
@@ -39,20 +36,6 @@ const showPromoBackground = useCookie("showPromoBackground", { default: () => tr
3936
min-height: calc(100vh);
4037
}
4138
42-
.mammoth_bg {
43-
width: 100%;
44-
position: fixed;
45-
top: 0;
46-
left: 0;
47-
right: 0;
48-
49-
z-index: -1;
50-
51-
filter: grayscale(0.3);
52-
opacity: 0.5;
53-
-webkit-mask-image: -webkit-gradient(linear, left 0%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
54-
}
55-
5639
.content {
5740
max-width: 1040px;
5841
min-width: 1040px;

nuxt.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,11 @@ export default defineNuxtConfig({
8282
API_MAINNET: "",
8383
API_MOCHA: "",
8484
API_ARABICA: "",
85-
API_MAMMOTH: "",
8685
API_DEV: "",
8786

8887
WSS_MAINNET: "",
8988
WSS_MOCHA: "",
9089
WSS_ARABICA: "",
91-
WSS_MAMMOTH: "",
9290
WSS_DEV: "",
9391

9492
BLOBSTREAM_MAINNET: "",
@@ -97,7 +95,6 @@ export default defineNuxtConfig({
9795
FAUCET_ADDRESS: "",
9896
FAUCET_MOCHA: "",
9997
FAUCET_ARABICA: "",
100-
FAUCET_MAMMOTH: "",
10198

10299
BLOCKSCOUT: "",
103100
GITHUB: "",

pages/constants.vue

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { formatBytes, comma, round } from "@/services/utils"
99
import Tooltip from "@/components/ui/Tooltip.vue"
1010
1111
/** API */
12-
import { fetchMainnetConstants, fetchMochaConstants, fetchArabicaConstants, fetchMammothConstants } from "@/services/api/main"
12+
import { fetchMainnetConstants, fetchMochaConstants, fetchArabicaConstants } from "@/services/api/main"
1313
1414
/** Store */
1515
import { useNotificationsStore } from "@/store/notifications.store"
@@ -64,16 +64,15 @@ useHead({
6464
})
6565
6666
const { data: constants } = await useAsyncData(`all-constants`, async () => {
67-
const [mainnet, mocha, arabica, mammoth] = await Promise.all([
67+
const [mainnet, mocha, arabica ] = await Promise.all([
6868
fetchMainnetConstants(),
6969
fetchMochaConstants(),
7070
fetchArabicaConstants(),
71-
fetchMammothConstants(),
7271
])
73-
return { mainnet, mocha, arabica, mammoth }
72+
return { mainnet, mocha, arabica }
7473
})
7574
76-
const networks = ["mainnet", "mocha", "arabica", "mammoth"]
75+
const networks = ["mainnet", "mocha", "arabica"]
7776
const modules = Object.keys(constants.value.mainnet.module)
7877
7978
const constantsToMb = ["block_max_bytes", "evidence_max_bytes"]
@@ -207,9 +206,6 @@ const handleCopy = (text) => {
207206
<th>
208207
<Text size="13" weight="600" color="tertiary" mono> Arabica </Text>
209208
</th>
210-
<th>
211-
<Text size="13" weight="600" color="tertiary" mono> Mammoth </Text>
212-
</th>
213209
</tr>
214210
</thead>
215211
<tbody>

pages/faucet.vue

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ useHead({
7474
const isLoading = ref(false)
7575
const address = ref("")
7676
const account = ref()
77-
const networks = ["Mocha", "Arabica", "Mammoth"]
77+
const networks = ["Mocha", "Arabica"]
7878
const network = ref((networks.find((n) => n === getNetworkName()) || networks[0]).toLowerCase())
7979
8080
const isNetworkSelectorOpen = ref(false)
@@ -166,8 +166,7 @@ const handleExecute = async () => {
166166
const handleReturnTokensClick = () => {
167167
if (
168168
(useServerURL().includes("mocha") && network.value === "mocha") ||
169-
(useServerURL().includes("arabica") && network.value === "arabica") ||
170-
(useServerURL().includes("mammoth") && network.value === "mammoth")
169+
(useServerURL().includes("arabica") && network.value === "arabica")
171170
) {
172171
cacheStore.current.address = { hash: faucetAddress() }
173172
modalsStore.open("send")
@@ -237,7 +236,7 @@ watch(
237236
await refreshFaucetBalance()
238237
onMounted(() => {
239238
if (
240-
(useServerURL().includes("mocha") || useServerURL().includes("arabica") || useServerURL().includes("mammoth")) &&
239+
(useServerURL().includes("mocha") || useServerURL().includes("arabica")) &&
241240
appStore.address
242241
) {
243242
address.value = appStore.address
@@ -338,7 +337,7 @@ onMounted(() => {
338337
:loading="isLoading"
339338
:disabled="validation.type === 'error' || !address"
340339
>
341-
{{ `Recieve ${network === "mammoth" ? 100 : 1} TIA` }}
340+
Recieve 1 TIA
342341
</Button>
343342
</Flex>
344343
</Flex>
@@ -494,11 +493,7 @@ onMounted(() => {
494493
495494
<Flex id="2" :class="[$style.answer, openedQuestion === 2 && $style.answer_extended]">
496495
<Text size="13" weight="500" color="tertiary" height="160">
497-
{{
498-
`You can request testnet tokens by entering your Celestia testnet address, and clicking the "Receive ${
499-
network === "mammoth" ? 100 : 1
500-
} TIA" button. Tokens will be sent to your wallet within a few moments.`
501-
}}
496+
You can request testnet tokens by entering your Celestia testnet address, and clicking the "Receive TIA" button. Tokens will be sent to your wallet within a few moments.
502497
</Text>
503498
</Flex>
504499
@@ -520,7 +515,7 @@ onMounted(() => {
520515
<Text size="13" weight="500" color="tertiary" height="160">
521516
To ensure fair distribution and prevent abuse, the faucet has the following limitations:<br />
522517
&nbsp;&nbsp;• You can receive
523-
<b>100 TIA for Mammoth network and 1 TIA for other testnets per request</b>.<br />
518+
<b>1 TIA for all testnets per request</b>.<br />
524519
&nbsp;&nbsp;• You can request tokens <b>only once per hour</b> per
525520
<b>IP address or wallet address</b>.<br />
526521
&nbsp;&nbsp;• If you reach the limit, you will need to wait before requesting again.

server/plugins/siteConfig.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const origins = [
22
"https://mocha.celenium.io/",
33
"https://arabica.celenium.io/",
44
"https://mocha-4.celenium.io/",
5-
"https://mammoth.celenium.io/",
65
]
76

87
export default defineNitroPlugin((nitroApp) => {

0 commit comments

Comments
 (0)