Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiTest documentation #139

Draft
wants to merge 263 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
263 commits
Select commit Hold shift + click to select a range
72798ec
Added some chapters.
DariuszDepta Aug 15, 2024
00cd5bc
Updates.
DariuszDepta Aug 16, 2024
dc12950
Added source code highlighting.
DariuszDepta Aug 16, 2024
fcd5822
Updates.
DariuszDepta Aug 16, 2024
23b97f5
Updates.
DariuszDepta Aug 16, 2024
96ab854
Improved structure.
DariuszDepta Aug 16, 2024
fb6b26d
Updates.
DariuszDepta Aug 16, 2024
5adaea7
Updates.
DariuszDepta Aug 16, 2024
8faae92
Updates.
DariuszDepta Aug 16, 2024
83666b1
Updates.
DariuszDepta Aug 16, 2024
509f7e1
Updates.
DariuszDepta Aug 20, 2024
7bde953
Updates.
DariuszDepta Aug 20, 2024
1fea527
Updates.
DariuszDepta Aug 20, 2024
5d30f1a
Updates.
DariuszDepta Aug 20, 2024
dc43496
Updates.
DariuszDepta Aug 21, 2024
07a2b4e
Updates.
DariuszDepta Aug 21, 2024
b7052d4
Updates.
DariuszDepta Aug 21, 2024
c2158c4
Updates.
DariuszDepta Aug 26, 2024
6ec0a10
Updates.
DariuszDepta Aug 26, 2024
4491c2c
Updates.
DariuszDepta Aug 26, 2024
73bb646
Updates.
DariuszDepta Aug 26, 2024
854d9ab
Updates.
DariuszDepta Aug 27, 2024
86e5cf3
Updates.
DariuszDepta Aug 27, 2024
f1ba279
Updates.
DariuszDepta Aug 27, 2024
e4fd301
Updates.
DariuszDepta Aug 27, 2024
3162409
Updates.
DariuszDepta Aug 27, 2024
37f613a
Updates.
DariuszDepta Aug 27, 2024
2a7b64f
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Aug 28, 2024
d7da37a
Updates.
DariuszDepta Aug 28, 2024
b34cd6e
Updates.
DariuszDepta Aug 28, 2024
c3983a0
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Aug 29, 2024
b51ec91
Updates.
DariuszDepta Aug 29, 2024
f683c06
Updates.
DariuszDepta Aug 29, 2024
4b9b9d6
Updates.
DariuszDepta Aug 29, 2024
b0ece9e
Updates.
DariuszDepta Aug 29, 2024
1fe2477
Updates.
DariuszDepta Aug 29, 2024
52e78e1
Updates.
DariuszDepta Aug 29, 2024
a51b241
Updates.
DariuszDepta Aug 30, 2024
247f00e
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Aug 30, 2024
c7ef092
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Sep 2, 2024
410e170
Updates.
DariuszDepta Sep 2, 2024
a9a93c8
Updates.
DariuszDepta Sep 2, 2024
0a67889
Updates.
DariuszDepta Sep 2, 2024
4b0e535
Updates.
DariuszDepta Sep 2, 2024
a379ee2
Updates.
DariuszDepta Sep 3, 2024
ffb6739
Updates.
DariuszDepta Sep 3, 2024
3bc983e
Updates.
DariuszDepta Sep 3, 2024
0177a72
Updates.
DariuszDepta Sep 4, 2024
26fbb03
Updates.
DariuszDepta Sep 4, 2024
2aa1dbd
Updates.
DariuszDepta Sep 4, 2024
094b738
Updates.
DariuszDepta Sep 4, 2024
0cf8b2a
Updates.
DariuszDepta Sep 4, 2024
4638b28
Updates.
DariuszDepta Sep 4, 2024
341acda
Updates.
DariuszDepta Sep 4, 2024
85e7e5e
Updates.
DariuszDepta Sep 4, 2024
77366a5
Updates.
DariuszDepta Sep 4, 2024
78ba426
Updates.
DariuszDepta Sep 5, 2024
0081b9a
Updates.
DariuszDepta Sep 5, 2024
7ef3ef4
Updates.
DariuszDepta Sep 5, 2024
ec3dc0f
Updates.
DariuszDepta Sep 5, 2024
74da730
Updates.
DariuszDepta Sep 5, 2024
6c0acc6
Updates.
DariuszDepta Sep 5, 2024
4934794
Updates.
DariuszDepta Sep 5, 2024
ed7338a
Updates.
DariuszDepta Sep 5, 2024
d0fcac4
Updates.
DariuszDepta Sep 5, 2024
c7a234c
Updates.
DariuszDepta Sep 5, 2024
893556b
Updates.
DariuszDepta Sep 5, 2024
dc639cd
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Sep 6, 2024
13fdc08
Updates.
DariuszDepta Sep 9, 2024
229d2d2
Updates.
DariuszDepta Sep 9, 2024
cf7335b
Updates.
DariuszDepta Sep 9, 2024
74d37e3
Updates.
DariuszDepta Sep 9, 2024
a857b0f
Updates.
DariuszDepta Sep 10, 2024
a55ea6c
Updates.
DariuszDepta Sep 10, 2024
ecd7ff9
Updates.
DariuszDepta Sep 10, 2024
12fa6cc
Updates.
DariuszDepta Sep 10, 2024
36e10f4
Updates.
DariuszDepta Sep 10, 2024
fdad84c
Updates.
DariuszDepta Sep 10, 2024
aca1dbe
Updates.
DariuszDepta Sep 10, 2024
7448dd1
Updates.
DariuszDepta Sep 10, 2024
b6cc395
Updates.
DariuszDepta Sep 10, 2024
f500ca9
Updates.
DariuszDepta Sep 11, 2024
07cefa4
Updates.
DariuszDepta Sep 11, 2024
f16dbf0
Updates.
DariuszDepta Sep 11, 2024
502adc3
Updates.
DariuszDepta Sep 11, 2024
d557745
Updates.
DariuszDepta Sep 11, 2024
ebba9c1
Updates.
DariuszDepta Sep 11, 2024
98636c4
Updates.
DariuszDepta Sep 11, 2024
19d22f9
Updates.
DariuszDepta Sep 16, 2024
5df1c4b
Updates.
DariuszDepta Oct 7, 2024
afd8185
Updates.
DariuszDepta Oct 7, 2024
1c3f5cc
Updates.
DariuszDepta Oct 7, 2024
50821cf
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Oct 10, 2024
5bcb4b1
Merged changes from main.
DariuszDepta Oct 10, 2024
63e2b06
Merged changes from main.
DariuszDepta Oct 11, 2024
c525cfb
Updates.
DariuszDepta Oct 11, 2024
246f366
Updates.
DariuszDepta Oct 11, 2024
53e672a
Updates.
DariuszDepta Oct 18, 2024
407a59a
Updates.
DariuszDepta Oct 18, 2024
37c7e78
Updates.
DariuszDepta Oct 18, 2024
26d614a
Updates.
DariuszDepta Oct 18, 2024
09f164d
Updates.
DariuszDepta Oct 18, 2024
01a3fe3
Updates.
DariuszDepta Oct 18, 2024
4130ad7
Updates.
DariuszDepta Oct 18, 2024
a9f9e1e
Updates.
DariuszDepta Oct 18, 2024
87d9f8e
Updates.
DariuszDepta Oct 18, 2024
214a918
Updates.
DariuszDepta Oct 18, 2024
9df37ce
Updates.
DariuszDepta Oct 18, 2024
74cefc4
Updates.
DariuszDepta Oct 18, 2024
af178f3
Updates.
DariuszDepta Oct 18, 2024
411d222
Updates.
DariuszDepta Oct 18, 2024
847e177
Updates.
DariuszDepta Oct 18, 2024
68f9b56
Updates.
DariuszDepta Oct 18, 2024
6518ca5
Updates.
DariuszDepta Oct 18, 2024
d0d7b47
Updates.
DariuszDepta Oct 18, 2024
8e7bf1b
Updates.
DariuszDepta Oct 19, 2024
947cdae
Updates.
DariuszDepta Oct 19, 2024
607050b
Updates.
DariuszDepta Oct 19, 2024
4dde13a
Updates.
DariuszDepta Oct 19, 2024
59ac2c1
Updates.
DariuszDepta Oct 19, 2024
ffc3f6e
Updates.
DariuszDepta Oct 19, 2024
6a18518
Updates.
DariuszDepta Oct 19, 2024
4228805
Updates.
DariuszDepta Oct 19, 2024
f47824f
Updates.
DariuszDepta Oct 19, 2024
340060d
Updates.
DariuszDepta Oct 19, 2024
f486c3d
Updates.
DariuszDepta Oct 19, 2024
5cef7c0
Updates.
DariuszDepta Oct 19, 2024
a030cd3
Updates.
DariuszDepta Oct 19, 2024
7d1b7b0
Updates.
DariuszDepta Oct 19, 2024
ae0dc96
Updates.
DariuszDepta Oct 19, 2024
dd2dd2f
Updates.
DariuszDepta Oct 19, 2024
fedeafa
Updates.
DariuszDepta Oct 19, 2024
1ddd31f
Updates.
DariuszDepta Oct 19, 2024
74adfc5
Updates.
DariuszDepta Oct 19, 2024
e6a6dfa
Updates.
DariuszDepta Oct 19, 2024
3498185
Updates.
DariuszDepta Oct 19, 2024
3d83695
Updates.
DariuszDepta Oct 19, 2024
004eb1e
Updates.
DariuszDepta Oct 19, 2024
dd17e8a
Updates.
DariuszDepta Oct 19, 2024
b2216e1
Updates.
DariuszDepta Oct 19, 2024
f11b5f0
Updates.
DariuszDepta Oct 19, 2024
a37b00e
Updates.
DariuszDepta Oct 21, 2024
6613ff6
Updates.
DariuszDepta Oct 21, 2024
26285c5
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Oct 21, 2024
d9a0072
Merged from main
DariuszDepta Oct 21, 2024
d769431
Updates.
DariuszDepta Oct 21, 2024
07a5316
Updates.
DariuszDepta Oct 22, 2024
9a1e865
Updates.
DariuszDepta Oct 22, 2024
c2a4046
Updates.
DariuszDepta Oct 22, 2024
b4ec13c
Updates.
DariuszDepta Oct 22, 2024
403882b
Updates.
DariuszDepta Oct 22, 2024
2ef9daf
Updates.
DariuszDepta Oct 22, 2024
0cb6b92
Updates.
DariuszDepta Oct 22, 2024
1c1ffdc
Updates.
DariuszDepta Oct 22, 2024
8332f4e
Updates.
DariuszDepta Oct 22, 2024
e9b7139
Updates.
DariuszDepta Oct 22, 2024
79dead9
Updates.
DariuszDepta Oct 22, 2024
8054da1
Updates.
DariuszDepta Oct 22, 2024
b795cf7
Updates.
DariuszDepta Oct 22, 2024
7ad10bb
Updates.
DariuszDepta Oct 22, 2024
80e2d11
Updates.
DariuszDepta Oct 22, 2024
2ffcf5f
Updates.
DariuszDepta Oct 22, 2024
419ba87
Updates.
DariuszDepta Oct 22, 2024
aa27c7b
Updates.
DariuszDepta Oct 22, 2024
ab5d6ef
Merged changes from main.
DariuszDepta Nov 8, 2024
95a782c
Fixed broken link.
DariuszDepta Nov 8, 2024
bc66f97
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Nov 8, 2024
ea177b7
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Nov 8, 2024
752227f
Updates.
DariuszDepta Nov 13, 2024
b4fcd80
Updates.
DariuszDepta Nov 13, 2024
d907ba1
Updates.
DariuszDepta Nov 13, 2024
749f70c
Updates.
DariuszDepta Nov 13, 2024
1805a62
Updates.
DariuszDepta Nov 13, 2024
fd7cd0d
Updates.
DariuszDepta Nov 13, 2024
ace1635
Updates.
DariuszDepta Nov 13, 2024
ddd7988
Updates.
DariuszDepta Nov 13, 2024
781f5be
Updates.
DariuszDepta Nov 13, 2024
1a48428
Merged changes from main.
DariuszDepta Nov 14, 2024
1161f5b
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Nov 14, 2024
330e7dc
Updates.
DariuszDepta Nov 14, 2024
10f1ed8
Updates.
DariuszDepta Nov 14, 2024
69d8786
Updates.
DariuszDepta Nov 14, 2024
9d80ace
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Nov 18, 2024
88cc732
Updates.
DariuszDepta Nov 18, 2024
4839e7f
Updates.
DariuszDepta Nov 18, 2024
d79a954
Updates.
DariuszDepta Nov 18, 2024
a306d70
Updates.
DariuszDepta Nov 18, 2024
8ab9b1a
Updates.
DariuszDepta Nov 18, 2024
7a08aa7
Updates.
DariuszDepta Nov 18, 2024
3200a6d
Updates.
DariuszDepta Nov 18, 2024
4f3da32
Updates.
DariuszDepta Nov 18, 2024
56a6684
Merged changes from main.
DariuszDepta Nov 21, 2024
81dc4fc
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 3, 2024
31305cc
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 3, 2024
0d74d2c
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 6, 2024
9c0aaef
Updates.
DariuszDepta Dec 9, 2024
e786c5d
Updates.
DariuszDepta Dec 9, 2024
f2978b3
Updates.
DariuszDepta Dec 9, 2024
482f932
Updates.
DariuszDepta Dec 9, 2024
954b64f
Updates.
DariuszDepta Dec 9, 2024
8e5c141
Merged changes in features chapter.
DariuszDepta Dec 9, 2024
818dee1
Updates.
DariuszDepta Dec 9, 2024
27fd715
Merged changes from main.
DariuszDepta Dec 10, 2024
5baa8c1
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 12, 2024
9a13442
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 17, 2024
52d5bbe
Updates.
DariuszDepta Dec 17, 2024
67dba05
Updates.
DariuszDepta Dec 17, 2024
12bc00e
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 18, 2024
16dfff3
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 18, 2024
0f98f3c
Updates.
DariuszDepta Dec 18, 2024
d2a82d3
Updates.
DariuszDepta Dec 18, 2024
aa6579e
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 19, 2024
52b1e7a
Updates.
DariuszDepta Dec 19, 2024
c8dde8f
Updates.
DariuszDepta Dec 19, 2024
ebba8a5
Updates.
DariuszDepta Dec 19, 2024
a69bf71
Updates.
DariuszDepta Dec 19, 2024
0003788
Updates.
DariuszDepta Dec 19, 2024
cb3d921
Updates.
DariuszDepta Dec 19, 2024
c243535
Updates.
DariuszDepta Dec 19, 2024
b72197e
Updates.
DariuszDepta Dec 19, 2024
6db56a4
Updates.
DariuszDepta Dec 19, 2024
80c1f26
Updates.
DariuszDepta Dec 19, 2024
b52e020
Merged changes from main about user addresses.
DariuszDepta Dec 19, 2024
2bb7931
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 20, 2024
c0d737c
Updates.
DariuszDepta Dec 20, 2024
2248ed4
Updates.
DariuszDepta Dec 20, 2024
fb16b33
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 20, 2024
7518446
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 20, 2024
5aa6793
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 27, 2024
cc1fee3
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 30, 2024
15277a8
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 30, 2024
261dfa6
Updates.
DariuszDepta Dec 30, 2024
9a95d05
Updates.
DariuszDepta Dec 30, 2024
0897c38
Updates.
DariuszDepta Dec 30, 2024
8021a88
Updates.
DariuszDepta Dec 30, 2024
52b9a2a
Updates.
DariuszDepta Dec 30, 2024
02372bf
Updates.
DariuszDepta Dec 30, 2024
632732b
Updates.
DariuszDepta Dec 30, 2024
5145739
Updates.
DariuszDepta Dec 30, 2024
42283f9
Updates.
DariuszDepta Dec 30, 2024
7e3b5ca
Updates.
DariuszDepta Dec 30, 2024
7ed121c
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Dec 30, 2024
6132502
Updates.
DariuszDepta Dec 31, 2024
93f9d9f
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Jan 2, 2025
7fb7ac5
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Jan 2, 2025
8e271d1
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Jan 4, 2025
a0da00a
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Jan 8, 2025
a66c296
Merged changes from main.
DariuszDepta Jan 13, 2025
6330e64
Updates.
DariuszDepta Jan 13, 2025
8d2aaa4
Merge remote-tracking branch 'origin' into ddepta/multitest/helhetsdok
DariuszDepta Jan 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/pages/cw-multi-test/_meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ export default {
"getting-started": "Getting started",
app: "App",
"app-builder": "AppBuilder",
contract: "Contract",
"contract-wrapper": "ContractWrapper",
blocks: "Blocks",
api: "API",
addresses: "Addresses",
storage: "Storage",
bank: "Bank",
staking: "Staking",
distribution: "Distribution",
governance: "Governance",
stargate: "Stargate",
wasm: "Wasm",
custom: "Custom",
ibc: "IBC",
};
19 changes: 19 additions & 0 deletions src/pages/cw-multi-test/api.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
tags: ["multitest", "API"]
---

