remove unused dependencies
Signed-off-by: Valentyn Faychuk <valy@detee.ltd>
This commit is contained in:
		
							parent
							
								
									7349bf16e1
								
							
						
					
					
						commit
						91fe7d810d
					
				
							
								
								
									
										12
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										12
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1,5 +1,11 @@ | |||||||
| **/target | target | ||||||
| **/build |  | ||||||
| #detee_challenge_nodes |  | ||||||
| .idea | .idea | ||||||
| .tmp | .tmp | ||||||
|  | 
 | ||||||
|  | # build artifacts | ||||||
|  | build | ||||||
|  | occlum | ||||||
|  | challenge.yaml | ||||||
|  | challenge_instance | ||||||
|  | docker/challenge.tar.gz | ||||||
|  | scripts/mint_sol | ||||||
|  | |||||||
							
								
								
									
										8
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										8
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							| @ -2024,22 +2024,16 @@ version = "0.1.0" | |||||||
| dependencies = [ | dependencies = [ | ||||||
|  "actix-web", |  "actix-web", | ||||||
|  "async-stream", |  "async-stream", | ||||||
|  "base64 0.22.1", |  | ||||||
|  "chrono", |  "chrono", | ||||||
|  "dashmap 6.1.0", |  "dashmap 6.1.0", | ||||||
|  "detee-sgx", |  "detee-sgx", | ||||||
|  "env_logger 0.11.5", |  "env_logger 0.11.5", | ||||||
|  "hex", |  | ||||||
|  "hyper 1.4.1", |  "hyper 1.4.1", | ||||||
|  "hyper-rustls 0.27.3", |  "hyper-rustls 0.27.3", | ||||||
|  "hyper-util", |  "hyper-util", | ||||||
|  "lazy_static", |  | ||||||
|  "log", |  | ||||||
|  "prost", |  "prost", | ||||||
|  "prost-types", |  "prost-types", | ||||||
|  "rand 0.8.5", |  "rand 0.8.5", | ||||||
|  "rcgen", |  | ||||||
|  "ring 0.17.8", |  | ||||||
|  "rustls 0.23.14", |  "rustls 0.23.14", | ||||||
|  "serde", |  "serde", | ||||||
|  "serde_json", |  "serde_json", | ||||||
| @ -2055,8 +2049,6 @@ dependencies = [ | |||||||
|  "tonic", |  "tonic", | ||||||
|  "tonic-build", |  "tonic-build", | ||||||
|  "tower 0.5.1", |  "tower 0.5.1", | ||||||
|  "tower-http", |  | ||||||
|  "x509-parser 0.16.0", |  | ||||||
| ] | ] | ||||||
| 
 | 
 | ||||||
| [[package]] | [[package]] | ||||||
|  | |||||||
| @ -24,19 +24,11 @@ tokio-stream = { version = "0.1", features = ["sync"] } | |||||||
| tonic = "0.12" | tonic = "0.12" | ||||||
| # sgx poc dependencies | # sgx poc dependencies | ||||||
| rustls = "0.23" | rustls = "0.23" | ||||||
| x509-parser = "0.16" |  | ||||||
| ring = "0.17" # hash256 |  | ||||||
| rcgen = "0.13" |  | ||||||
| log = "0.4" |  | ||||||
| hex = "0.4" |  | ||||||
| tokio-rustls = "0.26" | tokio-rustls = "0.26" | ||||||
| tower = { version = "0.5", features = ["full"] } | tower = { version = "0.5", features = ["full"] } | ||||||
| tower-http = { version = "0.5", features = ["full"] } |  | ||||||
| hyper = "1.4.1" | hyper = "1.4.1" | ||||||
| hyper-util = "0.1.7" | hyper-util = "0.1.7" | ||||||
| hyper-rustls = { version = "0.27", features = ["http2"] } | hyper-rustls = { version = "0.27", features = ["http2"] } | ||||||
| base64 = "0.22" |  | ||||||
| lazy_static = "1.5" |  | ||||||
| detee-sgx = { git = "ssh://git@gitea.detee.cloud/SGX/detee-sgx", branch = "hacker-challenge", features = ["tonic", "occlum", "sealing"] } | detee-sgx = { git = "ssh://git@gitea.detee.cloud/SGX/detee-sgx", branch = "hacker-challenge", features = ["tonic", "occlum", "sealing"] } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -7,19 +7,19 @@ cd "${script_dir}/.." # Go to the root of the project | |||||||
| function build_mint_sol_tool() { | function build_mint_sol_tool() { | ||||||
|     echo "Building the mint_sol tool for testing" |     echo "Building the mint_sol tool for testing" | ||||||
| 
 | 
 | ||||||
|     if ! command -v cargo 2>&1 >/dev/null |     if ! command -v cargo 2>&1 /dev/null | ||||||
|     then |     then | ||||||
|         echo "cargo not found, run 'curl https://sh.rustup.rs -sSf | sh'" |         echo "cargo not found, run 'curl https://sh.rustup.rs -sSf | sh'" | ||||||
|         exit 1 |         exit 1 | ||||||
|     fi |     fi | ||||||
| 
 | 
 | ||||||
|     if ! command -v gcc 2>&1 >/dev/null |     if ! command -v gcc 2>&1 /dev/null | ||||||
|     then |     then | ||||||
|         echo "cc not found, run 'apt update && apt install build-essential'" |         echo "cc not found, run 'apt update && apt install build-essential'" | ||||||
|         exit 1 |         exit 1 | ||||||
|     fi |     fi | ||||||
| 
 | 
 | ||||||
|     if ! command -v protoc 2>&1 >/dev/null |     if ! command -v protoc 2>&1 /dev/null | ||||||
|     then |     then | ||||||
|         echo "protoc not found, run 'apt update && apt install protobuf-compiler'" |         echo "protoc not found, run 'apt update && apt install protobuf-compiler'" | ||||||
|         exit 1 |         exit 1 | ||||||
| @ -44,7 +44,7 @@ docker run --device /dev/sgx/enclave \ | |||||||
|            -d hacker-challenge:latest |            -d hacker-challenge:latest | ||||||
| while true; do | while true; do | ||||||
|     echo -n "." && sleep 1 |     echo -n "." && sleep 1 | ||||||
|     docker logs hacker-challenge | grep "SOL" && echo && break |     docker logs hacker-challenge | grep -q "SOL" && echo && break | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
| echo "Sending SOL to the root and waiting for the mint" | echo "Sending SOL to the root and waiting for the mint" | ||||||
| @ -52,7 +52,7 @@ address=$(docker logs hacker-challenge | grep 'SOL' | awk '{ print $NF }') | |||||||
| "${script_dir}"/mint_sol "${address}" | "${script_dir}"/mint_sol "${address}" | ||||||
| while true; do | while true; do | ||||||
|     echo -n "." && sleep 1 |     echo -n "." && sleep 1 | ||||||
|     docker logs hacker-challenge | grep "Mint created" && echo && break |     docker logs hacker-challenge | grep -q "Mint created" && echo && break | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
| echo "Creating the cluster" | echo "Creating the cluster" | ||||||
| @ -71,5 +71,5 @@ for p in {31311..31320}; do | |||||||
|     curl -X POST "127.0.0.1:${p}/mint" \ |     curl -X POST "127.0.0.1:${p}/mint" \ | ||||||
|          --json '{"wallet": "EZT16iP1SQVUFf1AJN6oiE5BZPnyBUqaKDkZ4oZRsvhR"}' \ |          --json '{"wallet": "EZT16iP1SQVUFf1AJN6oiE5BZPnyBUqaKDkZ4oZRsvhR"}' \ | ||||||
|          --connect-timeout 5 2> /dev/null |          --connect-timeout 5 2> /dev/null | ||||||
|     echo "" # Newline |     echo "" | ||||||
| done | done | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user