Commit b1afc3e4 authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] And now the actual wallet changes. DO NOT MERGE TO MASTER YET

parent 0acae2fa
......@@ -31,24 +31,21 @@ import DropdownMenu from 'app/components/elements/DropdownMenu';
const assetPrecision = 1000;
const VALID_OPERATION_TYPES = [
"transfer",
"transfer_to_vesting",
"withdraw_vesting",
"interest",
"liquidity_reward",
"author_reward",
"curation_reward",
"comment_benefactor_reward",
"transfer_to_savings",
"transfer_from_savings",
"escrow_transfer",
"cancel_transfer_from_savings",
"escrow_approve",
"escrow_dispute",
"escrow_release",
"fill_convert_request",
"fill_order",
"claim_reward_balance"
'transfer',
'transfer_to_vesting',
'withdraw_vesting',
'interest',
'liquidity_reward',
'transfer_to_savings',
'transfer_from_savings',
'escrow_transfer',
'cancel_transfer_from_savings',
'escrow_approve',
'escrow_dispute',
'escrow_release',
'fill_convert_request',
'fill_order',
'claim_reward_balance',
];
class UserWallet extends React.Component {
......@@ -339,8 +336,7 @@ class UserWallet extends React.Component {
const data = item.getIn([1, 'op', 1]);
const type = item.getIn([1, 'op', 0]);
if (!VALID_OPERATION_TYPES.includes(type))
return null;
if (!VALID_OPERATION_TYPES.includes(type)) return null;
// Filter out rewards
if (
......
import { api } from '@hiveio/hive-js';
import { api } from 'app/utils/custom_api/lib';
import stateCleaner from 'app/redux/stateCleaner';
......@@ -65,7 +65,8 @@ export async function getStateAsync(url) {
let account_history = await api.getAccountHistoryAsync(
account_name,
-1,
500
500,
582907592732
);
let account = await api.getAccountsAsync([account_name]);
account = account[0];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment