Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

refac: add Starknet-devnet-rs #339

Merged
merged 14 commits into from
Mar 8, 2024

Conversation

estheroche
Copy link
Contributor

@estheroche estheroche commented Mar 3, 2024

Closes #324

@gianalarcon
Copy link
Contributor

Hi @estheroche . Thanks for your contribution. The idea is to add a new section to the Starknet Book with starkli x Rust-devnet. We still want to keep the starkli x Katana section.


```console
rustc --version #1.73.0 (cc66ad468)
Scarb --version # 2.5.0 (c531a6e50)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we work with the latest version of scarb and starkli?


```toml
[dependencies]
starknet = ">=2.3.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we work with the latest version of starknet? 2.5.4

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

self.name.write(name);
}

#[external(v0)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we have to replace #[external(v0)] with something new

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we replace with this #[abi(embed_v0)] ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@estheroche
Copy link
Contributor Author

estheroche commented Mar 5, 2024 via email


Begin with the `src/lib.cairo` file, which provides a foundational template. Remove its contents and insert the following:

```rust
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smart contract code is not complete

@@ -49,7 +49,7 @@ Amend the `Scarb.toml` file to integrate the `starknet` dependency and introduce

```toml
[dependencies]
starknet = ">=2.3.0"
starknet = ">=2.5.4"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not change this file

You can install the latest [scarb](#https://docs.swmansion.com/scarb/download.html) version.

```console
rustc --version #1.73.0 (cc66ad468)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we should check starknet-devnet version. Not rust language version

@estheroche
Copy link
Contributor Author

estheroche commented Mar 7, 2024 via email

@gianalarcon gianalarcon merged commit 24d9d7e into starknet-edu:main Mar 8, 2024
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request for Contribution: Introduce the Rust Devnet to the tooling chapter
2 participants