Tests - operation in Hive - Power up
Operation: Power up - transfer_to_vesting_operation, // 3
Configuration:
HIVE_DELAYED_VOTING_TOTAL_INTERVAL_SECONDS, default mainnet value: 30 days
HIVE_DELAYED_VOTING_INTERVAL_SECONDS, default mainnet value: 1 day
Test cases:
-
1. User converts Hive to HP and transfers them to own account ( empty {to}). -
2. User converts Hive to HP and transfers them to own account ({to} = {from} ). -
3. User converts Hive to HP and transfers them to someone else account.
Expected results - to be checked in all above test cases:
- Sender HIVE balance is reduced by {amount}.
- Receiver HP balance is increased by {amount} after operation.
- The conversion is done using current exchange rate.
- After operation: the virtual operation: transfer_to_vesting_completed is created.
- After operation: The Governance voting power is not increased.
- After operation: RC
current_mana
is reduced. - After operation: RC
max_mana
is increased. - After
HIVE_DELAYED_VOTING_TOTAL_INTERVAL_SECONDS
-HIVE_DELAYED_VOTING_INTERVAL_SECONDS
(mainnet value: 29) days: The Governance voting power is not increased. - After
HIVE_DELAYED_VOTING_TOTAL_INTERVAL_SECONDS
(mainnet value: 30) days: the Governance voting power is increased. - After
HIVE_DELAYED_VOTING_TOTAL_INTERVAL_SECONDS
(mainnet value: 30) days: the virtual operation: delayed_voting_operation is generated.
Test cases:
-
4. User converts Hive to HP (Power Up 1) and after 5 days user converts Hive to HP again (Power Up 2).
Expected results:
- (Power up 1) Sender HIVE balance is reduced by {amount1}.
- (Power up 1) Receiver HP balance is increased by {amount1} after operation.
- (Power up 1) The conversion is done using the current exchange rate.
- (Power up 1) After operation: the virtual operation: transfer_to_vesting_completed is created
- (Power up 1) After operation: The Governance voting power is not increased.
- (Power up 1) RC
current_mana
is reduced. - (Power up 1) RC
max_mana
is increased. - (Power up 2) After 5 *
HIVE_DELAYED_VOTING_INTERVAL_SECONDS
(mainnet value: 5) days: Sender HIVE balance is reduced by {amount2}. - (Power up 2) After 5 *
HIVE_DELAYED_VOTING_INTERVAL_SECONDS
(mainnet value: 5) days: Receiver HP balance is increased by {amount2} after operation. - (Power up 2) After 5 *
HIVE_DELAYED_VOTING_INTERVAL_SECONDS
(mainnet value: 5) days: The conversion is done using current exchange rate. - (Power up 2) After 5 *
HIVE_DELAYED_VOTING_INTERVAL_SECONDS
(mainnet value: 35) days: RCmax_mana
is increased. - (Power up 2) After 5 *
HIVE_DELAYED_VOTING_INTERVAL_SECONDS
(mainnet value: 5) days: After operation: the virtual operation: transfer_to_vesting_completed is created. - (Power up 2) After 5 *
HIVE_DELAYED_VOTING_INTERVAL_SECONDS
(mainnet value: 5) days: RCcurrent_mana
is reduced (compare to RC after Power up 1). - (Power up 1) After
HIVE_DELAYED_VOTING_TOTAL_INTERVAL_SECONDS
-HIVE_DELAYED_VOTING_INTERVAL_SECONDS
(mainnet value: 29) days: The Governance voting power is not increased. - (Power up 1) After
HIVE_DELAYED_VOTING_TOTAL_INTERVAL_SECONDS
(mainnet value: 30) days: the Governance voting power is increased. - (Power up 1) After
HIVE_DELAYED_VOTING_TOTAL_INTERVAL_SECONDS
(mainnet value: 30) days: the virtual operation: delayed_voting_operation is generated. - (Power up 2) After 34 *
HIVE_DELAYED_VOTING_INTERVAL_SECONDS
(mainnet value: 34) days: The Governance voting power is not increased. - (Power up 2) After 35 *
HIVE_DELAYED_VOTING_INTERVAL_SECONDS
(mainnet value: 35) days: the Governance voting power is increased. - (Power up 2) After 35 *
HIVE_DELAYED_VOTING_INTERVAL_SECONDS
(mainnet value: 35) days: the virtual operation: delayed_voting_operation is generated.
Edited by Aleksandra Grabowska