BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
get_config.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 Cryptonomex, Inc., and contributors.
3  *
4  * The MIT License
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a copy
7  * of this software and associated documentation files (the "Software"), to deal
8  * in the Software without restriction, including without limitation the rights
9  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10  * copies of the Software, and to permit persons to whom the Software is
11  * furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included in
14  * all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22  * THE SOFTWARE.
23  */
24 
28 
29 namespace graphene { namespace chain {
30 
32 {
34 
35  result[ "GRAPHENE_SYMBOL" ] = GRAPHENE_SYMBOL;
36  result[ "GRAPHENE_ADDRESS_PREFIX" ] = GRAPHENE_ADDRESS_PREFIX;
37  result[ "GRAPHENE_MIN_ACCOUNT_NAME_LENGTH" ] = GRAPHENE_MIN_ACCOUNT_NAME_LENGTH;
38  result[ "GRAPHENE_MAX_ACCOUNT_NAME_LENGTH" ] = GRAPHENE_MAX_ACCOUNT_NAME_LENGTH;
39  result[ "GRAPHENE_MIN_ASSET_SYMBOL_LENGTH" ] = GRAPHENE_MIN_ASSET_SYMBOL_LENGTH;
40  result[ "GRAPHENE_MAX_ASSET_SYMBOL_LENGTH" ] = GRAPHENE_MAX_ASSET_SYMBOL_LENGTH;
41  result[ "GRAPHENE_MAX_SHARE_SUPPLY" ] = GRAPHENE_MAX_SHARE_SUPPLY;
42  result[ "GRAPHENE_MAX_SIG_CHECK_DEPTH" ] = GRAPHENE_MAX_SIG_CHECK_DEPTH;
43  result[ "GRAPHENE_MIN_TRANSACTION_SIZE_LIMIT" ] = GRAPHENE_MIN_TRANSACTION_SIZE_LIMIT;
44  result[ "GRAPHENE_MIN_BLOCK_INTERVAL" ] = GRAPHENE_MIN_BLOCK_INTERVAL;
45  result[ "GRAPHENE_MAX_BLOCK_INTERVAL" ] = GRAPHENE_MAX_BLOCK_INTERVAL;
46  result[ "GRAPHENE_DEFAULT_BLOCK_INTERVAL" ] = GRAPHENE_DEFAULT_BLOCK_INTERVAL;
47  result[ "GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE" ] = GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE;
48  result[ "GRAPHENE_DEFAULT_MAX_BLOCK_SIZE" ] = GRAPHENE_DEFAULT_MAX_BLOCK_SIZE;
49  result[ "GRAPHENE_DEFAULT_MAX_TIME_UNTIL_EXPIRATION" ] = GRAPHENE_DEFAULT_MAX_TIME_UNTIL_EXPIRATION;
50  result[ "GRAPHENE_DEFAULT_MAINTENANCE_INTERVAL" ] = GRAPHENE_DEFAULT_MAINTENANCE_INTERVAL;
51  result[ "GRAPHENE_DEFAULT_MAINTENANCE_SKIP_SLOTS" ] = GRAPHENE_DEFAULT_MAINTENANCE_SKIP_SLOTS;
52  result[ "GRAPHENE_MIN_UNDO_HISTORY" ] = GRAPHENE_MIN_UNDO_HISTORY;
53  result[ "GRAPHENE_MAX_UNDO_HISTORY" ] = GRAPHENE_MAX_UNDO_HISTORY;
54  result[ "GRAPHENE_MIN_BLOCK_SIZE_LIMIT" ] = GRAPHENE_MIN_BLOCK_SIZE_LIMIT;
55  result[ "GRAPHENE_BLOCKCHAIN_PRECISION" ] = GRAPHENE_BLOCKCHAIN_PRECISION;
56  result[ "GRAPHENE_BLOCKCHAIN_PRECISION_DIGITS" ] = GRAPHENE_BLOCKCHAIN_PRECISION_DIGITS;
57  result[ "GRAPHENE_100_PERCENT" ] = GRAPHENE_100_PERCENT;
58  result[ "GRAPHENE_1_PERCENT" ] = GRAPHENE_1_PERCENT;
59  result[ "GRAPHENE_MAX_MARKET_FEE_PERCENT" ] = GRAPHENE_MAX_MARKET_FEE_PERCENT;
60  result[ "GRAPHENE_DEFAULT_FORCE_SETTLEMENT_DELAY" ] = GRAPHENE_DEFAULT_FORCE_SETTLEMENT_DELAY;
61  result[ "GRAPHENE_DEFAULT_FORCE_SETTLEMENT_OFFSET" ] = GRAPHENE_DEFAULT_FORCE_SETTLEMENT_OFFSET;
62  result[ "GRAPHENE_DEFAULT_FORCE_SETTLEMENT_MAX_VOLUME" ] = GRAPHENE_DEFAULT_FORCE_SETTLEMENT_MAX_VOLUME;
63  result[ "GRAPHENE_DEFAULT_PRICE_FEED_LIFETIME" ] = GRAPHENE_DEFAULT_PRICE_FEED_LIFETIME;
64  result[ "GRAPHENE_DEFAULT_MAX_AUTHORITY_MEMBERSHIP" ] = GRAPHENE_DEFAULT_MAX_AUTHORITY_MEMBERSHIP;
65  result[ "GRAPHENE_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES" ] = GRAPHENE_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES;
66  result[ "GRAPHENE_DEFAULT_MAX_ASSET_FEED_PUBLISHERS" ] = GRAPHENE_DEFAULT_MAX_ASSET_FEED_PUBLISHERS;
67  result[ "GRAPHENE_COLLATERAL_RATIO_DENOM" ] = GRAPHENE_COLLATERAL_RATIO_DENOM;
68  result[ "GRAPHENE_MIN_COLLATERAL_RATIO" ] = GRAPHENE_MIN_COLLATERAL_RATIO;
69  result[ "GRAPHENE_MAX_COLLATERAL_RATIO" ] = GRAPHENE_MAX_COLLATERAL_RATIO;
70  result[ "GRAPHENE_DEFAULT_MAINTENANCE_COLLATERAL_RATIO" ] = GRAPHENE_DEFAULT_MAINTENANCE_COLLATERAL_RATIO;
71  result[ "GRAPHENE_DEFAULT_MAX_SHORT_SQUEEZE_RATIO" ] = GRAPHENE_DEFAULT_MAX_SHORT_SQUEEZE_RATIO;
72  result[ "GRAPHENE_DEFAULT_MAX_WITNESSES" ] = GRAPHENE_DEFAULT_MAX_WITNESSES;
73  result[ "GRAPHENE_DEFAULT_MAX_COMMITTEE" ] = GRAPHENE_DEFAULT_MAX_COMMITTEE;
74  result[ "GRAPHENE_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC" ] = GRAPHENE_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC;
75  result[ "GRAPHENE_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC" ] = GRAPHENE_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC;
76  result[ "GRAPHENE_DEFAULT_NETWORK_PERCENT_OF_FEE" ] = GRAPHENE_DEFAULT_NETWORK_PERCENT_OF_FEE;
77  result[ "GRAPHENE_DEFAULT_LIFETIME_REFERRER_PERCENT_OF_FEE" ] = GRAPHENE_DEFAULT_LIFETIME_REFERRER_PERCENT_OF_FEE;
78  result[ "GRAPHENE_DEFAULT_CASHBACK_VESTING_PERIOD_SEC" ] = GRAPHENE_DEFAULT_CASHBACK_VESTING_PERIOD_SEC;
79  result[ "GRAPHENE_DEFAULT_CASHBACK_VESTING_THRESHOLD" ] = GRAPHENE_DEFAULT_CASHBACK_VESTING_THRESHOLD;
80  result[ "GRAPHENE_DEFAULT_BURN_PERCENT_OF_FEE" ] = GRAPHENE_DEFAULT_BURN_PERCENT_OF_FEE;
81  result[ "GRAPHENE_DEFAULT_MAX_ASSERT_OPCODE" ] = GRAPHENE_DEFAULT_MAX_ASSERT_OPCODE;
82  result[ "GRAPHENE_DEFAULT_FEE_LIQUIDATION_THRESHOLD" ] = GRAPHENE_DEFAULT_FEE_LIQUIDATION_THRESHOLD;
83  result[ "GRAPHENE_DEFAULT_ACCOUNTS_PER_FEE_SCALE" ] = GRAPHENE_DEFAULT_ACCOUNTS_PER_FEE_SCALE;
84  result[ "GRAPHENE_DEFAULT_ACCOUNT_FEE_SCALE_BITSHIFTS" ] = GRAPHENE_DEFAULT_ACCOUNT_FEE_SCALE_BITSHIFTS;
85  result[ "GRAPHENE_MAX_WORKER_NAME_LENGTH" ] = GRAPHENE_MAX_WORKER_NAME_LENGTH;
86  result[ "GRAPHENE_MAX_URL_LENGTH" ] = GRAPHENE_MAX_URL_LENGTH;
87  result[ "GRAPHENE_CORE_ASSET_CYCLE_RATE" ] = GRAPHENE_CORE_ASSET_CYCLE_RATE;
88  result[ "GRAPHENE_CORE_ASSET_CYCLE_RATE_BITS" ] = GRAPHENE_CORE_ASSET_CYCLE_RATE_BITS;
89  result[ "GRAPHENE_DEFAULT_WITNESS_PAY_PER_BLOCK" ] = GRAPHENE_DEFAULT_WITNESS_PAY_PER_BLOCK;
90  result[ "GRAPHENE_DEFAULT_WITNESS_PAY_VESTING_SECONDS" ] = GRAPHENE_DEFAULT_WITNESS_PAY_VESTING_SECONDS;
91  result[ "GRAPHENE_DEFAULT_WORKER_BUDGET_PER_DAY" ] = GRAPHENE_DEFAULT_WORKER_BUDGET_PER_DAY;
92  result[ "GRAPHENE_COMMITTEE_ACCOUNT" ] = fc::variant(GRAPHENE_COMMITTEE_ACCOUNT, GRAPHENE_MAX_NESTED_OBJECTS);
93  result[ "GRAPHENE_WITNESS_ACCOUNT" ] = fc::variant(GRAPHENE_WITNESS_ACCOUNT, GRAPHENE_MAX_NESTED_OBJECTS);
94  result[ "GRAPHENE_RELAXED_COMMITTEE_ACCOUNT" ] = fc::variant(GRAPHENE_RELAXED_COMMITTEE_ACCOUNT, GRAPHENE_MAX_NESTED_OBJECTS);
95  result[ "GRAPHENE_NULL_ACCOUNT" ] = fc::variant(GRAPHENE_NULL_ACCOUNT, GRAPHENE_MAX_NESTED_OBJECTS);
96  result[ "GRAPHENE_TEMP_ACCOUNT" ] = fc::variant(GRAPHENE_TEMP_ACCOUNT, GRAPHENE_MAX_NESTED_OBJECTS);
97 
98  return result;
99 }
100 
101 } } // graphene::chain
GRAPHENE_MAX_SHARE_SUPPLY
constexpr int64_t GRAPHENE_MAX_SHARE_SUPPLY(1000000000000000LL)
GRAPHENE_DEFAULT_WORKER_BUDGET_PER_DAY
#define GRAPHENE_DEFAULT_WORKER_BUDGET_PER_DAY
Definition: config.hpp:96
GRAPHENE_1_PERCENT
#define GRAPHENE_1_PERCENT
Definition: config.hpp:103
GRAPHENE_COLLATERAL_RATIO_DENOM
#define GRAPHENE_COLLATERAL_RATIO_DENOM
Definition: config.hpp:113
fc::variant_object
An order-perserving dictionary of variant's.
Definition: variant_object.hpp:20
GRAPHENE_CORE_ASSET_CYCLE_RATE
#define GRAPHENE_CORE_ASSET_CYCLE_RATE
Definition: config.hpp:51
GRAPHENE_RELAXED_COMMITTEE_ACCOUNT
#define GRAPHENE_RELAXED_COMMITTEE_ACCOUNT
Represents the current committee members.
Definition: config.hpp:144
GRAPHENE_MIN_BLOCK_INTERVAL
#define GRAPHENE_MIN_BLOCK_INTERVAL
Definition: config.hpp:59
GRAPHENE_DEFAULT_MAX_AUTHORITY_MEMBERSHIP
#define GRAPHENE_DEFAULT_MAX_AUTHORITY_MEMBERSHIP
Definition: config.hpp:73
GRAPHENE_DEFAULT_MAX_SHORT_SQUEEZE_RATIO
#define GRAPHENE_DEFAULT_MAX_SHORT_SQUEEZE_RATIO
Stop calling when collateral only pays off 150% of the debt.
Definition: config.hpp:117
fc::mutable_variant_object
An order-perserving dictionary of variant's.
Definition: variant_object.hpp:108
GRAPHENE_MAX_BLOCK_INTERVAL
#define GRAPHENE_MAX_BLOCK_INTERVAL
Definition: config.hpp:60
GRAPHENE_MIN_COLLATERAL_RATIO
#define GRAPHENE_MIN_COLLATERAL_RATIO
lower than this could result in divide by 0
Definition: config.hpp:114
GRAPHENE_DEFAULT_WITNESS_PAY_PER_BLOCK
#define GRAPHENE_DEFAULT_WITNESS_PAY_PER_BLOCK
Definition: config.hpp:94
GRAPHENE_DEFAULT_ACCOUNTS_PER_FEE_SCALE
#define GRAPHENE_DEFAULT_ACCOUNTS_PER_FEE_SCALE
Definition: config.hpp:90
graphene::chain::get_config
fc::variant_object get_config()
Definition: get_config.cpp:31
GRAPHENE_DEFAULT_BURN_PERCENT_OF_FEE
#define GRAPHENE_DEFAULT_BURN_PERCENT_OF_FEE
Definition: config.hpp:87
GRAPHENE_CORE_ASSET_CYCLE_RATE_BITS
#define GRAPHENE_CORE_ASSET_CYCLE_RATE_BITS
Definition: config.hpp:52
GRAPHENE_TEMP_ACCOUNT
#define GRAPHENE_TEMP_ACCOUNT
Represents the canonical account with WILDCARD authority (anybody can access funds in temp account)
Definition: config.hpp:148
GRAPHENE_MIN_ACCOUNT_NAME_LENGTH
#define GRAPHENE_MIN_ACCOUNT_NAME_LENGTH
Definition: config.hpp:32
GRAPHENE_DEFAULT_MAX_BLOCK_SIZE
#define GRAPHENE_DEFAULT_MAX_BLOCK_SIZE
Definition: config.hpp:64
get_config.hpp
GRAPHENE_MAX_WORKER_NAME_LENGTH
#define GRAPHENE_MAX_WORKER_NAME_LENGTH
Definition: config.hpp:40
GRAPHENE_BLOCKCHAIN_PRECISION_DIGITS
#define GRAPHENE_BLOCKCHAIN_PRECISION_DIGITS
Definition: config.hpp:30
GRAPHENE_MAX_URL_LENGTH
#define GRAPHENE_MAX_URL_LENGTH
Definition: config.hpp:41
GRAPHENE_MAX_ASSET_SYMBOL_LENGTH
#define GRAPHENE_MAX_ASSET_SYMBOL_LENGTH
Definition: config.hpp:36
GRAPHENE_DEFAULT_CASHBACK_VESTING_THRESHOLD
#define GRAPHENE_DEFAULT_CASHBACK_VESTING_THRESHOLD
Definition: config.hpp:86
GRAPHENE_DEFAULT_MAINTENANCE_INTERVAL
#define GRAPHENE_DEFAULT_MAINTENANCE_INTERVAL
Definition: config.hpp:66
GRAPHENE_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC
#define GRAPHENE_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC
Definition: config.hpp:82
GRAPHENE_SYMBOL
#define GRAPHENE_SYMBOL
Definition: config.hpp:26
GRAPHENE_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES
#define GRAPHENE_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES
Definition: config.hpp:74
GRAPHENE_MAX_SIG_CHECK_DEPTH
#define GRAPHENE_MAX_SIG_CHECK_DEPTH
Definition: config.hpp:43
GRAPHENE_DEFAULT_MAX_ASSET_FEED_PUBLISHERS
#define GRAPHENE_DEFAULT_MAX_ASSET_FEED_PUBLISHERS
Definition: config.hpp:75
GRAPHENE_MIN_ASSET_SYMBOL_LENGTH
#define GRAPHENE_MIN_ASSET_SYMBOL_LENGTH
Definition: config.hpp:35
GRAPHENE_DEFAULT_CASHBACK_VESTING_PERIOD_SEC
#define GRAPHENE_DEFAULT_CASHBACK_VESTING_PERIOD_SEC
1 year
Definition: config.hpp:85
types.hpp
GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE
#define GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE
Definition: config.hpp:63
GRAPHENE_BLOCKCHAIN_PRECISION
#define GRAPHENE_BLOCKCHAIN_PRECISION
Definition: config.hpp:29
GRAPHENE_DEFAULT_MAINTENANCE_SKIP_SLOTS
#define GRAPHENE_DEFAULT_MAINTENANCE_SKIP_SLOTS
Definition: config.hpp:67
config.hpp
GRAPHENE_DEFAULT_MAINTENANCE_COLLATERAL_RATIO
#define GRAPHENE_DEFAULT_MAINTENANCE_COLLATERAL_RATIO
Call when collateral only pays off 175% the debt.
Definition: config.hpp:116
GRAPHENE_DEFAULT_ACCOUNT_FEE_SCALE_BITSHIFTS
#define GRAPHENE_DEFAULT_ACCOUNT_FEE_SCALE_BITSHIFTS
Definition: config.hpp:91
GRAPHENE_DEFAULT_WITNESS_PAY_VESTING_SECONDS
#define GRAPHENE_DEFAULT_WITNESS_PAY_VESTING_SECONDS
Definition: config.hpp:95
GRAPHENE_DEFAULT_MAX_COMMITTEE
#define GRAPHENE_DEFAULT_MAX_COMMITTEE
Definition: config.hpp:80
GRAPHENE_COMMITTEE_ACCOUNT
#define GRAPHENE_COMMITTEE_ACCOUNT
Definition: config.hpp:140
GRAPHENE_DEFAULT_MAX_ASSERT_OPCODE
#define GRAPHENE_DEFAULT_MAX_ASSERT_OPCODE
Definition: config.hpp:88
GRAPHENE_DEFAULT_LIFETIME_REFERRER_PERCENT_OF_FEE
#define GRAPHENE_DEFAULT_LIFETIME_REFERRER_PERCENT_OF_FEE
Definition: config.hpp:84
GRAPHENE_DEFAULT_FEE_LIQUIDATION_THRESHOLD
#define GRAPHENE_DEFAULT_FEE_LIQUIDATION_THRESHOLD
Definition: config.hpp:89
GRAPHENE_DEFAULT_PRICE_FEED_LIFETIME
#define GRAPHENE_DEFAULT_PRICE_FEED_LIFETIME
1 day
Definition: config.hpp:72
GRAPHENE_DEFAULT_FORCE_SETTLEMENT_MAX_VOLUME
#define GRAPHENE_DEFAULT_FORCE_SETTLEMENT_MAX_VOLUME
20%
Definition: config.hpp:71
GRAPHENE_MIN_BLOCK_SIZE_LIMIT
#define GRAPHENE_MIN_BLOCK_SIZE_LIMIT
Definition: config.hpp:99
fc::variant
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Definition: variant.hpp:198
GRAPHENE_WITNESS_ACCOUNT
#define GRAPHENE_WITNESS_ACCOUNT
Represents the current witnesses.
Definition: config.hpp:142
GRAPHENE_MAX_ACCOUNT_NAME_LENGTH
#define GRAPHENE_MAX_ACCOUNT_NAME_LENGTH
Definition: config.hpp:33
GRAPHENE_DEFAULT_FORCE_SETTLEMENT_DELAY
#define GRAPHENE_DEFAULT_FORCE_SETTLEMENT_DELAY
1 day
Definition: config.hpp:69
GRAPHENE_ADDRESS_PREFIX
#define GRAPHENE_ADDRESS_PREFIX
Definition: config.hpp:27
GRAPHENE_MAX_MARKET_FEE_PERCENT
#define GRAPHENE_MAX_MARKET_FEE_PERCENT
Definition: config.hpp:106
GRAPHENE_MAX_NESTED_OBJECTS
#define GRAPHENE_MAX_NESTED_OBJECTS
Definition: config.hpp:33
GRAPHENE_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC
#define GRAPHENE_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC
Definition: config.hpp:81
GRAPHENE_DEFAULT_NETWORK_PERCENT_OF_FEE
#define GRAPHENE_DEFAULT_NETWORK_PERCENT_OF_FEE
Definition: config.hpp:83
GRAPHENE_NULL_ACCOUNT
#define GRAPHENE_NULL_ACCOUNT
Represents the canonical account with NO authority (nobody can access funds in null account)
Definition: config.hpp:146
GRAPHENE_MIN_UNDO_HISTORY
#define GRAPHENE_MIN_UNDO_HISTORY
Definition: config.hpp:30
GRAPHENE_MIN_TRANSACTION_SIZE_LIMIT
#define GRAPHENE_MIN_TRANSACTION_SIZE_LIMIT
Definition: config.hpp:58
GRAPHENE_MAX_COLLATERAL_RATIO
#define GRAPHENE_MAX_COLLATERAL_RATIO
higher than this is unnecessary and may exceed int16 storage
Definition: config.hpp:115
GRAPHENE_DEFAULT_MAX_TIME_UNTIL_EXPIRATION
#define GRAPHENE_DEFAULT_MAX_TIME_UNTIL_EXPIRATION
Definition: config.hpp:65
GRAPHENE_DEFAULT_FORCE_SETTLEMENT_OFFSET
#define GRAPHENE_DEFAULT_FORCE_SETTLEMENT_OFFSET
1%
Definition: config.hpp:70
GRAPHENE_DEFAULT_MAX_WITNESSES
#define GRAPHENE_DEFAULT_MAX_WITNESSES
Definition: config.hpp:79
GRAPHENE_100_PERCENT
#define GRAPHENE_100_PERCENT
Definition: config.hpp:102
graphene
Definition: api.cpp:48
GRAPHENE_MAX_UNDO_HISTORY
#define GRAPHENE_MAX_UNDO_HISTORY
Definition: config.hpp:31
GRAPHENE_DEFAULT_BLOCK_INTERVAL
#define GRAPHENE_DEFAULT_BLOCK_INTERVAL
Definition: config.hpp:62