Trait ApplySyncHandler
Source pub trait ApplySyncHandler {
Show 123 methods
// Required methods
fn handle_end_apply(&self) -> Result<i32>;
fn handle_get_active_producers(&self) -> Result<Vec<u8>>;
fn handle_get_resource_limits(
&self,
account: Uint64,
) -> Result<GetResourceLimitsReturn>;
fn handle_set_resource_limits(
&self,
account: Uint64,
ram_bytes: i64,
net_weight: i64,
cpu_weight: i64,
) -> Result<()>;
fn handle_set_proposed_producers(
&self,
producer_data: Vec<u8>,
) -> Result<i64>;
fn handle_set_proposed_producers_ex(
&self,
producer_data_format: Uint64,
producer_data: Vec<u8>,
) -> Result<i64>;
fn handle_is_privileged(&self, account: Uint64) -> Result<bool>;
fn handle_set_privileged(
&self,
account: Uint64,
is_priv: bool,
) -> Result<()>;
fn handle_set_blockchain_parameters_packed(
&self,
data: Vec<u8>,
) -> Result<()>;
fn handle_get_blockchain_parameters_packed(&self) -> Result<Vec<u8>>;
fn handle_preactivate_feature(&self, feature_digest: Vec<u8>) -> Result<()>;
fn handle_check_transaction_authorization(
&self,
trx_data: Vec<u8>,
pubkeys_data: Vec<u8>,
perms_data: Vec<u8>,
) -> Result<i32>;
fn handle_check_permission_authorization(
&self,
account: Uint64,
permission: Uint64,
pubkeys_data: Vec<u8>,
perms_data: Vec<u8>,
delay_us: Uint64,
) -> Result<i32>;
fn handle_get_permission_last_used(
&self,
account: Uint64,
permission: Uint64,
) -> Result<i64>;
fn handle_get_account_creation_time(&self, account: Uint64) -> Result<i64>;
fn handle_prints(&self, cstr: String) -> Result<()>;
fn handle_prints_l(&self, cstr: Vec<u8>) -> Result<()>;
fn handle_printi(&self, n: i64) -> Result<()>;
fn handle_printui(&self, n: Uint64) -> Result<()>;
fn handle_printi128(&self, value: Vec<u8>) -> Result<()>;
fn handle_printui128(&self, value: Vec<u8>) -> Result<()>;
fn handle_printsf(&self, value: Vec<u8>) -> Result<()>;
fn handle_printdf(&self, value: Vec<u8>) -> Result<()>;
fn handle_printqf(&self, value: Vec<u8>) -> Result<()>;
fn handle_printn(&self, name: Uint64) -> Result<()>;
fn handle_printhex(&self, data: Vec<u8>) -> Result<()>;
fn handle_action_data_size(&self) -> Result<i32>;
fn handle_read_action_data(&self) -> Result<Vec<u8>>;
fn handle_require_recipient(&self, name: Uint64) -> Result<()>;
fn handle_require_auth(&self, name: Uint64) -> Result<()>;
fn handle_has_auth(&self, name: Uint64) -> Result<bool>;
fn handle_require_auth2(
&self,
name: Uint64,
permission: Uint64,
) -> Result<()>;
fn handle_is_account(&self, name: Uint64) -> Result<bool>;
fn handle_send_inline(&self, serialized_action: Vec<u8>) -> Result<()>;
fn handle_send_context_free_inline(
&self,
serialized_data: Vec<u8>,
) -> Result<()>;
fn handle_publication_time(&self) -> Result<Uint64>;
fn handle_current_receiver(&self) -> Result<Uint64>;
fn handle_eosio_assert(&self, test: bool, msg: Vec<u8>) -> Result<()>;
fn handle_eosio_assert_message(
&self,
test: bool,
msg: Vec<u8>,
) -> Result<()>;
fn handle_eosio_assert_code(&self, test: bool, code: Uint64) -> Result<()>;
fn handle_eosio_exit(&self, code: i32) -> Result<()>;
fn handle_current_time(&self) -> Result<Uint64>;
fn handle_is_feature_activated(
&self,
feature_digest: Vec<u8>,
) -> Result<bool>;
fn handle_get_sender(&self) -> Result<Uint64>;
fn handle_assert_sha256(&self, data: Vec<u8>, hash: Vec<u8>) -> Result<()>;
fn handle_assert_sha1(&self, data: Vec<u8>, hash: Vec<u8>) -> Result<()>;
fn handle_assert_sha512(&self, data: Vec<u8>, hash: Vec<u8>) -> Result<()>;
fn handle_assert_ripemd160(
&self,
data: Vec<u8>,
hash: Vec<u8>,
) -> Result<()>;
fn handle_sha256(&self, data: Vec<u8>) -> Result<Vec<u8>>;
fn handle_sha1(&self, data: Vec<u8>) -> Result<Vec<u8>>;
fn handle_sha512(&self, data: Vec<u8>) -> Result<Vec<u8>>;
fn handle_ripemd160(&self, data: Vec<u8>) -> Result<Vec<u8>>;
fn handle_recover_key(
&self,
digest: Vec<u8>,
sig: Vec<u8>,
) -> Result<Vec<u8>>;
fn handle_assert_recover_key(
&self,
digest: Vec<u8>,
sig: Vec<u8>,
pub_: Vec<u8>,
) -> Result<()>;
fn handle_send_deferred(
&self,
sender_id: Vec<u8>,
payer: Uint64,
serialized_transaction: Vec<u8>,
replace_existing: i32,
) -> Result<()>;
fn handle_cancel_deferred(&self, sender_id: Vec<u8>) -> Result<i32>;
fn handle_read_transaction(&self) -> Result<Vec<u8>>;
fn handle_transaction_size(&self) -> Result<i32>;
fn handle_tapos_block_num(&self) -> Result<i32>;
fn handle_tapos_block_prefix(&self) -> Result<i32>;
fn handle_expiration(&self) -> Result<i64>;
fn handle_get_action(&self, _type: i32, index: i32) -> Result<Vec<u8>>;
fn handle_get_context_free_data(&self, index: i32) -> Result<Vec<u8>>;
fn handle_db_store_i64(
&self,
scope: Uint64,
table: Uint64,
payer: Uint64,
id: Uint64,
data: Vec<u8>,
) -> Result<i32>;
fn handle_db_update_i64(
&self,
iterator: i32,
payer: Uint64,
data: Vec<u8>,
) -> Result<()>;
fn handle_db_remove_i64(&self, iterator: i32) -> Result<()>;
fn handle_db_get_i64(&self, iterator: i32) -> Result<Vec<u8>>;
fn handle_db_next_i64(&self, iterator: i32) -> Result<NextPreviousReturn>;
fn handle_db_previous_i64(
&self,
iterator: i32,
) -> Result<NextPreviousReturn>;
fn handle_db_find_i64(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
id: Uint64,
) -> Result<i32>;
fn handle_db_lowerbound_i64(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
id: Uint64,
) -> Result<i32>;
fn handle_db_upperbound_i64(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
id: Uint64,
) -> Result<i32>;
fn handle_db_end_i64(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
) -> Result<i32>;
fn handle_db_idx64_store(
&self,
scope: Uint64,
table: Uint64,
payer: Uint64,
id: Uint64,
secondary: Uint64,
) -> Result<i32>;
fn handle_db_idx64_update(
&self,
iterator: i32,
payer: Uint64,
secondary: Uint64,
) -> Result<()>;
fn handle_db_idx64_remove(&self, iterator: i32) -> Result<()>;
fn handle_db_idx64_next(&self, iterator: i32) -> Result<NextPreviousReturn>;
fn handle_db_idx64_previous(
&self,
iteratory: i32,
) -> Result<NextPreviousReturn>;
fn handle_db_idx64_find_primary(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
primary: Uint64,
) -> Result<FindPrimaryReturn>;
fn handle_db_idx64_find_secondary(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
secondary: Uint64,
) -> Result<FindSecondaryReturn>;
fn handle_db_idx64_lowerbound(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
secondary: Uint64,
primary: Uint64,
) -> Result<LowerBoundUpperBoundReturn>;
fn handle_db_idx64_upperbound(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
secondary: Uint64,
primary: Uint64,
) -> Result<LowerBoundUpperBoundReturn>;
fn handle_db_idx64_end(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
) -> Result<i32>;
fn handle_db_idx128_store(
&self,
scope: Uint64,
table: Uint64,
payer: Uint64,
id: Uint64,
secondary: Vec<u8>,
) -> Result<i32>;
fn handle_db_idx128_update(
&self,
iterator: i32,
payer: Uint64,
secondary: Vec<u8>,
) -> Result<()>;
fn handle_db_idx128_remove(&self, iterator: i32) -> Result<()>;
fn handle_db_idx128_next(&self, iterator: i32) -> Result<NextPreviousReturn>;
fn handle_db_idx128_previous(
&self,
iterator: i32,
) -> Result<NextPreviousReturn>;
fn handle_db_idx128_find_primary(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
primary: Uint64,
) -> Result<FindPrimaryReturn>;
fn handle_db_idx128_find_secondary(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
secondary: Vec<u8>,
) -> Result<FindSecondaryReturn>;
fn handle_db_idx128_lowerbound(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
secondary: Vec<u8>,
primary: Uint64,
) -> Result<LowerBoundUpperBoundReturn>;
fn handle_db_idx128_upperbound(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
secondary: Vec<u8>,
primary: Uint64,
) -> Result<LowerBoundUpperBoundReturn>;
fn handle_db_idx128_end(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
) -> Result<i32>;
fn handle_db_idx256_store(
&self,
scope: Uint64,
table: Uint64,
payer: Uint64,
id: Uint64,
data: Vec<u8>,
) -> Result<i32>;
fn handle_db_idx256_update(
&self,
iterator: i32,
payer: Uint64,
data: Vec<u8>,
) -> Result<()>;
fn handle_db_idx256_remove(&self, iterator: i32) -> Result<()>;
fn handle_db_idx256_next(&self, iterator: i32) -> Result<NextPreviousReturn>;
fn handle_db_idx256_previous(
&self,
iterator: i32,
) -> Result<NextPreviousReturn>;
fn handle_db_idx256_find_primary(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
primary: Uint64,
) -> Result<FindPrimaryReturn>;
fn handle_db_idx256_find_secondary(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
data: Vec<u8>,
) -> Result<FindSecondaryReturn>;
fn handle_db_idx256_lowerbound(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
data: Vec<u8>,
primary: Uint64,
) -> Result<LowerBoundUpperBoundReturn>;
fn handle_db_idx256_upperbound(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
data: Vec<u8>,
primary: Uint64,
) -> Result<LowerBoundUpperBoundReturn>;
fn handle_db_idx256_end(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
) -> Result<i32>;
fn handle_db_idx_double_store(
&self,
scope: Uint64,
table: Uint64,
payer: Uint64,
id: Uint64,
secondary: Vec<u8>,
) -> Result<i32>;
fn handle_db_idx_double_update(
&self,
iterator: i32,
payer: Uint64,
secondary: Vec<u8>,
) -> Result<()>;
fn handle_db_idx_double_remove(&self, iterator: i32) -> Result<()>;
fn handle_db_idx_double_next(
&self,
iterator: i32,
) -> Result<NextPreviousReturn>;
fn handle_db_idx_double_previous(
&self,
iterator: i32,
) -> Result<NextPreviousReturn>;
fn handle_db_idx_double_find_primary(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
primary: Uint64,
) -> Result<FindPrimaryReturn>;
fn handle_db_idx_double_find_secondary(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
secondary: Vec<u8>,
) -> Result<FindSecondaryReturn>;
fn handle_db_idx_double_lowerbound(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
secondary: Vec<u8>,
primary: Uint64,
) -> Result<LowerBoundUpperBoundReturn>;
fn handle_db_idx_double_upperbound(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
secondary: Vec<u8>,
primary: Uint64,
) -> Result<LowerBoundUpperBoundReturn>;
fn handle_db_idx_double_end(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
) -> Result<i32>;
fn handle_db_idx_long_double_store(
&self,
scope: Uint64,
table: Uint64,
payer: Uint64,
id: Uint64,
secondary: Vec<u8>,
) -> Result<i32>;
fn handle_db_idx_long_double_update(
&self,
iterator: i32,
payer: Uint64,
secondary: Vec<u8>,
) -> Result<()>;
fn handle_db_idx_long_double_remove(&self, iterator: i32) -> Result<()>;
fn handle_db_idx_long_double_next(
&self,
iterator: i32,
) -> Result<NextPreviousReturn>;
fn handle_db_idx_long_double_previous(
&self,
iterator: i32,
) -> Result<NextPreviousReturn>;
fn handle_db_idx_long_double_find_primary(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
primary: Uint64,
) -> Result<FindPrimaryReturn>;
fn handle_db_idx_long_double_find_secondary(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
secondary: Vec<u8>,
) -> Result<FindSecondaryReturn>;
fn handle_db_idx_long_double_lowerbound(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
secondary: Vec<u8>,
primary: Uint64,
) -> Result<LowerBoundUpperBoundReturn>;
fn handle_db_idx_long_double_upperbound(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
secondary: Vec<u8>,
primary: Uint64,
) -> Result<LowerBoundUpperBoundReturn>;
fn handle_db_idx_long_double_end(
&self,
code: Uint64,
scope: Uint64,
table: Uint64,
) -> Result<i32>;
}