0.12

[0.12.1]

Added

  • Block rewards mechanism
    • Field uint16_t active_delegate_share to account_object. Stores part that will be paid to delegate account for producing consensus messages.
  • Registration API
  • Solidity
  • echo_wallet

Removed

  • Registration API
    • Method register_account

Changed

[0.12.0]

Added

Changed

  • Bitcoin sidechain
    • Field name sma_out_value to aggregation_out_value in sidechain_btc_aggregate_operation
    • Type of field signature in sidechain_btc_intermediate_deposit_operation
    • Wallet API methods get_account_deposits, get_account_withdrawals works for two sidechains now
  • Field active_committee_members in global_property_object is map<committee_member_id_type, account_id_type> now
  • Field _subscribed_contract_logs in database API is map<contract_id_type, std::set<string>> now
  • Output and logs in the x86-64 from bytes to hex format for better readability

Removed

  • Operation contract_transfer_operation
  • Database API methods lookup_vote_ids
  • Wallet API methods set_desired_committee_member_count, vote_for_committee_member, set_voting_proxy
  • Field votes from full_account
  • Field vote_id, total_votes from committee_member_object
  • Fields _vote_tally_buffer, _committee_count_histogram_buffer, _total_voting_stake from database
  • Fields voting_account, num_committee, votes from account_options
  • Field last_rand_quantity from dynamic_global_property_object

Fixed

  • get_required_signatures minimize return signatures
  • Invalid fee_payer in sidechain_issue and sidechain_burn operations
  • Fixed sidechain time coefficient

Updated solidity, EVM

