mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 12:21:31 +03:00
added new e mpoints
This commit is contained in:
parent
deb097d063
commit
2c373d2a40
@ -39,6 +39,9 @@
|
|||||||
"reblog": "Reblog",
|
"reblog": "Reblog",
|
||||||
"login": "Login",
|
"login": "Login",
|
||||||
"checkin_extra": "Bonus",
|
"checkin_extra": "Bonus",
|
||||||
|
"delegation": "Delegation",
|
||||||
|
"delegation_title": "Delegation reward",
|
||||||
|
"delegation_desc": "You can earn 1 point per day for every 100sp",
|
||||||
"post_title": "Points for post",
|
"post_title": "Points for post",
|
||||||
"comment_title": "Points for comment",
|
"comment_title": "Points for comment",
|
||||||
"vote_title": "Points for vote",
|
"vote_title": "Points for vote",
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
export default {
|
export default {
|
||||||
|
150: {
|
||||||
|
icon: 'cached',
|
||||||
|
textKey: 'points.delegation_title',
|
||||||
|
nameKey: 'points.delegation',
|
||||||
|
descriptionKey: 'points.delegation_desc',
|
||||||
|
iconType: 'MaterialIcons',
|
||||||
|
point: 1,
|
||||||
|
},
|
||||||
100: {
|
100: {
|
||||||
icon: 'pencil',
|
icon: 'pencil',
|
||||||
textKey: 'points.post_title',
|
textKey: 'points.post_title',
|
||||||
@ -58,6 +66,9 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const POINTS_KEYS = [
|
export const POINTS_KEYS = [
|
||||||
|
{
|
||||||
|
type: 150,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: 100,
|
type: 100,
|
||||||
},
|
},
|
||||||
|
@ -4,7 +4,8 @@ import Config from 'react-native-config';
|
|||||||
|
|
||||||
import { getServer } from '../../realm/realm';
|
import { getServer } from '../../realm/realm';
|
||||||
import { getUnreadActivityCount } from '../esteem/esteem';
|
import { getUnreadActivityCount } from '../esteem/esteem';
|
||||||
import { userActivity } from '../esteem/ePoint';
|
import { userActivity, transfer } from '../esteem/ePoint';
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
import { decryptKey } from '../../utils/crypto';
|
import { decryptKey } from '../../utils/crypto';
|
||||||
import { parsePosts, parsePost, parseComments } from '../../utils/postParser';
|
import { parsePosts, parsePost, parseComments } from '../../utils/postParser';
|
||||||
@ -530,7 +531,10 @@ export const transferToken = (currentAccount, pin, data) => {
|
|||||||
client.broadcast
|
client.broadcast
|
||||||
.transfer(args, privateKey)
|
.transfer(args, privateKey)
|
||||||
.then(result => {
|
.then(result => {
|
||||||
resolve(result);
|
if (result) {
|
||||||
|
transfer(data.from, data.destination, data.ammount);
|
||||||
|
resolve(result);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
reject(err);
|
reject(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user