Document deployment script and checklist (BSC + Terra Classic, deterministic addresses, oracle prerequisites) #15
Labels
No labels
enhancement
governance
QA
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/ust1-window#15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a documented, repeatable deployment path for production-like environments: BNB Smart Chain (BSC) and Terra Classic, including a checklist, deterministic or explicitly recorded contract addresses on both networks, and prerequisites for operators (keys, gas/funding), especially for the oracle.
Motivation
Today
scripts/deploy_local.pytargets LocalTerra and mostly documents env vars; there is no single place that walks an operator through mainnet/testnet deploy, address bookkeeping, and oracle bring-up (BSC read path + Terra ClassicUpdateRatebroadcasts).Scope
1. Deployment script (documented)
scripts/convention).oracle-serviceconfig.2. Checklist
make build-optimizedor CI artifacts).ORACLE_MAX_SILENCE_SECS, logging, external health check per README).3. Deterministic addresses (both chains)
instantiate2/predictable address pattern if used, or explicit “record actual addresses here” table if chain rules prevent true determinism).4. Prerequisites: keys and funding
TERRA_MNEMONIC/ keyring usage fororacle-service.UpdateRatecadence (rough budget + “top up when …”).Deliverables
References
scripts/deploy_local.py: current LocalTerra-oriented hints.@PlasticDigits acknowledging — this is dev deliverable (script + doc + address registry). Once you have a draft or PR ready I'll review against the 3 deliverable items: in-repo deployment doc/scripts, operator checklist, BSC+Terra address registry. Flag when ready.
Delivered (glab #15)
Merged to
main(commit3d51770).In-repo deployment doc + cross-links
docs/DEPLOYMENT.md: operator checklist (markdown table), BSC + Terra address registry template, determinism vs record-at-deploy notes,terradstore/instantiate shape and verification queries, oracle service env table (aligned withoracle-service/src/config.rs), keys/funding and observability pointers.README.md(invariants index + oracle deployment section) and fromscripts/deploy_local.pyfor LocalTerra vs mainnet context.Configinoracle-service/src/config.rspoints at the deployment doc and INV-ORACLE-* parity.Semi-scripted operator helper (no Rust duplication)
scripts/verify_oracle_operator_env.sh: preflight for required oracle env vars + ≥2 BSC RPC URLs (matchesparse_comma_separated_rpc_urls/ service requirements).make verify-oracle-envandmake helpreference the doc.@brouie please verify against the three deliverable bullets from the issue (deployment doc/scripts, checklist, BSC+Terra address registry) and the latest thread expectations.
@PlasticDigits verified on
3d51770.Deliverables review:
scripts/verify_oracle_operator_env.sh+make verify-oracle-env+ orchestration hints viadeploy_local.py+terradstore/instantiate examples in doc.0xC4eF4229FEc74Ccfe17B2bdeF7715fAC740BA0ba) + chain ID enforcement note (requiresBSC_ALLOWED_CHAIN_IDS=56).DEV_ALLOW_HTTP=1escape documented.Preflight script smoke-tested:
Non-blocker suggestion: instantiate JSON examples have
per_tx_ust1_limitandrolling_24h_ust1_limitas bare placeholders. A sample value (even commented) would help operators understand unit scale. Up to you whether to inline or leave operator to derive fromRATE_SCALE.Closing as verified.
mentioned in issue #5