Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Nov 21, 2023
1 parent 21da461 commit 0269cfd
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ impl Deck {
}

// Limited by number of write requests (max 4)
global PACK_CARDS = 3;
global PACK_CARDS = 3;

pub fn get_pack_cards(
seed: Field,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ global QueenSerializationMethods = TypeSerializationInterface {
deserialize,
serialize,
};

// docs:end:state_vars-PublicStateCustomStruct
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ pub fn compute_multiplier(
dt: SafeU120,
) -> SafeU120 {
let base = SafeU120 { value: 1000000000 };

// 1e9
let WAD = SafeU120 { value: 1000000000000000000 };

// 1e18
let diff = WAD.div(base);
let mut res = base;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ contract SlowTree {
use crate::types::{MembershipProof, deserialize_membership_proof};

global TREE_HEIGHT: Field = 254;

// TREE_HEIGHT + 2
global MEMBERSHIP_SIZE: Field = 256;

// TREE_HEIGHT * 2 + 4
global UPDATE_SIZE: Field = 512;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,5 @@ global TransparentNoteMethods = NoteInterface {
set_header,
broadcast,
};

// docs:end:token_types_all
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,5 @@ global TransparentNoteMethods = NoteInterface {
set_header,
broadcast,
};

// docs:end:token_types_all
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,5 @@ pub fn compute_swap_private_content_hash(
let content_hash = sha256_to_field(hash_bytes);
content_hash
}

// docs:end:compute_swap_private_content_hash

0 comments on commit 0269cfd

Please sign in to comment.