Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: parse op_return #3

Merged
merged 7 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ starknet = "2.8.5"
openzeppelin = "0.18.0"
utils = { git = "https://github.com/keep-starknet-strange/raito.git", rev = "02a13045b7074ae2b3247431cd91f1ad76263fb2" }
consensus = { git = "https://github.com/keep-starknet-strange/raito.git", rev = "02a13045b7074ae2b3247431cd91f1ad76263fb2" }
alexandria_math = { git = "https://github.com/keep-starknet-strange/alexandria.git" }
alexandria_data_structures = { git = "https://github.com/keep-starknet-strange/alexandria.git" }

[dev-dependencies]
snforge_std = { git = "https://github.com/foundry-rs/starknet-foundry", tag = "v0.31.0" }
Expand Down
4 changes: 4 additions & 0 deletions src/constants.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pub const OP_RETURN: u8 = 0x6a;
pub const OP_13: u8 = 0x5d;
pub const ETCHING_MAX_DIVISIBILITY: u8 = 38;
pub const ETCHING_MAX_SPACERS: u32 = 0b00000111_11111111_11111111_11111111;
19 changes: 19 additions & 0 deletions src/lib.cairo
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
pub mod parser;
pub mod types;
pub mod constants;

pub mod runestone {
pub mod flag;
pub mod tag;
pub mod message;
}

pub mod utils {
pub mod varint;
pub mod fields;
pub mod char;
}

#[cfg(test)]
mod tests {
mod parser;
mod opcodes;
mod cenotaph;
mod utils;
mod varint;
mod flag;
mod transactions;
}
Loading