Wire Sysio Wire Sysion 1.0.0
|
#include <interface.hpp>
Definition at line 13 of file interface.hpp.
|
inline |
Definition at line 15 of file interface.hpp.
void sysio::chain::webassembly::interface::__addtf3 | ( | legacy_ptr< float128_t > | ret, |
uint64_t | la, | ||
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 116 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__ashlti3 | ( | legacy_ptr< int128_t > | ret, |
uint64_t | low, | ||
uint64_t | high, | ||
uint32_t | shift ) const |
Definition at line 10 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__ashrti3 | ( | legacy_ptr< int128_t > | ret, |
uint64_t | low, | ||
uint64_t | high, | ||
uint32_t | shift ) const |
int sysio::chain::webassembly::interface::__cmptf2 | ( | uint64_t | la, |
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 245 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__divtf3 | ( | legacy_ptr< float128_t > | ret, |
uint64_t | la, | ||
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 131 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__divti3 | ( | legacy_ptr< int128_t > | ret, |
uint64_t | la, | ||
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 36 of file compiler_builtins.cpp.
int sysio::chain::webassembly::interface::__eqtf2 | ( | uint64_t | la, |
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 227 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__extenddftf2 | ( | legacy_ptr< float128_t > | ret, |
double | d ) const |
Definition at line 144 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__extendsftf2 | ( | legacy_ptr< float128_t > | ret, |
float | f ) const |
Definition at line 141 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__fixdfti | ( | legacy_ptr< int128_t > | ret, |
double | a ) const |
Definition at line 182 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__fixsfti | ( | legacy_ptr< int128_t > | ret, |
float | a ) const |
Definition at line 179 of file compiler_builtins.cpp.
Definition at line 159 of file compiler_builtins.cpp.
Definition at line 155 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__fixtfti | ( | legacy_ptr< int128_t > | ret, |
uint64_t | l, | ||
uint64_t | h ) const |
Definition at line 163 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__fixunsdfti | ( | legacy_ptr< uint128_t > | ret, |
double | a ) const |
Definition at line 188 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__fixunssfti | ( | legacy_ptr< uint128_t > | ret, |
float | a ) const |
Definition at line 185 of file compiler_builtins.cpp.
Definition at line 171 of file compiler_builtins.cpp.
Definition at line 167 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__fixunstfti | ( | legacy_ptr< uint128_t > | ret, |
uint64_t | l, | ||
uint64_t | h ) const |
Definition at line 175 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__floatditf | ( | legacy_ptr< float128_t > | ret, |
uint64_t | a ) const |
Definition at line 197 of file compiler_builtins.cpp.
double sysio::chain::webassembly::interface::__floatsidf | ( | int32_t | i | ) | const |
Definition at line 191 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__floatsitf | ( | legacy_ptr< float128_t > | ret, |
int32_t | i ) const |
Definition at line 194 of file compiler_builtins.cpp.
Definition at line 206 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__floatunditf | ( | legacy_ptr< float128_t > | ret, |
uint64_t | a ) const |
Definition at line 203 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__floatunsitf | ( | legacy_ptr< float128_t > | ret, |
uint32_t | i ) const |
Definition at line 200 of file compiler_builtins.cpp.
Definition at line 211 of file compiler_builtins.cpp.
int sysio::chain::webassembly::interface::__getf2 | ( | uint64_t | la, |
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 233 of file compiler_builtins.cpp.
int sysio::chain::webassembly::interface::__gttf2 | ( | uint64_t | la, |
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 236 of file compiler_builtins.cpp.
int sysio::chain::webassembly::interface::__letf2 | ( | uint64_t | la, |
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 239 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__lshlti3 | ( | legacy_ptr< int128_t > | ret, |
uint64_t | low, | ||
uint64_t | high, | ||
uint32_t | shift ) const |
Definition at line 24 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__lshrti3 | ( | legacy_ptr< int128_t > | ret, |
uint64_t | low, | ||
uint64_t | high, | ||
uint32_t | shift ) const |
Definition at line 30 of file compiler_builtins.cpp.
int sysio::chain::webassembly::interface::__lttf2 | ( | uint64_t | la, |
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 242 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__modti3 | ( | legacy_ptr< int128_t > | ret, |
uint64_t | la, | ||
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 83 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__multf3 | ( | legacy_ptr< float128_t > | ret, |
uint64_t | la, | ||
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 126 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__multi3 | ( | legacy_ptr< int128_t > | ret, |
uint64_t | la, | ||
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 69 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__negtf2 | ( | legacy_ptr< float128_t > | ret, |
uint64_t | la, | ||
uint64_t | ha ) const |
Definition at line 136 of file compiler_builtins.cpp.
int sysio::chain::webassembly::interface::__netf2 | ( | uint64_t | la, |
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 230 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__subtf3 | ( | legacy_ptr< float128_t > | ret, |
uint64_t | la, | ||
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 121 of file compiler_builtins.cpp.
Definition at line 147 of file compiler_builtins.cpp.
Definition at line 151 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__udivti3 | ( | legacy_ptr< uint128_t > | ret, |
uint64_t | la, | ||
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 53 of file compiler_builtins.cpp.
void sysio::chain::webassembly::interface::__umodti3 | ( | legacy_ptr< uint128_t > | ret, |
uint64_t | la, | ||
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 99 of file compiler_builtins.cpp.
int sysio::chain::webassembly::interface::__unordtf2 | ( | uint64_t | la, |
uint64_t | ha, | ||
uint64_t | lb, | ||
uint64_t | hb ) const |
Definition at line 248 of file compiler_builtins.cpp.
float sysio::chain::webassembly::interface::_sysio_f32_abs | ( | float | af | ) | const |
Definition at line 71 of file softfloat.cpp.
float sysio::chain::webassembly::interface::_sysio_f32_add | ( | float | a, |
float | b ) const |
float sysio::chain::webassembly::interface::_sysio_f32_ceil | ( | float | af | ) | const |
Definition at line 88 of file softfloat.cpp.
float sysio::chain::webassembly::interface::_sysio_f32_copysign | ( | float | af, |
float | bf ) const |
float sysio::chain::webassembly::interface::_sysio_f32_div | ( | float | a, |
float | b ) const |
bool sysio::chain::webassembly::interface::_sysio_f32_eq | ( | float | a, |
float | b ) const |
float sysio::chain::webassembly::interface::_sysio_f32_floor | ( | float | af | ) | const |
bool sysio::chain::webassembly::interface::_sysio_f32_ge | ( | float | af, |
float | bf ) const |
Definition at line 175 of file softfloat.cpp.
bool sysio::chain::webassembly::interface::_sysio_f32_gt | ( | float | af, |
float | bf ) const |
Definition at line 166 of file softfloat.cpp.
bool sysio::chain::webassembly::interface::_sysio_f32_le | ( | float | a, |
float | b ) const |
Definition at line 165 of file softfloat.cpp.
bool sysio::chain::webassembly::interface::_sysio_f32_lt | ( | float | a, |
float | b ) const |
Definition at line 164 of file softfloat.cpp.
float sysio::chain::webassembly::interface::_sysio_f32_max | ( | float | af, |
float | bf ) const |
Definition at line 48 of file softfloat.cpp.
float sysio::chain::webassembly::interface::_sysio_f32_min | ( | float | af, |
float | bf ) const |
Definition at line 34 of file softfloat.cpp.
float sysio::chain::webassembly::interface::_sysio_f32_mul | ( | float | a, |
float | b ) const |
bool sysio::chain::webassembly::interface::_sysio_f32_ne | ( | float | a, |
float | b ) const |
float sysio::chain::webassembly::interface::_sysio_f32_nearest | ( | float | af | ) | const |
Definition at line 145 of file softfloat.cpp.
float sysio::chain::webassembly::interface::_sysio_f32_neg | ( | float | af | ) | const |
Definition at line 76 of file softfloat.cpp.
double sysio::chain::webassembly::interface::_sysio_f32_promote | ( | float | a | ) | const |
float sysio::chain::webassembly::interface::_sysio_f32_sqrt | ( | float | a | ) | const |
float sysio::chain::webassembly::interface::_sysio_f32_sub | ( | float | a, |
float | b ) const |
float sysio::chain::webassembly::interface::_sysio_f32_trunc | ( | float | af | ) | const |
Definition at line 131 of file softfloat.cpp.
int32_t sysio::chain::webassembly::interface::_sysio_f32_trunc_i32s | ( | float | af | ) | const |
Definition at line 361 of file softfloat.cpp.
uint32_t sysio::chain::webassembly::interface::_sysio_f32_trunc_i32u | ( | float | af | ) | const |
Definition at line 378 of file softfloat.cpp.
int64_t sysio::chain::webassembly::interface::_sysio_f32_trunc_i64s | ( | float | af | ) | const |
Definition at line 394 of file softfloat.cpp.
uint64_t sysio::chain::webassembly::interface::_sysio_f32_trunc_i64u | ( | float | af | ) | const |
Definition at line 411 of file softfloat.cpp.
double sysio::chain::webassembly::interface::_sysio_f64_abs | ( | double | af | ) | const |
Definition at line 234 of file softfloat.cpp.
double sysio::chain::webassembly::interface::_sysio_f64_add | ( | double | a, |
double | b ) const |
double sysio::chain::webassembly::interface::_sysio_f64_ceil | ( | double | af | ) | const |
Definition at line 251 of file softfloat.cpp.
double sysio::chain::webassembly::interface::_sysio_f64_copysign | ( | double | af, |
double | bf ) const |
float sysio::chain::webassembly::interface::_sysio_f64_demote | ( | double | a | ) | const |
double sysio::chain::webassembly::interface::_sysio_f64_div | ( | double | a, |
double | b ) const |
bool sysio::chain::webassembly::interface::_sysio_f64_eq | ( | double | a, |
double | b ) const |
double sysio::chain::webassembly::interface::_sysio_f64_floor | ( | double | af | ) | const |
Definition at line 274 of file softfloat.cpp.
bool sysio::chain::webassembly::interface::_sysio_f64_ge | ( | double | af, |
double | bf ) const |
Definition at line 344 of file softfloat.cpp.
bool sysio::chain::webassembly::interface::_sysio_f64_gt | ( | double | af, |
double | bf ) const |
Definition at line 335 of file softfloat.cpp.
bool sysio::chain::webassembly::interface::_sysio_f64_le | ( | double | a, |
double | b ) const |
Definition at line 334 of file softfloat.cpp.
bool sysio::chain::webassembly::interface::_sysio_f64_lt | ( | double | a, |
double | b ) const |
Definition at line 333 of file softfloat.cpp.
double sysio::chain::webassembly::interface::_sysio_f64_max | ( | double | af, |
double | bf ) const |
Definition at line 213 of file softfloat.cpp.
double sysio::chain::webassembly::interface::_sysio_f64_min | ( | double | af, |
double | bf ) const |
Definition at line 202 of file softfloat.cpp.
double sysio::chain::webassembly::interface::_sysio_f64_mul | ( | double | a, |
double | b ) const |
bool sysio::chain::webassembly::interface::_sysio_f64_ne | ( | double | a, |
double | b ) const |
double sysio::chain::webassembly::interface::_sysio_f64_nearest | ( | double | af | ) | const |
Definition at line 314 of file softfloat.cpp.
double sysio::chain::webassembly::interface::_sysio_f64_neg | ( | double | af | ) | const |
double sysio::chain::webassembly::interface::_sysio_f64_sqrt | ( | double | a | ) | const |
double sysio::chain::webassembly::interface::_sysio_f64_sub | ( | double | a, |
double | b ) const |
double sysio::chain::webassembly::interface::_sysio_f64_trunc | ( | double | af | ) | const |
Definition at line 299 of file softfloat.cpp.
int32_t sysio::chain::webassembly::interface::_sysio_f64_trunc_i32s | ( | double | af | ) | const |
Definition at line 370 of file softfloat.cpp.
uint32_t sysio::chain::webassembly::interface::_sysio_f64_trunc_i32u | ( | double | af | ) | const |
Definition at line 386 of file softfloat.cpp.
int64_t sysio::chain::webassembly::interface::_sysio_f64_trunc_i64s | ( | double | af | ) | const |
Definition at line 402 of file softfloat.cpp.
uint64_t sysio::chain::webassembly::interface::_sysio_f64_trunc_i64u | ( | double | af | ) | const |
Definition at line 419 of file softfloat.cpp.
float sysio::chain::webassembly::interface::_sysio_i32_to_f32 | ( | int32_t | a | ) | const |
double sysio::chain::webassembly::interface::_sysio_i32_to_f64 | ( | int32_t | a | ) | const |
float sysio::chain::webassembly::interface::_sysio_i64_to_f32 | ( | int64_t | a | ) | const |
double sysio::chain::webassembly::interface::_sysio_i64_to_f64 | ( | int64_t | a | ) | const |
float sysio::chain::webassembly::interface::_sysio_ui32_to_f32 | ( | uint32_t | a | ) | const |
double sysio::chain::webassembly::interface::_sysio_ui32_to_f64 | ( | uint32_t | a | ) | const |
float sysio::chain::webassembly::interface::_sysio_ui64_to_f32 | ( | uint64_t | a | ) | const |
double sysio::chain::webassembly::interface::_sysio_ui64_to_f64 | ( | uint64_t | a | ) | const |
void sysio::chain::webassembly::interface::abort | ( | ) | const |
Aborts processing of this action and unwinds all pending changes.
Definition at line 6 of file cf_system.cpp.
int32_t sysio::chain::webassembly::interface::action_data_size | ( | ) | const |
Get the length of the current action's data field. This method is useful for dynamically sized actions.
Definition at line 16 of file action.cpp.
void sysio::chain::webassembly::interface::activate_feature | ( | int64_t | feature_name | ) | const |
Activate a a consensus protocol upgrade.
feature_name | - 256-bit digest representing the feature to activate. |
Definition at line 15 of file privileged.cpp.
int32_t sysio::chain::webassembly::interface::alt_bn128_add | ( | span< const char > | op1, |
span< const char > | op2, | ||
span< char > | result ) const |
Host function for addition on the elliptic curve alt_bn128
op1 | - a span containing the first operand G1 point. | |
op2 | - a span containing the second operand G1 point. | |
[out] | result | - the result op1 + op2. |
Definition at line 119 of file crypto.cpp.
int32_t sysio::chain::webassembly::interface::alt_bn128_mul | ( | span< const char > | g1_point, |
span< const char > | scalar, | ||
span< char > | result ) const |
Host function for scalar multiplication on the elliptic curve alt_bn128
g1_point | - a span containing G1 point. | |
scalar | - a span containing the scalar. | |
[out] | result | - g1 * scalar. |
Definition at line 137 of file crypto.cpp.
int32_t sysio::chain::webassembly::interface::alt_bn128_pair | ( | span< const char > | g1_g2_pairs | ) | const |
Host function for optimal ate pairing check on the elliptic curve alt_bn128
g1_g2_pairs | - a span containing pairs of G1,G2 points. (2 * 32 bytes) + (2 * 64 bytes) |
Definition at line 155 of file crypto.cpp.
void sysio::chain::webassembly::interface::assert_recover_key | ( | legacy_ptr< const fc::sha256 > | digest, |
legacy_span< const char > | sig, | ||
legacy_span< const char > | pub ) const |
Tests a given public key with the recovered public key from digest and signature.
digest | - digest of the message that was signed. |
sig | - signature. |
pub | - public key. |
Definition at line 23 of file crypto.cpp.
void sysio::chain::webassembly::interface::assert_ripemd160 | ( | legacy_span< const char > | data, |
legacy_ptr< const fc::ripemd160 > | hash_val ) const |
Tests if the ripemd160 hash generated from data matches the provided digest.
data | - a span containing the data you want to hash. |
hash_val | - digest to compare to. |
Definition at line 98 of file crypto.cpp.
void sysio::chain::webassembly::interface::assert_sha1 | ( | legacy_span< const char > | data, |
legacy_ptr< const fc::sha1 > | hash_val ) const |
Tests if the sha1 hash generated from data matches the provided digest.
data | - a span containing the data you want to hash. |
hash_val | - digest to compare to. |
Definition at line 88 of file crypto.cpp.
void sysio::chain::webassembly::interface::assert_sha256 | ( | legacy_span< const char > | data, |
legacy_ptr< const fc::sha256 > | hash_val ) const |
Tests if the sha256 hash generated from data matches the provided digest.
data | - a span containing the data you want to hash. |
hash_val | - digest to compare to. |
Definition at line 83 of file crypto.cpp.
void sysio::chain::webassembly::interface::assert_sha512 | ( | legacy_span< const char > | data, |
legacy_ptr< const fc::sha512 > | hash_val ) const |
Tests if the sha512 hash generated from data matches the provided digest.
data | - a span containing the data you want to hash. |
hash_val | - digest to compare to. |
Definition at line 93 of file crypto.cpp.
int32_t sysio::chain::webassembly::interface::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 |
BLAKE2 compression function F
https://eips.ethereum.org/EIPS/eip-152 Precompiled contract which implements the compression function F used in the BLAKE2 cryptographic hashing algorithm.
rounds | - the number of rounds - 32-bit unsigned big-endian word | |
state | - a span containing the state vector - 8 unsigned 64-bit little-endian words | |
message | - a span containing the message block vector - 16 unsigned 64-bit little-endian words | |
t0_offset | - offset counters - unsigned 64-bit little-endian word | |
t1_offset | - offset counters - unsigned 64-bit little-endian word | |
final | - the final block indicator flag - (1-true, all other values == false) | |
[out] | result | - the result |
Definition at line 207 of file crypto.cpp.
bool sysio::chain::webassembly::interface::cancel_deferred | ( | legacy_ptr< const uint128_t > | val | ) |
Cancels a deferred transaction.
val | - The id of the sender. |
false | if transaction was not found. |
true | if transaction was canceled. |
Definition at line 32 of file transaction.cpp.
bool sysio::chain::webassembly::interface::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 |
Checks if a permission is authorized by a provided delay and a provided set of keys and permissions.
account | - the account owner of the permission. |
permission | - the name of the permission to check for authorization. |
pubkeys_data | - serialized vector of provided public keys. |
perms_data | - serialized vector of provided permissions (empty permission name acts as wildcard). |
delay_us | - the provided delay in microseconds (cannot exceed INT64_MAX) |
true | if permission is authorized. |
false | otherwise. |
Definition at line 48 of file permission.cpp.
bool sysio::chain::webassembly::interface::check_transaction_authorization | ( | legacy_span< const char > | trx_data, |
legacy_span< const char > | pubkeys_data, | ||
legacy_span< const char > | perms_data ) const |
Checks if a transaction is authorized by a provided set of keys and permissions.
trx_data | - serialized transaction. |
pubkeys_data | - serialized vector of provided public keys. |
perms_data | - serialized vector of provided permissions (empty permission name acts as wildcard). |
true | if transaction is authorized. |
false | otherwise. |
Definition at line 21 of file permission.cpp.
name sysio::chain::webassembly::interface::current_receiver | ( | ) | const |
Get the current receiver of the action.
Definition at line 20 of file action.cpp.
uint64_t sysio::chain::webassembly::interface::current_time | ( | ) | const |
Returns the time in microseconds from 1970 of the current block.
Definition at line 7 of file system.cpp.
int32_t sysio::chain::webassembly::interface::db_end_i64 | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table ) |
Get an iterator representing just-past-the-end of the last table row of a primary 64-bit integer index table.
code | - the name of the owner of the table. |
scope | - the scope where the table resides. |
table | - the table name. |
Definition at line 35 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_find_i64 | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
uint64_t | id ) |
Find a table row in a primary 64-bit integer index table by primary key.
code | - the name of the owner of the table. |
scope | - the scope where the table resides. |
table | - the table name. |
id | - the primary key of the record to look up. |
Definition at line 26 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_get_i64 | ( | int32_t | itr, |
legacy_span< char > | buffer ) |
Get a record in a primary 64-bit integer index table.
itr | - the iterator to the table row containing the record to retrieve. | |
[out] | buffer | - the buffer which will be filled with the retrieved record. |
itr
points to an existing table row in the table. buffer
will be filled with the retrieved record (truncated to the first len
bytes if necessary). Definition at line 17 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx128_end | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table ) |
Get an end iterator representing just-past-the-end of the last table row of a secondary 128-bit integer index table.
code | - the name of the owner of the table. |
scope | - the scope where the table resides. |
table | - the table name. |
Definition at line 110 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx128_find_primary | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_ptr< uint128_t > | secondary, | ||
uint64_t | primary ) |
Find a table row in a secondary 128-bit integer index table by primary key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | secondary | - pointer to a 'uint128_t' variable which will have its value set to the secondary key of the found table row. |
primary | - the primary key of the table row to look up. |
primary
or the end iterator of the table if the table row could not be found. *secondary
will be replaced with the secondary key of the found table row. Definition at line 95 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx128_find_secondary | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_ptr< const uint128_t > | secondary, | ||
legacy_ptr< uint64_t > | primary ) |
Find a table row in a secondary 128-bit integer index table by secondary key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
secondary | - the pointer to the secondary index key. | |
[out] | primary | - pointer to a 'uint64_t' variable which will have its value set to the primary key of the found table row. |
*secondary
or the end iterator of the table if the table row could not be found. *primary
will be replaced with the primary key of the found table row. Definition at line 92 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx128_lowerbound | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_ptr< uint128_t, 16 > | secondary, | ||
legacy_ptr< uint64_t, 8 > | primary ) |
Find the table row in a secondary 128-bit integer index table that matches the lowerbound condition for a given secondary key. Lowerbound secondary index is the first secondary index which key is <= the given secondary index key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | secondary | - pointer to secondary key first used to determine the lowerbound and which is then replaced with the secondary key of the found table row. |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the found table row. |
*secondary
will be replaced with the secondary key of the found table row. *primary
will be replaced with the primary key of the found table row. Definition at line 98 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx128_next | ( | int32_t | iterator, |
legacy_ptr< uint64_t > | primary ) |
Find the table row following the referenced table row in a secondary 128-bit integer index table.
iterator | - the iterator to the referenced table row. | |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the next table row. |
iterator
points to an existing table row in the table. *primary
will be replaced with the primary key of the table row following the referenced table row if it exists, otherwise *primary
will be left untouched. Definition at line 113 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx128_previous | ( | int32_t | iterator, |
legacy_ptr< uint64_t > | primary ) |
Find the table row preceding the referenced table row in a secondary 128-bit integer index table.
iterator | - the iterator to the referenced table row. | |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the previous table row. |
iterator
points to an existing table row in the table or it is the end iterator of the table. *primary
will be replaced with the primary key of the table row preceding the referenced table row if it exists, otherwise *primary
will be left untouched. Definition at line 116 of file database.cpp.
void sysio::chain::webassembly::interface::db_idx128_remove | ( | int32_t | iterator | ) |
Remove a table row from a secondary 128-bit integer index table.
iterator | - iterator to the table row to remove. |
iterator
points to an existing table row in the table. iterator
is removed and the associated storage costs are refunded to the payer. Definition at line 89 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx128_store | ( | uint64_t | scope, |
uint64_t | table, | ||
uint64_t | payer, | ||
uint64_t | id, | ||
legacy_ptr< const uint128_t > | secondary ) |
Store an association of a 128-bit integer secondary key to a primary key in a secondary 128-bit integer index table.
scope | - the scope where the table resides (implied to be within the code of the current receiver). |
table | - the table name. |
payer | - the account that is paying for this storage. |
id | - the primary key to which to associate the secondary key. |
secondary | - the pointer to the key of the secondary index to store. |
id
and secondary key *secondary
is created in the secondary 128-bit integer index table.interface for uint128_t secondary
Definition at line 83 of file database.cpp.
void sysio::chain::webassembly::interface::db_idx128_update | ( | int32_t | iterator, |
uint64_t | payer, | ||
legacy_ptr< const uint128_t > | secondary ) |
Update an association for a 128-bit integer secondary key to a primary key in a secondary 128-bit integer index table.
iterator | - the iterator to the table row containing the secondary key association to update. |
payer | - the account that pays for the storage costs. |
secondary | - pointer to the new secondary key that will replace the existing one of the association. |
iterator
points to an existing table row in the table. iterator
is replaced by *secondary
. Definition at line 86 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx128_upperbound | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_ptr< uint128_t, 16 > | secondary, | ||
legacy_ptr< uint64_t, 8 > | primary ) |
Find the table row in a secondary 128-bit integer index table that matches the upperbound condition for a given secondary key. The table row that matches the upperbound condition is the first table row in the table with the lowest secondary key that is > the given key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | secondary | - pointer to secondary key first used to determine the upperbound and which is then replaced with the secondary key of the found table row. |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the found table row. |
Definition at line 104 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx256_end | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table ) |
Get an end iterator representing just-past-the-end of the last table row of a secondary 256-bit integer index table.
256-
code | - the name of the owner of the table. |
scope | - the scope where the table resides. |
table | - the table name. |
Definition at line 175 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx256_find_primary | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_span< uint128_t > | data, | ||
uint64_t | primary ) |
Find a table row in a secondary 256-bit integer index table by primary key.
256-
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | data | - pointer to the array of 2 uint128_t integers which will act as the buffer to hold the retrieved secondary key of the found table row. |
primary | - the primary key of the table row to look up. |
data
or the end iterator of the table if the table row could not be found. data
will be replaced with the secondary key of the found table row. Definition at line 148 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx256_find_secondary | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_span< const uint128_t > | data, | ||
legacy_ptr< uint64_t > | primary ) |
Find a table row in a secondary 256-bit integer index table by secondary key.
256-
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
data | - pointer to the secondary key data (which is stored as an array of 2 uint128_t integers) used to lookup the table row. | |
[out] | primary | - pointer to a 'uint64_t' variable which will have its value set to the primary key of the found table row. |
*primary
will be replaced with the primary key of the found table row. Definition at line 141 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx256_lowerbound | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_span< uint128_t, 16 > | data, | ||
legacy_ptr< uint64_t, 8 > | primary ) |
Find the table row in a secondary 256-bit integer index table that matches the lowerbound condition for a given secondary key. Lowerbound secondary index is the first secondary index which key is <= the given secondary index key.
256-
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | data | - pointer to the secondary key data (which is stored as an array of 2 uint128_t integers) first used to determine the lowerbound and which is then replaced with the secondary key of the found table row. |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the found table row. |
data
will be replaced with the secondary key of the found table row. *primary
will be replaced with the primary key of the found table row. Definition at line 155 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx256_next | ( | int32_t | iterator, |
legacy_ptr< uint64_t > | primary ) |
Find the table row following the referenced table row in a secondary 256-bit integer index table.
256-
iterator | - the iterator to the referenced table row. | |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the next table row. |
iterator
points to an existing table row in the table. *primary
will be replaced with the primary key of the table row following the referenced table row if it exists, otherwise *primary
will be left untouched. Definition at line 178 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx256_previous | ( | int32_t | iterator, |
legacy_ptr< uint64_t > | primary ) |
Find the table row preceding the referenced table row in a secondary 256-bit integer index table.
256-
iterator | - the iterator to the referenced table row. | |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the previous table row. |
iterator
points to an existing table row in the table or it is the end iterator of the table. *primary
will be replaced with the primary key of the table row preceding the referenced table row if it exists, otherwise *primary
will be left untouched. Definition at line 181 of file database.cpp.
void sysio::chain::webassembly::interface::db_idx256_remove | ( | int32_t | iterator | ) |
Remove a table row from a secondary 256-bit integer index table.
256-
iterator | - iterator to the table row to remove. |
iterator
points to an existing table row in the table. iterator
is removed and the associated storage costs are refunded to the payer. Definition at line 138 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx256_store | ( | uint64_t | scope, |
uint64_t | table, | ||
uint64_t | payer, | ||
uint64_t | id, | ||
legacy_span< const uint128_t > | data ) |
Store an association of a 256-bit integer secondary key to a primary key in a secondary 256-bit integer index table.
256-
scope | - the scope where the table resides (implied to be within the code of the current receiver). |
table | - the table name. |
payer | - the account that is paying for this storage. |
id | - the primary key to which to associate the secondary key. |
data | - pointer to the secondary key data stored as an array of 2 uint128_t integers. |
id
and secondary key *data
is created in the secondary 256-bit integer index table. Definition at line 124 of file database.cpp.
void sysio::chain::webassembly::interface::db_idx256_update | ( | int32_t | iterator, |
uint64_t | payer, | ||
legacy_span< const uint128_t > | data ) |
Update an association for a 256-bit integer secondary key to a primary key in a secondary 256-bit integer index table.
256-
iterator | - the iterator to the table row containing the secondary key association to update. |
payer | - the account that pays for the storage costs. |
data | - pointer to the new secondary key data (which is stored as an array of 2 uint128_t integers) that will replace the existing one of the association. |
iterator
points to an existing table row in the table. iterator
is replaced by the specified secondary key. Definition at line 131 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx256_upperbound | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_span< uint128_t, 16 > | data, | ||
legacy_ptr< uint64_t, 8 > | primary ) |
Find the table row in a secondary 256-bit integer index table that matches the upperbound condition for a given secondary key. The table row that matches the upperbound condition is the first table row in the table with the lowest secondary key that is > the given key.
256-
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | data | - pointer to the secondary key data (which is stored as an array of 2 uint128_t integers) first used to determine the upperbound and which is then replaced with the secondary key of the found table row. |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the found table row. |
data
will be filled with the secondary key of the found table row. *primary
will be replaced with the primary key of the found table row. Definition at line 165 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx64_end | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table ) |
Get an end iterator representing just-past-the-end of the last table row of a secondary 64-bit integer index table.
code | - the name of the owner of the table. |
scope | - the scope where the table resides. |
table | - the table name. |
Definition at line 69 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx64_find_primary | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_ptr< uint64_t > | secondary, | ||
uint64_t | primary ) |
Find a table row in a secondary 64-bit integer index table by primary key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | secondary | - pointer to a 'uint64_t' variable which will have its value set to the secondary key of the found table row. |
primary | - the primary key of the table row to look up. |
primary
or the end iterator of the table if the table row could not be found. *secondary
will be replaced with the secondary key of the found table row. Definition at line 54 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx64_find_secondary | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_ptr< const uint64_t > | secondary, | ||
legacy_ptr< uint64_t > | primary ) |
Find a table row in a secondary 64-bit integer index table by secondary key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
secondary | - the pointer to the secondary index key. | |
[out] | primary | - pointer to a 'uint64_t' variable which will have its value set to the primary key of the found table row. |
*secondary
or the end iterator of the table if the table row could not be found. *primary
will be replaced with the primary key of the found table row. Definition at line 51 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx64_lowerbound | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_ptr< uint64_t, 8 > | secondary, | ||
legacy_ptr< uint64_t, 8 > | primary ) |
Find the table row in a secondary 64-bit integer index table that matches the lowerbound condition for a given secondary key. Lowerbound secondary index is the first secondary index which key is <= the given secondary index key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | secondary | - pointer to secondary key first used to determine the lowerbound and which is then replaced with the secondary key of the found table row. |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the found table row. |
*secondary
will be replaced with the secondary key of the found table row. *primary
will be replaced with the primary key of the found table row. Definition at line 57 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx64_next | ( | int32_t | iterator, |
legacy_ptr< uint64_t > | primary ) |
Find the table row following the referenced table row in a secondary 64-bit integer index table.
iterator | - the iterator to the referenced table row. | |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the next table row. |
iterator
points to an existing table row in the table. *primary
will be replaced with the primary key of the table row following the referenced table row if it exists, otherwise *primary
will be left untouched. Definition at line 72 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx64_previous | ( | int32_t | iterator, |
legacy_ptr< uint64_t > | primary ) |
Find the table row preceding the referenced table row in a secondary 64-bit integer index table.
iterator | - the iterator to the referenced table row. | |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the previous table row. |
iterator
points to an existing table row in the table or it is the end iterator of the table. *primary
will be replaced with the primary key of the table row preceding the referenced table row if it exists, otherwise *primary
will be left untouched. Definition at line 75 of file database.cpp.
void sysio::chain::webassembly::interface::db_idx64_remove | ( | int32_t | iterator | ) |
Remove a table row from a secondary 64-bit integer index table.
iterator | - iterator to the table row to remove. |
iterator
points to an existing table row in the table. iterator
is removed and the associated storage costs are refunded to the payer. Definition at line 48 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx64_store | ( | uint64_t | scope, |
uint64_t | table, | ||
uint64_t | payer, | ||
uint64_t | id, | ||
legacy_ptr< const uint64_t > | secondary ) |
Store an association of a 64-bit integer secondary key to a primary key in a secondary 64-bit integer index table.
scope | - the scope where the table resides (implied to be within the code of the current receiver). |
table | - the table name. |
payer | - the account that is paying for this storage. |
id | - the primary key to which to associate the secondary key. |
secondary | - the pointer to the key of the secondary index to store. |
id
and secondary key *secondary
is created in the secondary 64-bit integer index table.interface for uint64_t secondary
Definition at line 42 of file database.cpp.
void sysio::chain::webassembly::interface::db_idx64_update | ( | int32_t | iterator, |
uint64_t | payer, | ||
legacy_ptr< const uint64_t > | secondary ) |
Update an association for a 64-bit integer secondary key to a primary key in a secondary 64-bit integer index table.
iterator | - the iterator to the table row containing the secondary key association to update. |
payer | - the account that pays for the storage costs. |
secondary | - pointer to the new secondary key that will replace the existing one of the association. |
iterator
points to an existing table row in the table. iterator
is replaced by *secondary
. Definition at line 45 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx64_upperbound | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_ptr< uint64_t, 8 > | secondary, | ||
legacy_ptr< uint64_t, 8 > | primary ) |
Find the table row in a secondary 64-bit integer index table that matches the upperbound condition for a given secondary key. The table row that matches the upperbound condition is the first table row in the table with the lowest secondary key that is > the given key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | secondary | - pointer to secondary key first used to determine the upperbound and which is then replaced with the secondary key of the found table row. |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the found table row. |
Definition at line 63 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx_double_end | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table ) |
Get an end iterator representing just-past-the-end of the last table row of a secondary double-precision floating-point index table.
code | - the name of the owner of the table. |
scope | - the scope where the table resides. |
table | - the table name. |
Definition at line 215 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx_double_find_primary | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_ptr< float64_t > | secondary, | ||
uint64_t | primary ) |
Find a table row in a secondary double-precision floating-point index table by primary key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | secondary | - pointer to a double variable which will have its value set to the secondary key of the found table row. |
primary | - the primary key of the table row to look up. |
secondary
or the end iterator of the table if the table row could not be found. secondary
will be replaced with the secondary key of the found table row. Definition at line 200 of file database.cpp.
int32_t sysio::chain::webassembly::interface::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 ) |
Find a table row in a secondary double-precision floating-point index table by secondary key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
secondary | - Pointer to secondary key used to lookup the table row. | |
[out] | primary | - pointer to a 'uint64_t' variable which will have its value set to the primary key of the found table row. |
*primary
will be replaced with the primary key of the found table row. Definition at line 197 of file database.cpp.
int32_t sysio::chain::webassembly::interface::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 ) |
Find the table row in a secondary double-precision floating-point index table that matches the lowerbound condition for a given secondary key. Lowerbound secondary index is the first secondary index which key is <= the given secondary index key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | secondary | - Pointer to secondary key first used to determine the lowerbound and which is then replaced with the secondary key of the found table row. |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the found table row. |
*secondary
will be replaced with the secondary key of the found table row. *primary
will be replaced with the primary key of the found table row. Definition at line 203 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx_double_next | ( | int32_t | iterator, |
legacy_ptr< uint64_t > | primary ) |
Find the table row following the referenced table row in a secondary double-precision floating-point index table.
iterator | - the iterator to the referenced table row. | |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the next table row. |
iterator
points to an existing table row in the table. *primary
will be replaced with the primary key of the table row following the referenced table row if it exists, otherwise *primary
will be left untouched. Definition at line 218 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx_double_previous | ( | int32_t | iterator, |
legacy_ptr< uint64_t > | primary ) |
Find the table row preceding the referenced table row in a secondary double-precision floating-point index table.
iterator | - the iterator to the referenced table row. | |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the previous table row. |
iterator
points to an existing table row in the table or it is the end iterator of the table. *primary
will be replaced with the primary key of the table row preceding the referenced table row if it exists, otherwise *primary
will be left untouched. Definition at line 221 of file database.cpp.
void sysio::chain::webassembly::interface::db_idx_double_remove | ( | int32_t | iterator | ) |
Remove a table row from a secondary double-precision floating-point index table.
iterator | - iterator to the table row to remove. |
iterator
points to an existing table row in the table. iterator
is removed and the associated storage costs are refunded to the payer. Definition at line 194 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx_double_store | ( | uint64_t | scope, |
uint64_t | table, | ||
uint64_t | payer, | ||
uint64_t | id, | ||
legacy_ptr< const float64_t > | secondary ) |
Store an association of a double-precision floating-point secondary key to a primary key in a secondary double-precision floating-point index table.
scope | - the scope where the table resides (implied to be within the code of the current receiver). |
table | - the table name. |
payer | - the account that is paying for this storage. |
id | - the primary key to which to associate the secondary key. |
secondary | - pointer to the secondary key. |
id
and secondary key *secondary
is created in the secondary double-precision floating-point index table.interface for double secondary
Definition at line 188 of file database.cpp.
void sysio::chain::webassembly::interface::db_idx_double_update | ( | int32_t | iterator, |
uint64_t | payer, | ||
legacy_ptr< const float64_t > | secondary ) |
Update an association for a double-precision floating-point secondary key to a primary key in a secondary double-precision floating-point index table.
iterator | - the iterator to the table row containing the secondary key association to update. |
payer | - the account that pays for the storage costs. |
secondary | - pointer to the new secondary key that will replace the existing one of the association. |
iterator
points to an existing table row in the table. iterator
is replaced by the specified secondary key. Definition at line 191 of file database.cpp.
int32_t sysio::chain::webassembly::interface::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 ) |
Find the table row in a secondary double-precision floating-point index table that matches the upperbound condition for a given secondary key. The table row that matches the upperbound condition is the first table row in the table with the lowest secondary key that is > the given key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | secondary | - pointer to secondary key first used to determine the upperbound and which is then replaced with the secondary key of the found table row. |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the found table row. |
*secondary
will be filled with the secondary key of the found table row. *primary
will be replaced with the primary key of the found table row. Definition at line 209 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx_long_double_end | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table ) |
Get an end iterator representing just-past-the-end of the last table row of a secondary quadruple-precision floating-point index table.
code | - the name of the owner of the table. |
scope | - the scope where the table resides. |
table | - the table name. |
Definition at line 255 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx_long_double_find_primary | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
legacy_ptr< float128_t > | secondary, | ||
uint64_t | primary ) |
Find a table row in a secondary double-precision floating-point index table by primary key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | secondary | - pointer to a long double variable which will have its value set to the secondary key of the found table row. |
primary | - the primary key of the table row to look up. |
secondary
or the end iterator of the table if the table row could not be found. secondary
will be replaced with the secondary key of the found table row. Definition at line 240 of file database.cpp.
int32_t sysio::chain::webassembly::interface::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 ) |
Find a table row in a secondary quadruple-precision floating-point index table by secondary key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
secondary | - Pointer to secondary key used to lookup the table row. | |
[out] | primary | - pointer to a 'uint64_t' variable which will have its value set to the primary key of the found table row. |
*primary
will be replaced with the primary key of the found table row. Definition at line 237 of file database.cpp.
int32_t sysio::chain::webassembly::interface::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 ) |
Find the table row in a secondary quadruple-precision floating-point index table that matches the lowerbound condition for a given secondary key. Lowerbound secondary index is the first secondary index which key is <= the given secondary index key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | secondary | - Pointer to secondary key first used to determine the lowerbound and which is then replaced with the secondary key of the found table row. |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the found table row. |
*secondary
will be replaced with the secondary key of the found table row. *primary
will be replaced with the primary key of the found table row. Definition at line 243 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx_long_double_next | ( | int32_t | iterator, |
legacy_ptr< uint64_t > | primary ) |
Find the table row following the referenced table row in a secondary quadruple-precision floating-point index table.
iterator | - the iterator to the referenced table row. | |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the next table row. |
iterator
points to an existing table row in the table. *primary
will be replaced with the primary key of the table row following the referenced table row if it exists, otherwise *primary
will be left untouched. Definition at line 258 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx_long_double_previous | ( | int32_t | iterator, |
legacy_ptr< uint64_t > | primary ) |
Find the table row preceding the referenced table row in a secondary quadruple-precision floating-point index table.
iterator | - the iterator to the referenced table row. | |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the previous table row. |
iterator
points to an existing table row in the table or it is the end iterator of the table. *primary
will be replaced with the primary key of the table row preceding the referenced table row if it exists, otherwise *primary
will be left untouched. Definition at line 261 of file database.cpp.
void sysio::chain::webassembly::interface::db_idx_long_double_remove | ( | int32_t | iterator | ) |
Remove a table row from a secondary quadruple-precision floating-point index table.
iterator | - iterator to the table row to remove. |
iterator
points to an existing table row in the table. iterator
is removed and the associated storage costs are refunded to the payer. Definition at line 234 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_idx_long_double_store | ( | uint64_t | scope, |
uint64_t | table, | ||
uint64_t | payer, | ||
uint64_t | id, | ||
legacy_ptr< const float128_t > | secondary ) |
Store an association of a quadruple-precision floating-point secondary key to a primary key in a secondary quadruple-precision floating-point index table.
scope | - the scope where the table resides (implied to be within the code of the current receiver). |
table | - the table name. |
payer | - the account that is paying for this storage. |
id | - the primary key to which to associate the secondary key. |
secondary | - pointer to the secondary key. |
id
and secondary key *secondary
is created in the quadruple-precision floating-point index table.interface for long double secondary
Definition at line 228 of file database.cpp.
void sysio::chain::webassembly::interface::db_idx_long_double_update | ( | int32_t | iterator, |
uint64_t | payer, | ||
legacy_ptr< const float128_t > | secondary ) |
Update an association for a quadruple-precision floating-point secondary key to a primary key in a secondary quadruple-precision floating-point index table.
iterator | - the iterator to the table row containing the secondary key association to update. |
payer | - the account that pays for the storage costs. |
secondary | - pointer to the new secondary key that will replace the existing one of the association. |
iterator
points to an existing table row in the table. iterator
is replaced by the specified secondary key. Definition at line 231 of file database.cpp.
int32_t sysio::chain::webassembly::interface::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 ) |
Find the table row in a secondary quadruple-precision floating-point index table that matches the upperbound condition for a given secondary key. The table row that matches the upperbound condition is the first table row in the table with the lowest secondary key that is > the given key.
code | - the name of the owner of the table. | |
scope | - the scope where the table resides. | |
table | - the table name. | |
[out] | secondary | - pointer to secondary key first used to determine the upperbound and which is then replaced with the secondary key of the found table row. |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the found table row. |
*secondary
will be filled with the secondary key of the found table row. *primary
will be replaced with the primary key of the found table row. Definition at line 249 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_lowerbound_i64 | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
uint64_t | id ) |
Find the table row in a primary 64-bit integer index table that matches the lowerbound condition for a given primary key. Lowerbound record is the first nearest record which primary key is <= the given key.
code | - the name of the owner of the table. |
scope | - the scope where the table resides. |
table | - the table name. |
id | - the primary key used as a pivot to determine the lowerbound record. |
Definition at line 29 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_next_i64 | ( | int32_t | itr, |
legacy_ptr< uint64_t > | primary ) |
Find the table row following the referenced table row in a primary 64-bit integer index table.
itr | - the iterator to the referenced table row. | |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the next table row. |
Definition at line 20 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_previous_i64 | ( | int32_t | itr, |
legacy_ptr< uint64_t > | primary ) |
Find the table row preceding the referenced table row in a primary 64-bit integer index table.
itr | - the iterator to the referenced table row. | |
[out] | primary | - pointer to a uint64_t variable which will have its value set to the primary key of the next table row. |
Definition at line 23 of file database.cpp.
void sysio::chain::webassembly::interface::db_remove_i64 | ( | int32_t | itr | ) |
Remove a record inside a primary 64-bit integer index table.
itr | - the iterator to the table row to remove. |
itr
points to an existing table row in the tab. Definition at line 14 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_store_i64 | ( | uint64_t | scope, |
uint64_t | table, | ||
uint64_t | payer, | ||
uint64_t | id, | ||
legacy_span< const char > | buffer ) |
Store a record in a primary 64-bit integer index table.
scope | - the scope where the table resides (implied to be within the code of the current receiver). |
table | - the name of the table within the current scope context. |
payer | - the account that pays for the storage. |
id | - id of the entry. |
buffer | - record to store. |
interface for primary index
Definition at line 8 of file database.cpp.
void sysio::chain::webassembly::interface::db_update_i64 | ( | int32_t | itr, |
uint64_t | payer, | ||
legacy_span< const char > | buffer ) |
Update a record in a primary 64-bit integer index table.
itr | - iterator to the table row containing the record to update. |
payer | - the account that pays for the storage costs. |
buffer | - new updated record. |
itr
points to an existing table row in the table. itr
is replaced with the new updated record. Definition at line 11 of file database.cpp.
int32_t sysio::chain::webassembly::interface::db_upperbound_i64 | ( | uint64_t | code, |
uint64_t | scope, | ||
uint64_t | table, | ||
uint64_t | id ) |
Find the table row in a primary 64-bit integer index table that matches the upperbound condition for a given primary key. The table row that matches the upperbound condition is the first table row in the table with the lowest primary key that is > the given key.
code | - the name of the owner of the table. |
scope | - the scope where the table resides. |
table | - the table name. |
id | - the primary key used as a pivot to determine the upperbound record. |
Definition at line 32 of file database.cpp.
int32_t sysio::chain::webassembly::interface::expiration | ( | ) | const |
Gets the expiration of the currently executing transaction.
Definition at line 24 of file cf_transaction.cpp.
int64_t sysio::chain::webassembly::interface::get_account_creation_time | ( | account_name | account | ) | const |
Returns the creation time of an account.
account | - the account name. |
Definition at line 83 of file permission.cpp.
int32_t sysio::chain::webassembly::interface::get_action | ( | uint32_t | type, |
uint32_t | index, | ||
legacy_span< char > | buffer ) const |
Retrieve the indicated action from the active transaction.
type | - 0 for context free action, 1 for action. | |
index | - the index of the requested action. | |
[out] | buffer | - the action we want (packed). |
Definition at line 36 of file cf_transaction.cpp.
int32_t sysio::chain::webassembly::interface::get_active_producers | ( | legacy_span< account_name > | producers | ) | const |
Get the list of active producer names.
[out] | producers | - output buffer containing the names of the current active producer names. |
Definition at line 5 of file producer.cpp.
uint32_t sysio::chain::webassembly::interface::get_block_num | ( | ) | const |
Returns the current block number.
Definition at line 23 of file system.cpp.
uint32_t sysio::chain::webassembly::interface::get_blockchain_parameters_packed | ( | legacy_span< char > | packed_blockchain_parameters | ) | const |
Retrieve the blockchain config parameters.
[out] | packed_blockchain_parameters | - output buffer of the blockchain parameters. |
return the number of bytes copied to the buffer, or number of bytes required if the buffer is empty.
Definition at line 145 of file privileged.cpp.
uint32_t sysio::chain::webassembly::interface::get_code_hash | ( | account_name | account, |
uint32_t | struct_version, | ||
vm::span< char > | packed_result ) const |
Retrieves the code hash for an account, if any.
The result is the packed version of this struct:
struct { varuint32 struct_version; uint64_t code_sequence; fc::sha256 code_hash; uint8_t vm_type; uint8_t vm_version; } result;
account | - name of the account to check. |
struct_version | - use 0. |
packed_result | - receives the packed result. |
Definition at line 34 of file authorization.cpp.
|
inline |
Definition at line 17 of file interface.hpp.
|
inline |
Definition at line 18 of file interface.hpp.
int32_t sysio::chain::webassembly::interface::get_context_free_data | ( | uint32_t | index, |
legacy_span< char > | buffer ) const |
Retrieve the signed_transaction.context_free_data[index].
index | - the index of the context_free_data entry to retrieve. | |
[out] | buffer | - output buffer of the context_free_data entry. |
-1 | if the index is not valid. |
size | of the cfd if the buffer is empty, otherwise return the amount of data copied onto the buffer. |
Definition at line 5 of file context_free.cpp.
uint32_t sysio::chain::webassembly::interface::get_parameters_packed | ( | span< const char > | packed_parameter_ids, |
span< char > | packed_parameters ) const |
Retrieve the blockchain config parameters. The input buffer is a packed data stream which represents an encoded sequence of parameter_id pairs with the following format: |varuint32:sequence_length | varuint32:parameter_id | ... The output buffer is a packed data stream which represents an encoded sequence of parameter_id:paramter_value pairs with the following format: |varuint32:sequence_length | varuint32:parameter_id | <various>:parameter_value | ... The encoding of parameter_values should be specific to the parameter being set The output buffer format should be valid input for set_parameters_packed. For each known parameter_id in the input sequence there should be an associated entry in the output sequence with the current encoded parameter_value.
packed_parameter_ids | - the input buffer with the format as described above. | |
[out] | packed_parameters | - the output buffer with the format as described above. |
Definition at line 170 of file privileged.cpp.
int64_t sysio::chain::webassembly::interface::get_permission_last_used | ( | account_name | account, |
permission_name | permission ) const |
Returns the last used time of a permission.
account | - the account owner of the permission. |
permission | - the name of the permission. |
Definition at line 78 of file permission.cpp.
void sysio::chain::webassembly::interface::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 |
Get the resource limits of an account
account | - name of the account whose resource limit to get. | |
[out] | ram_bytes | - output to hold retrieved ram limit in absolute bytes. |
[out] | net_weight | - output to hold net weight. |
[out] | cpu_weight | - output to hold cpu weight. |
Definition at line 32 of file privileged.cpp.
name sysio::chain::webassembly::interface::get_sender | ( | ) | const |
Return the name of the account that sent the current inline action.
Definition at line 19 of file system.cpp.
uint32_t sysio::chain::webassembly::interface::get_wasm_parameters_packed | ( | span< char > | packed_parameters, |
uint32_t | max_version ) const |
Get the current wasm limits configuration.
The structure of the parameters is as follows:
[out] | packed_parameters | the ouput for the parameters. |
max_version | has no effect, but should be 0. |
Definition at line 85 of file privileged.cpp.
bool sysio::chain::webassembly::interface::has_auth | ( | account_name | account | ) | const |
Test whether an account exists in the set of provided auths on an action.
account | - name of the account to be tested. |
true | if the action has an auth with the account name. |
false | otherwise. |
Definition at line 9 of file authorization.cpp.
bool sysio::chain::webassembly::interface::is_account | ( | account_name | account | ) | const |
Verifies that n is an existing account.
account | - name of the account to check. |
Definition at line 22 of file authorization.cpp.
bool sysio::chain::webassembly::interface::is_feature_activated | ( | legacy_ptr< const digest_type > | feature_digest | ) | const |
Check if specified protocol feature has been activated.
feature_digest | - digest of the protocol feature. |
true | if the specified protocol feature has been activated. |
false | otherwise. |
Definition at line 15 of file system.cpp.
int sysio::chain::webassembly::interface::is_feature_active | ( | int64_t | feature_name | ) | const |
Check if a feature is found on the activation set.
feature_name | - 256-bit digest representing the feature to query. |
Definition at line 13 of file privileged.cpp.
bool sysio::chain::webassembly::interface::is_privileged | ( | account_name | account | ) | const |
Check if an account is privileged.
account | - name of the account to be checked. |
true | if the account is privileged |
false | otherwise |
Definition at line 205 of file privileged.cpp.
int32_t sysio::chain::webassembly::interface::k1_recover | ( | span< const char > | signature, |
span< const char > | digest, | ||
span< char > | pub ) const |
Calculates the uncompressed public key used for a given signature on a given digest.
signatue | - signature. | |
digest | - digest of the message that was signed. | |
[out] | pub | - output buffer for the public key result. |
Definition at line 256 of file crypto.cpp.
int32_t sysio::chain::webassembly::interface::memcmp | ( | memcmp_params | args | ) | const |
void * sysio::chain::webassembly::interface::memcpy | ( | memcpy_params | args | ) | const |
Definition at line 4 of file memory.cpp.
void * sysio::chain::webassembly::interface::memmove | ( | memcpy_params | args | ) | const |
Definition at line 11 of file memory.cpp.
void * sysio::chain::webassembly::interface::memset | ( | memset_params | args | ) | const |
Definition at line 22 of file memory.cpp.
int32_t sysio::chain::webassembly::interface::mod_exp | ( | span< const char > | base, |
span< const char > | exp, | ||
span< const char > | modulus, | ||
span< char > | out ) const |
Big integer modular exponentiation
<BASE> <EXPONENT> <MODULUS> returns an output (BASE**EXPONENT) % MODULUS as a byte array {{{{ with the same length as the modulus }}}}
base | - a span containing BASE. | |
exp | - a span containing EXPONENT. | |
modulus | - a span containing MODULUS. | |
[out] | out | - the result (BASE**EXPONENT) % MODULUS |
Definition at line 167 of file crypto.cpp.
void sysio::chain::webassembly::interface::preactivate_feature | ( | legacy_ptr< const digest_type > | feature_digest | ) |
Allows a privileged smart contract, e.g. the system contract, to pre-activate a consensus protocol upgrade feature.
feature_digest | - 256-bit digest representing the feature to pre-activate. |
Definition at line 19 of file privileged.cpp.
void sysio::chain::webassembly::interface::printdf | ( | float64_t | val | ) |
Prints value as double-precision floating point number.
val | - double-precision floating point number to be printed |
Definition at line 86 of file console.cpp.
void sysio::chain::webassembly::interface::printhex | ( | legacy_span< const char > | data | ) |
Prints a 64 bit names as base32 encoded string
data | - Hex name to be printed. |
Definition at line 136 of file console.cpp.
void sysio::chain::webassembly::interface::printi | ( | int64_t | val | ) |
Prints value as a 64 bit signed integer.
val | - 64 bit signed integer to be printed. |
Definition at line 25 of file console.cpp.
void sysio::chain::webassembly::interface::printi128 | ( | legacy_ptr< const __int128 > | val | ) |
Prints value as a 128 bit signed integer.
val | - 128 bit signed integer to be printed. |
Definition at line 43 of file console.cpp.
void sysio::chain::webassembly::interface::printn | ( | name | value | ) |
Prints a 64 bit names as base32 encoded string.
value | - 64 bit name to be printed |
Definition at line 132 of file console.cpp.
void sysio::chain::webassembly::interface::printqf | ( | legacy_ptr< const float128_t > | val | ) |
Prints value as quadruple-precision floating point number.
val | - a pointer to the quadruple-precision floating point number to be printed |
Definition at line 98 of file console.cpp.
void sysio::chain::webassembly::interface::prints | ( | null_terminated_ptr | str | ) |
Print a string.
str | - the string to print |
Definition at line 15 of file console.cpp.
void sysio::chain::webassembly::interface::prints_l | ( | legacy_span< const char > | str | ) |
void sysio::chain::webassembly::interface::printsf | ( | float32_t | val | ) |
Prints value as single-precision floating point number.
val | - single-precision floating point number to be printed. |
Definition at line 74 of file console.cpp.
void sysio::chain::webassembly::interface::printui | ( | uint64_t | val | ) |
Prints value as a 64 bit unsigned integer.
val | - 64 bit unsigned integer to be printed. |
Definition at line 34 of file console.cpp.
void sysio::chain::webassembly::interface::printui128 | ( | legacy_ptr< const unsigned __int128 > | val | ) |
Prints value as a 128 bit unsigned integer.
val | - 128 bit unsigned integer to be printed. |
Definition at line 66 of file console.cpp.
uint64_t sysio::chain::webassembly::interface::publication_time | ( | ) | const |
Returns the transaction's publication time.
Definition at line 11 of file system.cpp.
int32_t sysio::chain::webassembly::interface::read_action_data | ( | legacy_span< char > | memory | ) | const |
Copy up to length bytes of the current action data to the specified location.
memory | - a pointer where up to length bytes of the current action data will be copied. |
Definition at line 6 of file action.cpp.
int32_t sysio::chain::webassembly::interface::read_transaction | ( | legacy_span< char > | data | ) | const |
Access a copy of the currently executing transaction.
[out] | data | - the currently executing transaction (packed). |
false | if transaction was not found. |
true | if transaction was canceled. |
Definition at line 6 of file cf_transaction.cpp.
int32_t sysio::chain::webassembly::interface::recover_key | ( | legacy_ptr< const fc::sha256 > | digest, |
legacy_span< const char > | sig, | ||
legacy_span< char > | pub ) const |
Calculates the public key used for a given signature on a given digest.
digest | - digest of the message that was signed. | |
sig | - signature. | |
[out] | pub | - output buffer for the public key result. |
Definition at line 47 of file crypto.cpp.
void sysio::chain::webassembly::interface::require_auth | ( | account_name | account | ) | const |
Verifies that an account exists in the set of provided auths on an action. Fails if not found.
account | - the name of the account to be verified. |
Definition at line 5 of file authorization.cpp.
void sysio::chain::webassembly::interface::require_auth2 | ( | account_name | account, |
permission_name | permission ) const |
Verifies that an account with a specific permission exists in the set of provided auths on an action,
account | - the name of the account to be verified. |
permission | - the name of the permission to be verified. |
Definition at line 13 of file authorization.cpp.
void sysio::chain::webassembly::interface::require_recipient | ( | account_name | recipient | ) |
Add the specified account to set of accounts to be notified.
recipient | - account to be notified. |
Definition at line 18 of file authorization.cpp.
void sysio::chain::webassembly::interface::ripemd160 | ( | legacy_span< const char > | data, |
legacy_ptr< fc::ripemd160 > | hash_val ) const |
Hashes data using RIPEMD160.
data | - a span containing the data. | |
[out] | hash_val | - computed digest. |
Definition at line 115 of file crypto.cpp.
void sysio::chain::webassembly::interface::send_context_free_inline | ( | legacy_span< const char > | data | ) |
Send a context free inline action in the context of the parent transaction of this operation.
data | - the packed free inline action to be sent. |
Definition at line 16 of file transaction.cpp.
void sysio::chain::webassembly::interface::send_deferred | ( | legacy_ptr< const uint128_t > | sender_id, |
account_name | payer, | ||
legacy_span< const char > | data, | ||
uint32_t | replace_existing ) |
Send a deferred transaction.
sender_id | - account name of the sender of this deferred transaction. |
payer | - account name responsible for paying the RAM for this deferred transaction. |
data | - the packed transaction to be deferred. |
replace_existing | - if true, it will replace an existing transaction. |
Definition at line 26 of file transaction.cpp.
void sysio::chain::webassembly::interface::send_inline | ( | legacy_span< const char > | data | ) |
Send an inline action in the context of the parent transaction of this operation.
data | - the inline action to be sent. |
Definition at line 6 of file transaction.cpp.
void sysio::chain::webassembly::interface::set_action_return_value | ( | span< const char > | packed_blob | ) |
Sets a value (packed blob char array) to be included in the action receipt.
packed_blob | - the packed blob |
Definition at line 24 of file action.cpp.
void sysio::chain::webassembly::interface::set_blockchain_parameters_packed | ( | legacy_span< const char > | packed_blockchain_parameters | ) |
Set the blockchain parameters.
packed_blockchain_parameters | - a span containing the packed blockchain config parameters. |
Definition at line 159 of file privileged.cpp.
void sysio::chain::webassembly::interface::set_parameters_packed | ( | span< const char > | packed_parameters | ) |
Set the blockchain parameters. It allows a system contract the ability to set parameters in a flexible manner. The input buffer is a packed data stream which represents an encoded sequence of parameter_id:paramter_value pairs with the following format: |varuint32:sequence_length | varuint32:parameter_id | <various>:parameter_value | ... The encoding of parameter_values should be specific to the parameter being set. Having duplicate parameter_ids encoded in the sequence should result in aborting the transaction context. The presence of a parameter_id which is unknown OR which is known but tied to an unactivated consensus protocol should result in aborting the transaction context. There are no requirement for the ordering of items in the sequence.
packed_parameters | - buffer to hold the packed data with the format described above. |
Definition at line 190 of file privileged.cpp.
void sysio::chain::webassembly::interface::set_privileged | ( | account_name | account, |
bool | is_priv ) |
Set the privileged status of an account.
account | - name of the account that we want to give the privileged status. |
is_priv | - privileged status (true or false). |
Definition at line 209 of file privileged.cpp.
int64_t sysio::chain::webassembly::interface::set_proposed_producers | ( | legacy_span< const char > | packed_producer_schedule | ) |
Proposes a schedule change using the legacy producer key format.
packed_producer_schedule | - vector of producer keys |
Definition at line 115 of file privileged.cpp.
int64_t sysio::chain::webassembly::interface::set_proposed_producers_ex | ( | uint64_t | packed_producer_format, |
legacy_span< const char > | packed_producer_schedule ) |
Proposes a schedule change with extended features.
Valid formats: 0 : serialized array of producer_keys. Using this format is exactly equivalent to set_proposed_producers. 1 : serialized array of producer_authority's.
packed_producer_format | - format of the producer data blob. |
packed_producer_schedule | - packed data of representing the producer schedule in the format indicated. |
Definition at line 131 of file privileged.cpp.
void sysio::chain::webassembly::interface::set_resource_limits | ( | account_name | account, |
int64_t | ram_bytes, | ||
int64_t | net_weight, | ||
int64_t | cpu_weight ) |
Set the resource limits of an account.
account | - name of the account whose resource limit to be set. |
ram_bytes | - ram limit in absolute bytes. |
net_weight | - fractionally proportionate net limit of available resources based on (weight / total_weight_of_all_accounts). |
cpu_weight | - fractionally proportionate cpu limit of available resources based on (weight / total_weight_of_all_accounts). |
Definition at line 23 of file privileged.cpp.
void sysio::chain::webassembly::interface::set_wasm_parameters_packed | ( | span< const char > | packed_parameters | ) |
Set the configuration for wasm limits.
See get_wasm_parameters_packed documentation for more details on the structure of the packed_parameters.
packed_parameters | - a span containing the packed configuration to set. |
Definition at line 101 of file privileged.cpp.
void sysio::chain::webassembly::interface::sha1 | ( | legacy_span< const char > | data, |
legacy_ptr< fc::sha1 > | hash_val ) const |
Hashes data using SHA1.
data | - a span containing the data. | |
[out] | hash_val | - the resulting digest. |
Definition at line 103 of file crypto.cpp.
void sysio::chain::webassembly::interface::sha256 | ( | legacy_span< const char > | data, |
legacy_ptr< fc::sha256 > | hash_val ) const |
Hashes data using SHA256.
data | - a span containing the data. | |
[out] | hash_val | - the resulting digest. |
Definition at line 107 of file crypto.cpp.
void sysio::chain::webassembly::interface::sha3 | ( | span< const char > | data, |
span< char > | hash_val, | ||
int32_t | keccak ) const |
Hashes data using SHA3.
data | - a span containing the data. | |
[out] | hash_val | - the resulting digest. |
keccak | - use keccak version (1-true, all other values == false). |
Definition at line 237 of file crypto.cpp.
void sysio::chain::webassembly::interface::sha512 | ( | legacy_span< const char > | data, |
legacy_ptr< fc::sha512 > | hash_val ) const |
Hashes data using SHA512.
data | - a span containing the data. | |
[out] | hash_val | - the hash |
Definition at line 111 of file crypto.cpp.
void sysio::chain::webassembly::interface::sysio_assert | ( | bool | condition, |
null_terminated_ptr | msg ) const |
Aborts processing of this action if the test condition is false.
condition | - test condition. |
msg | - string explaining the reason for failure. |
Definition at line 10 of file cf_system.cpp.
void sysio::chain::webassembly::interface::sysio_assert_code | ( | bool | condition, |
uint64_t | error_code ) const |
Aborts processing of this action if the test condition is false. It can be used to provide an error code rather than a message string on assertion checks. If the assertion fails, the provided error code will be made available through the exception message.
condition | - test condition. |
error_code | - the error code associated. |
Definition at line 26 of file cf_system.cpp.
void sysio::chain::webassembly::interface::sysio_assert_message | ( | bool | condition, |
legacy_span< const char > | msg ) const |
Aborts processing of this action if the test condition is false.
condition | - test condition. |
msg | - string explaining the reason for failure. |
Definition at line 18 of file cf_system.cpp.
void sysio::chain::webassembly::interface::sysio_exit | ( | int32_t | code | ) | const |
This method will abort execution of wasm without failing the contract.
code | - the exit code |
Definition at line 48 of file cf_system.cpp.
int32_t sysio::chain::webassembly::interface::tapos_block_num | ( | ) | const |
Gets the block number used for TAPOS on the currently executing transaction.
Definition at line 28 of file cf_transaction.cpp.
int32_t sysio::chain::webassembly::interface::tapos_block_prefix | ( | ) | const |
Gets the block prefix used for TAPOS on the currently executing transaction.
Definition at line 32 of file cf_transaction.cpp.
int32_t sysio::chain::webassembly::interface::transaction_size | ( | ) | const |
Gets the size of the currently executing transaction.
Definition at line 19 of file cf_transaction.cpp.