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

Actual operation order

FC_REFLECT_ENUM( graphene::chain::object_type,
(null_object_type)
(base_object_type)
(account_object_type)
(asset_object_type)
(committee_member_object_type)
(proposal_object_type)
(operation_history_object_type)
(vesting_balance_object_type)
(balance_object_type)
(frozen_balance_object_type)
(committee_frozen_balance_object_type)
(contract_object_type)
(contract_result_object_type)
(block_result_object_type)
(eth_address_object_type)
(deposit_eth_object_type)
(withdraw_eth_object_type)
(erc20_token_object_type)
(deposit_erc20_token_object_type)
(withdraw_erc20_token_object_type)
(btc_address_object_type)
(btc_intermediate_deposit_object_type)
(btc_deposit_object_type)
(btc_withdraw_object_type)
(btc_aggregating_object_type)
)
FC_REFLECT(graphene::chain::chain_parameters,
(current_fees)
(maintenance_interval)
(maintenance_duration_seconds)
(committee_proposal_review_period)
(maximum_transaction_size)
(maximum_block_size)
(maximum_time_until_expiration)
(maximum_proposal_lifetime)
(maximum_asset_whitelist_authorities)
(maximum_asset_feed_publishers)
(maximum_committee_count)
(maximum_authority_membership)
(reserve_percent_of_fee)
(network_percent_of_fee)
(max_predicate_opcode)
(accounts_per_fee_scale)
(account_fee_scale_bitshifts)
(max_authority_depth)
(block_emission_amount)
(block_producer_reward_ratio)
(committee_frozen_balance_to_activate)
(committee_maintenance_intervals_to_deposit)
(committee_freeze_duration_seconds)
(frozen_balances_multipliers)
(echorand_config)
(sidechain_config)
(erc20_config)
(gas_price)
(extensions)
)
FC_REFLECT(echo::sidechain::config,
(eth_contract_address)
(eth_committee_update_method)
(eth_gen_address_method)
(eth_withdraw_method)
(eth_update_addr_method)
(eth_withdraw_token_method)
(eth_collect_tokens_method)
(eth_committee_updated_topic)
(eth_gen_address_topic)
(eth_deposit_topic)
(eth_withdraw_topic)
(erc20_deposit_topic)
(erc20_withdraw_topic)
(ETH_asset_id)
(BTC_asset_id)
(fines)
(gas_price)
(satoshis_per_byte)
(coefficient_waiting_blocks)
)
FC_REFLECT_DERIVED(graphene::chain::dynamic_global_property_object, (graphene::db::object),
(head_block_number)(head_block_id)(time)(next_maintenance_time)(last_budget_time)
(committee_budget)(accounts_registered_this_interval)(dynamic_flags)
(last_irreversible_block_num)(extensions)
)
# Updated get_config:
```json
{
"ECHO_SYMBOL": "ECHO",
"ECHO_ADDRESS_PREFIX": "ECHO",
"ECHO_ED_PREFIX": "ECHO",
"ECHO_MIN_ACCOUNT_NAME_LENGTH": 1,
"ECHO_MAX_ACCOUNT_NAME_LENGTH": 63,
"ECHO_MIN_ASSET_SYMBOL_LENGTH": 3,
"ECHO_MAX_ASSET_SYMBOL_LENGTH": 16,
"ECHO_MAX_SHARE_SUPPLY": "1000000000000000",
"ECHO_MAX_PAY_RATE": 10000,
"ECHO_MAX_SIG_CHECK_DEPTH": 2,
"ECHO_MIN_TRANSACTION_SIZE_LIMIT": 1024,
"ECHO_DEFAULT_MAX_TRANSACTION_SIZE": 2097152,
"ECHO_DEFAULT_MAX_BLOCK_SIZE": 5242880,
"ECHO_DEFAULT_MAX_TIME_UNTIL_EXPIRATION": 86400,
"ECHO_DEFAULT_MAINTENANCE_INTERVAL": 86400,
"ECHO_DEFAULT_MAINTENANCE_DURATION_SECONDS": 10,
"ECHO_DEFAULT_COMMITTEE_FREEZE_DURATION_SECONDS": 2592000,
"ECHO_MIN_UNDO_HISTORY": 10,
"ECHO_MAX_UNDO_HISTORY": 10000,
"ECHO_MIN_BLOCK_SIZE_LIMIT": 5120,
"ECHO_MIN_TRANSACTION_EXPIRATION_LIMIT": 5,
"ECHO_BLOCKCHAIN_PRECISION": 100000000,
"ECHO_BLOCKCHAIN_PRECISION_DIGITS": 8,
"ECHO_DEFAULT_TRANSFER_FEE": 100000000,
"ECHO_MAX_INSTANCE_ID": "281474976710655",
"ECHO_100_PERCENT": 10000,
"ECHO_1_PERCENT": 100,
"ECHO_DEFAULT_PRICE_FEED_LIFETIME": 86400,
"ECHO_DEFAULT_COMMITTEE_PAY_VESTING_SECONDS": 86400,
"ECHO_DEFAULT_MAX_AUTHORITY_MEMBERSHIP": 10,
"ECHO_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES": 10,
"ECHO_DEFAULT_MAX_ASSET_FEED_PUBLISHERS": 10,
"ECHO_COLLATERAL_RATIO_DENOM": 1000,
"ECHO_MIN_COLLATERAL_RATIO": 1001,
"ECHO_MAX_COLLATERAL_RATIO": 32000,
"ECHO_DEFAULT_MAINTENANCE_COLLATERAL_RATIO": 1750,
"ECHO_DEFAULT_MAX_SHORT_SQUEEZE_RATIO": 1500,
"ECHO_DEFAULT_MIN_COMMITTEE_MEMBER_COUNT": 11,
"ECHO_DEFAULT_MAX_COMMITTEE": 1001,
"ECHO_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC": 2419200,
"ECHO_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC": 1209600,
"ECHO_DEFAULT_NETWORK_PERCENT_OF_FEE": 2000,
"ECHO_DEFAULT_BURN_PERCENT_OF_FEE": 2000,
"ECHO_DEFAULT_MAX_ASSERT_OPCODE": 1,
"ECHO_DEFAULT_ACCOUNTS_PER_FEE_SCALE": 1000,
"ECHO_DEFAULT_ACCOUNT_FEE_SCALE_BITSHIFTS": 4,
"ECHO_MAX_URL_LENGTH": 127,
"ECHO_DEFAULT_MINIMUM_FEEDS": 7,
"ECHO_REVERSIBLE_BLOCKS_COUNT": 15,
"ECHO_NULL_ACCOUNT": "1.2.0",
"ECHO_COMMITTEE_ACCOUNT": "1.2.1",
"ECHO_RELAXED_COMMITTEE_ACCOUNT": "1.2.2",
"ECHO_NULL_AUTHORITY_ACCOUNT": "1.2.3",
"ECHO_TEMP_ACCOUNT": "1.2.4",
"ECHO_PROXY_TO_SELF_ACCOUNT": "1.2.5"
}