diff --git a/src/assets/sesameseed.png b/src/assets/sesameseed.png deleted file mode 100644 index 197d937..0000000 Binary files a/src/assets/sesameseed.png and /dev/null differ diff --git a/src/components/Dapps.vue b/src/components/Dapps.vue index 55cfae6..f0db8e3 100644 --- a/src/components/Dapps.vue +++ b/src/components/Dapps.vue @@ -67,18 +67,6 @@

- -
-
- - {{$t('dapps.sesameSeed')}} -
-

{{$t('dapps.sesameseedDesc')}}

-
-
-.content-container { - display: flex; -} - -.left-half { - flex-basis: 55%; - padding-right: 20px; -} - -.right-half { - flex-basis: 50%; - padding-left: 40px; - border-left: 1px solid #dddddd; -} -.label { - font-size: 16px; -} - -.refresh-icon { - color: #000000; - font-size: 16px; - cursor: pointer; - margin-left: 20px; -} - -.switch-wallet { - margin-left: 20px; - cursor: pointer; - color: #000000; - font-size: 16px; -} - -.new-stake { - margin: 15px 0; - border-radius: 0; -} - -.in-authorization { - margin: 15px 0 0 0; -} -.authorize-tip { - font-size: 16px; - margin-bottom: 15px; -} -.tip-font { - font-size: 12px; -} -.cancel-btn { - margin: 15px 0; - border-radius: 0; -} -.redeem-item { - width: 100%; -} -.redeem-item span:first-child { - width: 150px; - display: inline-block; -} -.redeem-item button { - margin-left: 20px; -} -.redeem-ont { - margin: 15px 0; -} -.redeem-btn { - width: 100px; - height: 36px; - border-radius: 0; - background: #fbe45a; - padding: 0; - font-family: AvenirNext-Medium; - font-size: 14px; - color: #5e6369; - border: none; - margin-bottom: 15px; -} -.cancel-stake-input { - width: 200px; -} - - - diff --git a/src/components/Node/NodeAuthorize/Sesameseed/AuthorizeLoginSesameseed.vue b/src/components/Node/NodeAuthorize/Sesameseed/AuthorizeLoginSesameseed.vue deleted file mode 100644 index e99d087..0000000 --- a/src/components/Node/NodeAuthorize/Sesameseed/AuthorizeLoginSesameseed.vue +++ /dev/null @@ -1,150 +0,0 @@ - - - diff --git a/src/components/Node/NodeAuthorize/Sesameseed/NewAuthorizationSesameseed.vue b/src/components/Node/NodeAuthorize/Sesameseed/NewAuthorizationSesameseed.vue deleted file mode 100644 index 2040fee..0000000 --- a/src/components/Node/NodeAuthorize/Sesameseed/NewAuthorizationSesameseed.vue +++ /dev/null @@ -1,193 +0,0 @@ - - - - diff --git a/src/components/Node/NodeAuthorize/Sesameseed/SesameseedVars.js b/src/components/Node/NodeAuthorize/Sesameseed/SesameseedVars.js deleted file mode 100644 index e57b11b..0000000 --- a/src/components/Node/NodeAuthorize/Sesameseed/SesameseedVars.js +++ /dev/null @@ -1,2 +0,0 @@ -export const CONTRACT_HASH = 'a63c33d2209854feafbf40685a33d4846ee82556' -export const SESAMESEED_NODE_ADDRESS = 'ANRRE8xKwKzuaCeAjP6eZYDnVi7n2x6byE' diff --git a/src/lang/en.js b/src/lang/en.js index 3816c98..abed3dd 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -761,16 +761,8 @@ Within their 50% share each consensus node will receive their share according to }, dapps: { dapps: 'DApps', - sesameSeed: 'Sesameseed', - sesameseedDesc: 'Sesameseed voting management', notification: 'Notification', userPolicy: 'You will be redirected to the third party dApp. Use of the third party dApp will be subject to their User Agreement and Privacy Policy. You will be liable to the third party dApp only.', ontidMgmt: 'ONT ID management. This feature will be removed in the future. Please backup ONT ID related data' - }, - sesameseed: { - stakeAmountTip: 'Stake amount for Sesameseed is 1 unit equals 1 ONT', - authorizeTip: 'If a new stake is canceled, it will add to the “canceled” ONT and be directly deposited in the users account within 24 hours. If authorized ONT from a previous consensus round is canceled it will be added to the “canceled” ONT and be directly deposited in the originating users account within 24 hours of the beginning of the next consensus round if Sesameseed is a candidate node (or one round later if Sesameseed is a consensus node). If a user has both authorized ONT from this consensus round and a previous round and cancels an ONT amount exceeding the amount from this round, they will receive authorized ONT from this consensus round first and the remaining authorized ONT in the next round.', - rewardTip: 'Sesameseed rewards Ontology Stake Authorizations in SEED for both foundation rewards created as a candidate or consensus node as an OEP-4 token “SEED”. This token is rewarded directly to Staking participants. In addition to node rewards, 100% of ONG unbound while staking is pooled by all stake authorizations and added to the total “Node Reward”, as a result this node reward is also provided in the form of “SEED” Token. Rewards are distributed daily without the need to redeem. Find out more at https://sesameseed.org.', - pendingWithdrawals: 'Pending canceled stake authorization' } } diff --git a/src/lang/zh.js b/src/lang/zh.js index 341e26e..951c093 100644 --- a/src/lang/zh.js +++ b/src/lang/zh.js @@ -756,16 +756,8 @@ export default { }, dapps: { dapps: 'DApps', - sesameSeed: '芝麻籽', - sesameseedDesc: 'Sesameseed voting management', notification: '注意', userPolicy: '您将跳转至第三方dApp页面,在第三方dApp上的使用行为将适用该第三方dApp的《用户协议》和《隐私政策》,由该第三方dApp直接并单独向您承担责任', ontidMgmt: '管理ONT ID。该功能以后会被移除。请备份ONT ID相关数据。' - }, - sesameseed: { - stakeAmountTip: 'Stake amount for Sesameseed is 1 unit equals 1 ONT', - authorizeTip: 'If a new stake is canceled, it will add to the “canceled” ONT and be directly deposited in the users account within 24 hours. If authorized ONT from a previous consensus round is canceled it will be added to the “canceled” ONT and be directly deposited in the originating users account within 24 hours of the beginning of the next consensus round if Sesameseed is a candidate node (or one round later if Sesameseed is a consensus node). If a user has both authorized ONT from this consensus round and a previous round and cancels an ONT amount exceeding the amount from this round, they will receive authorized ONT from this consensus round first and the remaining authorized ONT in the next round.', - rewardTip: 'Sesameseed rewards Ontology Stake Authorizations in SEED for both foundation rewards created as a candidate or consensus node as an OEP-4 token “SEED”. This token is rewarded directly to Staking participants. In addition to node rewards, 100% of ONG unbound while staking is pooled by all stake authorizations and added to the total “Node Reward”, as a result this node reward is also provided in the form of “SEED” Token. Rewards are distributed daily without the need to redeem. Find out more at https://sesameseed.org.', - pendingWithdrawals: 'Pending canceled stake authorization' } } diff --git a/src/router/index.js b/src/router/index.js index 7de6c3c..0e45483 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -140,22 +140,22 @@ export default new Router({ component: require('@/components/Node/Vote/Detail').default }, ] - }, - { - path: '/node/apply', - name: 'NodeApply', - component: require('@/components/Node/NodeApply/Register').default - }, - { - path: '/node/applysuccess', - name: 'NodeApplySuccess', - component: require('@/components/Node/NodeApply/RegisterSuccess').default - }, - { - path: '/node/mynode', - name: 'MyNode', - component: require('@/components/Node/NodeManagement/MyNode').default - }, + }, + { + path: '/node/apply', + name: 'NodeApply', + component: require('@/components/Node/NodeApply/Register').default + }, + { + path: '/node/applysuccess', + name: 'NodeApplySuccess', + component: require('@/components/Node/NodeApply/RegisterSuccess').default + }, + { + path: '/node/mynode', + name: 'MyNode', + component: require('@/components/Node/NodeManagement/MyNode').default + }, { path: '/commonWalletSend', name: 'CommonSendHome', @@ -221,31 +221,16 @@ export default new Router({ name: 'AuthorizeLogin', component: require('@/components/Node/NodeAuthorize/AuthorizeLogin').default }, - { - path: '/dapps/authorizeLoginSesameseed', - name: 'AuthorizeLoginSesameseed', - component: require('@/components/Node/NodeAuthorize/Sesameseed/AuthorizeLoginSesameseed').default - }, { path: '/node/authorizationMgmt', name: 'AuthorizationMgmt', component: require('@/components/Node/NodeAuthorize/AuthorizationMgmt').default }, - { - path: '/dapps/authorizationMgmtSesameseed', - name: 'AuthorizationMgmtSesameseed', - component: require('@/components/Node/NodeAuthorize/Sesameseed/AuthorizationMgmtSesameseed').default - }, { path: '/node/newAuthorization', name: 'NewAuthorization', component: require('@/components/Node/NodeAuthorize/NewAuthorization').default }, - { - path: '/dapps/newAuthorizationSesameseed', - name: 'NewAuthorizationSesameseed', - component: require('@/components/Node/NodeAuthorize/Sesameseed/NewAuthorizationSesameseed').default - }, { path: '/oep4Home', name: 'Oep4Home', diff --git a/src/store/modules/NodeAuthorizationSesameseed.js b/src/store/modules/NodeAuthorizationSesameseed.js deleted file mode 100644 index 6ad430c..0000000 --- a/src/store/modules/NodeAuthorizationSesameseed.js +++ /dev/null @@ -1,56 +0,0 @@ -import { utils } from 'ontology-ts-sdk' -import axios from 'axios'; - -const state = { - sesameseed: { // for node user - votes: 0, - pendingWithdrawals: 0 - } -} - -const mutations = { - UPDATE_CURRENT_SS_PEER(state, payload) { - state.sesameseed = { - votes: payload.votes, - pendingWithdrawals: payload.pendingWithdrawals - } - } -} - -const actions = { - async fetchSSPerInfo({ commit }, address) { - try { - const baseUrl = 'https://api.sesameseed.org/voting/v1/address/' - - const pendingWithdrawalsPromise = axios.get(baseUrl + 'unstaked/' + address) - const votesPromise = axios.get(baseUrl + 'staked/' + address) - - const [pendingWithdrawalsResponse, votesResponse] = await Promise.all([pendingWithdrawalsPromise, votesPromise]) - - let votes = 0 - let pendingWithdrawals = 0 - - if (pendingWithdrawalsResponse.status === 200 && pendingWithdrawalsResponse.data) { - const resultPending = pendingWithdrawalsResponse.data - pendingWithdrawals = resultPending.value ? resultPending.value : 0 - } - - if (votesResponse.status === 200 && votesResponse.data) { - const resultVotes = votesResponse.data - votes = resultVotes.value ? resultVotes.value : 0 - } - - commit('UPDATE_CURRENT_SS_PEER', { votes, pendingWithdrawals }) - return { votes, pendingWithdrawals }; - } catch (err) { - console.log(err) - return 0; - } - } -} - -export default { - state, - mutations, - actions -}