76 namespace graphene {
namespace chain {
78 void database::initialize_evaluators()
80 constexpr
size_t max_num_of_evaluators = 255;
81 _operation_evaluators.resize(max_num_of_evaluators);
82 register_evaluator<account_create_evaluator>();
83 register_evaluator<account_update_evaluator>();
84 register_evaluator<account_upgrade_evaluator>();
85 register_evaluator<account_whitelist_evaluator>();
86 register_evaluator<committee_member_create_evaluator>();
87 register_evaluator<committee_member_update_evaluator>();
88 register_evaluator<committee_member_update_global_parameters_evaluator>();
89 register_evaluator<custom_evaluator>();
90 register_evaluator<asset_create_evaluator>();
91 register_evaluator<asset_issue_evaluator>();
92 register_evaluator<asset_reserve_evaluator>();
93 register_evaluator<asset_update_evaluator>();
94 register_evaluator<asset_update_bitasset_evaluator>();
95 register_evaluator<asset_update_feed_producers_evaluator>();
96 register_evaluator<asset_settle_evaluator>();
97 register_evaluator<asset_global_settle_evaluator>();
98 register_evaluator<assert_evaluator>();
99 register_evaluator<limit_order_create_evaluator>();
100 register_evaluator<limit_order_update_evaluator>();
101 register_evaluator<limit_order_cancel_evaluator>();
102 register_evaluator<call_order_update_evaluator>();
103 register_evaluator<bid_collateral_evaluator>();
104 register_evaluator<transfer_evaluator>();
105 register_evaluator<override_transfer_evaluator>();
106 register_evaluator<asset_fund_fee_pool_evaluator>();
107 register_evaluator<asset_publish_feeds_evaluator>();
108 register_evaluator<proposal_create_evaluator>();
109 register_evaluator<proposal_update_evaluator>();
110 register_evaluator<proposal_delete_evaluator>();
111 register_evaluator<vesting_balance_create_evaluator>();
112 register_evaluator<vesting_balance_withdraw_evaluator>();
113 register_evaluator<witness_create_evaluator>();
114 register_evaluator<witness_update_evaluator>();
115 register_evaluator<withdraw_permission_create_evaluator>();
116 register_evaluator<withdraw_permission_claim_evaluator>();
117 register_evaluator<withdraw_permission_update_evaluator>();
118 register_evaluator<withdraw_permission_delete_evaluator>();
119 register_evaluator<worker_create_evaluator>();
120 register_evaluator<balance_claim_evaluator>();
121 register_evaluator<transfer_to_blind_evaluator>();
122 register_evaluator<transfer_from_blind_evaluator>();
123 register_evaluator<blind_transfer_evaluator>();
124 register_evaluator<asset_claim_fees_evaluator>();
125 register_evaluator<asset_update_issuer_evaluator>();
126 register_evaluator<asset_claim_pool_evaluator>();
127 register_evaluator<htlc_create_evaluator>();
128 register_evaluator<htlc_redeem_evaluator>();
129 register_evaluator<htlc_extend_evaluator>();
130 register_evaluator<custom_authority_create_evaluator>();
131 register_evaluator<custom_authority_update_evaluator>();
132 register_evaluator<custom_authority_delete_evaluator>();
133 register_evaluator<ticket_create_evaluator>();
134 register_evaluator<ticket_update_evaluator>();
135 register_evaluator<liquidity_pool_create_evaluator>();
136 register_evaluator<liquidity_pool_delete_evaluator>();
137 register_evaluator<liquidity_pool_update_evaluator>();
138 register_evaluator<liquidity_pool_deposit_evaluator>();
139 register_evaluator<liquidity_pool_withdraw_evaluator>();
140 register_evaluator<liquidity_pool_exchange_evaluator>();
141 register_evaluator<samet_fund_create_evaluator>();
142 register_evaluator<samet_fund_delete_evaluator>();
143 register_evaluator<samet_fund_update_evaluator>();
144 register_evaluator<samet_fund_borrow_evaluator>();
145 register_evaluator<samet_fund_repay_evaluator>();
146 register_evaluator<credit_offer_create_evaluator>();
147 register_evaluator<credit_offer_delete_evaluator>();
148 register_evaluator<credit_offer_update_evaluator>();
149 register_evaluator<credit_offer_accept_evaluator>();
150 register_evaluator<credit_deal_repay_evaluator>();
151 register_evaluator<credit_deal_update_evaluator>();
160 add_index< primary_index<asset_index, 13> >();
161 add_index< primary_index<force_settlement_index> >();
163 add_index< primary_index<account_index, 20> >();
164 add_index< primary_index<committee_member_index, 8> >();
165 add_index< primary_index<witness_index, 10> >();
166 add_index< primary_index<limit_order_index > >();
167 add_index< primary_index<call_order_index > >();
168 add_index< primary_index<proposal_index > >();
169 add_index< primary_index<withdraw_permission_index > >();
170 add_index< primary_index<vesting_balance_index> >();
171 add_index< primary_index<worker_index> >();
172 add_index< primary_index<balance_index> >();
173 add_index< primary_index<blinded_balance_index> >();
174 add_index< primary_index< htlc_index> >();
175 add_index< primary_index< custom_authority_index> >();
176 add_index< primary_index<ticket_index> >();
177 add_index< primary_index<liquidity_pool_index> >();
178 add_index< primary_index<samet_fund_index> >();
179 add_index< primary_index<credit_offer_index> >();
180 add_index< primary_index<credit_deal_index> >();
183 add_index< primary_index<transaction_index > >();
185 auto bal_idx = add_index< primary_index<account_balance_index > >();
188 add_index< primary_index<asset_bitasset_data_index, 13 > >();
189 add_index< primary_index<simple_index<global_property_object >> >();
190 add_index< primary_index<simple_index<dynamic_global_property_object >> >();
191 add_index< primary_index<account_stats_index, 20 > >();
192 add_index< primary_index<simple_index<asset_dynamic_data_object >> >();
193 add_index< primary_index<simple_index<block_summary_object >> >();
194 add_index< primary_index<simple_index<chain_property_object > > >();
195 add_index< primary_index<simple_index<witness_schedule_object > > >();
196 add_index< primary_index<simple_index<budget_record_object > > >();
197 add_index< primary_index< special_authority_index > >();
198 add_index< primary_index< buyback_index > >();
199 add_index< primary_index<collateral_bid_index > >();
200 add_index< primary_index< simple_index< fba_accumulator_object > > >();
201 add_index< primary_index<credit_deal_summary_index > >();