Skip to content

Commit

Permalink
chore: update PCSC to 7.0.2 (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsporny authored Jan 13, 2025
1 parent b6dfd7f commit 4a43b1a
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ substrate-prometheus-endpoint = { package = "substrate-prometheus-endpoint", git
substrate-test-runtime-client = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409" }
substrate-wasm-builder = { default-features = false, git = "https://github.com/paritytech/polkadot-sdk.git", tag = "polkadot-stable2409" }

raw-scripts = { git = "https://github.com/input-output-hk/partner-chains-smart-contracts.git", tag = "v7.0.1" }
raw-scripts = { git = "https://github.com/input-output-hk/partner-chains-smart-contracts.git", tag = "v7.0.2" }

# local dependencies
sidechain-runtime = { path = "node/runtime" }
Expand Down
2 changes: 1 addition & 1 deletion E2E-tests/config/substrate/devnet_stack.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"ssh": "${stack_config[ssh]}"
},
"sidechain_main_cli": {
"cli": "/tools/partner-chains-smart-contracts-7.0.1/pc-contracts-cli",
"cli": "/tools/partner-chains-smart-contracts-7.0.2/pc-contracts-cli",
"ssh": "${stack_config[ssh]}"
},
"generate_signatures_cli": {
Expand Down
2 changes: 1 addition & 1 deletion E2E-tests/config/substrate/staging_stack.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"ssh": "${stack_config[ssh]}"
},
"sidechain_main_cli": {
"cli": "/tools/partner-chains-smart-contracts-7.0.1/pc-contracts-cli",
"cli": "/tools/partner-chains-smart-contracts-7.0.2/pc-contracts-cli",
"ssh": "${stack_config[ssh]}"
},
"generate_signatures_cli": {
Expand Down
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This changelog is based on [Keep A Changelog](https://keepachangelog.com/en/1.1.
* Organized Rust sources into two directories: toolkit and node.
* Implemented transaction balancing with CSL in offchain code.
* Update offchain code dependencies: pallas, ulpc and cardano-serialization-lib.
* Updated to partner-chains-smart-contracts v7.0.1
* Updated to partner-chains-smart-contracts v7.0.2
* * chain-params crate that provided SidechainParam is removed, because there are no SidechainParams anymore
* * partner-chains-cli is changed, so prepare-config wizard sets `genesis_utxo` and does not set sidechain parameters
* * pallets are not generic on SidechainParams anymore, they use UtxoId (genesis_utxo) instead
Expand Down
2 changes: 1 addition & 1 deletion dev/local-environment/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ OGMIOS_IMAGE="cardanosolutions/ogmios:v6.9.0"
POSTGRES_IMAGE="postgres:15.3"
SIDECHAIN_MAIN_CLI_IMAGE="node:22-bookworm"
TESTS_IMAGE="python:3.10-slim"
PC_CONTRACTS_CLI_ZIP_URL="https://github.com/input-output-hk/partner-chains-smart-contracts/releases/download/v7.0.1/pc-contracts-cli-v7.0.1.zip"
PC_CONTRACTS_CLI_ZIP_URL="https://github.com/input-output-hk/partner-chains-smart-contracts/releases/download/v7.0.2/pc-contracts-cli-v7.0.2.zip"
PARTNER_CHAINS_NODE_URL="https://github.com/input-output-hk/partner-chains/releases/download/v1.3.0/partner-chains-node-v1.3.0-x86_64-linux"
PARTNER_CHAINS_CLI_URL="https://github.com/input-output-hk/partner-chains/releases/download/v1.3.0/partner-chains-cli-v1.3.0-x86_64-linux"

Expand Down
2 changes: 1 addition & 1 deletion dev/nix/packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
system,
...
}: let
pcContractsCliVersion = "7.0.1";
pcContractsCliVersion = "7.0.2";
flake-compat = import inputs.flake-compat;
cardanoPackages = (flake-compat { src = inputs.cardano-node; }).defaultNix.packages.${system};
dbSyncPackages = (flake-compat { src = inputs.cardano-dbsync; }).defaultNix.packages.${system};
Expand Down
4 changes: 2 additions & 2 deletions dev/nix/packages/pc-contracts-cli.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{ fetchzip, stdenv, ... }:
let
version = "7.0.1";
version = "7.0.2";
in fetchzip {
url = "https://github.com/input-output-hk/partner-chains-smart-contracts/releases/download/v${version}/pc-contracts-cli-v${version}.zip";
hash = "sha256-Sp94vyyjI1lfRar6TJX1YRD/eOYkbK/t7dplLZx7+iA=";
hash = "sha256-g2uUS+HD7+YjiczH16TNfg+Qy2Yhc+W1Rlf02pAR7B4=";
stripRoot = false;
version = "${version}";
name = "pc-contracts-cli-${version}";
Expand Down
4 changes: 2 additions & 2 deletions docs/developer-guides/migration-guide-1.4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- Please read the whole document before attempting to perform any actions.
- Whenever the guide requires running the `partner-chains-cli` binary, make sure the `pc-contracts-cli`
of the version specified in the compatibility matrix is present in your active directory. In case of the
1.4.0 release it should be v7.0.1.
1.4.0 release it should be v7.0.2.
- It is recommended to test migration on a testnet environment first.

## Context
Expand All @@ -13,7 +13,7 @@ This guide describes the process of migrating from Partner Chains SDK v1.3.1 to
established chain, avoiding a chain reset.

The biggest change in version v1.4.0 which requires special handling is the update to smart contracts
version v7.0.1, which:
version v7.0.2, which:
- introduces a new governance mechanism which needs to be set up
- removes "sidechain params" as part of the definition of a Partner Chain, replacing them with the
genesis utxo (which is the utxo burned when establishing a governance)
Expand Down

0 comments on commit 4a43b1a

Please sign in to comment.