Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hive-js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hive-js
Commits
296ae52b
Commit
296ae52b
authored
4 years ago
by
Mahdi Yari
Browse files
Options
Downloads
Patches
Plain Diff
remove hf23 op params
parent
88b2ea6f
No related branches found
No related tags found
1 merge request
!15
Remove hf23 references
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/auth/serializer/src/operations.js
+13
-16
13 additions, 16 deletions
src/auth/serializer/src/operations.js
with
13 additions
and
16 deletions
src/auth/serializer/src/operations.js
+
13
−
16
View file @
296ae52b
...
...
@@ -35,9 +35,6 @@ import types from "./types"
import
SerializerImpl
from
"
./serializer
"
import
config
from
"
../../../config
"
const
hiveVar
=
()
=>
config
.
get
(
"
rebranded_api
"
)
?
"
hive
"
:
"
steem
"
const
hbdVar
=
()
=>
config
.
get
(
"
rebranded_api
"
)
?
"
hbd
"
:
"
sbd
"
const
{
//id_type,
//varint32, uint8, int64, fixed_array, object_id_type, vote_id, address,
...
...
@@ -92,7 +89,7 @@ const allowed_vote_assets = new Serializer(1, {
const
smt_generation_unit
=
new
Serializer
(
"
smt_generation_unit
"
,
{
[
hive
Var
()
+
"
_unit
"
]
:
map
((
string
),
(
uint16
)),
hive_unit
:
map
((
string
),
(
uint16
)),
token_unit
:
map
((
string
),
(
uint16
))
});
...
...
@@ -336,7 +333,7 @@ let chain_properties = new Serializer(
"
chain_properties
"
,
{
account_creation_fee
:
asset
,
maximum_block_size
:
uint32
,
[
hbd
Var
()
+
"
_interest_rate
"
]
:
uint16
hbd_interest_rate
:
uint16
}
);
...
...
@@ -411,7 +408,7 @@ let comment_options = new Serializer(
author
:
string
,
permlink
:
string
,
max_accepted_payout
:
asset
,
[
"
percent_
"
+
(
hiveVar
()
===
"
hive
"
?
"
hbd
"
:
"
steem_dollars
"
)]
:
uint16
,
percent_
hbd
:
uint16
,
allow_votes
:
bool
,
allow_curation_rewards
:
bool
,
extensions
:
set
(
static_variant
([
...
...
@@ -492,8 +489,8 @@ let escrow_transfer = new Serializer(
"
escrow_transfer
"
,
{
from
:
string
,
to
:
string
,
[
hbd
Var
()
+
"
_amount
"
]
:
asset
,
[
hive
Var
()
+
"
_amount
"
]
:
asset
,
hbd_amount
:
asset
,
hive_amount
:
asset
,
escrow_id
:
uint32
,
agent
:
string
,
fee
:
asset
,
...
...
@@ -521,8 +518,8 @@ let escrow_release = new Serializer(
who
:
string
,
receiver
:
string
,
escrow_id
:
uint32
,
[
hbd
Var
()
+
"
_amount
"
]
:
asset
,
[
hive
Var
()
+
"
_amount
"
]
:
asset
hbd_amount
:
asset
,
hive_amount
:
asset
}
);
...
...
@@ -633,8 +630,8 @@ let set_reset_account = new Serializer(
let
claim_reward_balance
=
new
Serializer
(
"
claim_reward_balance
"
,
{
account
:
string
,
[
"
reward_
"
+
hiveVar
()]
:
asset
,
[
"
reward_
"
+
hbdVar
()]
:
asset
,
reward_
hive
:
asset
,
reward_
hbd
:
asset
,
reward_vests
:
asset
}
);
...
...
@@ -749,7 +746,7 @@ let smt_setup = new Serializer(
contribution_begin_time
:
time_point_sec
,
contribution_end_time
:
time_point_sec
,
launch_time
:
time_point_sec
,
[
hive
Var
()
+
"
_units_min
"
]
:
int64
,
hive_units_min
:
int64
,
min_unit_ratio
:
uint32
,
max_unit_ratio
:
uint32
,
extensions
:
set
(
future_extensions
)
...
...
@@ -781,7 +778,7 @@ let smt_setup_ico_tier = new Serializer(
"
smt_setup_ico_tier
"
,
{
control_account
:
string
,
symbol
:
asset_symbol
,
[
hive
Var
()
+
"
_units_cap
"
]
:
int64
,
hive_units_cap
:
int64
,
generation_policy
:
static_variant
([
smt_capped_generation_policy
]),
...
...
@@ -838,8 +835,8 @@ let author_reward = new Serializer(
"
author_reward
"
,
{
author
:
string
,
permlink
:
string
,
[
hbd
Var
()
+
"
_payout
"
]
:
asset
,
[
hive
Var
()
+
"
_payout
"
]
:
asset
,
hbd_payout
:
asset
,
hive_payout
:
asset
,
vesting_payout
:
asset
}
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment