-
Notifications
You must be signed in to change notification settings - Fork 493
Conversation
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. |
src/ch02-02-01-Starknet-devnet-rs.md
Outdated
|
||
```console | ||
rustc --version #1.73.0 (cc66ad468) | ||
Scarb --version # 2.5.0 (c531a6e50) |
There was a problem hiding this comment.
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?
src/ch02-02-01-Starknet-devnet-rs.md
Outdated
|
||
```toml | ||
[dependencies] | ||
starknet = ">=2.3.0" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
src/ch02-02-01-Starknet-devnet-rs.md
Outdated
self.name.write(name); | ||
} | ||
|
||
#[external(v0)] |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)] ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
alright.
…On Tue, Mar 5, 2024 at 8:29 AM GianMarco ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/ch02-02-01-Starknet-devnet-rs.md
<#339 (comment)>
:
> +Begin with the `src/lib.cairo` file, which provides a foundational template. Remove its contents and insert the following:
+
+```rust
+#[starknet::contract]
+mod hello {
+ #[storage]
+ struct Storage {
+ name: felt252,
+ }
+
+ #[constructor]
+ fn constructor(ref self: ContractState, name: felt252) {
+ self.name.write(name);
+ }
+
+ #[external(v0)]
yes
—
Reply to this email directly, view it on GitHub
<#339 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A532767PSBZQ63GEWP44ZXLYWXJEXAVCNFSM6AAAAABEDZR7NKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTSMJXGE4DGNZRGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
src/ch02-02-01-Starknet-devnet-rs.md
Outdated
|
||
Begin with the `src/lib.cairo` file, which provides a foundational template. Remove its contents and insert the following: | ||
|
||
```rust |
There was a problem hiding this comment.
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
src/ch02-02-starkli-scarb-katana.md
Outdated
@@ -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" |
There was a problem hiding this comment.
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
src/ch02-02-01-Starknet-devnet-rs.md
Outdated
You can install the latest [scarb](#https://docs.swmansion.com/scarb/download.html) version. | ||
|
||
```console | ||
rustc --version #1.73.0 (cc66ad468) |
There was a problem hiding this comment.
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
Fixed!
…On Thu, Mar 7, 2024 at 10:04 AM GianMarco ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/ch02-02-01-Starknet-devnet-rs.md
<#339 (comment)>
:
> +
+| Account address | 0x49f78b29f6eee314a6c297f7a2f943a0c93dc4ec2c8f3c2089c05f351d0660b
+| Private key | 0x94de45f28d52b5808ef42bd8e5261f90
+| Public key | 0x5c7f51e81c5d1770201f6ef31e46fed058b10322478f4f1d57ae4c542a5d60e
+
+Predeployed accounts using class with hash: 0x61dac032f228abef9c6626f995015233097ae253a7f72d68552db02f2971b8f
+Initial balance of each account: 1000000000000000000000 WEI and FRI
+Seed to replicate this account sequence: 534956567
+
+## Crafting a Starknet Smart Contract
+
+**Important:** Before we proceed with this example, please ensure that the versions of both `Scarb` and `starkli` match the specified versions provided below.
+You can install the latest [scarb](#https://docs.swmansion.com/scarb/download.html) version.
+
+```console
+ rustc --version #1.73.0 (cc66ad468)
Here we should check starknet-devnet version. Not rust language version
—
Reply to this email directly, view it on GitHub
<#339 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A532762OVP55Z44WLELMGHLYXCFZTAVCNFSM6AAAAABEDZR7NKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTSMRSHA3TGMZXGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Closes #324