-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: add missing storage listing (#119)
* feat: Storage minimal + fixes * fix: add missing storage listing
- Loading branch information
Showing
7 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Code generated by scarb DO NOT EDIT. | ||
version = 1 | ||
|
||
[[package]] | ||
name = "storage" | ||
version = "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[package] | ||
name = "storage" | ||
version = "0.1.0" | ||
|
||
[dependencies] | ||
starknet = ">=2.3.0" | ||
|
||
[[target.starknet-contract]] |
34 changes: 34 additions & 0 deletions
34
listings/ch00-getting-started/storage/assets/MinimalContract.2.3.0.contract_class.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"sierra_program": [ | ||
"0x1", | ||
"0x3", | ||
"0x0", | ||
"0x2", | ||
"0x3", | ||
"0x0", | ||
"0x1", | ||
"0xff", | ||
"0x0", | ||
"0x4", | ||
"0x0" | ||
], | ||
"sierra_program_debug_info": { | ||
"type_names": [], | ||
"libfunc_names": [], | ||
"user_func_names": [] | ||
}, | ||
"contract_class_version": "0.1.0", | ||
"entry_points_by_type": { | ||
"EXTERNAL": [], | ||
"L1_HANDLER": [], | ||
"CONSTRUCTOR": [] | ||
}, | ||
"abi": [ | ||
{ | ||
"type": "event", | ||
"name": "storage::minimal_contract::MinimalContract::Event", | ||
"kind": "enum", | ||
"variants": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#[starknet::contract] | ||
mod Contract { | ||
#[storage] | ||
struct Storage { | ||
a: u128, | ||
b: u8, | ||
c: u256 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
mod minimal_contract; | ||
mod contract; |
5 changes: 5 additions & 0 deletions
5
listings/ch00-getting-started/storage/src/minimal_contract.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#[starknet::contract] | ||
mod Contract { | ||
#[storage] | ||
struct Storage {} | ||
} |