Crate pink_extension
source ·Re-exports
pub use chain_extension::pink_extension_instance as ext;
pub use logger::ResultExt;
Modules
- Logger for Pink contracts.
Macros
- Same as log::debug!
- Same as log::error!
- Make a simple HTTP GET request
- Make a simple HTTP POST request
- Make a simple HTTP PUT request
- Same as log::info!
- Same as log::log!
- Same as log::trace!
- Same as log::warn!
Structs
- A phala-mq message
- A phala-mq message with optional encryption key
Enums
- Pink defined environment. Used this environment to access the phat contract runtime features.
- System Event used to communicate between the contract and the runtime.
Traits
Functions
- Deploy a SideVM instance to a given contract. The caller must be the system contract.
- Force stop the side VM instance if it is running
- Push a message to the associated sidevm instance.
- Set the weight of contract used to schedule queries and sidevm vruntime
- Turn on on_block_end feature and set it’s selector
- Set the log handler contract of current cluster
- Start a SideVM instance
- Stop a SideVM instance running at given contract address. The caller must be the system contract.
- Upgrade the runtime to given version
Type Definitions
Attribute Macros
- A drop-in replacement for
ink::contract
with pink-specific feature extensions.