Expand description
The drink crate provides a sandboxed runtime for testing smart contracts without a need for a running node.
Re-exports§
pub use errors::Error;
pub use session::mock::mock_message;
pub use session::mock::ContractMock;
pub use session::mock::MessageMock;
pub use session::mock::MockedCallResult;
pub use session::mock::Selector;
pub use frame_support;
pub use ink_sandbox::pallet_balances;
pub use ink_sandbox::pallet_contracts;
pub use ink_sandbox::pallet_timestamp;
pub use ink_sandbox::sp_externalities;
Modules§
- Module gathering common error and result types.
- Minimal Sandbox runtime used for testing contracts with drink!.
- This module provides all the necessary elements for supporting contract debugging directly in the contracts pallet.
- This module provides a context-aware interface for interacting with contracts.
Macros§
- Macro creating a minimal runtime with the given name. Optionally can take a chain extension type as a second argument.
- A convenience macro that allows you to load a bundle found in the target directory of the current project.
Structs§
- An opaque 32-byte cryptographic identifier.
Enums§
- Reason why a dispatch call failed.
Traits§
- Sandbox defines the API of a sandboxed runtime.
- Key that can be encoded to/from SS58.
Type Aliases§
- Main result type for the drink crate.
Attribute Macros§
- Defines a contract bundle provider.
- Defines a drink!-based test.