Skip to content

Commit

Permalink
feat: update api urls
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocaillard committed Mar 22, 2023
1 parent 5648212 commit 4e23a7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/clarinet-cli/src/generate/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ check_checker = {{ trusted_sender = false, trusted_caller = false, callee_filter
let content = format!(
r#"[network]
name = "testnet"
stacks_node_rpc_address = "https://stacks-node-api.testnet.stacks.co"
stacks_node_rpc_address = "https://api.testnet.hiro.so"
deployment_fee_rate = 10
[accounts.deployer]
Expand Down Expand Up @@ -251,7 +251,7 @@ mnemonic = "<YOUR PRIVATE TESTNET MNEMONIC HERE>"
let content = format!(
r#"[network]
name = "mainnet"
stacks_node_rpc_address = "https://stacks-node-api.mainnet.stacks.co"
stacks_node_rpc_address = "https://api.hiro.so"
deployment_fee_rate = 10
[accounts.deployer]
Expand Down
4 changes: 2 additions & 2 deletions components/clarinet-deployments/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ pub async fn generate_default_deployment(
let stacks_node = network_manifest
.network
.stacks_node_rpc_address
.unwrap_or("http://stacks-node-api.testnet.stacks.co".to_string());
.unwrap_or("https://api.testnet.hiro.so".to_string());
let bitcoin_node =
network_manifest
.network
Expand All @@ -263,7 +263,7 @@ pub async fn generate_default_deployment(
let stacks_node = network_manifest
.network
.stacks_node_rpc_address
.unwrap_or("http://stacks-node-api.mainnet.stacks.co".to_string());
.unwrap_or("https://api.hiro.so".to_string());
let bitcoin_node = network_manifest.network.bitcoin_node_rpc_address.unwrap_or(
"http://blockstack:blockstacksystem@bitcoin.blockstack.com:8332".to_string(),
);
Expand Down
4 changes: 2 additions & 2 deletions components/clarinet-deployments/src/requirements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ pub async fn retrieve_contract(

let is_mainnet = contract_deployer.starts_with("SP");
let stacks_node_addr = if is_mainnet {
"https://stacks-node-api.mainnet.stacks.co".to_string()
"https://api.hiro.so".to_string()
} else {
"https://stacks-node-api.testnet.stacks.co".to_string()
"https://api.testnet.hiro.so".to_string()
};

let request_url = format!(
Expand Down

0 comments on commit 4e23a7e

Please sign in to comment.