Skip to content

Commit

Permalink
[EEX-706] fixed some block operations (#122)
Browse files Browse the repository at this point in the history
* fixed some block operations

* removed some switch cases
  • Loading branch information
alesPoz authored Dec 5, 2019
1 parent 9fd2218 commit 8b3f0d4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 23 deletions.
1 change: 0 additions & 1 deletion src/actions/TransactionActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ class TransactionActionsClass extends BaseActionsClass {
accountId = undefined,
round = undefined,
trIndex = undefined,
// eslint-disable-next-line no-unused-vars
opIndex = undefined,
operationResult = [],
id = undefined,
Expand Down
44 changes: 22 additions & 22 deletions src/constants/Operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ const Operations = {
options: {
from: 'committee_member_account',
subject: null,
value: null,
asset: null,
value: 'deposit.amount',
asset: 'deposit.asset_id',
},
},
committee_member_update: {
Expand Down Expand Up @@ -295,10 +295,10 @@ const Operations = {
value: OPERATIONS_IDS.BALANCE_CLAIM,
name: 'Claim balance',
options: {
from: null,
from: 'balance_owner_key',
subject: ['deposit_to_account', 'name'],
value: null,
asset: null,
value: 'total_claimed.amount',
asset: 'total_claimed.asset_id',
},
},
balance_freeze: {
Expand Down Expand Up @@ -385,20 +385,20 @@ const Operations = {
value: OPERATIONS_IDS.CONTRACT_FUND_POOL,
name: 'Contract fund pool',
options: {
from: 'registrar',
subject: 'contract_to_modify',
amount: null,
asset: 'fee',
from: 'sender',
subject: ['contract'],
amount: 'value.amount',
asset: 'value.asset_id',
},
},
contract_whitelist: {
value: OPERATIONS_IDS.CONTRACT_WHITELIST,
name: 'Contract whitelist',
options: {
from: 'sender',
subject: 'callee',
amount: 'value',
asset: 'fee',
subject: ['contract'],
amount: null,
asset: null,
},
},
sidechain_eth_create_address: {
Expand Down Expand Up @@ -446,7 +446,7 @@ const Operations = {
name: 'Approve withdraw eth',
options: {
from: ['committee_member_id', 'name'],
subject: null,
subject: ['withdraw_id'],
value: null,
asset: null,
},
Expand All @@ -458,7 +458,7 @@ const Operations = {
from: 'account',
subject: ['deposit_id'],
amount: 'value.amount',
asset: 'fee.asset_id',
asset: 'value.asset_id',
},
},
sidechain_burn: {
Expand All @@ -477,8 +477,8 @@ const Operations = {
options: {
from: 'account',
subject: ['eth_addr'],
amount: 'value.amount',
asset: 'value.asset_id',
amount: null,
asset: null,
},
},
deposit_erc20_token: {
Expand All @@ -487,8 +487,8 @@ const Operations = {
options: {
from: 'account',
subject: ['erc20_token_addr'],
amount: 'value.amount',
asset: 'value.asset_id',
amount: 'value',
asset: null,
},
},
withdraw_erc20_token: {
Expand All @@ -497,7 +497,7 @@ const Operations = {
options: {
from: 'account',
subject: ['to'],
amount: null,
amount: 'value',
asset: null,
},
},
Expand All @@ -506,7 +506,7 @@ const Operations = {
name: 'Approve erc20 token withdraw',
options: {
from: 'committee_member_id',
subject: ['to'],
subject: ['withdraw_id'],
amount: null,
asset: null,
},
Expand Down Expand Up @@ -585,9 +585,9 @@ const Operations = {
value: OPERATIONS_IDS.SIDECHAIN_BTC_AGGREGATE,
name: 'BTC aggregate',
options: {
from: null,
from: 'committee_member_id',
subject: ['transaction_id'],
amount: null,
amount: 'aggregation_out_value',
asset: null,
},
},
Expand Down

0 comments on commit 8b3f0d4

Please sign in to comment.