Skip to content

Commit 36d6897

Browse files
authored
Merge pull request #130 from celenium-io/dev
Add mamo for wallets
2 parents 83ba0fe + dde49d1 commit 36d6897

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed

components/Connection.vue

Lines changed: 5 additions & 1 deletion
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, mocha, mainnet } from "@/services/chains"
9+
import { arabica, mainnet, mammoth, mocha } from "@/services/chains"
1010
1111
/** Store */
1212
import { useAppStore } from "@/store/app"
@@ -31,6 +31,10 @@ switch (hostname) {
3131
appStore.network = mocha
3232
break
3333
34+
case "mammoth.celenium.io":
35+
appStore.network = mammoth
36+
break
37+
3438
// case "arabica.celenium.io":
3539
// case "localhost":
3640
default:

components/widgets/BlobsWidget.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ onMounted(async () => {
6363
weeks.value.shift()
6464
}
6565
66-
totalSize.time = DateTime.fromISO(weeks.value[0][0].time)
66+
// totalSize.time = DateTime.fromISO(weeks.value[0][0].time)
67+
totalSize.time = Object.values(weeks.value[0]).find(Boolean).time
6768
})
6869
6970
const calculateOpacity = (val) => {

services/chains.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,51 @@ export const arabica = {
8787
},
8888
}
8989

90+
export const mammoth = {
91+
chainId: "mamo-1",
92+
chainName: "Celestia Mammoth Testnet",
93+
rpc: "https://rpc.ams.mamochain.com",
94+
rest: "https://api.ams.mamochain.com",
95+
bip44: {
96+
coinType: 118,
97+
},
98+
bech32Config: {
99+
bech32PrefixAccAddr: "celestia",
100+
bech32PrefixAccPub: "celestia" + "pub",
101+
bech32PrefixValAddr: "celestia" + "valoper",
102+
bech32PrefixValPub: "celestia" + "valoperpub",
103+
bech32PrefixConsAddr: "celestia" + "valcons",
104+
bech32PrefixConsPub: "celestia" + "valconspub",
105+
},
106+
currencies: [
107+
{
108+
coinDenom: "TIA",
109+
coinMinimalDenom: "utia",
110+
coinDecimals: 6,
111+
coinGeckoId: "celestia",
112+
},
113+
],
114+
feeCurrencies: [
115+
{
116+
coinDenom: "TIA",
117+
coinMinimalDenom: "utia",
118+
coinDecimals: 6,
119+
coinGeckoId: "celestia",
120+
gasPriceStep: {
121+
low: 0.01,
122+
average: 0.025,
123+
high: 0.3,
124+
},
125+
},
126+
],
127+
stakeCurrency: {
128+
coinDenom: "TIA",
129+
coinMinimalDenom: "utia",
130+
coinDecimals: 6,
131+
coinGeckoId: "celestia",
132+
},
133+
}
134+
90135
export const mainnet = {
91136
bech32Config: {
92137
bech32PrefixAccAddr: "celestia",

0 commit comments

Comments
 (0)