0.11

[0.11.1]

Added

  • Frozen balances
    • Virtual operation balance_unfreeze_operation
  • Block reward mechanism
    • Virtual operation block_reward_operation

Changed

  • Block reward mechanism
    • All rewards is now payouts during maintenance

[0.11.0]

Added

  • Bitcoin sidechain
    • Operations sidechain_btc_create_address_operation, sidechain_btc_intermediate_deposit_operation, sidechain_btc_deposit_operation, sidechain_btc_withdraw_operation, sidechain_btc_aggregate_operation, sidechain_btc_approve_withdraw_operation
    • Objects btc_address_object, btc_intermediate_deposit_object, btc_deposit_object, btc_withdraw_object, btc_aggregating_object
    • Field btc_public_key to committee_member_object and initial_committee_member_type
    • Field btc_public_key to committee_member_create_operation
    • Field new_btc_public_key to committee_member_update_operation
    • Fields BTC_asset_id, waiting_btc_blocks, satoshis_per_byte, echo_blocks_per_aggregation to echo::sidechain::config
    • Database API methods get_btc_addresses and get_btc_deposit_script
    • Wallet API methods generate_btc_deposit_address, get_btc_addresses, get_btc_deposit_script, withdraw_btc
    • Node arguments sidechain-btc-disable, sidechain-btc_testnet, sidechain-btc-committeeman, btc-rpc-ip, btc-rpc-port, btc-rpc-user, btc-rpc-password
  • Frozen balances
    • Operation balance_freeze_operation
    • Object frozen_balance_object
    • Field frozen_balances_multipliers to chain_parameters
    • Database API method get_frozen_balances
    • Wallet API methods list_frozen_balances, freeze_balance
  • ERC20 issue/burn history
    • Virtual operations sidechain_erc20_issue_operation and sidechain_erc20_burn_operation
  • Account registration with PoW task
    • Registration API methods request_registration_task and submit_registration_solution
    • Wallet API method register_account_with_proof
  • x64vm contract logs
    • Field logs to x86_64 result that is list of log_entry described below
  • Field last_rand_quantity to dynamic_global_property_object
  • Fields frozen_balances_multipliers to chain_parameters
  • Node argument sidechain-eth-disable

Changed

  • Field new_options in asset_update_operation is optional now
  • Rename virtual operations sidechain_eth_issue_operation and sidechain_eth_burn_operation to sidechain_issue_operation and sidechain_burn_operation respectively
  • Rename Node arguments
    • sidechain-committeeman into sidechain-eth-committeeman
    • eth-node-ip into eth-rpc-ip
    • eth-node-rpc-port into eth-rpc-port

Removed

  • Operations account_transfer_operation and sidechain_change_config_operation
  • Field gas_refunded from evm::execution_result

Fixed

  • verify_account_authority now accepts account id
  • Fix get_contract_result_id_types output limit
  • Fix get_config output
  • Fix fee distribution in blocks with fallback verifiers
  • Fix exceptions during database closing
  • Fix legacy unit tests

Changed or added data structures

