Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

Commit

Permalink
Changelog, merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
pmikolajczyk41 committed Mar 7, 2024
1 parent 42505ff commit 04ed199
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 54 deletions.
42 changes: 5 additions & 37 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.12.0]
## [0.12.1]

### Pull requests
### Added

- https://github.com/inkdevhub/drink/pull/110
- Support dry running contract interactions

## [0.12.0]

### Changed

Expand All @@ -20,20 +22,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.11.1]

### Pull requests

- https://github.com/inkdevhub/drink/pull/104

### Added

- Respect features for the contract dependencies when building contracts via drink macros

## [0.11.0]

### Pull requests

- https://github.com/inkdevhub/drink/pull/109

### Changed

- Support `[email protected]`
Expand All @@ -43,11 +37,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.10.0]

### Pull requests

- https://github.com/inkdevhub/drink/pull/100
- https://github.com/inkdevhub/drink/pull/101

### Changed

- Update toolchain to `1.74.0`
Expand All @@ -56,20 +45,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.9.0]

### Pull requests

- https://github.com/inkdevhub/drink/pull/99

### Changed

- Rework `Sandbox` API to ease working with custom runtimes

## [0.8.7]

### Pull requests

- https://github.com/inkdevhub/drink/pull/112

### Changed

- Migrate examples back to `[email protected]`
Expand All @@ -82,33 +63,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [0.8.6] [YANKED]

### Pull requests

- https://github.com/inkdevhub/drink/pull/92
- https://github.com/inkdevhub/drink/pull/94

### Added

- Accessing events emitted by contracts
- `#[drink::test]` creates and adds a `session: Session` argument to the test function

## [0.8.5] [YANKED]

### Pull requests

- https://github.com/inkdevhub/drink/pull/91

### Changed

- Update `contract-*` crates from `3.x.x` to `4.0.0-rc.1`
- Migrate examples from `[email protected]` to `[email protected]`

## [0.8.4]

### Pull requests

- https://github.com/inkdevhub/drink/pull/90

### Added

- `NO_SALT`, `NO_ENDOWMENT` contstants added
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions drink/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ pub use frame_support::{
weights::Weight,
};
use frame_system::EventRecord;
use pallet_contracts::{ContractExecResult, ContractInstantiateResult};
#[cfg(feature = "session")]
pub use session::mock::{mock_message, ContractMock, MessageMock, MockedCallResult, Selector};
/// Export pallets that are used in the minimal runtime.
pub use {frame_support, frame_system, pallet_balances, pallet_contracts, pallet_timestamp};

pub use crate::runtime::minimal::{self, MinimalRuntime};
use crate::runtime::AccountIdFor;

/// Alias for `frame-system`'s `RuntimeCall` type.
pub type RuntimeCall<Runtime> = <Runtime as frame_system::Config>::RuntimeCall;
Expand Down
8 changes: 2 additions & 6 deletions drink/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::{
},
sandbox::SandboxConfig,
session::mock::MockRegistry,
Sandbox, DEFAULT_GAS_LIMIT,
ContractExecResultFor, ContractInstantiateResultFor, Sandbox, DEFAULT_GAS_LIMIT,
};

pub mod mock;
Expand All @@ -35,12 +35,8 @@ mod record;
mod transcoding;

pub use bundle::ContractBundle;
use error::SessionError;

use self::mocking_api::MockingApi;
use crate::{
errors::MessageResult, runtime::MinimalRuntime, session::transcoding::TranscoderRegistry,
};
use crate::{errors::MessageResult, session::transcoding::TranscoderRegistry};

type BalanceOf<R> =
<<R as pallet_contracts::Config>::Currency as Inspect<AccountIdFor<R>>>::Balance;
Expand Down
4 changes: 2 additions & 2 deletions examples/chain-extension/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/flipper/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/multiple-contracts/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/quick-start-with-drink/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 04ed199

Please sign in to comment.