Skip to content

Commit

Permalink
update tutorial documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kwtalley committed Oct 31, 2024
1 parent b3f2f56 commit 0efeeaf
Show file tree
Hide file tree
Showing 9 changed files with 553 additions and 534 deletions.
18 changes: 8 additions & 10 deletions docs/tutorial/04-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,17 @@ Edit Cargo.toml to have the following contract dependencies

```toml
[dependencies]
cosmwasm-schema = "1.1.9"
cosmwasm-std = "1.1.9"
cosmwasm-storage = "1.1.9"
cw-storage-plus = "1.0.1"
cosmwasm-schema = "2.1.4"
cosmwasm-std = "2.1.4"
cw-storage-plus = "2.0.0"
cw2 = "1.0.1"
provwasm-std = "1.1.2"
schemars = "0.8.10"
serde = { version = "1.0.145", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.31" }
provwasm-std = "2.5.0"
schemars = "0.8.16"
serde = { version = "1.0.197", default-features = false, features = ["derive"] }
thiserror = { version = "1.0.58" }

[dev-dependencies]
cw-multi-test = "0.16.2"
provwasm-mocks = "1.1.2"
provwasm-mocks = "2.5.0"
```

Reset the README and clear out the current JSON schema artifacts.
Expand Down
14 changes: 7 additions & 7 deletions docs/tutorial/05-requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ The tutorial contract requires the following handler functions and messages.
## Instantiate

```rust
#[cfg_attr(not(feature = "library"), entry_point)]
#[entry_point]
pub fn instantiate(
deps: DepsMut<ProvenanceQuery>,
deps: DepsMut,
env: Env,
info: MessageInfo,
msg: InitMsg,
Expand Down Expand Up @@ -62,9 +62,9 @@ The following validations must be performed during initialization.
## Execute

```rust
#[cfg_attr(not(feature = "library"), entry_point)]
#[entry_point]
pub fn execute(
deps: DepsMut<ProvenanceQuery>,
deps: DepsMut,
env: Env,
info: MessageInfo,
msg: ExecuteMsg,
Expand Down Expand Up @@ -97,10 +97,10 @@ action when a purchase has been completed.
## Query

```rust
#[cfg_attr(not(feature = "library"), entry_point)]
#[entry_point]
pub fn query(
deps: Deps<ProvenanceQuery>,
env: Env,
deps: Deps,
_env: Env, // NOTE: A '_' prefix indicates a variable is unused (suppress linter warnings)
msg: QueryMsg,
) -> ...
```
Expand Down
Loading

0 comments on commit 0efeeaf

Please sign in to comment.