# API

## Initialization with the default API

- `App::default(){:rust}`
- `app.api(){:rust}`
- `MockApi{:rust}`
- `MockApiBech32{:rust}`
- `MockApiBech32m{:rust}`
- custom API example? - maybe in the next version

```rust copy showLineNumbers
let app = App::default();
app.api();
```
56 changes: 56 additions & 0 deletions src/pages/cw-multi-test/app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,59 @@ assert_eq!("20OSMO", my_coins[0].to_string());
The [`no_init{:rust}`][no_init] function serves as an empty chain initialization callback, offering
a convenient option when no specific chain initialization is required. Usually used when calling
[`App::new{:rust}`][new] or [`AppBuilder::build{:rust}`][build] methods.

## `custom_app`

(WIP)

## `init_modules`

(WIP)

## `store_code`

(WIP)

## `store_code_with_creator`

(WIP)

## `store_code_with_id`

(WIP)

## `duplicate_code`

(WIP)

## `contract_data`

(WIP)

## `dump_wasm_raw`

(WIP)

## `contract_storage`

(WIP)

## `contract_storage_mut`

(WIP)

## `prefixed_storage`

(WIP)

## `prefixed_storage_mut`

(WIP)

## `prefixed_multilevel_storage`

(WIP)

## `prefixed_multilevel_storage_mut`

