diff --git a/src/components/page.ts b/src/components/page.ts index 5e9f262..f8ff30d 100644 --- a/src/components/page.ts +++ b/src/components/page.ts @@ -27,7 +27,11 @@ export const symbol = (name: string) => { target.symbol = name; } } - +export const enableStaking = () => { + return (target: any) => { + target.enableStaking = true; + } +} /** * Abstract Page diff --git a/src/pages/csc.ts b/src/pages/csc.ts index d80b525..e6644da 100644 --- a/src/pages/csc.ts +++ b/src/pages/csc.ts @@ -3,15 +3,13 @@ CSC Network */ -import { xml, useState, reactive, useRef, } from "@odoo/owl"; -import { useContract, useWallet, switchChain } from "@web/core/wallet" -import { OPage } from "@web/components/page"; +import { useState } from "@odoo/owl"; +import { OPage, enableStaking, logo, route, symbol, themplate, title } from "../components/page"; +import { switchChain, useContract, useWallet } from "../core/wallet"; -import cetABI from "@web/data/csc-validators.json" - -import "./csc.xml"; +import cetABI from "../data/csc-validators.json"; import "./csc.scss"; -import { logo, route, symbol, themplate, title } from "../components/page"; +import "./csc.xml"; const genzAdderss = "0xEAfF084e6da9aFE8EcAB4d85de940e7d3153296F"; const testAddress = "0x42eAcf5b37540920914589a6B1b5e45d82D0C1ca"; @@ -26,6 +24,7 @@ const mainnetChainId = "0x34"; @logo('./img/csc.svg') @themplate('pages.csc') @symbol('CET') +@enableStaking() export class CscStakingPage extends OPage { wallet = useWallet(); diff --git a/src/pages/dashboard.xml b/src/pages/dashboard.xml index d774ec4..a6a0263 100644 --- a/src/pages/dashboard.xml +++ b/src/pages/dashboard.xml @@ -11,7 +11,7 @@