This repository was archived by the owner on Dec 4, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-19
lines changed
devenv/integration/docker Expand file tree Collapse file tree 3 files changed +6
-19
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env sh
2
2
set -ueo > /dev/null
3
3
4
- STACKS=$PROJECT_NAME -stacks-1
5
- API_URL=http://$STACKS :20443/v2/info
6
- BITCOIN=$PROJECT_NAME -bitcoin-1
4
+ API_URL=http://stacks:20443/v2/info
7
5
8
6
# --- make sure the node is ready before proceeding
9
7
24
22
25
23
# push contracts
26
24
cd romeo/asset-contract
27
- sed -i " s/localhost:20443/$STACKS :20443/" deployments/default.devnet-plan.yaml
28
- sed -i " s/localhost:18443/$BITCOIN :18443/" deployments/default.devnet-plan.yaml
25
+ sed -i " s/localhost:20443/stacks :20443/" deployments/default.devnet-plan.yaml
26
+ sed -i " s/localhost:18443/bitcoin :18443/" deployments/default.devnet-plan.yaml
29
27
clarinet deployments apply --no-dashboard -d -p deployments/default.devnet-plan.yaml
30
28
cd -
31
29
Original file line number Diff line number Diff line change 1
- use std:: env;
2
-
3
1
use reqwest:: blocking:: Client ;
4
2
use serde_json:: json;
5
3
use url:: Url ;
6
4
7
- pub fn project_name ( ) -> String {
8
- env:: var ( "PROJECT_NAME" ) . unwrap ( )
9
- }
10
-
11
5
pub fn bitcoin_url ( ) -> Url {
12
- let base = project_name ( ) ;
13
- Url :: parse ( & format ! ( "http://{base}-bitcoin-1:18443" ) ) . unwrap ( )
6
+ Url :: parse ( "http://bitcoin:18443" ) . unwrap ( )
14
7
}
15
8
16
9
pub fn electrs_url ( ) -> Url {
17
- let base = project_name ( ) ;
18
- Url :: parse ( & format ! ( "tcp://{base}-electrs-1:60401" ) ) . unwrap ( )
10
+ Url :: parse ( "tcp://electrs:60401" ) . unwrap ( )
19
11
}
20
12
21
13
pub fn generate_blocks (
Original file line number Diff line number Diff line change 1
- use std:: env;
2
-
3
1
use reqwest:: blocking:: Client ;
4
2
use url:: Url ;
5
3
6
4
pub fn stacks_url ( ) -> Url {
7
- let base = env:: var ( "PROJECT_NAME" ) . unwrap ( ) ;
8
- Url :: parse ( & format ! ( "http://{base}-stacks-1:20443" ) ) . unwrap ( )
5
+ Url :: parse ( "http://stacks:20443" ) . unwrap ( )
9
6
}
10
7
11
8
pub fn fetch_stacks_height ( ctx : & Client ) -> u64 {
You can’t perform that action at this time.
0 commit comments