The 58KB src/blockchain/abi.ts was the output of the legacy hardhat-based
wagmi config and was being committed verbatim. Since wagmi.config.ts now
emits src/generated.ts (gitignored, regenerated on every prestart via
`bun run wagmi:gen`), keeping the old artifact in the tree was just dead
weight.
- Remove src/blockchain/abi.ts from tracking
- Repoint 4 imports (sellerMethods, events, provider, BuyerSearchComponent)
from `@/blockchain/abi` / `./abi` to `@/generated`
- contracts:compile now injects ALCHEMY_API_KEY=placeholder + a default
test MNEMONIC so hardhat.config.ts can load without a manual .env in
the submodule (matches the placeholder values used in p2pix-front-end's
submodule .env)
- wagmi.config.ts: read ABIs from p2pix-smart-contracts/artifacts/contracts
(P2Pix, Reputation, MockToken) and emit src/generated.ts with the
@wagmi/cli actions plugin
- package.json: add scripts
* contracts:compile — installs submodule deps + runs `hardhat compile`
* wagmi:gen — runs @wagmi/cli to (re)generate src/generated.ts
* prewagmi:gen — chains contracts:compile before wagmi:gen
* prestart — runs wagmi:gen, so `bun start` always has fresh ABIs
- .gitignore: ignore src/generated.ts (regenerated on every prestart)
Note: GraphQL/subgraph codegen is intentionally out of scope here — it
will land in its own branch.
- Standardized the use of quotes and spacing in various files.
- Removed unnecessary line breaks and trailing spaces in components.
- Improved the structure of computed properties and methods for better clarity.
- Enhanced the consistency of prop definitions and emit events in Vue components.
- Updated the GraphQL composable to streamline error handling and data processing.
- Refactored network configuration files for better organization and readability.
- Cleaned up model files by removing redundant lines and ensuring consistent formatting.
- Adjusted router configuration for improved readability.
- Enhanced utility functions for better maintainability and clarity.