Skip to content

Commit

Permalink
move const to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed May 30, 2024
1 parent f760e3c commit 3b0f1cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions components/chainhook-types-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ pub use ordinals::*;
pub use processors::*;
pub use rosetta::*;

pub const DEFAULT_STACKS_NODE_RPC: &str = "http://localhost:20443";

pub enum Chain {
Bitcoin,
Stacks,
Expand Down
3 changes: 1 addition & 2 deletions components/chainhook-types-rs/src/rosetta.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
use super::bitcoin::{TxIn, TxOut};
use crate::contract_interface::ContractInterface;
use crate::ordinals::OrdinalOperation;
use crate::{events::*, Brc20Operation};
use crate::{events::*, Brc20Operation, DEFAULT_STACKS_NODE_RPC};
use schemars::JsonSchema;
use std::cmp::Ordering;
use std::collections::HashSet;
use std::fmt::Display;
use std::hash::{Hash, Hasher};

pub const DEFAULT_STACKS_NODE_RPC: &str = "http://localhost:20443";
/// BlockIdentifier uniquely identifies a block in a particular network.
#[derive(Debug, Clone, Deserialize, Serialize, Default)]
pub struct BlockIdentifier {
Expand Down

0 comments on commit 3b0f1cc

Please sign in to comment.