Skip to content

Commit

Permalink
Updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta committed Sep 2, 2024
1 parent c7ef092 commit 410e170
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
12 changes: 6 additions & 6 deletions src/pages/cw-multi-test/features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ tags: ["multitest", "features"]

All **`MultiTest`** features are listed in the following table.

The **Default implementation** column indicates whether the feature has a default implementation in
**`MultiTest`** that simulates the functionality of the real blockchain as closely as possible. In
cases where **`MultiTest`** does not have a default implementation for the feature, you can provide
your own, using `AppBuilder`'s function listed in **AppBuilder constructor** column. Names of
**`MultiTest`** feature flags required to enable specific functionality are shown in the column
**Feature flag**.
The **Default implementation** column indicates whether the feature has a default
implementation in **`MultiTest`** that simulates the functionality of the real blockchain as closely
as possible. In cases where **`MultiTest`** does not have a default implementation for the feature,
you can provide your own, using `AppBuilder`'s function listed in **AppBuilder constructor**
column. Names of **`MultiTest`** feature flags required to enable specific functionality are shown
in the column **Feature flag**.

| Feature | Default<br/>implementation | Feature<br/>flag | AppBuilder<br/>constructor | Functionality |
| ---------------------------- | :------------------------: | :--------------: | ---------------------------------------------------- | -------------------------------------------------- |
Expand Down
21 changes: 13 additions & 8 deletions src/pages/cw-multi-test/getting-started/smart-contract.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ that can be initialized, incremented, decremented, and queried. Later on, you wi
[write tests](writing-tests.mdx) for this contract using **`MultiTest`**.

<Callout type="info">
This example smart contract is a simplified version of the contract created using
[cw-template](/core/installation#setting-up-the-contract).
The example smart contract presented in this chapter is a simplified version of the contract
created based on the [cw&#8209;template](/core/installation#setting-up-the-contract).
</Callout>

## Creating the project

Smart contracts written in Rust are typically developed as Rust libraries, so let's first create a
Rust library named **counter**.
Smart contracts written in Rust are developed as Rust libraries, so let's first create a Rust
library named **counter**.

Change the working directory to your home directory:

Expand Down Expand Up @@ -56,7 +56,7 @@ Newly created library contains the **Cargo.toml** file and **lib.rs** file in `s
tree
```

...so expected content of the `counter` directory is:
...so the expected content of the `counter` directory is:

```ansi filename="counter"
.
Expand All @@ -66,8 +66,8 @@ tree
```

By convention, the source code of the smart contract is placed in file named **contract.rs**, and
the messages processed by this contract are placed in file named **msg.rs**, both in `src`
directory.
the messages processed by the contract are placed in file named **msg.rs**; both files should be
saved in `src` directory.

Let's create the **contract.rs** file...

Expand Down Expand Up @@ -99,7 +99,12 @@ tree

## Filling the content

(some introduction)
In the following chapters, we provide examples of different smart contract implementations. Whether
you're interested in developing smart contracts using pure CosmWasm or exploring the Sylvia
framework, the resources below will guide you through the essential content of each smart contract.

Click on the cards below to dive into the details of smart contracts written in CosmWasm or the
Sylvia framework.

<Cards>
<Card title="Smart contract in CosmWasm" href="smart-contract/smart-contract-cosmwasm" icon="">
Expand Down
6 changes: 4 additions & 2 deletions src/pages/cw-multi-test/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ cw-multi-test = "2"
<Callout emoji="🚨">
**`MultiTest`** is a **TESTING** library and should always be added to your project as
**DEVELOPMENT DEPENDENCY** in section **`[dev-dependencies]`** of the **Cargo.toml** file.
<br />
**`MultiTest`** is **NOT** designed to be used in production code.
</Callout>

## Prerequisities

The only prerequisite to test smart contracts using **`MultiTest`** is having [Rust and Cargo]
installed.
The only prerequisite to test CosmWasm smart contracts using **`MultiTest`** is having [Rust
and Cargo] installed.

<Callout>
We recommend installing Rust using the official [rustup installer]. This makes it easy to stay on
Expand Down

0 comments on commit 410e170

Please sign in to comment.