Changed 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
(committee_frozen_balance_object_type)
13
(contract_object_type)
14
(contract_result_object_type)
15
(block_result_object_type)
16
(eth_address_object_type)
17
(deposit_eth_object_type)
18
(withdraw_eth_object_type)
19
(erc20_token_object_type)
20
(deposit_erc20_token_object_type)
21
(withdraw_erc20_token_object_type)
22
(btc_address_object_type)
23
(btc_intermediate_deposit_object_type)
24
(btc_deposit_object_type)
25
(btc_withdraw_object_type)
26
(btc_aggregating_object_type)
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
(committee_frozen_balance_to_activate)
51
(committee_maintenance_intervals_to_deposit)
52
(committee_freeze_duration_seconds)
53
(frozen_balances_multipliers)
54
(echorand_config)
55
(sidechain_config)
56
(erc20_config)
57
(gas_price)
58
(extensions)
59
)
60
61
FC_REFLECT(echo::sidechain::config,
62
(eth_contract_address)
63
(eth_committee_update_method)
64
(eth_gen_address_method)
65
(eth_withdraw_method)
66
(eth_update_addr_method)
67
(eth_withdraw_token_method)
68
(eth_collect_tokens_method)
69
(eth_committee_updated_topic)
70
(eth_gen_address_topic)
71
(eth_deposit_topic)
72
(eth_withdraw_topic)
73
(erc20_deposit_topic)
74
(erc20_withdraw_topic)
75
(ETH_asset_id)
76
(BTC_asset_id)
77
(fines)
78
(gas_price)
79
(satoshis_per_byte)
80
(coefficient_waiting_blocks)
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)(extensions)
87
)
88
89
# Updated get_config:
90
```json
91
{
92
"ECHO_SYMBOL": "ECHO",
93
"ECHO_ADDRESS_PREFIX": "ECHO",
94
"ECHO_ED_PREFIX": "ECHO",
95
"ECHO_MIN_ACCOUNT_NAME_LENGTH": 1,
96
"ECHO_MAX_ACCOUNT_NAME_LENGTH": 63,
97
"ECHO_MIN_ASSET_SYMBOL_LENGTH": 3,
98
"ECHO_MAX_ASSET_SYMBOL_LENGTH": 16,
99
"ECHO_MAX_SHARE_SUPPLY": "1000000000000000",
100
"ECHO_MAX_PAY_RATE": 10000,
101
"ECHO_MAX_SIG_CHECK_DEPTH": 2,
102
"ECHO_MIN_TRANSACTION_SIZE_LIMIT": 1024,
103
"ECHO_DEFAULT_MAX_TRANSACTION_SIZE": 2097152,
104
"ECHO_DEFAULT_MAX_BLOCK_SIZE": 5242880,
105
"ECHO_DEFAULT_MAX_TIME_UNTIL_EXPIRATION": 86400,
106
"ECHO_DEFAULT_MAINTENANCE_INTERVAL": 86400,
107
"ECHO_DEFAULT_MAINTENANCE_DURATION_SECONDS": 10,
108
"ECHO_DEFAULT_COMMITTEE_FREEZE_DURATION_SECONDS": 2592000,
109
"ECHO_MIN_UNDO_HISTORY": 10,
110
"ECHO_MAX_UNDO_HISTORY": 10000,
111
"ECHO_MIN_BLOCK_SIZE_LIMIT": 5120,
112
"ECHO_MIN_TRANSACTION_EXPIRATION_LIMIT": 5,
113
"ECHO_BLOCKCHAIN_PRECISION": 100000000,
114
"ECHO_BLOCKCHAIN_PRECISION_DIGITS": 8,
115
"ECHO_DEFAULT_TRANSFER_FEE": 100000000,
116
"ECHO_MAX_INSTANCE_ID": "281474976710655",
117
"ECHO_100_PERCENT": 10000,
118
"ECHO_1_PERCENT": 100,
119
"ECHO_DEFAULT_PRICE_FEED_LIFETIME": 86400,
120
"ECHO_DEFAULT_COMMITTEE_PAY_VESTING_SECONDS": 86400,
121
"ECHO_DEFAULT_MAX_AUTHORITY_MEMBERSHIP": 10,
122
"ECHO_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES": 10,
123
"ECHO_DEFAULT_MAX_ASSET_FEED_PUBLISHERS": 10,
124
"ECHO_COLLATERAL_RATIO_DENOM": 1000,
125
"ECHO_MIN_COLLATERAL_RATIO": 1001,
126
"ECHO_MAX_COLLATERAL_RATIO": 32000,
127
"ECHO_DEFAULT_MAINTENANCE_COLLATERAL_RATIO": 1750,
128
"ECHO_DEFAULT_MAX_SHORT_SQUEEZE_RATIO": 1500,
129
"ECHO_DEFAULT_MIN_COMMITTEE_MEMBER_COUNT": 11,
130
"ECHO_DEFAULT_MAX_COMMITTEE": 1001,
131
"ECHO_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC": 2419200,
132
"ECHO_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC": 1209600,
133
"ECHO_DEFAULT_NETWORK_PERCENT_OF_FEE": 2000,
134
"ECHO_DEFAULT_BURN_PERCENT_OF_FEE": 2000,
135
"ECHO_DEFAULT_MAX_ASSERT_OPCODE": 1,
136
"ECHO_DEFAULT_ACCOUNTS_PER_FEE_SCALE": 1000,
137
"ECHO_DEFAULT_ACCOUNT_FEE_SCALE_BITSHIFTS": 4,
138
"ECHO_MAX_URL_LENGTH": 127,
139
"ECHO_DEFAULT_MINIMUM_FEEDS": 7,
140
"ECHO_REVERSIBLE_BLOCKS_COUNT": 15,
141
"ECHO_NULL_ACCOUNT": "1.2.0",
142
"ECHO_COMMITTEE_ACCOUNT": "1.2.1",
143
"ECHO_RELAXED_COMMITTEE_ACCOUNT": "1.2.2",
144
"ECHO_NULL_AUTHORITY_ACCOUNT": "1.2.3",
145
"ECHO_TEMP_ACCOUNT": "1.2.4",
146
"ECHO_PROXY_TO_SELF_ACCOUNT": "1.2.5"
147
}
Copied!
Last modified 2yr ago