Skip to content

Commit

Permalink
chore: code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
shanithkk committed Mar 27, 2024
1 parent f905a20 commit 3fbdc32
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions parachain/build-spec.star
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -76,4 +42,3 @@ def create_raw_build_spec_genisis_state_genisis_wasm_for_parachain(plan, binary,
)

return chain_name + "raw"

0 comments on commit 3fbdc32

Please sign in to comment.