From 7521b17c5a8ee6afe9d65d007417eeb17bf681d8 Mon Sep 17 00:00:00 2001 From: snoopy1412 Date: Fri, 27 Sep 2024 16:24:50 +0800 Subject: [PATCH 1/2] Refactor KTON_TOKEN_INFO_MAP to include governanceName --- src/config/chains/index.ts | 23 +++++++++++++++++++---- src/view/deposit/_components/index.tsx | 24 +++++++++++++++--------- 2 files changed, 34 insertions(+), 13 deletions(-) diff --git a/src/config/chains/index.ts b/src/config/chains/index.ts index ca38604..e821581 100644 --- a/src/config/chains/index.ts +++ b/src/config/chains/index.ts @@ -21,19 +21,34 @@ export const NATIVE_TOKEN_ICON_MAP = new Map([ export const KTON_TOKEN_INFO_MAP = new Map< ChainId, - { symbol: string; decimals: number; address: `0x${string}` } + { symbol: string; decimals: number; address: `0x${string}`; governanceName: string } >([ [ ChainId.CRAB, - { symbol: 'CKTON', decimals: 18, address: '0x0000000000000000000000000000000000000402' } + { + symbol: 'CKTON', + decimals: 18, + address: '0x0000000000000000000000000000000000000402', + governanceName: 'CktonDAO' + } ], [ ChainId.DARWINIA, - { symbol: 'KTON', decimals: 18, address: '0x0000000000000000000000000000000000000402' } + { + symbol: 'KTON', + decimals: 18, + address: '0x0000000000000000000000000000000000000402', + governanceName: 'KtonDAO' + } ], [ ChainId.KOI, - { symbol: 'PKTON', decimals: 18, address: '0x0000000000000000000000000000000000000402' } + { + symbol: 'PKTON', + decimals: 18, + address: '0x0000000000000000000000000000000000000402', + governanceName: 'PktonDAO' + } ] ]); diff --git a/src/view/deposit/_components/index.tsx b/src/view/deposit/_components/index.tsx index 04ec91d..bb64a13 100644 --- a/src/view/deposit/_components/index.tsx +++ b/src/view/deposit/_components/index.tsx @@ -105,15 +105,21 @@ const Deposit = () => { > Deposit - + +
+ +

+ Powered and governed by {ktonInfo?.governanceName} +

+
Date: Fri, 27 Sep 2024 16:53:09 +0800 Subject: [PATCH 2/2] Refactor collator join link to point to the updated guide --- src/components/collator/join.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/collator/join.tsx b/src/components/collator/join.tsx index 2df3ded..afad4ce 100644 --- a/src/components/collator/join.tsx +++ b/src/components/collator/join.tsx @@ -145,7 +145,7 @@ const CollatorJoin = ({ hasSessionKey, sessionKey, hasPool, refetch }: CollatorJ Note that you need to complete two steps in sequence, setup [Session Key] and setup [Commission] before becoming a collator. Please{' '}