Conversation
Signed-off-by: AOXC <aoxcdao@gmail.com>
💡 Codex Review
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Motivation
aoxchain) can safely consume approved wrapper modules.Description
docs/AOXCHAIN_LIBRARY_INTEGRATION.mdanddocs/AOXC_STANDALONE_LIBRARY_LAYOUT.mddescribing the integration/standalone layout.script/install_foundry.sh(idempotent installer/validator) andscript/generate_library_manifest.py(scanssrc/aoxc-libraryand emitssrc/aoxc-library/manifest/approved-modules.json).src/aoxc-librarywithIAoxcModule,AoxcModuleRegistry,AoxcModuleFactory, thin wrapperAoxcDaoManagerModule, example modules (AoxcExampleTokenModule,AoxcExampleTreasuryModule), and the generatedapproved-modules.jsonmanifest.import {Script} from "forge-std/Script.sol"), add owner-helper internal checks in several small bridge/vault contracts, add bounds checks and safe casts withforge-lintcomments in registry/finance modules, and fix a sentinel revert argument to match the expected type.SafeERC20where appropriate andIERC20(...).safeTransfer(...), and include small deterministic fixes for proxy initialization casting.Testing
forge buildto compile the full repository and verify import changes; the build completed successfully.forge test(unit + integration) andforge test --fuzz(fuzz tests); all automated tests passed.python3 script/generate_library_manifest.py) to producesrc/aoxc-library/manifest/approved-modules.jsonfor CI consumption.Codex Task