Crate drink

Crate drink 

Source
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§

AccountId32
An opaque 32-byte cryptographic identifier.
Weight

Enums§

DispatchError
Reason why a dispatch call failed.

Traits§

Sandbox
Sandbox defines the API of a sandboxed runtime.
Ss58Codec
Key that can be encoded to/from SS58.

Type Aliases§

DrinkResult
Main result type for the drink crate.

Attribute Macros§

contract_bundle_provider
Defines a contract bundle provider.
test
Defines a drink!-based test.