Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
interface.hpp
Go to the documentation of this file.
1#pragma once
2
6#include <fc/crypto/sha1.hpp>
7#include <boost/hana/string.hpp>
8
9namespace sysio { namespace chain {
10class apply_context;
11namespace webassembly {
12
13 class interface {
14 public:
16
17 inline apply_context& get_context() { return context; }
18 inline const apply_context& get_context() const { return context; }
19
31
42 int32_t is_feature_active(int64_t feature_name) const;
43
52 void activate_feature(int64_t feature_name) const;
53
61
72 void set_resource_limits(account_name account, int64_t ram_bytes, int64_t net_weight, int64_t cpu_weight);
73
85
136 uint32_t get_wasm_parameters_packed( span<char> packed_parameters, uint32_t max_version ) const;
137
147 void set_wasm_parameters_packed( span<const char> packed_parameters );
148
159
174 int64_t set_proposed_producers_ex(uint64_t packed_producer_format, legacy_span<const char> packed_producer_schedule);
175
185 uint32_t get_blockchain_parameters_packed(legacy_span<char> packed_blockchain_parameters) const;
186
194 void set_blockchain_parameters_packed(legacy_span<const char> packed_blockchain_parameters);
195
212 uint32_t get_parameters_packed( span<const char> packed_parameter_ids, span<char> packed_parameters) const;
213
230 void set_parameters_packed( span<const char> packed_parameters );
231
241 bool is_privileged(account_name account) const;
242
250 void set_privileged(account_name account, bool is_priv);
251
252 // softfloat api
253 float _sysio_f32_add(float, float) const;
254 float _sysio_f32_sub(float, float) const;
255 float _sysio_f32_div(float, float) const;
256 float _sysio_f32_mul(float, float) const;
257 float _sysio_f32_min(float, float) const;
258 float _sysio_f32_max(float, float) const;
259 float _sysio_f32_copysign(float, float) const;
260 float _sysio_f32_abs(float) const;
261 float _sysio_f32_neg(float) const;
262 float _sysio_f32_sqrt(float) const;
263 float _sysio_f32_ceil(float) const;
264 float _sysio_f32_floor(float) const;
265 float _sysio_f32_trunc(float) const;
266 float _sysio_f32_nearest(float) const;
267 bool _sysio_f32_eq(float, float) const;
268 bool _sysio_f32_ne(float, float) const;
269 bool _sysio_f32_lt(float, float) const;
270 bool _sysio_f32_le(float, float) const;
271 bool _sysio_f32_gt(float, float) const;
272 bool _sysio_f32_ge(float, float) const;
273 double _sysio_f64_add(double, double) const;
274 double _sysio_f64_sub(double, double) const;
275 double _sysio_f64_div(double, double) const;
276 double _sysio_f64_mul(double, double) const;
277 double _sysio_f64_min(double, double) const;
278 double _sysio_f64_max(double, double) const;
279 double _sysio_f64_copysign(double, double) const;
280 double _sysio_f64_abs(double) const;
281 double _sysio_f64_neg(double) const;
282 double _sysio_f64_sqrt(double) const;
283 double _sysio_f64_ceil(double) const;
284 double _sysio_f64_floor(double) const;
285 double _sysio_f64_trunc(double) const;
286 double _sysio_f64_nearest(double) const;
287 bool _sysio_f64_eq(double, double) const;
288 bool _sysio_f64_ne(double, double) const;
289 bool _sysio_f64_lt(double, double) const;
290 bool _sysio_f64_le(double, double) const;
291 bool _sysio_f64_gt(double, double) const;
292 bool _sysio_f64_ge(double, double) const;
293 double _sysio_f32_promote(float) const;
294 float _sysio_f64_demote(double) const;
295 int32_t _sysio_f32_trunc_i32s(float) const;
296 int32_t _sysio_f64_trunc_i32s(double) const;
297 uint32_t _sysio_f32_trunc_i32u(float) const;
298 uint32_t _sysio_f64_trunc_i32u(double) const;
299 int64_t _sysio_f32_trunc_i64s(float) const;
300 int64_t _sysio_f64_trunc_i64s(double) const;
301 uint64_t _sysio_f32_trunc_i64u(float) const;
302 uint64_t _sysio_f64_trunc_i64u(double) const;
303 float _sysio_i32_to_f32(int32_t) const;
304 float _sysio_i64_to_f32(int64_t) const;
305 float _sysio_ui32_to_f32(uint32_t) const;
306 float _sysio_ui64_to_f32(uint64_t) const;
307 double _sysio_i32_to_f64(int32_t) const;
308 double _sysio_i64_to_f64(int64_t) const;
309 double _sysio_ui32_to_f64(uint32_t) const;
310 double _sysio_ui64_to_f64(uint64_t) const;
311
321
331
343
352
361
370
379
387 void sha256(legacy_span<const char> data, legacy_ptr<fc::sha256> hash_val) const;
388
396 void sha1(legacy_span<const char> data, legacy_ptr<fc::sha1> hash_val) const;
397
405 void sha512(legacy_span<const char> data, legacy_ptr<fc::sha512> hash_val) const;
406
415
428
442 bool check_permission_authorization(account_name account, permission_name permission, legacy_span<const char> pubkeys_data, legacy_span<const char> perms_data, uint64_t delay_us) const;
443
454
464
471 void require_auth(account_name account) const;
472
480 void require_auth2(account_name account, permission_name permission) const;
481
491 bool has_auth(account_name account) const;
492
499 void require_recipient(account_name recipient);
500
510 bool is_account(account_name account) const;
511
533 account_name account,
534 uint32_t struct_version,
535 vm::span<char> packed_result) const;
536
544 uint64_t current_time() const;
545
553 uint32_t get_block_num() const;
554
563
573 bool is_feature_activated(legacy_ptr<const digest_type> feature_digest) const;
574
581 name get_sender() const;
582
588 void abort() const;
589
597 void sysio_assert(bool condition, null_terminated_ptr msg) const;
598
606 void sysio_assert_message(bool condition, legacy_span<const char> msg) const;
607
617 void sysio_assert_code(bool condition, uint64_t error_code) const;
618
625 void sysio_exit(int32_t code) const;
626
636
644
651 name current_receiver() const;
652
660
667 void prints(null_terminated_ptr str);
668
676
683 void printi(int64_t val);
684
691 void printui(uint64_t val);
692
700
708
715 void printsf(float32_t val);
716
723 void printdf(float64_t val);
724
732
739 void printn(name value);
740
748
764
782 void db_update_i64(int32_t itr, uint64_t payer, legacy_span<const char> buffer);
783
792 void db_remove_i64(int32_t itr);
793
806
819
831
843 int32_t db_find_i64(uint64_t code, uint64_t scope, uint64_t table, uint64_t id);
844
858
872
883 int32_t db_end_i64(uint64_t code, uint64_t scope, uint64_t table);
884
899
911 void db_idx64_update(int32_t iterator, uint64_t payer, legacy_ptr<const uint64_t> secondary);
912
922 void db_idx64_remove(int32_t iterator);
923
939
954
972
987
998 int32_t db_idx64_end(uint64_t code, uint64_t scope, uint64_t table);
999
1012
1025
1040
1052 void db_idx128_update(int32_t iterator, uint64_t payer, legacy_ptr<const uint128_t> secondary);
1053
1063 void db_idx128_remove(int32_t iterator);
1064
1080
1095
1113
1128
1139 int32_t db_idx128_end(uint64_t code, uint64_t scope, uint64_t table);
1140
1153
1166
1181
1194
1204 void db_idx256_remove(int32_t iterator);
1205
1221
1236
1254
1272
1283 int32_t db_idx256_end(uint64_t code, uint64_t scope, uint64_t table);
1284
1297
1310
1325
1337 void db_idx_double_update(int32_t iterator, uint64_t payer, legacy_ptr<const float64_t> secondary);
1338
1348 void db_idx_double_remove(int32_t iterator);
1349
1365
1380
1398
1416
1428
1441
1454
1469
1482
1492 void db_idx_long_double_remove(int32_t iterator);
1493
1509
1524
1542
1560
1572
1585
1598
1599 // memory api
1600 void* memcpy(memcpy_params) const;
1601 void* memmove(memcpy_params) const;
1603 void* memset(memset_params) const;
1604
1612
1620
1630 void send_deferred(legacy_ptr<const uint128_t> sender_id, account_name payer, legacy_span<const char> data, uint32_t replace_existing);
1631
1642
1653
1661 int32_t transaction_size() const;
1662
1670 int32_t expiration() const;
1671
1679 int32_t tapos_block_num() const;
1680
1689
1701 int32_t get_action(uint32_t type, uint32_t index, legacy_span<char> buffer) const;
1702
1713
1723 int32_t alt_bn128_mul(span<const char> g1_point, span<const char> scalar, span<char> result) const;
1724
1732 int32_t alt_bn128_pair(span<const char> g1_g2_pairs) const;
1733
1748
1764 int32_t blake2_f( uint32_t rounds, span<const char> state, span<const char> message, span<const char> t0_offset, span<const char> t1_offset, int32_t final, span<char> result) const;
1765
1774 void sha3( span<const char> data, span<char> hash_val, int32_t keccak) const;
1775
1787
1788 // compiler builtins api
1803 void __extendsftf2(legacy_ptr<float128_t>, float) const;
1804 void __extenddftf2(legacy_ptr<float128_t>, double) const;
1805 double __trunctfdf2(uint64_t, uint64_t) const;
1806 float __trunctfsf2(uint64_t, uint64_t) const;
1813 void __fixsfti(legacy_ptr<int128_t>, float) const;
1814 void __fixdfti(legacy_ptr<int128_t>, double) const;
1815 void __fixunssfti(legacy_ptr<uint128_t>, float) const;
1816 void __fixunsdfti(legacy_ptr<uint128_t>, double) const;
1817 double __floatsidf(int32_t) const;
1822 double __floattidf(uint64_t, uint64_t) const;
1823 double __floatuntidf(uint64_t, uint64_t) const;
1832
1833 private:
1835 };
1836
1837}}} // ns sysio::chain::webassembly
double _sysio_f64_add(double, double) const
void send_context_free_inline(legacy_span< const char > data)
void __ashlti3(legacy_ptr< int128_t >, uint64_t, uint64_t, uint32_t) const
int32_t __lttf2(uint64_t, uint64_t, uint64_t, uint64_t) const
float _sysio_f32_mul(float, float) const
Definition softfloat.cpp:28
void printhex(legacy_span< const char > data)
Definition console.cpp:136
void __floatunditf(legacy_ptr< float128_t >, uint64_t) const
double _sysio_f64_div(double, double) const
void assert_recover_key(legacy_ptr< const fc::sha256 > digest, legacy_span< const char > sig, legacy_span< const char > pub) const
Definition crypto.cpp:23
int32_t read_action_data(legacy_span< char > memory) const
Definition action.cpp:6
int32_t db_idx_long_double_lowerbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< float128_t, 8 > secondary, legacy_ptr< uint64_t, 8 > primary)
Definition database.cpp:243
int32_t db_idx64_lowerbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< uint64_t, 8 > secondary, legacy_ptr< uint64_t, 8 > primary)
Definition database.cpp:57
int64_t _sysio_f64_trunc_i64s(double) const
double _sysio_f64_abs(double) const
int32_t db_idx64_upperbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< uint64_t, 8 > secondary, legacy_ptr< uint64_t, 8 > primary)
Definition database.cpp:63
uint32_t _sysio_f32_trunc_i32u(float) const
uint32_t get_blockchain_parameters_packed(legacy_span< char > packed_blockchain_parameters) const
int32_t db_idx_double_previous(int32_t iterator, legacy_ptr< uint64_t > primary)
Definition database.cpp:221
int32_t db_idx256_next(int32_t iterator, legacy_ptr< uint64_t > primary)
Definition database.cpp:178
int32_t db_idx_double_lowerbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< float64_t, 8 > secondary, legacy_ptr< uint64_t, 8 > primary)
Definition database.cpp:203
int32_t db_idx256_upperbound(uint64_t code, uint64_t scope, uint64_t table, legacy_span< uint128_t, 16 > data, legacy_ptr< uint64_t, 8 > primary)
Definition database.cpp:165
int32_t db_idx64_end(uint64_t code, uint64_t scope, uint64_t table)
Definition database.cpp:69
void __floatunsitf(legacy_ptr< float128_t >, uint32_t) const
int32_t db_idx_long_double_previous(int32_t iterator, legacy_ptr< uint64_t > primary)
Definition database.cpp:261
bool is_account(account_name account) const
int32_t db_idx_double_find_primary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< float64_t > secondary, uint64_t primary)
Definition database.cpp:200
bool check_permission_authorization(account_name account, permission_name permission, legacy_span< const char > pubkeys_data, legacy_span< const char > perms_data, uint64_t delay_us) const
bool _sysio_f64_le(double, double) const
int32_t db_idx_long_double_store(uint64_t scope, uint64_t table, uint64_t payer, uint64_t id, legacy_ptr< const float128_t > secondary)
Definition database.cpp:228
float _sysio_ui64_to_f32(uint64_t) const
void __subtf3(legacy_ptr< float128_t >, uint64_t, uint64_t, uint64_t, uint64_t) const
void db_idx128_remove(int32_t iterator)
Definition database.cpp:89
void db_idx_long_double_remove(int32_t iterator)
Definition database.cpp:234
void __fixunssfti(legacy_ptr< uint128_t >, float) const
uint32_t __fixunstfsi(uint64_t, uint64_t) const
bool _sysio_f32_lt(float, float) const
int32_t db_store_i64(uint64_t scope, uint64_t table, uint64_t payer, uint64_t id, legacy_span< const char > buffer)
Definition database.cpp:8
int32_t __fixtfsi(uint64_t, uint64_t) const
double _sysio_f64_mul(double, double) const
void db_idx128_update(int32_t iterator, uint64_t payer, legacy_ptr< const uint128_t > secondary)
Definition database.cpp:86
void __lshrti3(legacy_ptr< int128_t >, uint64_t, uint64_t, uint32_t) const
int32_t db_idx128_upperbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< uint128_t, 16 > secondary, legacy_ptr< uint64_t, 8 > primary)
Definition database.cpp:104
int32_t get_active_producers(legacy_span< account_name > producers) const
Definition producer.cpp:5
float _sysio_f32_copysign(float, float) const
Definition softfloat.cpp:62
double _sysio_ui32_to_f64(uint32_t) const
int32_t get_context_free_data(uint32_t index, legacy_span< char > buffer) const
uint64_t _sysio_f64_trunc_i64u(double) const
int32_t db_idx64_find_primary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< uint64_t > secondary, uint64_t primary)
Definition database.cpp:54
void __lshlti3(legacy_ptr< int128_t >, uint64_t, uint64_t, uint32_t) const
bool _sysio_f64_ge(double, double) const
int32_t _sysio_f32_trunc_i32s(float) const
void __divtf3(legacy_ptr< float128_t >, uint64_t, uint64_t, uint64_t, uint64_t) const
int32_t db_idx_long_double_next(int32_t iterator, legacy_ptr< uint64_t > primary)
Definition database.cpp:258
void __floatditf(legacy_ptr< float128_t >, uint64_t) const
int32_t recover_key(legacy_ptr< const fc::sha256 > digest, legacy_span< const char > sig, legacy_span< char > pub) const
Definition crypto.cpp:47
float _sysio_ui32_to_f32(uint32_t) const
void __extenddftf2(legacy_ptr< float128_t >, double) const
void __fixtfti(legacy_ptr< int128_t >, uint64_t, uint64_t) const
void sha3(span< const char > data, span< char > hash_val, int32_t keccak) const
Definition crypto.cpp:237
int32_t get_action(uint32_t type, uint32_t index, legacy_span< char > buffer) const
void __umodti3(legacy_ptr< uint128_t >, uint64_t, uint64_t, uint64_t, uint64_t) const
int32_t is_feature_active(int64_t feature_name) const
void prints_l(legacy_span< const char > str)
Definition console.cpp:20
int32_t db_idx_long_double_find_primary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< float128_t > secondary, uint64_t primary)
Definition database.cpp:240
void __fixunsdfti(legacy_ptr< uint128_t >, double) const
double _sysio_f64_sqrt(double) const
double _sysio_i64_to_f64(int64_t) const
int32_t db_idx256_find_secondary(uint64_t code, uint64_t scope, uint64_t table, legacy_span< const uint128_t > data, legacy_ptr< uint64_t > primary)
Definition database.cpp:141
void set_action_return_value(span< const char > packed_blob)
Definition action.cpp:24
void set_privileged(account_name account, bool is_priv)
int32_t db_end_i64(uint64_t code, uint64_t scope, uint64_t table)
Definition database.cpp:35
void __negtf2(legacy_ptr< float128_t >, uint64_t, uint64_t) const
bool cancel_deferred(legacy_ptr< const uint128_t > val)
void __divti3(legacy_ptr< int128_t >, uint64_t, uint64_t, uint64_t, uint64_t) const
bool is_feature_activated(legacy_ptr< const digest_type > feature_digest) const
Definition system.cpp:15
int32_t __eqtf2(uint64_t, uint64_t, uint64_t, uint64_t) const
uint64_t _sysio_f32_trunc_i64u(float) const
int32_t db_idx_double_upperbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< float64_t, 8 > secondary, legacy_ptr< uint64_t, 8 > primary)
Definition database.cpp:209
int32_t db_next_i64(int32_t itr, legacy_ptr< uint64_t > primary)
Definition database.cpp:20
uint64_t __fixunstfdi(uint64_t, uint64_t) const
float _sysio_i64_to_f32(int64_t) const
int32_t db_idx64_next(int32_t iterator, legacy_ptr< uint64_t > primary)
Definition database.cpp:72
void sha1(legacy_span< const char > data, legacy_ptr< fc::sha1 > hash_val) const
Definition crypto.cpp:103
void require_auth(account_name account) const
void sysio_exit(int32_t code) const
Definition cf_system.cpp:48
void prints(null_terminated_ptr str)
Definition console.cpp:15
void db_idx_double_update(int32_t iterator, uint64_t payer, legacy_ptr< const float64_t > secondary)
Definition database.cpp:191
void require_auth2(account_name account, permission_name permission) const
bool _sysio_f64_eq(double, double) const
const apply_context & get_context() const
Definition interface.hpp:18
int32_t __cmptf2(uint64_t, uint64_t, uint64_t, uint64_t) const
bool _sysio_f32_gt(float, float) const
int64_t set_proposed_producers_ex(uint64_t packed_producer_format, legacy_span< const char > packed_producer_schedule)
void sha256(legacy_span< const char > data, legacy_ptr< fc::sha256 > hash_val) const
Definition crypto.cpp:107
double _sysio_f64_sub(double, double) const
void activate_feature(int64_t feature_name) const
int32_t alt_bn128_mul(span< const char > g1_point, span< const char > scalar, span< char > result) const
Definition crypto.cpp:137
double _sysio_ui64_to_f64(uint64_t) const
void set_parameters_packed(span< const char > packed_parameters)
Set the blockchain parameters in a flexible manner.
float _sysio_f32_add(float, float) const
Definition softfloat.cpp:10
int32_t db_upperbound_i64(uint64_t code, uint64_t scope, uint64_t table, uint64_t id)
Definition database.cpp:32
int32_t db_idx_double_store(uint64_t scope, uint64_t table, uint64_t payer, uint64_t id, legacy_ptr< const float64_t > secondary)
Definition database.cpp:188
int32_t db_idx_double_find_secondary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< const float64_t > secondary, legacy_ptr< uint64_t > primary)
Definition database.cpp:197
void db_update_i64(int32_t itr, uint64_t payer, legacy_span< const char > buffer)
Definition database.cpp:11
float _sysio_f32_sub(float, float) const
Definition softfloat.cpp:16
float _sysio_f64_demote(double) const
float _sysio_f32_div(float, float) const
Definition softfloat.cpp:22
double _sysio_f32_promote(float) const
int32_t db_get_i64(int32_t itr, legacy_span< char > buffer)
Definition database.cpp:17
int32_t db_idx256_store(uint64_t scope, uint64_t table, uint64_t payer, uint64_t id, legacy_span< const uint128_t > data)
Definition database.cpp:124
void set_wasm_parameters_packed(span< const char > packed_parameters)
double __floatuntidf(uint64_t, uint64_t) const
void sysio_assert_message(bool condition, legacy_span< const char > msg) const
Definition cf_system.cpp:18
double _sysio_f64_ceil(double) const
int32_t db_idx128_find_primary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< uint128_t > secondary, uint64_t primary)
Definition database.cpp:95
int32_t db_idx128_end(uint64_t code, uint64_t scope, uint64_t table)
Definition database.cpp:110
int32_t alt_bn128_add(span< const char > op1, span< const char > op2, span< char > result) const
Definition crypto.cpp:119
void * memset(memset_params) const
Definition memory.cpp:22
void send_deferred(legacy_ptr< const uint128_t > sender_id, account_name payer, legacy_span< const char > data, uint32_t replace_existing)
void printui128(legacy_ptr< const unsigned __int128 > val)
Definition console.cpp:66
void set_blockchain_parameters_packed(legacy_span< const char > packed_blockchain_parameters)
void __fixunstfti(legacy_ptr< uint128_t >, uint64_t, uint64_t) const
int32_t db_idx_double_end(uint64_t code, uint64_t scope, uint64_t table)
Definition database.cpp:215
uint32_t get_wasm_parameters_packed(span< char > packed_parameters, uint32_t max_version) const
int32_t db_idx64_previous(int32_t iterator, legacy_ptr< uint64_t > primary)
Definition database.cpp:75
void sha512(legacy_span< const char > data, legacy_ptr< fc::sha512 > hash_val) const
Definition crypto.cpp:111
double _sysio_f64_floor(double) const
float _sysio_i32_to_f32(int32_t) const
void get_resource_limits(account_name account, legacy_ptr< int64_t, 8 > ram_bytes, legacy_ptr< int64_t, 8 > net_weight, legacy_ptr< int64_t, 8 > cpu_weight) const
int32_t db_idx128_previous(int32_t iterator, legacy_ptr< uint64_t > primary)
Definition database.cpp:116
bool _sysio_f64_lt(double, double) const
int32_t blake2_f(uint32_t rounds, span< const char > state, span< const char > message, span< const char > t0_offset, span< const char > t1_offset, int32_t final, span< char > result) const
Definition crypto.cpp:207
int32_t __netf2(uint64_t, uint64_t, uint64_t, uint64_t) const
bool _sysio_f32_le(float, float) const
void db_idx64_update(int32_t iterator, uint64_t payer, legacy_ptr< const uint64_t > secondary)
Definition database.cpp:45
bool _sysio_f64_gt(double, double) const
void * memmove(memcpy_params) const
Definition memory.cpp:11
int32_t db_idx64_store(uint64_t scope, uint64_t table, uint64_t payer, uint64_t id, legacy_ptr< const uint64_t > secondary)
Definition database.cpp:42
void db_idx_double_remove(int32_t iterator)
Definition database.cpp:194
double __floattidf(uint64_t, uint64_t) const
uint32_t get_parameters_packed(span< const char > packed_parameter_ids, span< char > packed_parameters) const
Retrieve the blockchain config parameters.
int64_t _sysio_f32_trunc_i64s(float) const
int32_t db_idx256_previous(int32_t iterator, legacy_ptr< uint64_t > primary)
Definition database.cpp:181
float __trunctfsf2(uint64_t, uint64_t) const
void assert_sha512(legacy_span< const char > data, legacy_ptr< const fc::sha512 > hash_val) const
Definition crypto.cpp:93
int32_t db_lowerbound_i64(uint64_t code, uint64_t scope, uint64_t table, uint64_t id)
Definition database.cpp:29
int32_t k1_recover(span< const char > signature, span< const char > digest, span< char > pub) const
Definition crypto.cpp:256
void __modti3(legacy_ptr< int128_t >, uint64_t, uint64_t, uint64_t, uint64_t) const
int32_t db_idx128_find_secondary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< const uint128_t > secondary, legacy_ptr< uint64_t > primary)
Definition database.cpp:92
int32_t db_idx256_end(uint64_t code, uint64_t scope, uint64_t table)
Definition database.cpp:175
void db_idx64_remove(int32_t iterator)
Definition database.cpp:48
int32_t db_idx256_lowerbound(uint64_t code, uint64_t scope, uint64_t table, legacy_span< uint128_t, 16 > data, legacy_ptr< uint64_t, 8 > primary)
Definition database.cpp:155
void __extendsftf2(legacy_ptr< float128_t >, float) const
int64_t get_account_creation_time(account_name account) const
float _sysio_f32_max(float, float) const
Definition softfloat.cpp:48
int32_t db_idx_long_double_find_secondary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< const float128_t > secondary, legacy_ptr< uint64_t > primary)
Definition database.cpp:237
void __multf3(legacy_ptr< float128_t >, uint64_t, uint64_t, uint64_t, uint64_t) const
int32_t memcmp(memcmp_params) const
Definition memory.cpp:16
void __floatsitf(legacy_ptr< float128_t >, int32_t) const
void assert_sha1(legacy_span< const char > data, legacy_ptr< const fc::sha1 > hash_val) const
Definition crypto.cpp:88
void __fixsfti(legacy_ptr< int128_t >, float) const
int64_t __fixtfdi(uint64_t, uint64_t) const
int32_t __letf2(uint64_t, uint64_t, uint64_t, uint64_t) const
bool _sysio_f32_ge(float, float) const
void db_idx256_update(int32_t iterator, uint64_t payer, legacy_span< const uint128_t > data)
Definition database.cpp:131
int32_t __gttf2(uint64_t, uint64_t, uint64_t, uint64_t) const
double __trunctfdf2(uint64_t, uint64_t) const
int32_t db_find_i64(uint64_t code, uint64_t scope, uint64_t table, uint64_t id)
Definition database.cpp:26
void db_idx_long_double_update(int32_t iterator, uint64_t payer, legacy_ptr< const float128_t > secondary)
Definition database.cpp:231
int32_t db_idx256_find_primary(uint64_t code, uint64_t scope, uint64_t table, legacy_span< uint128_t > data, uint64_t primary)
Definition database.cpp:148
double _sysio_f64_copysign(double, double) const
void __addtf3(legacy_ptr< float128_t >, uint64_t, uint64_t, uint64_t, uint64_t) const
int32_t read_transaction(legacy_span< char > data) const
bool has_auth(account_name account) const
double _sysio_f64_min(double, double) const
int32_t db_idx64_find_secondary(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< const uint64_t > secondary, legacy_ptr< uint64_t > primary)
Definition database.cpp:51
void assert_ripemd160(legacy_span< const char > data, legacy_ptr< const fc::ripemd160 > hash_val) const
Definition crypto.cpp:98
void printi128(legacy_ptr< const __int128 > val)
Definition console.cpp:43
void __ashrti3(legacy_ptr< int128_t >, uint64_t, uint64_t, uint32_t) const
double _sysio_f64_trunc(double) const
void db_idx256_remove(int32_t iterator)
Definition database.cpp:138
void ripemd160(legacy_span< const char > data, legacy_ptr< fc::ripemd160 > hash_val) const
Definition crypto.cpp:115
int32_t mod_exp(span< const char > base, span< const char > exp, span< const char > modulus, span< char > out) const
Definition crypto.cpp:167
void * memcpy(memcpy_params) const
Definition memory.cpp:4
int64_t get_permission_last_used(account_name account, permission_name permission) const
double _sysio_f64_max(double, double) const
bool _sysio_f32_ne(float, float) const
void set_resource_limits(account_name account, int64_t ram_bytes, int64_t net_weight, int64_t cpu_weight)
bool is_privileged(account_name account) const
void __multi3(legacy_ptr< int128_t >, uint64_t, uint64_t, uint64_t, uint64_t) const
int32_t _sysio_f64_trunc_i32s(double) const
void __fixdfti(legacy_ptr< int128_t >, double) const
int32_t __unordtf2(uint64_t, uint64_t, uint64_t, uint64_t) const
void sysio_assert_code(bool condition, uint64_t error_code) const
Definition cf_system.cpp:26
bool check_transaction_authorization(legacy_span< const char > trx_data, legacy_span< const char > pubkeys_data, legacy_span< const char > perms_data) const
uint32_t _sysio_f64_trunc_i32u(double) const
int32_t db_idx_double_next(int32_t iterator, legacy_ptr< uint64_t > primary)
Definition database.cpp:218
float _sysio_f32_min(float, float) const
Definition softfloat.cpp:34
int32_t db_idx128_lowerbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< uint128_t, 16 > secondary, legacy_ptr< uint64_t, 8 > primary)
Definition database.cpp:98
void send_inline(legacy_span< const char > data)
void require_recipient(account_name recipient)
int64_t set_proposed_producers(legacy_span< const char > packed_producer_schedule)
int32_t alt_bn128_pair(span< const char > g1_g2_pairs) const
Definition crypto.cpp:155
int32_t db_idx_long_double_upperbound(uint64_t code, uint64_t scope, uint64_t table, legacy_ptr< float128_t, 8 > secondary, legacy_ptr< uint64_t, 8 > primary)
Definition database.cpp:249
int32_t db_idx128_store(uint64_t scope, uint64_t table, uint64_t payer, uint64_t id, legacy_ptr< const uint128_t > secondary)
Definition database.cpp:83
bool _sysio_f32_eq(float, float) const
double _sysio_i32_to_f64(int32_t) const
double _sysio_f64_neg(double) const
int32_t db_idx_long_double_end(uint64_t code, uint64_t scope, uint64_t table)
Definition database.cpp:255
double _sysio_f64_nearest(double) const
void assert_sha256(legacy_span< const char > data, legacy_ptr< const fc::sha256 > hash_val) const
Definition crypto.cpp:83
void __udivti3(legacy_ptr< uint128_t >, uint64_t, uint64_t, uint64_t, uint64_t) const
int32_t __getf2(uint64_t, uint64_t, uint64_t, uint64_t) const
void sysio_assert(bool condition, null_terminated_ptr msg) const
Definition cf_system.cpp:10
bool _sysio_f64_ne(double, double) const
int32_t db_previous_i64(int32_t itr, legacy_ptr< uint64_t > primary)
Definition database.cpp:23
int32_t db_idx128_next(int32_t iterator, legacy_ptr< uint64_t > primary)
Definition database.cpp:113
void printqf(legacy_ptr< const float128_t > val)
Definition console.cpp:98
fc::sha256 digest(const T &value)
Definition digest.hpp:9
bytes signature
Definition pke.hpp:17
#define value
Definition pkcs11.h:157
schedule config_dir_name data_dir_name p2p_port http_port file_size name name keys peers producers(dont_start)) FC_REFLECT(testnet_def
signed __int64 int64_t
Definition stdint.h:135
unsigned int uint32_t
Definition stdint.h:126
signed int int32_t
Definition stdint.h:123
unsigned __int64 uint64_t
Definition stdint.h:136
Immutable except for fc::from_variant.
Definition name.hpp:43