Crate eosio_sys

source ·

Re-exports

pub use self::ctypes::*;

Modules

Structs

@brief 160-bit hash @details 160-bit hash
@brief 256-bit hash @details 256-bit hash
@brief 512-bit hash @details 512-bit hash

Enums

Constants

Functions

Get the length of the current action’s data field. This method is useful for dynamically sized actions
@brief Activate new feature Activate new feature @param f - name (identifier) of the feature to be activated
Tests a given public key with the generated key from digest and the signature. @brief Tests a given public key with the generated key from digest and the signature.
Tests if the ripemod160 hash generated from data matches the provided checksum. @brief Tests if the ripemod160 hash generated from data matches the provided checksum.
Tests if the sha1 hash generated from data matches the provided checksum. This method is optimized to a NO-OP when in fast evaluation mode. @brief Tests if the sha1 hash generated from data matches the provided checksum.
Tests if the sha256 hash generated from data matches the provided checksum. This method is optimized to a NO-OP when in fast evaluation mode. @brief Tests if the sha256 hash generated from data matches the provided checksum.
Tests if the sha512 hash generated from data matches the provided checksum. This method is optimized to a NO-OP when in fast evaluation mode. @brief Tests if the sha512 hash generated from data matches the provided checksum.
Cancels a deferred transaction.
@brief Checks if a permission is authorized by a provided delay and a provided set of keys and permissions
@brief Checks if a transaction is authorized by a provided set of keys and permissions
Get the current receiver of the action @brief Get the current receiver of the action @return the account which specifies the current receiver of the action
Returns the time in microseconds from 1970 of the current block @brief Get time of the current block (i.e. the block including this action) @return time in microseconds from 1970 of the current block
Get an iterator representing just-past-the-end of the last table row of a primary 64-bit integer index table
Find a table row in a primary 64-bit integer index table by primary key
Get a record in a primary 64-bit integer index table
Get an end iterator representing just-past-the-end of the last table row of a secondary 64-bit integer index table
Find a table row in a secondary 64-bit integer index table by primary key
Find a table row in a secondary 64-bit integer index table by secondary key
Find the table row in a secondary 64-bit integer index table that matches the lowerbound condition for a given secondary key The table row that matches the lowerbound condition is the first table row in the table with the lowest secondary key that is >= the given key
Find the table row following the referenced table row in a secondary 64-bit integer index table
Find the table row preceding the referenced table row in a secondary 64-bit integer index table
Remove a table row from a secondary 64-bit integer index table
Store an association of a 64-bit integer secondary key to a primary key in a secondary 64-bit integer index table
Update an association for a 64-bit integer secondary key to a primary key in a secondary 64-bit integer index table
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
Get an end iterator representing just-past-the-end of the last table row of a secondary 128-bit integer index table
Find a table row in a secondary 128-bit integer index table by primary key
Find a table row in a secondary 128-bit integer index table by secondary key
Find the table row in a secondary 128-bit integer index table that matches the lowerbound condition for a given secondary key The table row that matches the lowerbound condition is the first table row in the table with the lowest secondary key that is >= the given key
Find the table row following the referenced table row in a secondary 128-bit integer index table
Find the table row preceding the referenced table row in a secondary 128-bit integer index table
Remove a table row from a secondary 128-bit integer index table
Store an association of a 128-bit integer secondary key to a primary key in a secondary 128-bit integer index table
Update an association for a 128-bit integer secondary key to a primary key in a secondary 128-bit integer index table
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
Get an end iterator representing just-past-the-end of the last table row of a secondary 256-bit index table
Find a table row in a secondary 256-bit index table by primary key
Find a table row in a secondary 256-bit index table by secondary key
Find the table row in a secondary 256-bit index table that matches the lowerbound condition for a given secondary key The table row that matches the lowerbound condition is the first table row in the table with the lowest secondary key that is >= the given key (uses lexicographical ordering on the 256-bit keys)
Find the table row following the referenced table row in a secondary 256-bit index table
Find the table row preceding the referenced table row in a secondary 256-bit index table
Remove a table row from a secondary 256-bit index table
Store an association of a 256-bit secondary key to a primary key in a secondary 256-bit index table
Update an association for a 256-bit secondary key to a primary key in a secondary 256-bit index table
Find the table row in a secondary 256-bit 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 (uses lexicographical ordering on the 256-bit keys)
Get an end iterator representing just-past-the-end of the last table row of a secondary double-precision floating-point index table
Find a table row in a secondary double-precision floating-point index table by primary key
Find a table row in a secondary double-precision floating-point index table by secondary key
Find the table row in a secondary double-precision floating-point index table that matches the lowerbound condition for a given secondary key The table row that matches the lowerbound condition is the first table row in the table with the lowest secondary key that is >= the given key
Find the table row following the referenced table row in a secondary double-precision floating-point index table
Find the table row preceding the referenced table row in a secondary double-precision floating-point index table
Remove a table row from a secondary double-precision floating-point index table
Store an association of a double-precision floating-point secondary key to a primary key in a secondary double-precision floating-point index table
Update an association for a double-precision floating-point secondary key to a primary key in a secondary double-precision floating-point index table
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
Get an end iterator representing just-past-the-end of the last table row of a secondary quadruple-precision floating-point index table
Find a table row in a secondary quadruple-precision floating-point index table by primary key
Find a table row in a secondary quadruple-precision floating-point index table by secondary key
Find the table row in a secondary quadruple-precision floating-point index table that matches the lowerbound condition for a given secondary key The table row that matches the lowerbound condition is the first table row in the table with the lowest secondary key that is >= the given key
Find the table row following the referenced table row in a secondary quadruple-precision floating-point index table
Find the table row preceding the referenced table row in a secondary quadruple-precision floating-point index table
Remove a table row from a secondary quadruple-precision floating-point index table
Store an association of a quadruple-precision floating-point secondary key to a primary key in a secondary quadruple-precision floating-point index table
Update an association for a quadruple-precision floating-point secondary key to a primary key in a secondary quadruple-precision floating-point index table
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
Find the table row in a primary 64-bit integer index table that matches the lowerbound condition for a given primary key The table row that matches the lowerbound condition is the first table row in the table with the lowest primary key that is >= the given key
Find the table row following the referenced table row in a primary 64-bit integer index table
Find the table row preceding the referenced table row in a primary 64-bit integer index table
Remove a record from a primary 64-bit integer index table
Store a record in a primary 64-bit integer index table
Update a record in a primary 64-bit integer index table
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
Aborts processing of this action and unwinds all pending changes if the test condition is true @brief Aborts processing of this action and unwinds all pending changes @param test - 0 to abort, 1 to ignore
Aborts processing of this action and unwinds all pending changes if the test condition is true @brief Aborts processing of this action and unwinds all pending changes @param test - 0 to abort, 1 to ignore @param code - the error code
Aborts processing of this action and unwinds all pending changes if the test condition is true @brief Aborts processing of this action and unwinds all pending changes @param test - 0 to abort, 1 to ignore @param msg - a pointer to the start of string explaining the reason for failure @param msg_len - length of the string
This method will abort execution of wasm without failing the contract. This is used to bypass all cleanup / destructors that would normally be called. @brief Aborts execution of wasm without failing the contract @param code - the exit code Example:
Gets the expiration of the currently executing transaction.
@brief Returns the creation time of an account
Retrieves the indicated action from the active transaction.
Gets the set of active producers. @brief Gets the set of active producers.
@brief Retrieve the blolckchain parameters Retrieve the blolckchain parameters @param data - output buffer of the blockchain parameters, only retrieved if sufficent size to hold packed data. @param datalen - size of the data buffer, 0 to report required size. @return size of the blockchain parameters @pre data is a valid pointer to a range of memory at least datalen bytes long @post data is filled with packed blockchain parameters
Retrieve the signed_transaction.context_free_data[index].
@brief Returns the last used time of a permission
@brief Get the resource limits of an account Get the resource limits of an account @param account - name of the account whose resource limit to get @param ram_bytes - pointer to int64_t to hold retrieved ram limit in absolute bytes @param net_weight - pointer to int64_t to hold net limit @param cpu_weight - pointer to int64_t to hold cpu limit
Verifies that @ref name has auth.
@brief Check if an account is privileged Check if an account is privileged @param account - name of the account to be checked @return true if the account is privileged @return false if the account is not privileged
Prints value as double-precision floating point number @brief Prints value as double-precision floating point number (i.e. double) @param value of double to be printed
Prints value as a 64 bit signed integer @brief Prints value as a 64 bit signed integer @param value of 64 bit signed integer to be printed
Prints value as a 128 bit signed integer @brief Prints value as a 128 bit signed integer @param value is a pointer to the 128 bit signed integer to be printed
Prints a 64 bit names as base32 encoded string @brief Prints a 64 bit names as base32 encoded string @param name - 64 bit name to be printed
Prints value as quadruple-precision floating point number @brief Prints value as quadruple-precision floating point number (i.e. long double) @param value is a pointer to the long double to be printed
Prints string @brief Prints string @param cstr - a null terminated string
Prints string up to given length @brief Prints string @param cstr - pointer to string @param len - len of string to be printed
Prints value as single-precision floating point number @brief Prints value as single-precision floating point number (i.e. float) @param value of float to be printed
Prints value as a 64 bit unsigned integer @brief Prints value as a 64 bit unsigned integer @param value of 64 bit unsigned integer to be printed
Prints value as a 128 bit unsigned integer @brief Prints value as a 128 bit unsigned integer @param value is a pointer to the 128 bit unsigned integer to be printed
Returns the time in microseconds from 1970 of the publication_time @brief Get the publication time @return the time in microseconds from 1970 of the publication_time
Copy up to @ref len bytes of current action data to the specified location
Access a copy of the currently executing transaction.
Calculates the public key used for a given signature and hash used to create a message. @brief Calculates the public key used for a given signature and hash used to create a message.
Verifies that @ref name exists in the set of provided auths on a action. Throws if not found.
Verifies that @ref name exists in the set of provided auths on a action. Throws if not found.
Add the specified account to set of accounts to be notified
Hashes data using ripemod160 and stores result in memory pointed to by hash. @brief Hashes data using ripemod160 and stores result in memory pointed to by hash.
Send an inline context free action in the context of this action’s parent transaction
Sends a deferred transaction.
Send an inline action in the context of this action’s parent transaction
@brief Set new active producers Set new active producers. Producers will only be activated once the block which starts the next round is irrreversible @param producer_data - pointer to producer schedule packed as bytes @param producer_data_size - size of the packed producer schedule @pre producer_data is a valid pointer to a range of memory at least producer_data_size bytes long that contains serialized produced schedule data
@brief Set the blockchain parameters Set the blockchain parameters @param data - pointer to blockchain parameters packed as bytes @param datalen - size of the packed blockchain parameters @pre data is a valid pointer to a range of memory at least datalen bytes long that contains packed blockchain params data
@brief Set the privileged status of an account Set the privileged status of an account @param account - name of the account whose privileged account to be set @param is_priv - privileged status
Proposes a schedule change, once the block that contains the proposal becomes irreversible, the schedule is promoted to “pending” automatically. Once the block that promotes the schedule is irreversible, the schedule will become “active” @param producer_data - packed data of produce_keys in the appropriate producer schedule order @param producer_data_size - size of the data buffer
@brief Set the resource limits of an account Set the resource limits of an account @param account - name of the account whose resource limit to be set @param ram_bytes - ram limit in absolute bytes @param net_weight - fractionally proportionate net limit of available resources based on (weight / total_weight_of_all_accounts) @param cpu_weight - fractionally proportionate cpu limit of available resources based on (weight / total_weight_of_all_accounts)
sha1
Hashes data using sha1 and stores result in memory pointed to by hash. @brief Hashes data using sha1 and stores result in memory pointed to by hash.
Hashes data using sha256 and stores result in memory pointed to by hash. @brief Hashes data using sha256 and stores result in memory pointed to by hash.
Hashes data using sha512 and stores result in memory pointed to by hash. @brief Hashes data using sha512 and stores result in memory pointed to by hash.
Gets the block number used for TAPOS on the currently executing transaction.
Gets the block prefix used for TAPOS on the currently executing transaction.
Gets the size of the currently executing transaction.

Type Definitions