diff --git a/src/components/ad/ad.ts b/src/components/ad/ad.ts index f48c8370..a0a1fdae 100644 --- a/src/components/ad/ad.ts +++ b/src/components/ad/ad.ts @@ -25,6 +25,7 @@ export const UNITS: Record> = { "localhost": { "banner": "3a094192-4c7b-4761-a50c-bd9b6a67e987", "banner_mobile": "e6b82a11-6a94-46c0-a9d2-cf730159a5e6", + "popup": "e6b82a11-6a94-46c0-a9d2-cf730159a5e6" }, "ping.pub": { "banner": "6883877a-ccae-4a08-b457-7e30b3465a8c", @@ -33,6 +34,7 @@ export const UNITS: Record> = { "testnet.ping.pub": { "banner": "1644951b-5022-4544-8a85-11aef8a8f645", "banner_mobile": "81e0527f-475a-42a4-bb9a-ed9967c5d06f", + "popup": "bd77a47c-30fc-4592-9d37-616d4f66964d" }, } diff --git a/src/layouts/components/DefaultLayout.vue b/src/layouts/components/DefaultLayout.vue index 31e3a47b..5529a85d 100644 --- a/src/layouts/components/DefaultLayout.vue +++ b/src/layouts/components/DefaultLayout.vue @@ -8,7 +8,7 @@ import NavbarThemeSwitcher from '@/layouts/components/NavbarThemeSwitcher.vue'; import NavbarSearch from '@/layouts/components/NavbarSearch.vue'; import ChainProfile from '@/layouts/components/ChainProfile.vue'; -import { useDashboard } from '@/stores/useDashboard'; +import { NetworkType, useDashboard } from '@/stores/useDashboard'; import { useBaseStore, useBlockchain } from '@/stores'; import NavBarI18n from './NavBarI18n.vue'; @@ -143,7 +143,7 @@ dayjs() {{ item?.badgeContent }} -
+
+
diff --git a/src/modules/[chain]/faucet/index.vue b/src/modules/[chain]/faucet/index.vue new file mode 100644 index 00000000..428bb9ef --- /dev/null +++ b/src/modules/[chain]/faucet/index.vue @@ -0,0 +1,144 @@ + + diff --git a/src/stores/useDashboard.ts b/src/stores/useDashboard.ts index a8410107..ba890256 100644 --- a/src/stores/useDashboard.ts +++ b/src/stores/useDashboard.ts @@ -85,7 +85,13 @@ export interface ChainConfig { low: number, average: number, high: number, - }, + }, + faucet?: { + amount: string, + ip_limit: number, + address_limit: number, + fees: string + }; } export interface LocalConfig { @@ -93,6 +99,7 @@ export interface LocalConfig { consensus_prefix?: string; alias: string; api: string[] | Endpoint[]; + grpc: Endpoint[]; provider_chain: { api: string[] | Endpoint[] } @@ -118,6 +125,12 @@ export interface LocalConfig { high: number, }, keplr_features: string[], + faucet?: { + amount: string, + ip_limit: number, + address_limit: number, + fees: string + }; } function apiConverter(api: any[]) { @@ -164,6 +177,7 @@ export function fromLocal(lc: LocalConfig): ChainConfig { conf.endpoints = { rest: apiConverter(lc.api), rpc: apiConverter(lc.rpc), + grpc: apiConverter(lc.grpc), }; if(lc.provider_chain) { conf.providerChain = { @@ -175,6 +189,7 @@ export function fromLocal(lc: LocalConfig): ChainConfig { conf.keplrFeatures = lc.keplr_features; conf.keplrPriceStep = lc.keplr_price_step; conf.themeColor = lc.theme_color; + conf.faucet = lc.faucet; return conf; }