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§
- errors
- Module gathering common error and result types.
- minimal
- Minimal Sandbox runtime used for testing contracts with drink!.
- pallet_
contracts_ debugging - This module provides all the necessary elements for supporting contract debugging directly in the contracts pallet.
- sandbox_
api - session
- This module provides a context-aware interface for interacting with contracts.
Macros§
- create_
sandbox - Macro creating a minimal runtime with the given name. Optionally can take a chain extension type as a second argument.
- local_
contract_ file - A convenience macro that allows you to load a bundle found in the target directory of the current project.
Structs§
- Account
Id32 - An opaque 32-byte cryptographic identifier.
- Weight
Enums§
- Dispatch
Error - Reason why a dispatch call failed.
Traits§
- Sandbox
- Sandbox defines the API of a sandboxed runtime.
- Ss58
Codec - Key that can be encoded to/from SS58.
Type Aliases§
- Drink
Result - Main result type for the drink crate.
Attribute Macros§
- contract_
bundle_ provider - Defines a contract bundle provider.
- test
- Defines a drink!-based test.