Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move tezos-k8s to jakarta #465

Merged
merged 1 commit into from
Jul 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/tezos-reward-distributor/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ spec:
command:
- /bin/sh
- -c
- python src/main.py -M 2 --reward_data_provider {{ .Values.reward_data_provider }} --node_addr_public {{ .Values.tezos_node_addr }} --node_endpoint {{ .Values.tezos_node_addr }} --base_directory /trd --signer_endpoint {{ .Values.signer_addr }} {{ .Values.extra_trd_args }} -N ITHACANET
- python src/main.py -M 2 --reward_data_provider {{ .Values.reward_data_provider }} --node_addr_public {{ .Values.tezos_node_addr }} --node_endpoint {{ .Values.tezos_node_addr }} --base_directory /trd --signer_endpoint {{ .Values.signer_addr }} {{ .Values.extra_trd_args }} -N GHOSTNET
restartPolicy: OnFailure
34 changes: 28 additions & 6 deletions charts/tezos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ protocols:
## You may want to run two or more if you are expecting an on-chain upgrade.
## Be mindful that running more protocols will start more containers in your
## pods which may consume more memory.
- command: 012-Psithaca
- command: 013-PtJakart
# - command: alpha

## Activate a new chain from genesis. Uncommenting this will create an
Expand All @@ -322,13 +322,13 @@ protocols:
## after chain activation.
##
# activation:
# protocol_hash: Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A
# protocol_hash: PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY
# protocol_parameters:
# preserved_cycles: 3
# blocks_per_cycle: 8
# blocks_per_commitment: 4
# blocks_per_stake_snapshot: 4
# blocks_per_voting_period: 64
# cycles_per_voting_period: 1
# hard_gas_limit_per_operation: '1040000'
# hard_gas_limit_per_block: '5200000'
# proof_of_work_threshold: '-1'
Expand All @@ -339,13 +339,13 @@ protocols:
# endorsing_reward_per_slot: '2857'
# hard_storage_limit_per_operation: '60000'
# origination_size: 257
# cost_per_byte: '1000'
# cost_per_byte: '250'
# quorum_max: 7000
# quorum_min: 2000
# min_proposal_quorum: 500
# liquidity_baking_subsidy: '2500000'
# liquidity_baking_sunset_level: 525600
# liquidity_baking_escape_ema_threshold: 100000
# liquidity_baking_sunset_level: 10000000
# liquidity_baking_toggle_ema_threshold: 100000
# max_operations_time_to_live: 120
# minimal_block_delay: "5"
# delay_increment_per_round: "5"
Expand All @@ -360,6 +360,28 @@ protocols:
# ratio_of_frozen_deposits_slashed_per_double_endorsement:
# numerator: 1
# denominator: 2
# cache_script_size: 100000000
# cache_stake_distribution_cycles: 8
# cache_sampler_state_cycles: 8
# tx_rollup_enable: true
# tx_rollup_origination_size: 4000
# tx_rollup_hard_size_limit_per_inbox: 500000
# tx_rollup_hard_size_limit_per_message: 5000
# tx_rollup_max_withdrawals_per_batch: 15
# tx_rollup_commitment_bond: "10000000000"
# tx_rollup_finality_period: 10
# tx_rollup_max_inboxes_count: 15
# tx_rollup_withdraw_period: 10
# tx_rollup_max_messages_per_inbox: 1010
# tx_rollup_max_commitments_count: 30
# tx_rollup_cost_per_byte_ema_factor: 120
# tx_rollup_max_ticket_payload_size: 2048
# tx_rollup_rejection_max_proof_size: 30000
# tx_rollup_sunset_level: 17280
# sc_rollup_enable: false
# sc_rollup_origination_size: 6314
# sc_rollup_challenge_window_in_blocks: 40
# sc_rollup_max_available_messages: 1000000
#
# # Pass url pointing to additional contracts that you want injected at activation.
# # This data is typically too large to pass it directly inside helm chart.
Expand Down
2 changes: 1 addition & 1 deletion mkchain/tqchain/mkchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def main():
parametersYaml = yaml.safe_load(yaml_file)
activation = {
"activation": {
"protocol_hash": "Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",
"protocol_hash": "PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",
"protocol_parameters": parametersYaml,
},
}
Expand Down
30 changes: 26 additions & 4 deletions mkchain/tqchain/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ preserved_cycles: 3
blocks_per_cycle: 8
blocks_per_commitment: 4
blocks_per_stake_snapshot: 4
blocks_per_voting_period: 64
cycles_per_voting_period: 1
hard_gas_limit_per_operation: '1040000'
hard_gas_limit_per_block: '5200000'
proof_of_work_threshold: '-1'
Expand All @@ -13,13 +13,13 @@ baking_reward_bonus_per_slot: '4286'
endorsing_reward_per_slot: '2857'
hard_storage_limit_per_operation: '60000'
origination_size: 257
cost_per_byte: '1000'
cost_per_byte: '250'
quorum_max: 7000
quorum_min: 2000
min_proposal_quorum: 500
liquidity_baking_subsidy: '2500000'
liquidity_baking_sunset_level: 525600
liquidity_baking_escape_ema_threshold: 100000
liquidity_baking_sunset_level: 10000000
liquidity_baking_toggle_ema_threshold: 100000
max_operations_time_to_live: 120
minimal_block_delay: "5"
delay_increment_per_round: "5"
Expand All @@ -34,3 +34,25 @@ double_baking_punishment: "640000000"
ratio_of_frozen_deposits_slashed_per_double_endorsement:
numerator: 1
denominator: 2
cache_script_size: 100000000
cache_stake_distribution_cycles: 8
cache_sampler_state_cycles: 8
tx_rollup_enable: true
tx_rollup_origination_size: 4000
tx_rollup_hard_size_limit_per_inbox: 500000
tx_rollup_hard_size_limit_per_message: 5000
tx_rollup_max_withdrawals_per_batch: 15
tx_rollup_commitment_bond: "10000000000"
tx_rollup_finality_period: 10
tx_rollup_max_inboxes_count: 15
tx_rollup_withdraw_period: 10
tx_rollup_max_messages_per_inbox: 1010
tx_rollup_max_commitments_count: 30
tx_rollup_cost_per_byte_ema_factor: 120
tx_rollup_max_ticket_payload_size: 2048
tx_rollup_rejection_max_proof_size: 30000
tx_rollup_sunset_level: 17280
sc_rollup_enable: false
sc_rollup_origination_size: 6314
sc_rollup_challenge_window_in_blocks: 40
sc_rollup_max_available_messages: 1000000
48 changes: 35 additions & 13 deletions test/charts/private-chain.expect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,27 +33,30 @@ data:
"protocol_activation": {
"deterministic_faucet_number_of_accounts": 1000,
"deterministic_faucet_seed": "oM0TxIV5gYNVd0T9kasdfnv352",
"protocol_hash": "Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",
"protocol_hash": "PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",
"protocol_parameters": {
"baking_reward_bonus_per_slot": "4286",
"baking_reward_fixed_portion": "10000000",
"blocks_per_commitment": 4,
"blocks_per_cycle": 8,
"blocks_per_stake_snapshot": 4,
"blocks_per_voting_period": 64,
"cache_sampler_state_cycles": 8,
"cache_script_size": 100000000,
"cache_stake_distribution_cycles": 8,
"consensus_committee_size": 7000,
"consensus_threshold": 4667,
"cost_per_byte": "1000",
"cost_per_byte": "250",
"cycles_per_voting_period": 1,
"delay_increment_per_round": "5",
"double_baking_punishment": "640000000",
"endorsing_reward_per_slot": "2857",
"frozen_deposits_percentage": 10,
"hard_gas_limit_per_block": "5200000",
"hard_gas_limit_per_operation": "1040000",
"hard_storage_limit_per_operation": "60000",
"liquidity_baking_escape_ema_threshold": 100000,
"liquidity_baking_subsidy": "2500000",
"liquidity_baking_sunset_level": 525600,
"liquidity_baking_sunset_level": 10000000,
"liquidity_baking_toggle_ema_threshold": 100000,
"max_operations_time_to_live": 120,
"max_slashing_period": 2,
"min_proposal_quorum": 500,
Expand All @@ -71,8 +74,27 @@ data:
"denominator": 2,
"numerator": 1
},
"sc_rollup_challenge_window_in_blocks": 40,
"sc_rollup_enable": false,
"sc_rollup_max_available_messages": 1000000,
"sc_rollup_origination_size": 6314,
"seed_nonce_revelation_tip": "125000",
"tokens_per_roll": "8000000000"
"tokens_per_roll": "8000000000",
"tx_rollup_commitment_bond": "10000000000",
"tx_rollup_cost_per_byte_ema_factor": 120,
"tx_rollup_enable": true,
"tx_rollup_finality_period": 10,
"tx_rollup_hard_size_limit_per_inbox": 500000,
"tx_rollup_hard_size_limit_per_message": 5000,
"tx_rollup_max_commitments_count": 30,
"tx_rollup_max_inboxes_count": 15,
"tx_rollup_max_messages_per_inbox": 1010,
"tx_rollup_max_ticket_payload_size": 2048,
"tx_rollup_max_withdrawals_per_batch": 15,
"tx_rollup_origination_size": 4000,
"tx_rollup_rejection_max_proof_size": 30000,
"tx_rollup_sunset_level": 17280,
"tx_rollup_withdraw_period": 10
}
}
}
Expand Down Expand Up @@ -290,7 +312,7 @@ spec:
httpGet:
path: /is_synced
port: 31732
- name: baker-012-psithaca
- name: baker-013-ptjakart
image: "tezos/tezos:v12-release"
imagePullPolicy: IfNotPresent
command:
Expand All @@ -307,7 +329,7 @@ spec:
NODE_DATA_DIR="$TEZ_VAR/node/data"
BAKER_EXTRA_ARGS_FROM_ENV=${BAKER_EXTRA_ARGS}

