LocalTerra: 10× genesis and swarm funding for QA gas headroom (#372) #886
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
code/cl8y-dex-terraclassic!886
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/372-localterra-funding-10x"
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
Raises LocalTerra genesis, deploy seed amounts, and swarm / E2E funding defaults by 10× so
make swarm-launchand the Simulated Wallet (sharedtest1account) do not exhaust LUNC gas during a full QA day (#372).docker/init-chain.sh): 10M LUNC, 100M USTC (+ other stables 10×)scripts/deploy-dex-local.sh): CW20initial_balances1e13, wrapped-native seeds 1e15, treasury default 20M USTC + 2M LUNCSWARM_*andE2E_DEV_*defaults 10× infunding.ts/e2e-provision-dev-wallet.shpreflight-test1-uluna.sh+ swarm startup WARN below 100k LUNC;make verify-localterra-funding-headroomVolume reset required:
make reset(ormake reset-qa) before redeploy so new genesis applies (LT6).Acceptance checklist
make reset && make start && make wait-healthy; LCD query pre-deploy:amount≈9999990000000make deploy-local-no-build;curl …/balances/terra1x46…→7960105375898make swarm-launch≥4h without test1 <500k LUNCmake swarm-localsoak: balance still ≫500kmake test-contractsmake test-contractsmake test-frontendmake test-frontend(925 tests)make test-swarm-liquiditymake test-swarm-liquiditypackages/localnet-trading-swarmunit testscd packages/localnet-trading-swarm && npm run test:run(15 tests incl.funding.test.ts)docs/localterra-sdk53.mdupdated;grep 10000000000000uluna docker/init-chain.shmake test-qa-fresh-volumesmake test-qa-fresh-volumesmake verify-localterra-funding-headroomBlockers for SKIP items: 4h swarm soak and simulated-wallet-during-swarm require manual QA host time; math and 2min soak show manageable burn at single-worker rate — 10× genesis provides ~10× prior post-deploy headroom (~8M vs ~0.8M).
Third-party verification
Docs drift:
grep -R "1M LUNC" docs/should return no current invariant references.Follow-ups
--fees 500000000ulunaif ante allows (#115)changed the description
changed the description
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue.
Reviewed by Cursor Bugbot for commit
f71fb043b4. Configure here.Verify script ignores QA LCD
Medium Severity
query_test1_ulunaonly usesVITE_TERRA_LCD_URLdefaulting tohttp://127.0.0.1:1317, unlike sibling QA scripts that sourcescripts/qa/qa-host.envandTERRA_LCD_URL/DEX_TERRA_LCD_PORT. On remapped QA hosts or when onlyfrontend-dapp/.env.localholds the LCD URL, balance checks and the swarm soak can read zero and fail incorrectly.Reviewed by Cursor Bugbot for commit
f71fb043b4. Configure here.Security review — MR !886
Commit reviewed:
f71fb043b4b43ee1aba7280efd52350908f511deScope: LocalTerra genesis/deploy/E2E/swarm funding scaled 10× (#372); new
preflight-test1-uluna.sh,verify-localterra-funding-headroom.sh, swarm low-balance WARN paths; docs/Makefile only otherwise.Method: Diff vs
main(19 files). Traced attacker-controlled inputs to sinks in new/changed scripts (preflight-test1-uluna.sh,verify-localterra-funding-headroom.sh,swarm.pybalance probe,funding.tsdefaults,deploy-dex-local.shtreasury/CW20 seeds). Checked auth boundaries, injection, SSRF, secret leakage, and production code paths.Outcome:
FINDINGS: 0medium+Summary: No exploitable medium, high, or critical issues on this diff.
docker/init-chain.sh,deploy-dex-local.sh, E2E provision, trading-swarm package). No production frontend, indexer API, or on-chain contract logic is modified.test1address and existinglocalterra-host-curl/_lcd_get_jsonpatterns;TERRA_LCD_URLSSRF surface is unchanged and limited to operator-controlled dev tooling.DEPLOY_TREASURY_FUND_COINS/SWARM_*env overrides were already supported; only defaults changed. No shell metacharacter expansion beyond pre-existingterrad_txquoting.Uint128ranges; no overflow or authz bypass introduced.test1mnemonic documentation is operational clarity, not a new secret exposure.Inline threads: None (no medium+ findings).
Prior security comments: None on this MR to reconcile.
added 1 commit
e24661a8- fix(qa): source qa-host.env for LCD in verify-localterra-funding-headroomCompare with previous version
changed the description
resolved all threads
mentioned in commit
0b63e0030d