1
FC_REFLECT_ENUM(graphene::chain::object_type,
2
(null_object_type)
3
(base_object_type)
4
(account_object_type)
5
(asset_object_type)
6
(committee_member_object_type)
7
(proposal_object_type)
8
(operation_history_object_type)
9
(vesting_balance_object_type)
10
(balance_object_type)
11
(frozen_balance_object_type)
12
(contract_object_type)
13
(contract_result_object_type)
14
(block_result_object_type)
15
(eth_address_object_type)
16
(deposit_eth_object_type)
17
(withdraw_eth_object_type)
18
(erc20_token_object_type)
19
(deposit_erc20_token_object_type)
20
(withdraw_erc20_token_object_type)
21
(btc_address_object_type)
22
(btc_intermediate_deposit_object_type)
23
(btc_deposit_object_type)
24
(btc_withdraw_object_type)
25
(btc_aggregating_object_type)
26
(OBJECT_TYPE_COUNT)
27
)
28
29
FC_REFLECT(graphene::chain::chain_parameters,
30
(current_fees)
31
(maintenance_interval)
32
(maintenance_duration_seconds)
33
(committee_proposal_review_period)
34
(maximum_transaction_size)
35
(maximum_block_size)
36
(maximum_time_until_expiration)
37
(maximum_proposal_lifetime)
38
(maximum_asset_whitelist_authorities)
39
(maximum_asset_feed_publishers)
40
(maximum_committee_count)
41
(maximum_authority_membership)
42
(reserve_percent_of_fee)
43
(network_percent_of_fee)
44
(max_predicate_opcode)
45
(accounts_per_fee_scale)
46
(account_fee_scale_bitshifts)
47
(max_authority_depth)
48
(block_emission_amount)
49
(block_producer_reward_ratio)
50
(frozen_balances_multipliers)
51
(echorand_config)
52
(sidechain_config)
53
(erc20_config)
54
(gas_price)
55
(extensions)
56
)
57
58
FC_REFLECT(echo::sidechain::config,
59
(eth_contract_address)
60
(eth_committee_update_method)
61
(eth_gen_address_method)
62
(eth_withdraw_method)
63
(eth_update_addr_method)
64
(eth_withdraw_token_method)
65
(eth_collect_tokens_method)
66
(eth_committee_updated_topic)
67
(eth_gen_address_topic)
68
(eth_deposit_topic)
69
(eth_withdraw_topic)
70
(erc20_deposit_topic)
71
(erc20_withdraw_topic)
72
(ETH_asset_id)
73
(BTC_asset_id)
74
(waiting_eth_blocks)
75
(waiting_btc_blocks)
76
(fines)
77
(waiting_blocks)
78
(gas_price)
79
(satoshis_per_byte)
80
(echo_blocks_per_aggregation)
81
)
82
83
FC_REFLECT_DERIVED(graphene::chain::dynamic_global_property_object, (graphene::db::object),
84
(head_block_number)(head_block_id)(time)(next_maintenance_time)(last_budget_time)
85
(committee_budget)(accounts_registered_this_interval)(dynamic_flags)
86
(last_irreversible_block_num)(last_rand_quantity)
87
(extensions)
88
)
89
90
struct log_entry
91
{
92
std::string hash;
93
std::string log;
94
std::uint32_t id;
95
uint32_t block_num;
96
uint32_t trx_num;
97
uint32_t op_num;
98
};
99
100
typedef fc::static_variant<
101
transfer_operation,
102
account_create_operation,
103
account_update_operation,
104
account_whitelist_operation,
105
asset_create_operation,
106
asset_update_operation,
107
asset_update_bitasset_operation,
108
asset_update_feed_producers_operation,
109
asset_issue_operation,
110
asset_reserve_operation,
111
asset_fund_fee_pool_operation,
112
asset_publish_feed_operation,
113
proposal_create_operation,
114
proposal_update_operation,
115
proposal_delete_operation,
116
committee_member_create_operation,
117
committee_member_update_operation,
118
committee_member_update_global_parameters_operation,
119
vesting_balance_create_operation,
120
vesting_balance_withdraw_operation,
121
balance_claim_operation,
122
balance_freeze_operation,
123
balance_unfreeze_operation, // VIRTUAL
124
override_transfer_operation,
125
asset_claim_fees_operation,
126
contract_create_operation,
127
contract_call_operation,
128
contract_transfer_operation,
129
contract_update_operation,
130
account_address_create_operation,
131
transfer_to_address_operation,
132
sidechain_eth_create_address_operation,
133
sidechain_eth_approve_address_operation,
134
sidechain_eth_deposit_operation,
135
sidechain_eth_withdraw_operation,
136
sidechain_eth_approve_withdraw_operation,
137
contract_fund_pool_operation,
138
contract_whitelist_operation,
139
sidechain_issue_operation, // VIRTUAL
140
sidechain_burn_operation, // VIRTUAL
141
sidechain_erc20_register_token_operation,
142
sidechain_erc20_deposit_token_operation,
143
sidechain_erc20_withdraw_token_operation,
144
sidechain_erc20_approve_token_withdraw_operation,
145
sidechain_erc20_issue_operation, // VIRTUAL
146
sidechain_erc20_burn_operation, // VIRTUAL
147
sidechain_btc_create_address_operation,
148
sidechain_btc_intermediate_deposit_operation,
149
sidechain_btc_deposit_operation,
150
sidechain_btc_withdraw_operation,
151
sidechain_btc_approve_withdraw_operation,
152
sidechain_btc_aggregate_operation,
153
block_reward_operation // VIRTUAL
154
> operation;
Copied!
Last modified 2yr ago