proto_command="012-Psithaca"
proto_command="013-PtJakart"

if [ "${proto_command}" == "012-Psithaca" ]; then
extra_args=""
Expand Down Expand Up @@ -736,7 +758,7 @@ spec:
httpGet:
path: /is_synced
port: 31732
- name: baker-012-psithaca
- name: baker-013-ptjakart
image: "tezos/tezos:v10-release"
imagePullPolicy: IfNotPresent
command:
Expand All @@ -753,7 +775,7 @@ spec:
NODE_DATA_DIR="$TEZ_VAR/node/data"
BAKER_EXTRA_ARGS_FROM_ENV=${BAKER_EXTRA_ARGS}

proto_command="012-Psithaca"
proto_command="013-PtJakart"

if [ "${proto_command}" == "012-Psithaca" ]; then
extra_args=""
Expand Down Expand Up @@ -1015,7 +1037,7 @@ spec:
httpGet:
path: /is_synced
port: 31732
- name: baker-012-psithaca
- name: baker-013-ptjakart
image: "tezos/tezos:v12-release"
imagePullPolicy: IfNotPresent
command:
Expand All @@ -1032,7 +1054,7 @@ spec:
NODE_DATA_DIR="$TEZ_VAR/node/data"
BAKER_EXTRA_ARGS_FROM_ENV=${BAKER_EXTRA_ARGS}

