Skip to content

Conversation

@chiranjeev13
Copy link
Member

No description provided.

chiranjeev13 and others added 8 commits October 22, 2025 07:23
- Removed the bun.lock file as it is no longer needed.
- Updated package.json to use newer versions of @inco/lightning and @inco/js (0.6.2).
- Modified lightning-test.ts to import incoLightningAbi from the correct path.
- Enhanced runE2ETest function by replacing callback promise with direct call to zap.attestedDecrypt.
- Added fundAccount function to facilitate account funding during tests.
- Updated AddTwo contract to simplify the addTwoEOA function and removed unnecessary callback logic.
- Introduced LibTest contract for testing arithmetic and logical operations on encrypted types.
- Commented out test cases in TestSimpleConfidentialToken.t.sol for clarity and future reference.
- Introduced bun.lock file to manage package dependencies.
- Updated @inco/lightning and @inco/js versions to 0.6.8 in package.json and contracts/package.json.
- Added remapping for @inco/lightning in contracts/remappings.txt.
- Added Back TestSimpleConfidentialTokent.t.sol
- Updated the Docker image tag in the .env file to v0.6.1.
- Modified wagmi.config.mts to include LibTest.sol in the build process.
- Refined the addTwo contract by implementing the Fee functionality and simplifying the addTwoEOA method.
- Expanded the generated ABIs in abis.ts to include new functions and outputs for LibTest.
- Enhanced the lightning-test.ts to incorporate tests for the new LibTest contract and its arithmetic operations.
- Changed the version of @inco/js in bun.lock to link the local package.
- Added backoff configuration for retry logic in lightning-test.ts.
- Integrated incoVerifierAbi into the Lightning tests for improved contract interaction.
- Updated various test cases to utilize the new contract methods and ensure proper functionality.
- Adjusted the LibTest contract to require a fee for encrypted input creation methods.
- Changed the version of @inco/js in bun.lock and package.json to 0.6.9.
- Updated import paths in lightning-test.ts to use .js extension for generated ABIs.
- Modified several test cases to ensure proper value assertions and removed unnecessary comments.
- Skipped certain tests for rotation operations to focus on essential functionality.
… Lightning tests

- Introduced new functions `testRevealEAddress`, `testRevealEBool`, and `testRevealEUint` in LibTest.sol for revealing encrypted values.
- Updated abis.ts to include the new reveal functions.
- Enhanced lightning-test.ts with tests for the new reveal functions, ensuring proper decryption and value assertions for encrypted handles.
- Added a helper function to create eaddress handles for testing purposes.
Copy link
Contributor

@kourtellosg kourtellosg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good overall - some comments for overall improvements on test strutrure

chiranjeev13 and others added 7 commits November 10, 2025 23:48
- Updated the Docker image tag in the .env file to v0.6.9.
- Changed the version of @inco/lightning in package.json to 0.6.9.
- Introduced new test files for `AddTwo` and `LibTest` contracts, implementing end-to-end tests for arithmetic and logical operations.
- Refactored `runE2ETest` to streamline the execution of tests for both contracts.
- Enhanced the testing workflow in test.yml by adding separate steps for installing dependencies in the root and contracts directories.
- Included a step to compile contracts using Forge.
- Added a step to start services with Docker.
- Updated the end-to-end testing step to run tests from the backend directory.
- Added a new section to foundry.toml to disable linting during the build process.
@chiranjeev13 chiranjeev13 merged commit fedcae0 into main Nov 11, 2025
1 check passed
@chiranjeev13 chiranjeev13 deleted the cm/ft-update-tests branch November 11, 2025 14:36
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.

3 participants