Skip to content

Conversation

@sol-warrior
Copy link
Contributor

Added LiteSVM tests for writing, updating, and validating favorites on-chain.
Updated dependencies (@solana/web3.js → ^1.98.4, added litesvm).
Updated TypeScript config (es2020, nodenext).
Renamed test files and cleaned up deprecated/obsolete code.

Test Coverage:
Both test suites cover the same scenarios:

  • Writes our favorites to the blockchain
  • Updates the favorites
  • Rejects transactions from unauthorized signers

All tests pass:
✅ LiteSVM: Favorites — 3 passing
✅ Anchor: Favorites — 3 passing

cc: @Perelyn-sama @jacobcreech

- Implement tests for writing, updating, and validating favorite data on the blockchain.
- Ensure unauthorized transactions are rejected correctly.
- Utilize LiteSVM for transaction simulation and account state verification.
- Upgrade @solana/web3.js from ^1.95.2 to ^1.98.4.
- Add litesvm dependency with version ^0.4.0.
- Update lockfile to reflect changes in dependencies and their versions.
- Change target and module to es2020 and nodenext respectively.
- Update lib to include es2020 for improved compatibility.
- Update test descriptions for clarity.
- Replace deprecated error handling with assertions for unauthorized signer checks.
- Simplify transaction execution and data validation for favorites.
- Ensure consistent usage of BN for big number handling.
- Delete @solana-developers/helpers and related references from package.json and pnpm-lock.yaml.
- Remove favorites-bankrun.test.ts and system-errors.ts files as they are no longer needed.
- Clean up the project structure by eliminating obsolete code and dependencies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant