Beta release 1.0.0#83
Merged
Merged
Conversation
Hide 0 balance after user's first confidential update
Encrypt balance on public key registration
Allow registration and arbitrary change of view keys
Update README.md
Fix bug in transfer to self
Change abi file names
Start using bite-solidity library
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
withrdawTo should relsease to correct address
Rename ETH to "gas token" and ambiguous functions
Bump version
Contributor
There was a problem hiding this comment.
Pull request overview
This PR prepares the confidential token project for a 1.0.0 beta release, replacing local BITE/precompile mocks with the shared @skalenetwork/bite-solidity dependency and expanding confidential token, wrapper, historic-view, and encrypted EIP-3009 functionality.
Changes:
- Adds historic transfer disclosure, encrypted EIP-3009 flows, viewer-key handling, gas-token fee terminology, and wrapper async withdrawal behavior.
- Updates tests, docs, scripts, dependency/compiler configuration, and release ABI naming for the beta.
- Removes local BITE/mock/precompile Solidity implementations now sourced from the external BITE package.
Reviewed changes
Copilot reviewed 52 out of 54 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
VERSION |
Bumps release version to 1.0.0. |
package.json |
Adds BITE/dependency compiler tooling and updates scripts/dependencies. |
yarn.lock |
Locks new dependency/compiler and solhint versions. |
hardhat.config.ts |
Enables dependency compiler for BITE mock contracts. |
contracts/ConfidentialToken.sol |
Adds BITE package integration, viewer keys, gas-token accounting, historic views, encrypted transfers, and async stale handling. |
contracts/ConfidentialWrapper.sol |
Adds async withdraw-to recipient handling and revised pending mint accounting. |
contracts/HistoricView.sol |
Adds historic transfer authorization/storage helper library. |
contracts/eip3009/ConfidentialEIP3009.sol |
Adds encrypted EIP-3009 authorization support. |
contracts/eip3009/EIP3009.sol |
Updates pragma for new compiler range. |
contracts/eip3009/EIP712Utils.sol |
Updates pragma for new compiler range. |
contracts/MintableConfidentialToken.sol |
Updates pragma and adds burn support. |
contracts/AccessManager.sol |
Updates pragma for new compiler range. |
contracts/errors.sol |
Updates pragma and adds decryption format error. |
contracts/interfaces/IConfidentialToken.sol |
Expands public interface for gas token, viewer, encrypted transfer, and historic view APIs. |
contracts/interfaces/IConfidentialWrapper.sol |
Updates wrapper recovery documentation/API comments. |
contracts/interfaces/IMintableERC20.sol |
Adds burn to mintable ERC20 interface. |
contracts/test/TestERC20.sol |
Adds burn and pausable transfer behavior for wrapper tests. |
contracts/types.sol |
Removes local PublicKey type in favor of BITE dependency. |
contracts/Precompiled.sol |
Removes local precompile wrapper in favor of BITE dependency. |
contracts/interfaces/bite/IBiteSupplicant.sol |
Removes local BITE interface in favor of dependency. |
contracts/test/BiteMock.sol |
Removes local mock in favor of dependency compiler. |
contracts/test/CallbackSender.sol |
Removes local callback mock in favor of dependency compiler. |
contracts/test/EncryptECIESMock.sol |
Removes local ECIES mock in favor of dependency compiler. |
contracts/test/EncryptTEMock.sol |
Removes local TE mock in favor of dependency compiler. |
contracts/test/PrecompiledMock.sol |
Removes local base mock in favor of dependency compiler. |
contracts/test/SubmitCTXMock.sol |
Removes local submit mock in favor of dependency compiler. |
test/tools/utils.ts |
Adds ECIES/public-key/decode helpers for tests/scripts. |
test/tools/helpers.ts |
Updates balance helper for ECIES viewer decryption. |
test/tools/fixtures.ts |
Renames ETH balance variables to gas token terminology. |
test/EIP3009.ts |
Updates setup for gas token funding and viewer keys. |
test/ConfidentialEIP3009.ts |
Adds encrypted EIP-3009 test coverage. |
test/ConfidentialWrapper.ts |
Expands wrapper pending mint, release, stale callback, and withdraw tests. |
scripts/generateAbi.ts |
Renames generated ABI artifact prefix. |
scripts/deployAndTestMintableCnfToken.ts |
Adds deploy/test script for mintable confidential token flows. |
README.md |
Rewrites project README for beta functionality and usage. |
docs/ConfidentialToken.md |
Regenerates docs for expanded token API. |
docs/ConfidentialWrapper.md |
Regenerates docs for wrapper behavior. |
docs/HistoricView.md |
Adds generated docs for historic view library. |
docs/Precompiled.md |
Updates generated precompile docs. |
docs/MintableConfidentialToken.md |
Adds burn documentation. |
docs/errors.md |
Adds decryption format error docs. |
docs/eip3009/ConfidentialEIP3009.md |
Adds generated docs for encrypted EIP-3009. |
docs/interfaces/IConfidentialToken.md |
Regenerates expanded token interface docs. |
docs/interfaces/IConfidentialWrapper.md |
Updates wrapper interface docs. |
docs/interfaces/IMintableERC20.md |
Adds burn interface docs. |
slither.config.json |
Excludes dependency-compiled contracts from Slither filtering. |
cspell.json |
Excludes generated dependency contracts and adds doc word exceptions. |
.solhintignore |
Ignores dependency-compiled contracts. |
.gitignore |
Ignores dependency-compiled contracts. |
.github/workflows/publish.yml |
Updates published ABI artifact name. |
.github/copilot-instructions.md |
Adds repository-specific review guidance. |
.github/agents/cnf-token-auditor.agent.md |
Adds Solidity audit agent instructions. |
.github/agents/agent-docs/BITE.md |
Adds BITE auditor context documentation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## beta #83 +/- ##
==========================================
- Coverage 99.08% 97.84% -1.25%
==========================================
Files 6 7 +1
Lines 219 417 +198
Branches 53 95 +42
==========================================
+ Hits 217 408 +191
- Misses 2 9 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
eduv09
approved these changes
May 20, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.