-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
E2E xchain support for eth balance checking. Note the getBalance method on chains returns the balance of the native token so depending on the chain it may be MATIC (e.g. polygon), etc. testing: - unit tests in typescript, go - xchain IT tests - e2e client-based tests for channels (stream node and client entitlement checks) and spaces (enters through joinSpace and uses client checks and xchain service) Also added a few new unit tests to round out rule data evaluation according to coderabbit's suggestion. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced new `ETHBALANCE` and `NATIVE_COIN_BALANCE` operation types for entitlement checks, allowing evaluations based on Ethereum and native coin wallet balances. - Enhanced functionality for checking balances across linked wallets for both Ethereum and native coins. - Expanded the entitlement management system with new functions and constants for improved balance checks. - **Bug Fixes** - Improved error handling during balance retrieval to prevent nil address flags. - **Tests** - Significantly expanded test coverage for Ethereum and native coin balance checks, incorporating various scenarios and configurations. - Added comprehensive tests to validate entitlement checks based on both Ethereum and native coin balances. - **Documentation** - Enhanced clarity and usability of the smart contract's ABI, with more explicit input and output structures. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
23 changed files
with
1,444 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.