PACKAGE
lib.ft4.utils
On this page
Types
- page_cursor
- A cursor that points to where pages should start in paginated queries.
- paged_result
- The return type of all paginated queries. It contains a list of results of the query, and a
- pagination_result
- An element of a page that should be returned by paginated queries.
- validation_result
Functions
- before_rowid
- Returns the rowid of the last retrieved element, given the base64-encoded pagecursor.
- convert_gtv_to_text
- Converts a gtv value to a pretty text representation, with newlines and indentations.
- decode_cursor
- Decodes a pagecursor from a base64 string, received as a query parameter.
- derive_nonce
- A utility function that computes a unique nonce for this operation's message to sign.
- encode_cursor
- Encodes a pagecursor into a base64 string to make it more manageable for the frontend
- fetch_data_size
- Used to calculate the page size for the current query. The value will be:
- get_block_height
- Returns the block height regardless of whether opcontext exists.
- invalid
- A validationresult to be returned when an error should be thrown
- is_big_integer
- Used to check if a gtv value is encoding a biginteger
- is_byte_array
- Used to check if a gtv value is encoding a bytearray
- is_dict
- Used to check if a gtv value is encoding a dict
- is_integer
- Used to check if a gtv value is encoding an integer
- is_list
- Used to check if a gtv value is encoding a list
- is_text
- Used to check if a gtv value is encoding a text
- latest_time
- Returns the last block time regardless of whether opcontext exists.
- make_auth_message
- A utility function that adds a header and a footer to every auth message.
- make_page
- Creates a page from a list of paginationresults and the expected size of the page.
- null_page
- Utility function that returns an empty page with no next page
- validate_blockchain_rid
- Checks whether the blockchain RID has the correct size
- validate_composite_indexes_init_tx_rids_and_init_op_index
- Throws INVALID FILTER if the list of inittxrids is not empty, but initopindex is not specified or
- validate_composite_indexes_tx_rids_and_op_index
- Throws INVALID FILTER if the list of transactionrids is not empty, but opindex is not specified or
- validate_recipient_id
- Checks if the recipient id has the correct size
Properties
- MILLISECONDS_PER_DAY
- The number of milliseconds in a day, mainly used for transfer time-to-live
- RECIPIENT_ID_MAX_SIZE
- VALID
- A validationresult to be returned when no error should be thrown