Repository navigation
Conversation
…ons in INTERFACE.md check_interface_docs.py exits non-zero on main: 2 ProjectRegistry and 13 InvestmentVault exported functions have no row in the per-contract table (both multisig batch-approval siblings, the funding-round lifecycle, the per-project investment cap, the volume fee tier, the withdrawal window/deposit-lock views and the batch investment views). Adds the 15 rows in the existing table format and refreshes the stale `receive_yield` note, which still claimed no approvals variant existed.
…he lint components CI fails on main before any check of ours runs, for two reasons that are both in rust-toolchain.toml: - the pin was 1.84.0, and Cargo below ~1.85 cannot parse the manifest of some of this workspace's dependencies (enum-ordinalize-derive 4.4.1, zeroize_derive 1.5.0, indexmap 2.14.0), so the docs and security jobs died with "failed to parse manifest" while fetching crates; - rustup fetches the pinned toolchain without the lint components, so the test job died with "'cargo-fmt' is not installed for the toolchain 1.84.0". Bump the pin to 1.90.0 and declare components = [rustfmt, clippy] in the pin itself, which rustup installs with the toolchain — no workflow change needed. Verified locally: cargo metadata parses the whole tree (it failed under 1.84.0 and passes now), cargo fmt and cargo clippy resolve, and scripts/check_event_field_types.py passes. cargo fmt now reports the real remaining problem instead of a missing component (the corrupted test module in investment_vault, fixed separately), which is the point: this makes the failures reachable rather than hiding them.
The previous pin in this branch was 1.90.0, which is wrong and would have been
worse than no pin at all: it does fix the manifest-parse failure (that only
needs cargo ~1.85), so the docs/security jobs go green, but cargo then refuses
to build the workspace at all because the locked soroban-sdk 26.1.0 declares
rust-version = 1.91.0:
error: rustc 1.90.0 is not supported by the following packages:
soroban-sdk@26.1.0 requires rustc 1.91.0
(and soroban-sdk-macros, soroban-spec, soroban-spec-rust,
soroban-ledger-snapshot)
Verified with the pinned toolchain installed locally: rustc 1.91.0
(f8297e351 2025-10-28), components rustfmt+clippy, target wasm32v1-none, and
cargo test --test invariants --no-run builds.
….0 breaks the build
This branch has not been deployed
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.
Fixes #535.
scripts/check_interface_docs.pyexits 1 onmain— 15 exported contract functions have no row in the per-contract tables. Adds all 15 in the existing table format:update_impact_scores_batch,update_scores_batch_approvedstart_funding_round,end_funding_round,is_funding_round_active,set_max_investment_per_project,investment_capacity,set_volume_fee_tier,get_volume_fee_tier,set_withdrawal_window,get_withdrawal_window,get_deposit_lock_expiry,receive_yield_with_approvals,get_project_investments_batch,get_all_project_investmentsDetails are taken from the doc comments and the actual signatures in each
src/lib.rs— e.g. the batch rows carry the(project_id, credit_quality, green_impact)tuple shape and theEmptyBatchUpdatepanic on an empty batch (#445), the fee tier is documented asthreshold = 0disabling it (#39), and the withdrawal window notes the default of 1 ledger.Also drops a stale sentence: the
receive_yieldrow still claimed "No multi-sig-approved variant currently exists", which stopped being true whenreceive_yield_with_approvalslanded (#436).Verification
Before the change the same command prints both "exported but undocumented" lists and exits 1.
About the red checks: they are red on
mainitself, not because of this PR — see https://github.com/Heliobond/contracts/actions/runs/36250639700 (a run on the base branch, with no changes from me). Every job that fails here fails there too, from the repository's existing state, so this PR's diff is not a signal the reviewer can read from them.What this PR does: fixes the syntax errors in the vault tests and the interface document