(WIP)
18 changes: 18 additions & 0 deletions src/pages/cw-multi-test/bank.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
tags: ["multitest", "bank"]
---

# Bank

- `BankKeeper{:rust}` (default implementation)

---

- `BankMsg::Send{:rust}`
- `BankMsg::Burn{:rust}`
- `BankQuery::AllBalances{:rust}`
- `BankQuery::Balance{:rust}`
- `BankQuery::Supply{:rust}`
- `BankQuery::DenomMetadata{:rust}`
- `BankQuery::AllDenomMetadata{:rust}`
- `BankSudo::Mint{:rust}`
27 changes: 27 additions & 0 deletions src/pages/cw-multi-test/contract-wrapper.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
tags: ["multitest", "ContractWrapper"]
---

# `ContractWrapper`

- new
- new_with_empty
- with_reply
- with_reply_empty
- with_migrate
- with_migrate_empty
- with_sudo
- with_sudo_empty

```rust
fn counter_contract() -> Box<dyn Contract<Empty>> {
Box::new(ContractWrapper::new_with_empty(
counter::contract::execute,
counter::contract::instantiate,
counter::contract::query,
))
}
```

[`ContractWrapper`](https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.ContractWrapper.html)
in crate documentation
47 changes: 47 additions & 0 deletions src/pages/cw-multi-test/contract.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
tags: ["multitest", "Contract"]
---

