Skip to content

Commit

Permalink
Improved structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta committed Aug 16, 2024
1 parent 23b97f5 commit 96ab854
Show file tree
Hide file tree
Showing 9 changed files with 97 additions and 33 deletions.
21 changes: 21 additions & 0 deletions src/pages/cw-multi-test/app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,24 @@ tags: ["multitest", "App"]
# App

<p style={{ textAlign: "center", fontSize: "32pt", fontWeight: "bold" }}>App == Chain</p>

```rust showLineNumbers copy
let app = App::default();
```

| 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}`¹ |
| [Distribution](distribution) | `DistributionKeeper{:rust}`¹ |
| [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`](https://docs.rs/cw-multi-test/latest/cw_multi_test/type.IbcFailingModule.html)² |

¹ Add a link, when the documentation will be built with all features set.<br/> ² IBC support is on
the way in version 3.0.0.
16 changes: 8 additions & 8 deletions src/pages/cw-multi-test/bank.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ tags: ["multitest", "bank"]

# Bank

- BankMsg::Send
- BankMsg::Burn
- BankQuery::AllBalances
- BankQuery::Balance
- BankQuery::Supply
- BankQuery::DenomMetadata
- BankQuery::AllDenomMetadata
- BankSudo::Mint
- `BankMsg::Send{:rust}`
- `BankMsg::Burn{:rust}`
- `BankQuery::AllBalances{:rust}`
- `BankQuery::Balance{:rust}`
- `BankQuery::Supply{:rust}`
- `BankQuery::DenomMetadata{:rust}`
- `BankQuery::AllDenomMetadata{:rust}`
- `BankSudo::Mint{:rust}`
4 changes: 2 additions & 2 deletions src/pages/cw-multi-test/distribution.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ tags: ["multitest", "distribution"]

# Distribution

- DistributionMsg::WithdrawDelegatorReward
- DistributionMsg::SetWithdrawAddress
- `DistributionMsg::WithdrawDelegatorReward{:rust}`
- `DistributionMsg::SetWithdrawAddress{:rust}`
2 changes: 1 addition & 1 deletion src/pages/cw-multi-test/features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ required to enable specific functionality are provided in the column **"Feature
| Feature | Default<br/>implementation | Feature<br/>flag | AppBuilder<br/>constructor | Functionality |
| ---------------------------- | :------------------------: | :--------------: | ---------------------------------------------------- | -------------------------------------------------- |
| [Blocks](blocks) | **YES** | | [`with_block`](app-builder#with_block) | Operations on blocks. |
| [API](cosmwasm-api) | **YES** | | [`with_api`](app-builder#with_api) | Access to CosmWasm API. |
| [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. |
Expand Down
23 changes: 22 additions & 1 deletion src/pages/cw-multi-test/getting-started.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
---
tags: ["multitest", "getting-started"]
tags: ["multitest", "getting", "started"]
---

import { Tabs } from "nextra/components";

# Getting started

Counter example

<Tabs items={['Rust', 'Sylvia']}>
<Tabs.Tab>

```rust showLineNumbers copy
// tbd Rust
```

</Tabs.Tab>
<Tabs.Tab>

```rust showLineNumbers copy
// tbd Sylvia
```

</Tabs.Tab>
</Tabs>
9 changes: 7 additions & 2 deletions src/pages/cw-multi-test/governance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ tags: ["multitest", "governance"]

# Governance

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

---

- `GovMsg::Vote{:rust}`
- `GovMsg::VoteWeighted{:rust}`
19 changes: 18 additions & 1 deletion src/pages/cw-multi-test/ibc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,21 @@ tags: ["multitest", "IBC"]

# IBC

(TBD for version 3.0.0)
- `IbcAcceptingModule{:rust}`
- `IbcFailingModule{: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}`
16 changes: 8 additions & 8 deletions src/pages/cw-multi-test/staking.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ tags: ["multitest", "staking"]

# Staking

- StakingMsg::Delegate
- StakingMsg::Undelegate
- StakingMsg::Redelegate
- StakingQuery::BondedDenom
- StakingQuery::Delegation
- StakingQuery::AllValidators
- StakingQuery::Validator
- StakingSudo::Slash
- `StakingMsg::Delegate{:rust}`
- `StakingMsg::Undelegate{:rust}`
- `StakingMsg::Redelegate{:rust}`
- `StakingQuery::BondedDenom{:rust}`
- `StakingQuery::Delegation{:rust}`
- `StakingQuery::AllValidators{:rust}`
- `StakingQuery::Validator{:rust}`
- `StakingSudo::Slash{:rust}`
20 changes: 10 additions & 10 deletions src/pages/cw-multi-test/wasm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ tags: ["multitest", "wasm"]

# Wasm

- WasmMsg::Execute
- WasmMsg::Instantiate
- WasmMsg::Instantiate2
- WasmMsg::Migrate
- WasmMsg::UpdateAdmin
- WasmMsg::ClearAdmin
- WasmQuery::Smart
- WasmQuery::Raw
- WasmQuery::ContractInfo
- WasmQuery::CodeInfo
- `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}`

0 comments on commit 96ab854

Please sign in to comment.