Skip to content

Commit

Permalink
Add benifit & adapt to the mainnet (#202)
Browse files Browse the repository at this point in the history
* Add benefit

* Skip eslint

* Add rebond

* Add translation

* Fix
  • Loading branch information
yashirooooo authored Jul 14, 2021
1 parent a566103 commit fb623cc
Show file tree
Hide file tree
Showing 26 changed files with 2,338 additions and 19 deletions.
23 changes: 23 additions & 0 deletions packages/apps-routing/src/benifit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright 2017-2021 @polkadot/apps-routing authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { TFunction } from 'i18next';
import type { Route } from './types';

import Component from '@polkadot/apps-benefit/';

export default function create (t: TFunction): Route {
return {
Component,
display: {
needsAccounts: true,
needsApi: [
'tx.benefits.addBenefitFunds'
]
},
group: 'accounts',
icon: 'calendar',
name: 'benifit',
text: t('nav.benifit', 'Benifit', { ns: 'apps-routing' })
};
}
1 change: 1 addition & 0 deletions packages/apps-routing/src/csmStaking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default function create (t: TFunction): Route {
Component,
display: {
needsApi: [
'tx.csmLocking.bond'

This comment has been minimized.

Copy link
@ljuanto

ljuanto Jul 1, 2024

packages/apps-routing/src/csmStaking.ts

]
},
group: 'csmStaking',
Expand Down
4 changes: 3 additions & 1 deletion packages/apps-routing/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type { Routes } from './types';
import accounts from './accounts';
import addresses from './addresses';
import assets from './assets';
import benifit from './benifit';
import bounties from './bounties';
import calendar from './calendar';
import claims from './claims';
Expand Down Expand Up @@ -64,6 +65,7 @@ export default function create (t: TFunction): Routes {
js(t),
settings(t),
merchants(t),
splore(t)

This comment has been minimized.

Copy link
@ljuanto

ljuanto Jul 1, 2024

packages/apps-routing/src/csmStaking.ts

splore(t),
benifit(t)
];
}
12 changes: 11 additions & 1 deletion packages/apps/public/locales/zh/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1547,5 +1547,15 @@
"About \"Data Power\" >>": "“数据算力”说明 >>",
"Data Power Booster 🔥 >>": "数据算力加速计划 🔥 >>",
"Activities in progress,End time countdown": "算力加速中,结束倒计时",
"The claim of CRU18 has ended. For unclaimed accounts, please wait for notification after the mainnet launch": "CRU18认领已结束,未认领的账户请在主网启动后等待通知"

This comment has been minimized.

Copy link
@ljuanto

ljuanto Jul 1, 2024

packages/apps/public/locales/zh/translation.json

"The claim of CRU18 has ended. For unclaimed accounts, please wait for notification after the mainnet launch": "CRU18认领已结束,未认领的账户请在主网启动后等待通知",
"Lock CRU to reduce the transaction fees of work reporting": "锁仓CRU减免工作量上报手续费",
"Group Owners can reduce the transaction fees of work reporting for Group members by locking CRU. For each 3CRU locked up, the transaction fees can be reduced once for each Era. If the number of reduced transaction fees is exceeded, the transaction fee of Group members will be charged normally.": "Group Owner可以通过锁仓CRU为Group member减免工作量上报手续费。每锁仓3CRU,每个Era可以减免一次手续费,超出减免次数后,将正常收取Group member的手续费。",
"No. of Group members": "组成员数量",
"Lockup/Total free transaction fees": "已锁仓/全免锁仓量",
"Unlocking": "解锁中",
"Deduction of last Era": "上个Era减免",
"Increase lockup": "增加锁仓",
"Total lockup": "总锁仓量",
"Create group": "创建组",
"Group owner": "组拥有者"
}
Loading

1 comment on commit fb623cc

@ljuanto
Copy link

@ljuanto ljuanto commented on fb623cc Jul 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

packages/page-accounts/src/Accounts/index.tsx

Please sign in to comment.