Skip to content

Commit

Permalink
Merge pull request #188 from sesame-seed/master
Browse files Browse the repository at this point in the history
Sesameseed stake integration
  • Loading branch information
MickWang authored Aug 21, 2019
2 parents ed36a82 + 25ab4ea commit 752a340
Show file tree
Hide file tree
Showing 10 changed files with 794 additions and 12 deletions.
15 changes: 11 additions & 4 deletions src/common/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,9 +639,16 @@ Within their 50% share each consensus node will receive their share according to
loading: 'Loading latest pricing information, please wait..'
},
dapps: {
dapps: 'DApps',
sesameSeed: 'Sesame Seed',
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.'
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.'
},
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'
}
}
15 changes: 11 additions & 4 deletions src/common/lang/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,16 @@ export default {
loading: 'Loading latest pricing information, please wait..'
},
dapps: {
dapps: 'DApps',
sesameSeed: '芝麻籽',
notification: '注意',
userPolicy: '您将跳转至第三方dApp页面,在第三方dApp上的使用行为将适用该第三方dApp的《用户协议》和《隐私政策》,由该第三方dApp直接并单独向您承担责任'
dapps: 'DApps',
sesameSeed: '芝麻籽',
sesameseedDesc: 'Sesameseed voting management',
notification: '注意',
userPolicy: '您将跳转至第三方dApp页面,在第三方dApp上的使用行为将适用该第三方dApp的《用户协议》和《隐私政策》,由该第三方dApp直接并单独向您承担责任'
},
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'
}
}
Binary file added src/renderer/assets/sesameseed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions src/renderer/components/Dapps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,15 @@
</div>
</a-col>
<a-col :md="8" :lg="8" :xl="6">
<div class="dapp-item">
<div
class="dapp-item"
@click="handleDappSesameseed"
>
<div class="dapp-title">
<!-- <img :src="require('../assets/changelly.png')" alt /> -->
<img :src="require('../assets/sesameseed.png')" alt />
<span>{{$t('dapps.sesameSeed')}}</span>
</div>
<p class="dapp-content">{{$t('dapps.sesameSeed')}}</p>
<p class="dapp-content">{{$t('dapps.sesameseedDesc')}}</p>
</div>
</a-col>
</a-row>
Expand Down Expand Up @@ -135,6 +138,9 @@ export default {
const cryptonexURL = "https://wallet.cryptonex.org/member/sign-in";
open(cryptonexURL);
},
handleDappSesameseed() {
this.$router.push({name: 'AuthorizeLoginSesameseed'});
},
formatPrice(value) {
if (isNumber(value)) {
let val = (value / 1)
Expand Down
Loading

0 comments on commit 752a340

Please sign in to comment.