Problem
The explorer/registry contract is deployed to testnet (CBKPNRQ4D3KTAAE7MMJ4HL6JNF2J2EBG2PSSRW4YHOMHTRHUU734CFWJ) but init(admin, max_events) has not been invoked, so the registry and event ledger are not usable: submit_event, register_contract, and the admin-gated functions require an admin that is not yet set. The deployment records the contract ID but not its initialization state.
What needs to be done
- Document the post-deploy initialization flow in
DEPLOYMENTS.md: the init call, the chosen admin address, and the max_events value.
- Add the
init invocation to build-and-deploy.sh (or a separate initialize.sh) using the Stellar CLI, guarded so it is not re-run against an already-initialised contract.
- Execute
init against the deployed testnet contract and record the resulting state (admin, max_events) in DEPLOYMENTS.md.
Files
DEPLOYMENTS.md
build-and-deploy.sh (or new initialize.sh)
Acceptance deliverables
- The deployed registry contract is initialized on testnet with a documented admin and
max_events.
- The initialization step is scripted and idempotent.
Tests to pass
- A dry-run of the init script against a freshly deployed contract succeeds and is a no-op on an already-initialised one.
Problem
The explorer/registry contract is deployed to testnet (
CBKPNRQ4D3KTAAE7MMJ4HL6JNF2J2EBG2PSSRW4YHOMHTRHUU734CFWJ) butinit(admin, max_events)has not been invoked, so the registry and event ledger are not usable:submit_event,register_contract, and the admin-gated functions require an admin that is not yet set. The deployment records the contract ID but not its initialization state.What needs to be done
DEPLOYMENTS.md: theinitcall, the chosen admin address, and themax_eventsvalue.initinvocation tobuild-and-deploy.sh(or a separateinitialize.sh) using the Stellar CLI, guarded so it is not re-run against an already-initialised contract.initagainst the deployed testnet contract and record the resulting state (admin, max_events) inDEPLOYMENTS.md.Files
DEPLOYMENTS.mdbuild-and-deploy.sh(or newinitialize.sh)Acceptance deliverables
max_events.Tests to pass