Skip to content

Identity Registry Upgradability #40

@Bosun-Josh121

Description

@Bosun-Josh121

Target Contract: identity-registry-contract
Labels: phase-2-registry, infrastructure

Description: Standard WASM upgrade capability for the Registry.

Tasks:

  • src/contract.rs: Implement upgrade_contract(env, new_wasm_hash: BytesN<32>). Require admin auth.
  • src/lib.rs: Expose pub fn upgrade_contract(env: Env, new_wasm_hash: BytesN<32>) -> Result<(), RegistryError> in #[contractimpl].
  • src/test.rs: Test WASM upgrade maintains the expert directory state without data loss.

Acceptance Criteria:

  • Registry logic can be hot-swapped by the admin.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions