Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable tss auth on spl whitelisting #60

Merged
merged 5 commits into from
Nov 3, 2024

Conversation

skosito
Copy link
Contributor

@skosito skosito commented Oct 30, 2024

Currently, whitelisting has only authority check, or equivalent to admin role in evm contracts. Zetaclient is signing with tss, so whitelist should be allowed for both authority and tss, this PR modifies that.

Testing currently with this draft PR where tss signature is used for whitelisting: zeta-chain/node#2984, and added unit tests here to verify both tss and authority work.

@skosito skosito linked an issue Oct 30, 2024 that may be closed by this pull request
@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 0% with 82 lines in your changes missing coverage. Please review.

Project coverage is 6.53%. Comparing base (6367073) to head (442f381).

Files with missing lines Patch % Lines
programs/protocol-contracts-solana/src/lib.rs 0.00% 82 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main     #60      +/-   ##
========================================
- Coverage   8.17%   6.53%   -1.65%     
========================================
  Files          1       1              
  Lines        318     398      +80     
========================================
  Hits          26      26              
- Misses       292     372      +80     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

tests/protocol-contracts-solana.ts Outdated Show resolved Hide resolved
tests/protocol-contracts-solana.ts Outdated Show resolved Hide resolved
programs/protocol-contracts-solana/src/lib.rs Show resolved Hide resolved
programs/protocol-contracts-solana/src/lib.rs Show resolved Hide resolved
Copy link
Contributor

@brewmaster012 brewmaster012 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, minor comment

programs/protocol-contracts-solana/src/lib.rs Outdated Show resolved Hide resolved
@skosito skosito force-pushed the enable-tss-auth-on-spl-whitelisting branch from b321f9d to 442f381 Compare November 3, 2024 04:16
@skosito skosito merged commit 177f563 into main Nov 3, 2024
14 checks passed
@skosito skosito deleted the enable-tss-auth-on-spl-whitelisting branch November 3, 2024 04:20
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.

Allow (un)whitelisting through tss
4 participants