Module utils

Source

Structs§

WhitelistedAttributes
The set of attributes that can be passed to call builder or call forwarder in the codegen.

Functions§

duplicate_config_err
Return an error to notify about duplicate ink! configuration arguments.
ensure_pub_visibility
Ensures that the given visibility is pub and otherwise returns an appropriate error.
extract_cfg_attributes
Extracts cfg attributes from the given set of attributes
extract_cfg_syn_attributes
Extracts cfg attributes from the given set of attributes
find_storage_key_salt
Finds the salt of a struct, enum or union. The salt is any generic that has bound StorageKey. In most cases it is the parent storage key or the auto-generated storage key.
local_message_id
Returns a local ID unique to the ink! trait definition for the identifier.