Skip to content

Commit

Permalink
add bootstrap param injection
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasochem committed May 16, 2023
1 parent a538c02 commit ac8e372
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charts/tezos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,15 @@ protocols:
# # This data is typically too large to pass it directly inside helm chart.
# bootstrap_contract_urls: []
#
# # Pass additional structured data to add to parameters.json
# # This can be used to deploy smart rollup at bootstrap.
# bootstrap_parameters:
# bootstrap_smart_rollups:
# address: "sr1RYurGZtN8KNSpkMcCt9CgWeUaNkzsAfXf"
# pvm_kind: "arith"
# boot_sector: ""
# parameters_ty: "O [("prim", `String "Unit")]"
#
## Deploy an indexer with the chain. An indexer puts the chain
## contents in a database for efficient indexing. Most dapps need it.
## Supported indexers:
Expand Down
2 changes: 2 additions & 0 deletions test/charts/mainnet.expect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ data:
{}
TACOINFRA_SIGNERS: |
{}
OCTEZ_ROLLUP_NODES: |
{}
---
# Source: tezos-chain/templates/static.yaml
apiVersion: v1
Expand Down
2 changes: 2 additions & 0 deletions test/charts/mainnet2.expect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ data:
{}
TACOINFRA_SIGNERS: |
{}
OCTEZ_ROLLUP_NODES: |
{}
---
# Source: tezos-chain/templates/static.yaml
apiVersion: v1
Expand Down
2 changes: 2 additions & 0 deletions test/charts/private-chain.expect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ data:
]
}
}
OCTEZ_ROLLUP_NODES: |
{}
---
# Source: tezos-chain/templates/configs.yaml
apiVersion: v1
Expand Down
4 changes: 4 additions & 0 deletions utils/config-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,10 @@ def create_protocol_parameters_json(accounts):
print(f"Injecting bootstrap contract from {url}")
protocol_params["bootstrap_contracts"].append(requests.get(url).json())

# Append any additional bootstrap params such as smart rollups, if any
if protocol_activation.get("bootstrap_parameters"):
protocol_params = { **protocol_params, **protocol_activation.get("bootstrap_parameters") }

return protocol_params


Expand Down

0 comments on commit ac8e372

Please sign in to comment.