chore: add editorconfig, reproducible-build script, audit step summary, and testnet deploy script - #173
Open
Darkdruce wants to merge 1 commit into
Conversation
…summary, and testnet deploy script Closes stellar-vortex-protocol#102 Closes stellar-vortex-protocol#103 Closes stellar-vortex-protocol#104 Closes stellar-vortex-protocol#105
|
@Darkdruce Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements four tooling/CI issues in a single change-set.
#102 — Add
.editorconfigAdded
.editorconfigat the repo root covering all file types present in the repository:.md: 2-space indent, trailing-whitespace preservation (for Markdown line-break syntax)..yml/.yaml: 2-space indent (matches existing CI YAML)..toml: 2-space indent (matches Cargo.toml)..sh: 2-space indent..rs: 4-space indent, 100-char line length — baseline only;rustfmtowns the real formatting.Closes #102
#103 — Add
verify-build.sh(reproducible WASM build verification)Added
verify-build.shwith:RUST_CHANNEL(1.78.0) to lock the toolchain version.cargo cleanbefore every build to eliminate stale artifacts.cargo build --lockedto honourCargo.lockexactly.RUSTFLAGS=""to prevent accidental flag injection.[profile.release](single CGU,opt-level = "z", no debug info, symbol stripping) are documented in comments.CONTRACT_IDargument: fetches the on-chain wasm viastellar contract fetch, computes its SHA-256, and compares it against the local hash.Closes #103
#104 — Surface
cargo-auditCI results as a step summaryUpdated the
auditjob in.github/workflows/ci.yml:cargo auditoutput withset +ebefore writing the summary.cargo auditoutput in a fenced code block.Closes #104
#105 — Add
deploy-testnet.sh(testnet deployment automation script)Added:
deploy-testnet.sh— reads config fromdeploy-testnet.env, runscargo build --locked,stellar contract deploy, andstellar contract invoke ... initializein sequence. Supports--skip-buildto reuse an existing wasm.deploy-testnet.env.example— documents all required/optional config variables (ADMIN_ADDRESS,FEE_RECIPIENT_ADDRESS,BOND_TOKEN_ADDRESS,SOURCE_SECRET_KEY,NETWORK, optionalWASM_PATH)..gitignoreupdated to excludedeploy-testnet.envand.last-deploy-testnet(the saved contract ID file).Closes #105
What was tested
bash -n)..editorconfigspot-checked against existing YAML, TOML, and Markdown files in the repo.