From 3fbdc32c0a86093a77ed94e066abf27d0ff5e7f5 Mon Sep 17 00:00:00 2001 From: Shanith K K Date: Wed, 27 Mar 2024 18:08:11 +0530 Subject: [PATCH] chore: code clean up --- parachain/build-spec.star | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/parachain/build-spec.star b/parachain/build-spec.star index 09d4a72..b735967 100644 --- a/parachain/build-spec.star +++ b/parachain/build-spec.star @@ -1,39 +1,6 @@ build_spec = import_module("../package_io/build-spec.star") constant = import_module("../package_io/constant.star") -# def create_parachain_build_spec_with_para_id(plan, image, binary, chain_name, chain_base, para_id, sudo_key, collators_keys): -# files = { -# "/app": "configs", -# } - -# plan.run_sh( -# run = "{0} build-spec --chain={1} --disable-default-bootnode > /tmp/{2}.json".format(binary, chain_base, chain_name), -# image = image, -# files = files, -# store = [StoreSpec(src = "/tmp/{0}.json".format(chain_name), name = chain_name + "plain")], -# ) - -# files = { -# "/app": "configs", -# "/build": chain_name + "plain", -# "/javascript": "javascript", -# } - - -# run_command = "cd /javascript && npm i && node edit_parachain_plain.js /build/{0}.json {1} \"{2}\" \'{3}\'".format(chain_name, para_id, sudo_key, collators_keys) -# plan.print(run_command) -# plan.run_sh( -# run = run_command, -# image = constant.NODE_IMAGE, -# files = files, -# store = [StoreSpec(src = "/build/{0}.json".format(chain_name), name = chain_name + "edit")], -# ) - - -# raw_service = create_raw_build_spec_genisis_state_genisis_wasm_for_parachain(plan, binary, image, chain_name, ) - -# return raw_service - def create_parachain_build_spec_with_para_id(plan, image, binary, chain_name, chain_base, para_id, sudo_key, collators_keys): files = { "/app": "configs", @@ -61,7 +28,6 @@ def create_parachain_build_spec_with_para_id(plan, image, binary, chain_name, ch return raw_service - def create_raw_build_spec_genisis_state_genisis_wasm_for_parachain(plan, binary, image, chain_name): files = { "/app": "configs", @@ -76,4 +42,3 @@ def create_raw_build_spec_genisis_state_genisis_wasm_for_parachain(plan, binary, ) return chain_name + "raw" - \ No newline at end of file