Skip to content

Commit

Permalink
Merge pull request #3 from lfglabs-dev/feat/parse_opreturn
Browse files Browse the repository at this point in the history
feat: parse op_return
  • Loading branch information
Th0rgal authored Dec 20, 2024
2 parents eed60a7 + 68dbac0 commit 5399e01
Show file tree
Hide file tree
Showing 18 changed files with 4,043 additions and 88 deletions.
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

0 comments on commit 5399e01

Please sign in to comment.