# `Contract`

- execute
- instantiate
- query
- sudo
- reply
- migrate
- checksum

```rust
pub trait Contract<C, Q = Empty>
where
C: CustomMsg,
Q: CustomQuery,
{
/// Evaluates contract's `execute` entry-point.
fn execute(&self, deps: DepsMut<Q>, env: Env, info: MessageInfo, msg: Vec<u8>) -> AnyResult<Response<C>>;

/// Evaluates contract's `instantiate` entry-point.
fn instantiate(&self, deps: DepsMut<Q>, env: Env, info: MessageInfo, msg: Vec<u8>) -> AnyResult<Response<C>>;

/// Evaluates contract's `query` entry-point.
fn query(&self, deps: Deps<Q>, env: Env, msg: Vec<u8>) -> AnyResult<Binary>;

/// Evaluates contract's `sudo` entry-point.
fn sudo(&self, deps: DepsMut<Q>, env: Env, msg: Vec<u8>) -> AnyResult<Response<C>>;

/// Evaluates contract's `reply` entry-point.
fn reply(&self, deps: DepsMut<Q>, env: Env, msg: Reply) -> AnyResult<Response<C>>;

/// Evaluates contract's `migrate` entry-point.
fn migrate(&self, deps: DepsMut<Q>, env: Env, msg: Vec<u8>) -> AnyResult<Response<C>>;

/// Returns the provided checksum of the contract's Wasm blob.
fn checksum(&self) -> Option<Checksum> {
None
}
}
```

