BitShares-Core  4.0.0
BitShares blockchain implementation and command-line interface 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
#define GRAPHENE_COLLATERAL_RATIO_DENOM
Definition: config.hpp:113
#define GRAPHENE_TEMP_ACCOUNT
Represents the canonical account with WILDCARD authority (anybody can access funds in temp account) ...
Definition: config.hpp:133
#define GRAPHENE_MAX_ACCOUNT_NAME_LENGTH
Definition: config.hpp:33
#define GRAPHENE_MIN_UNDO_HISTORY
Definition: config.hpp:28
#define GRAPHENE_DEFAULT_WORKER_BUDGET_PER_DAY
Definition: config.hpp:96
#define GRAPHENE_MAX_URL_LENGTH
Definition: config.hpp:41
#define GRAPHENE_DEFAULT_MAX_COMMITTEE
Definition: config.hpp:80
#define GRAPHENE_MAX_MARKET_FEE_PERCENT
Definition: config.hpp:106
#define GRAPHENE_MAX_NESTED_OBJECTS
Definition: config.hpp:31
#define GRAPHENE_DEFAULT_MAX_AUTHORITY_MEMBERSHIP
Definition: config.hpp:73
#define GRAPHENE_DEFAULT_MAX_TIME_UNTIL_EXPIRATION
Definition: config.hpp:65
#define GRAPHENE_MIN_TRANSACTION_SIZE_LIMIT
Definition: config.hpp:58
An order-perserving dictionary of variant's.
Definition: api.cpp:56
#define GRAPHENE_DEFAULT_BURN_PERCENT_OF_FEE
Definition: config.hpp:87
#define GRAPHENE_DEFAULT_FORCE_SETTLEMENT_OFFSET
1%
Definition: config.hpp:70
#define GRAPHENE_DEFAULT_MAINTENANCE_COLLATERAL_RATIO
Call when collateral only pays off 175% the debt.
Definition: config.hpp:116
#define GRAPHENE_DEFAULT_ACCOUNTS_PER_FEE_SCALE
Definition: config.hpp:90
#define GRAPHENE_DEFAULT_ACCOUNT_FEE_SCALE_BITSHIFTS
Definition: config.hpp:91
#define GRAPHENE_ADDRESS_PREFIX
Definition: config.hpp:27
#define GRAPHENE_DEFAULT_FORCE_SETTLEMENT_DELAY
1 day
Definition: config.hpp:69
#define GRAPHENE_DEFAULT_NETWORK_PERCENT_OF_FEE
Definition: config.hpp:83
#define GRAPHENE_CORE_ASSET_CYCLE_RATE
Definition: config.hpp:51
#define GRAPHENE_DEFAULT_FORCE_SETTLEMENT_MAX_VOLUME
20%
Definition: config.hpp:71
#define GRAPHENE_MIN_BLOCK_SIZE_LIMIT
Definition: config.hpp:99
#define GRAPHENE_MIN_ACCOUNT_NAME_LENGTH
Definition: config.hpp:32
#define GRAPHENE_DEFAULT_MAX_ASSERT_OPCODE
Definition: config.hpp:88
#define GRAPHENE_MAX_SHARE_SUPPLY
Definition: config.hpp:38
#define GRAPHENE_DEFAULT_MAX_WITNESSES
Definition: config.hpp:79
#define GRAPHENE_DEFAULT_MAINTENANCE_INTERVAL
Definition: config.hpp:66
#define GRAPHENE_MAX_COLLATERAL_RATIO
higher than this is unnecessary and may exceed int16 storage
Definition: config.hpp:115
#define GRAPHENE_100_PERCENT
Definition: config.hpp:102
#define GRAPHENE_MIN_BLOCK_INTERVAL
Definition: config.hpp:59
#define GRAPHENE_COMMITTEE_ACCOUNT
Definition: config.hpp:125
#define GRAPHENE_BLOCKCHAIN_PRECISION_DIGITS
Definition: config.hpp:30
#define GRAPHENE_BLOCKCHAIN_PRECISION
Definition: config.hpp:29
#define GRAPHENE_DEFAULT_MAINTENANCE_SKIP_SLOTS
Definition: config.hpp:67
#define GRAPHENE_MAX_SIG_CHECK_DEPTH
Definition: config.hpp:43
#define GRAPHENE_DEFAULT_MAX_SHORT_SQUEEZE_RATIO
Definition: config.hpp:117
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object&#39;s.
Definition: variant.hpp:198
#define GRAPHENE_DEFAULT_MAX_PROPOSAL_LIFETIME_SEC
Definition: config.hpp:81
#define GRAPHENE_NULL_ACCOUNT
Represents the canonical account with NO authority (nobody can access funds in null account) ...
Definition: config.hpp:131
fc::variant_object get_config()
Definition: get_config.cpp:31
#define GRAPHENE_DEFAULT_COMMITTEE_PROPOSAL_REVIEW_PERIOD_SEC
Definition: config.hpp:82
#define GRAPHENE_DEFAULT_WITNESS_PAY_PER_BLOCK
Definition: config.hpp:94
#define GRAPHENE_RELAXED_COMMITTEE_ACCOUNT
Represents the current committee members.
Definition: config.hpp:129
#define GRAPHENE_MIN_COLLATERAL_RATIO
lower than this could result in divide by 0
Definition: config.hpp:114
#define GRAPHENE_MAX_WORKER_NAME_LENGTH
Definition: config.hpp:40
#define GRAPHENE_DEFAULT_CASHBACK_VESTING_THRESHOLD
Definition: config.hpp:86
#define GRAPHENE_DEFAULT_PRICE_FEED_LIFETIME
1 day
Definition: config.hpp:72
#define GRAPHENE_DEFAULT_LIFETIME_REFERRER_PERCENT_OF_FEE
Definition: config.hpp:84
#define GRAPHENE_DEFAULT_WITNESS_PAY_VESTING_SECONDS
Definition: config.hpp:95
#define GRAPHENE_DEFAULT_MAX_ASSET_FEED_PUBLISHERS
Definition: config.hpp:75
#define GRAPHENE_MAX_ASSET_SYMBOL_LENGTH
Definition: config.hpp:36
#define GRAPHENE_CORE_ASSET_CYCLE_RATE_BITS
Definition: config.hpp:52
#define GRAPHENE_SYMBOL
Definition: config.hpp:26
#define GRAPHENE_DEFAULT_MAX_ASSET_WHITELIST_AUTHORITIES
Definition: config.hpp:74
#define GRAPHENE_MAX_BLOCK_INTERVAL
Definition: config.hpp:60
#define GRAPHENE_DEFAULT_CASHBACK_VESTING_PERIOD_SEC
1 year
Definition: config.hpp:85
#define GRAPHENE_DEFAULT_BLOCK_INTERVAL
Definition: config.hpp:62
#define GRAPHENE_MIN_ASSET_SYMBOL_LENGTH
Definition: config.hpp:35
#define GRAPHENE_1_PERCENT
Definition: config.hpp:103
#define GRAPHENE_DEFAULT_MAX_TRANSACTION_SIZE
Definition: config.hpp:63
#define GRAPHENE_DEFAULT_MAX_BLOCK_SIZE
Definition: config.hpp:64
An order-perserving dictionary of variant&#39;s.
#define GRAPHENE_DEFAULT_FEE_LIQUIDATION_THRESHOLD
Definition: config.hpp:89
#define GRAPHENE_MAX_UNDO_HISTORY
Definition: config.hpp:29
#define GRAPHENE_WITNESS_ACCOUNT
Represents the current witnesses.
Definition: config.hpp:127