From e43a538bdc93f9455ab2aec0143e19c046e17571 Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Mon, 29 Jun 2015 15:41:19 -0400 Subject: [PATCH] types.hpp: Update fee schedule to use all uint64_t #99 --- .../chain/include/graphene/chain/types.hpp | 74 +++++++++---------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/libraries/chain/include/graphene/chain/types.hpp b/libraries/chain/include/graphene/chain/types.hpp index 749f2c7d..71b36ed6 100644 --- a/libraries/chain/include/graphene/chain/types.hpp +++ b/libraries/chain/include/graphene/chain/types.hpp @@ -347,54 +347,54 @@ namespace graphene { namespace chain { return data_size(ts...) / BYTES_PER_DATA_FEE * data_fee; } - uint32_t key_create_fee = 270300; ///< the cost to register a public key with the blockchain + uint64_t key_create_fee = 270300; ///< the cost to register a public key with the blockchain uint64_t account_create_fee = 666666; ///< the cost to register the cheapest non-free account - uint32_t account_update_fee = 150000; ///< the cost to update an existing account - uint32_t account_transfer_fee = 300000; ///< the cost to transfer an account to a new owner - uint32_t account_whitelist_fee = 300000; ///< the fee to whitelist an account - uint32_t account_len8up_fee = 5*10000000; ///< about $1 - uint32_t account_len7_fee = 5*100000000; ///< about $10 + uint64_t account_update_fee = 150000; ///< the cost to update an existing account + uint64_t account_transfer_fee = 300000; ///< the cost to transfer an account to a new owner + uint64_t account_whitelist_fee = 300000; ///< the fee to whitelist an account + uint64_t account_len8up_fee = 5*10000000; ///< about $1 + uint64_t account_len7_fee = 5*100000000; ///< about $10 uint64_t account_len6_fee = 5*UINT64_C(500000000); ///< about $50 uint64_t account_len5_fee = 5*UINT64_C(1000000000); ///< about $100 uint64_t account_len4_fee = 5*UINT64_C(2000000000); ///< about $200 uint64_t account_len3_fee = 5*3000000000; ///< about $300 uint64_t account_len2_fee = 5*4000000000; ///< about $400 - uint32_t asset_create_fee = 5ll*500000000; ///< about $35 for LTM, the cost to register the cheapest asset - uint32_t asset_update_fee = 150000; ///< the cost to modify a registered asset - uint32_t asset_issue_fee = 700000; ///< the cost to print a UIA and send it to an account - uint32_t asset_burn_fee = 1500000; ///< the cost to burn an asset - uint32_t asset_fund_fee_pool_fee = 150000; ///< the cost to add funds to an asset's fee pool - uint32_t asset_settle_fee = 7000000; ///< the cost to trigger a forced settlement of a market-issued asset - uint32_t asset_global_settle_fee = 140000000; ///< the cost to trigger a global forced settlement of a market asset + uint64_t asset_create_fee = 5ll*500000000; ///< about $35 for LTM, the cost to register the cheapest asset + uint64_t asset_update_fee = 150000; ///< the cost to modify a registered asset + uint64_t asset_issue_fee = 700000; ///< the cost to print a UIA and send it to an account + uint64_t asset_burn_fee = 1500000; ///< the cost to burn an asset + uint64_t asset_fund_fee_pool_fee = 150000; ///< the cost to add funds to an asset's fee pool + uint64_t asset_settle_fee = 7000000; ///< the cost to trigger a forced settlement of a market-issued asset + uint64_t asset_global_settle_fee = 140000000; ///< the cost to trigger a global forced settlement of a market asset uint64_t asset_len7up_fee = 5*UINT64_C(500000000); ///< about $35 for LTM uint64_t asset_len6_fee = 5*5000000000; ///< about $350 for LTM uint64_t asset_len5_fee = 5*10000000000; ///< about $700 for LTM uint64_t asset_len4_fee = 5*50000000000; ///< about $3500 for LTM uint64_t asset_len3_fee = 5*70000000000; ///< about $5000 for LTM - uint32_t delegate_create_fee = 680000000; ///< fee for registering as a delegate; used to discourage frivolous delegates - uint32_t witness_create_fee = 680000000; /// < fee for registering as a witness - uint32_t witness_withdraw_pay_fee = 1500000; ///< fee for withdrawing witness pay - uint32_t transfer_fee = 2700000; ///< fee for transferring some asset - uint32_t limit_order_create_fee = 666666; ///< fee for placing a limit order in the markets - uint32_t limit_order_cancel_fee = 0; ///< fee for canceling a limit order - uint32_t call_order_fee = 800000; ///< fee for placing a call order in the markets - uint32_t publish_feed_fee = 10000; ///< fee for publishing a price feed - uint32_t data_fee = 13500000; ///< a price per BYTES_PER_DATA_FEE bytes of user data - uint32_t global_parameters_update_fee = 1350000; ///< the cost to update the global parameters - uint32_t membership_annual_fee = 270000000; ///< the annual cost of a membership subscription - uint32_t membership_lifetime_fee = 1350000000; ///< the cost to upgrade to a lifetime member - uint32_t withdraw_permission_create_fee = 2700000; ///< the cost to create a withdraw permission - uint32_t withdraw_permission_update_fee = 150000; ///< the cost to update a withdraw permission - uint32_t withdraw_permission_claim_fee = 700000; ///< the cost to withdraw from a withdraw permission - uint32_t withdraw_permission_delete_fee = 0; ///< the cost to delete a withdraw permission - uint32_t vesting_balance_create_fee = 7000000; - uint32_t vesting_balance_withdraw_fee = 2700000; - uint32_t worker_create_fee = 680000000; ///< the cost to create a new worker - uint32_t assert_op_fee = 150000; ///< fee per assert operation - uint32_t proposal_create_fee = 7000000; ///< fee for creating a proposed transaction - uint32_t proposal_update_fee = 1500000; ///< fee for adding or removing approval of a proposed transaction - uint32_t proposal_delete_fee = 0; ///< fee for deleting a proposed transaction - uint32_t custom_operation_fee = 300000; ///< fee for a custom operation + uint64_t delegate_create_fee = 680000000; ///< fee for registering as a delegate; used to discourage frivolous delegates + uint64_t witness_create_fee = 680000000; /// < fee for registering as a witness + uint64_t witness_withdraw_pay_fee = 1500000; ///< fee for withdrawing witness pay + uint64_t transfer_fee = 2700000; ///< fee for transferring some asset + uint64_t limit_order_create_fee = 666666; ///< fee for placing a limit order in the markets + uint64_t limit_order_cancel_fee = 0; ///< fee for canceling a limit order + uint64_t call_order_fee = 800000; ///< fee for placing a call order in the markets + uint64_t publish_feed_fee = 10000; ///< fee for publishing a price feed + uint64_t data_fee = 13500000; ///< a price per BYTES_PER_DATA_FEE bytes of user data + uint64_t global_parameters_update_fee = 1350000; ///< the cost to update the global parameters + uint64_t membership_annual_fee = 270000000; ///< the annual cost of a membership subscription + uint64_t membership_lifetime_fee = 1350000000; ///< the cost to upgrade to a lifetime member + uint64_t withdraw_permission_create_fee = 2700000; ///< the cost to create a withdraw permission + uint64_t withdraw_permission_update_fee = 150000; ///< the cost to update a withdraw permission + uint64_t withdraw_permission_claim_fee = 700000; ///< the cost to withdraw from a withdraw permission + uint64_t withdraw_permission_delete_fee = 0; ///< the cost to delete a withdraw permission + uint64_t vesting_balance_create_fee = 7000000; + uint64_t vesting_balance_withdraw_fee = 2700000; + uint64_t worker_create_fee = 680000000; ///< the cost to create a new worker + uint64_t assert_op_fee = 150000; ///< fee per assert operation + uint64_t proposal_create_fee = 7000000; ///< fee for creating a proposed transaction + uint64_t proposal_update_fee = 1500000; ///< fee for adding or removing approval of a proposed transaction + uint64_t proposal_delete_fee = 0; ///< fee for deleting a proposed transaction + uint64_t custom_operation_fee = 300000; ///< fee for a custom operation protected: size_t data_size()const {