0.5.0

debug_api

Completely removed

database_api

Added method subscribe_contracts
1
void subscribe_contracts(std::vector<contract_id_type> contracts);
Copied!
To subscribe to contract changes. Related objects can come:
contract_object, contract_history_object
Removed methods:
  • get_all_contracts
  • get_witnesses
  • get_witness_by_account
  • lookup_witness_accounts
  • get_witness_count
  • get_all_workers
  • get_workers_by_account
  • get_worker_count

chain_parameters

Removed:
1
uint16_t maximum_witness_count;
2
share_type witness_pay_per_block;
3
uint32_t witness_pay_vesting_seconds;
4
share_type worker_budget_per_day;
Copied!

global_property_object

Removed:
1
flat_set<witness_id_type> active_witnesses;
Copied!

dynamic_global_property_object

Removed:
1
witness_id_type current_witness;
2
share_type witness_budget;
Copied!
Added:
1
share_type committee_budget;
Copied!

immutable_chain_parameters

Removed:
1
uint16_t min_witness_count;
Copied!

account_options

Removed:
1
uint16_t num_witness;
Copied!

vote_id_type

Removed witness and worker types of voices.

ECDSA signature scheme was replaced with EDDSA

Replaced all keys and signatures(except memo)
Related changes:
database_api
1
vector<vector<account_id_type>> get_key_references( vector<eddsa::public_key_t> key )const;
2
vector<balance_object> get_balance_objects( const vector<eddsa::public_key_t>& addrs )const;
3
set<eddsa::public_key_t> get_required_signatures( const signed_transaction& trx, const flat_set<eddsa::public_key_t>& available_keys )const;
4
set<eddsa::public_key_t> get_potential_signatures( const signed_transaction& trx )const;
5
bool verify_account_authority( const string& name_or_id, const flat_set<eddsa::public_key_t>& signers )const;
Copied!
registration_api
1
void register_account(
2
variant_callback_t callback,
3
string name,
4
eddsa::public_key_t owner,
5
eddsa::public_key_t active,
6
public_key_type memo,
7
eddsa::public_key_t echorand_key
8
);
Copied!
balance_object
owner field has been changed
1
eddsa::public_key_t owner;
Copied!

account_object

Removed:
1
authority owner;
Copied!

account_create_operation

Removed:
1
authority owner;
Copied!

account_update_operation

Removed:
1
optional<authority> owner;
Copied!

authority

Removed:
1
flat_map<address,weight_type> address_auths;
Copied!
Changed:
1
flat_map<eddsa::public_key_t,weight_type> key_auths;
Copied!

proposal_object

Removed:
1
flat_set<account_id_type> available_owner_approvals;
Copied!
Changed:
1
flat_set<eddsa::public_key_t> available_key_approvals;
Copied!

balance_claim_operation

Removed:
1
eddsa::public_key_t balance_owner_key;
Copied!

block

Removed:
1
witness_id_type witness;
2
signature_type witness_signature;
3
std::set<verifier_vote_t> verifications;
Copied!
Some fields have been moved. New order:
1
struct block_header
2
{
3
block_id_type previous;
4
fc::time_point_sec timestamp;
5
account_id_type account;
6
checksum_type transaction_merkle_root;
7
std::string vm_root;
8
uint64_t round;
9
extensions_type extensions;
10
}
11
struct signed_block_header : public block_header
12
{
13
eddsa::signature_t ed_signature;
14
fc::sha256 rand;
15
echo::rand::certificate_t cert;
16
}
17
struct signed_block : public signed_block_header
18
{
19
checksum_type calculate_merkle_root()const;
20
vector<processed_transaction> transactions;
21
};
Copied!

operation

The following operations have been removed:
1
transfer_to_blind_operation
2
blind_transfer_operation
3
transfer_from_blind_operation
4
fba_distribute_operation //VIRTUAL
5
witness_create_operation
6
witness_update_operation
7
worker_create_operation
Copied!
New list:
1
typedef fc::static_variant<
2
transfer_operation,
3
limit_order_create_operation,
4
limit_order_cancel_operation,
5
call_order_update_operation,
6
fill_order_operation, // VIRTUAL
7
account_create_operation,
8
account_update_operation,
9
account_whitelist_operation,
10
account_upgrade_operation,
11
account_transfer_operation,
12
asset_create_operation,
13
asset_update_operation,
14
asset_update_bitasset_operation,
15
asset_update_feed_producers_operation,
16
asset_issue_operation,
17
asset_reserve_operation,
18
asset_fund_fee_pool_operation,
19
asset_settle_operation,
20
asset_global_settle_operation,
21
asset_publish_feed_operation,
22
proposal_create_operation,
23
proposal_update_operation,
24
proposal_delete_operation,
25
withdraw_permission_create_operation,
26
withdraw_permission_update_operation,
27
withdraw_permission_claim_operation,
28
withdraw_permission_delete_operation,
29
committee_member_create_operation,
30
committee_member_update_operation,
31
committee_member_update_global_parameters_operation,
32
vesting_balance_create_operation,
33
vesting_balance_withdraw_operation,
34
custom_operation,
35
assert_operation,
36
balance_claim_operation,
37
override_transfer_operation,
38
asset_settle_cancel_operation, // VIRTUAL
39
asset_claim_fees_operation,
40
bid_collateral_operation,
41
execute_bid_operation, // VIRTUAL
42
create_contract_operation,
43
call_contract_operation,
44
contract_transfer_operation
45
> operation;
Copied!

objects

The following objects have been removed:
1
blinded_balance_object
2
fba_accumulator_object
3
witness_object
4
worker_object
5
witness_schedule_object
Copied!
New order of the objects:
1
// id is 1.x.*
2
enum object_type
3
{
4
null_object_type,
5
base_object_type,
6
account_object_type,
7
asset_object_type,
8
force_settlement_object_type,
9
committee_member_object_type,
10
limit_order_object_type,
11
call_order_object_type,
12
custom_object_type,
13
proposal_object_type,
14
operation_history_object_type,
15
withdraw_permission_object_type,
16
vesting_balance_object_type,
17
balance_object_type,
18
contract_object_type,
19
contract_result_object_type,
20
block_result_object_type,
21
sidechain_transfer_object_type,
22
OBJECT_TYPE_COUNT
23
};
24
25
// id is 2.x.*
26
enum impl_object_type
27
{
28
impl_global_property_object_type,
29
impl_dynamic_global_property_object_type,
30
impl_reserved0_object_type,
31
impl_asset_dynamic_data_type,
32
impl_asset_bitasset_data_type,
33
impl_account_balance_object_type,
34
impl_account_statistics_object_type,
35
impl_transaction_object_type,
36
impl_block_summary_object_type,
37
impl_account_transaction_history_object_type,
38
impl_chain_property_object_type,
39
impl_budget_record_object_type,
40
impl_special_authority_object_type,
41
impl_buyback_object_type,
42
impl_collateral_bid_object_type,
43
impl_contract_balance_object_type,
44
impl_contract_history_object_type,
45
impl_contract_statistics_object_type
46
};
Copied!
Last modified 2yr ago