[`Contract`](https://docs.rs/cw-multi-test/latest/cw_multi_test/trait.Contract.html) in crate
documentation
7 changes: 7 additions & 0 deletions src/pages/cw-multi-test/custom.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
tags: ["multitest", "custom"]
---

# Custom

- `FailingModule<Empty, Empty, Empty>{:rust}` (default implementation)
12 changes: 12 additions & 0 deletions src/pages/cw-multi-test/distribution.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
tags: ["multitest", "distribution"]
---

# Distribution

- `DistributionKeeper{:rust}` (default implementation)

---

- `DistributionMsg::WithdrawDelegatorReward{:rust}`
- `DistributionMsg::SetWithdrawAddress{:rust}`
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) | [`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 | [`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 | [`MockStorage{:rust}`](https://docs.rs/cosmwasm-std/latest/cosmwasm_std/testing/type.MockStorage.html) | | [`with_storage`](app-builder#with_storage) | Access to storage. |
| 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 | [`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 | [`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 | [`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 | [`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 | [`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 | [`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 | [`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 | 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
22 changes: 22 additions & 0 deletions src/pages/cw-multi-test/governance.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
tags: ["multitest", "governance"]
---

import { Callout } from "nextra/components";

# Governance

- `GovFailingModule{:rust}` (default implementation)
- `GovAcceptingModule{:rust}`

---

- `GovMsg::Vote{:rust}`
- `GovMsg::VoteWeighted{:rust}`

---

<Callout>
This seems to be a straightforward case where we can demonstrate how to implement a 'module' and
use it in tests, even when no default implementation is provided in **`MultiTest`**.
</Callout>
24 changes: 24 additions & 0 deletions src/pages/cw-multi-test/ibc.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
tags: ["multitest", "IBC"]
---

# IBC

- `IbcFailingModule{:rust}` (default implementation)
- `IbcAcceptingModule{:rust}`

---

- `IbcMsg::Transfer{:rust}`
- `IbcMsg::SendPacket{:rust}`
- `IbcMsg::WriteAcknowledgement{:rust}`
- `IbcMsg::CloseChannel{:rust}`
- `IbcMsg::PayPacketFee{:rust}`
- `IbcMsg::PayPacketFeeAsync{:rust}`

---

- `IbcQuery::PortId{:rust}`
- `IbcQuery::ListChannels{:rust}`
- `IbcQuery::Channel{:rust}`
- `IbcQuery::FeeEnabledChannel{:rust}`
18 changes: 18 additions & 0 deletions src/pages/cw-multi-test/staking.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
tags: ["multitest", "staking"]
---

# Staking

- `StakeKeeper{:rust}` (default implementation)

---

- `StakingMsg::Delegate{:rust}`
- `StakingMsg::Undelegate{:rust}`
- `StakingMsg::Redelegate{:rust}`
- `StakingQuery::BondedDenom{:rust}`
- `StakingQuery::Delegation{:rust}`
- `StakingQuery::AllValidators{:rust}`
- `StakingQuery::Validator{:rust}`
- `StakingSudo::Slash{:rust}`
12 changes: 12 additions & 0 deletions src/pages/cw-multi-test/stargate.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
tags: ["multitest", "stargate"]
---

# Stargate

- `StargateFailing{:rust}` (default implementation)
- `StargateAccepting{:rust}`

---

- Stargate trait
19 changes: 19 additions & 0 deletions src/pages/cw-multi-test/storage.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
tags: ["multitest", "storage"]
---

# Storage

## Initialization with the default storage

(some description)

- `App::default(){:rust}`
- `app.storage(){:rust}`
- `app.storage_mut(){:rust}`

```rust
let app = App::default();
app.storage();
app.storage_mut();
```
20 changes: 20 additions & 0 deletions src/pages/cw-multi-test/wasm.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
tags: ["multitest", "wasm"]
---

# Wasm

- `WasmKeeper{:rust}` (default implementation)

---

- `WasmMsg::Execute{:rust}`
- `WasmMsg::Instantiate{:rust}`
- `WasmMsg::Instantiate2{:rust}`
- `WasmMsg::Migrate{:rust}`
- `WasmMsg::UpdateAdmin{:rust}`
- `WasmMsg::ClearAdmin{:rust}`
- `WasmQuery::Smart{:rust}`
- `WasmQuery::Raw{:rust}`
- `WasmQuery::ContractInfo{:rust}`
- `WasmQuery::CodeInfo{:rust}`
Loading