proto_command="012-Psithaca"
proto_command="013-PtJakart"

if [ "${proto_command}" == "012-Psithaca" ]; then
extra_args=""
Expand Down Expand Up @@ -1276,7 +1298,7 @@ spec:
echo Activating chain:
$CLIENT -d /var/tezos/client --block \
genesis activate protocol \
Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A \
PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY \
with fitness -1 and key \
$( cat /etc/tezos/activation_account_name ) \
and parameters /etc/tezos/parameters.json 2>&1 | head -200
Expand Down
32 changes: 27 additions & 5 deletions test/charts/private-chain.in.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
activation:
deterministic_faucet_seed: oM0TxIV5gYNVd0T9kasdfnv352
deterministic_faucet_number_of_accounts: 1000
protocol_hash: Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A
protocol_hash: PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY
protocol_parameters:
preserved_cycles: 3
blocks_per_cycle: 8
blocks_per_commitment: 4
blocks_per_stake_snapshot: 4
blocks_per_voting_period: 64
cycles_per_voting_period: 1
hard_gas_limit_per_operation: '1040000'
hard_gas_limit_per_block: '5200000'
proof_of_work_threshold: '-1'
Expand All @@ -27,13 +27,13 @@ activation:
endorsing_reward_per_slot: '2857'
hard_storage_limit_per_operation: '60000'
origination_size: 257
cost_per_byte: '1000'
cost_per_byte: '250'
quorum_max: 7000
quorum_min: 2000
min_proposal_quorum: 500
liquidity_baking_subsidy: '2500000'
liquidity_baking_sunset_level: 525600
liquidity_baking_escape_ema_threshold: 100000
liquidity_baking_sunset_level: 10000000
liquidity_baking_toggle_ema_threshold: 100000
max_operations_time_to_live: 120
minimal_block_delay: "5"
delay_increment_per_round: "5"
Expand All @@ -48,6 +48,28 @@ activation:
ratio_of_frozen_deposits_slashed_per_double_endorsement:
numerator: 1
denominator: 2
cache_script_size: 100000000
cache_stake_distribution_cycles: 8
cache_sampler_state_cycles: 8
tx_rollup_enable: true
tx_rollup_origination_size: 4000
tx_rollup_hard_size_limit_per_inbox: 500000
tx_rollup_hard_size_limit_per_message: 5000
tx_rollup_max_withdrawals_per_batch: 15
tx_rollup_commitment_bond: "10000000000"
tx_rollup_finality_period: 10
tx_rollup_max_inboxes_count: 15
tx_rollup_withdraw_period: 10
tx_rollup_max_messages_per_inbox: 1010
tx_rollup_max_commitments_count: 30
tx_rollup_cost_per_byte_ema_factor: 120
tx_rollup_max_ticket_payload_size: 2048
tx_rollup_rejection_max_proof_size: 30000
tx_rollup_sunset_level: 17280
sc_rollup_enable: false
sc_rollup_origination_size: 6314
sc_rollup_challenge_window_in_blocks: 40
sc_rollup_max_available_messages: 1000000
bootstrap_peers: []
expected_proof_of_work: 0
full_snapshot_url: null
Expand Down