Skip to content

System message on vm2 contract installed#5334

Merged
zajko merged 5 commits intocasper-network:feat-2.1from
zajko:system_message_on_vm2_contract_installed
Oct 13, 2025
Merged

System message on vm2 contract installed#5334
zajko merged 5 commits intocasper-network:feat-2.1from
zajko:system_message_on_vm2_contract_installed

Conversation

@zajko
Copy link
Contributor

@zajko zajko commented Sep 26, 2025

Applying system messages to vm2 install/upgrade. Refactored the existing functionality to publish to: package_key, contract_key, wasm_key, contract_version topic names regardless of the addressable entity flag.

Refactored AddrerssableEntity:
Added AddressableEntity::byte_code_addr function
Renamed AddressableEntity::package_hash to AddressableEntity::package
Renamed AddressableEntity::code_hash to AddressableEntity::code
Renamed package::PackageHash to package::PackageAddr
Renamed package::TryFromSliceForPackageHashError to package::TryFromSliceForPackageAddrError
Removed type key::PackageAddr

The refactoring part will affect downstream systems (sidecar, casper-client-rs etc.)

@zajko zajko force-pushed the system_message_on_vm2_contract_installed branch 8 times, most recently from 66cae56 to 2f0ce57 Compare September 28, 2025 21:16
@mpapierski mpapierski self-requested a review October 3, 2025 15:05
@zajko zajko force-pushed the system_message_on_vm2_contract_installed branch 6 times, most recently from dd42bc1 to 7b5eab4 Compare October 7, 2025 21:58
@zajko zajko force-pushed the system_message_on_vm2_contract_installed branch 6 times, most recently from 9152dea to 84a7d1a Compare October 8, 2025 19:00
@zajko zajko force-pushed the system_message_on_vm2_contract_installed branch from 84a7d1a to 53f5666 Compare October 10, 2025 09:57
const MESSAGING_BYTE_CODE_WASM_ADDR_TOPIC: &str = "byte_code_wasm_addr";
const MESSAGING_PACKAGE_ADDR_TOPIC: &str = "package_key";
const MESSAGING_CONTRACT_ADDR_TOPIC: &str = "contract_key";
const MESSAGING_CONTRACT_WASM_ADDR_TOPIC: &str = "wasm_key";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bytecode_key?

zajko added 4 commits October 11, 2025 23:01
…ing functionality to publish to: package_key, contract_key, wasm_key, contract_version topic names regardless of the addressable entity flag
@zajko zajko force-pushed the system_message_on_vm2_contract_installed branch from 53f5666 to b12dd38 Compare October 11, 2025 21:06
@zajko zajko force-pushed the system_message_on_vm2_contract_installed branch from b12dd38 to c108b68 Compare October 11, 2025 21:39
@zajko zajko merged commit 2f496d3 into casper-network:feat-2.1 Oct 13, 2025
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants