Skip to content

Commit

Permalink
Updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta committed Dec 9, 2024
1 parent 0d74d2c commit 9c0aaef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 28 deletions.
16 changes: 1 addition & 15 deletions src/pages/cw-multi-test/app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,7 @@ let app = App::new(no_init);
```

In both cases, the newly created `App{:rust}` object simulates a blockchain with the default
settings, as summarized in the table below:

| Feature | Default implementation |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| [Blocks](blocks) | [`cosmwasm_std::mock_env().block{:rust}`](https://docs.rs/cosmwasm-std/latest/cosmwasm_std/testing/fn.mock_env.html) |
| [API](api) | [`cosmwasm_std::MockApi{:rust}`](https://docs.rs/cosmwasm-std/latest/cosmwasm_std/testing/struct.MockApi.html) |
| [Storage](storage) | [`cosmwasm_std::MockStorage{:rust}`](https://docs.rs/cosmwasm-std/latest/cosmwasm_std/testing/type.MockStorage.html) |
| [Bank](bank) | [`BankKeeper{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.BankKeeper.html) |
| [Staking](staking) | [`StakeKeeper{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.StakeKeeper.html) |
| [Distribution](distribution) | [`DistributionKeeper{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.DistributionKeeper.html) |
| [Governance](governance) | [`GovFailingModule{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/type.GovFailingModule.html) |
| [Stargate](stargate) | [`StargateFailing{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.StargateFailing.html) |
| [Wasm](wasm) | [`WasmKeeper{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.WasmKeeper.html) |
| [Custom](custom) | [`FailingModule<Empty, Empty, Empty>{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.FailingModule.html) |
| [IBC](ibc) | [`IbcFailingModule{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/type.IbcFailingModule.html) |
settings, as summarized in [Features summary](features#features-summary).

## `App::new`

Expand Down
26 changes: 13 additions & 13 deletions src/pages/cw-multi-test/features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ you can provide your own, using `AppBuilder`'s function listed in **AppBuilder&n
column. Names of **`MultiTest`** feature flags required to enable specific functionality are shown
in the column **Feature&nbsp;flag**.

| Feature | Default<br/>implementation | Feature<br/>flag | AppBuilder<br/>constructor | Functionality |
| ---------------------------- | :------------------------: | :--------------: | ---------------------------------------------------- | -------------------------------------------------- |
| [Blocks](blocks) | **YES** | | [`with_block`](app-builder#with_block) | Operations on blocks. |
| [API](api) | **YES** | | [`with_api`](app-builder#with_api) | Access to CosmWasm API. |
| [Storage](storage) | **YES** | | [`with_storage`](app-builder#with_storage) | Access to storage. |
| [Bank](bank) | **YES** | | [`with_bank`](app-builder#with_bank) | Interactions with **Bank** module. |
| [Staking](staking) | **YES** | `staking` | [`with_staking`](app-builder#with_staking) | Interactions with **Staking** module. |
| [Distribution](distribution) | **YES** | `staking` | [`with_distribution`](app-builder#with_distribution) | Interactions with **Distribution** module. |
| [Governance](governance) | **NO** | | [`with_gov`](app-builder#with_gov) | Interactions with **Governance** module. |
| [Stargate](stargate) | **NO** | `stargate` | [`with_stargate`](app-builder#with_stargate) | Operations using `Stargate` and/or `Any` messages. |
| [Wasm](wasm) | **YES** | | [`with_wasm`](app-builder#with_wasm) | Interactions with **Wasm** module. |
| [Custom](custom) | **NO** | | [`new_custom`](app-builder#new_custom) | Operations using custom module. |
| [IBC](ibc) | **NO** | `stargate` | [`with_ibc`](app-builder#with_ibc) | Inter-blockchain communication operations. |
| Feature | Default<br/>implementation | Feature<br/>flag | AppBuilder<br/>constructor | Functionality |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------- | :--------------: | ---------------------------------------------------- | -------------------------------------------------- |
| [Blocks](blocks) | [`mock_env().block{:rust}`](https://docs.rs/cosmwasm-std/latest/cosmwasm_std/testing/fn.mock_env.html) | | [`with_block`](app-builder#with_block) | Operations on blocks. |
| [API](api) | [`MockApi{:rust}`](https://docs.rs/cosmwasm-std/latest/cosmwasm_std/testing/struct.MockApi.html) | | [`with_api`](app-builder#with_api) | Access to CosmWasm API. |
| [Storage](storage) | [`MockStorage{:rust}`](https://docs.rs/cosmwasm-std/latest/cosmwasm_std/testing/type.MockStorage.html) | | [`with_storage`](app-builder#with_storage) | Access to storage. |
| [Bank](bank) | [`BankKeeper{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.BankKeeper.html) | | [`with_bank`](app-builder#with_bank) | Interactions with **Bank** module. |
| [Staking](staking) | [`StakeKeeper{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.StakeKeeper.html) | `staking` | [`with_staking`](app-builder#with_staking) | Interactions with **Staking** module. |
| [Distribution](distribution) | [`DistributionKeeper{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.DistributionKeeper.html) | `staking` | [`with_distribution`](app-builder#with_distribution) | Interactions with **Distribution** module. |
| [Governance](governance) | [`GovFailingModule{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/type.GovFailingModule.html) | | [`with_gov`](app-builder#with_gov) | Interactions with **Governance** module. |
| [Stargate](stargate) | [`StargateFailing{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.StargateFailing.html) | `stargate` | [`with_stargate`](app-builder#with_stargate) | Operations using `Stargate` and/or `Any` messages. |
| [Wasm](wasm) | [`WasmKeeper{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.WasmKeeper.html) | | [`with_wasm`](app-builder#with_wasm) | Interactions with **Wasm** module. |
| [Custom](custom) | [`FailingModule{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.FailingModule.html) | | [`new_custom`](app-builder#new_custom) | Operations using custom module. |
| [IBC](ibc) | [`IbcFailingModule{:rust}`](https://docs.rs/cw-multi-test/latest/cw_multi_test/type.IbcFailingModule.html) | `stargate` | [`with_ibc`](app-builder#with_ibc) | Inter-blockchain communication operations. |

## Feature flags summary

Expand Down

0 comments on commit 9c0aaef

Please sign in to comment.