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(gateway): add instance ttl extension #51

Merged
merged 5 commits into from
Nov 3, 2024

Conversation

AttissNgo
Copy link
Contributor

@AttissNgo AttissNgo commented Oct 31, 2024

AXE-6098

  • add ttl extension for instance storage when validate_proof is called

- add ttl extension for instance storage when validate_proof is called
@AttissNgo AttissNgo requested a review from a team as a code owner October 31, 2024 01:19
@codecov-commenter
Copy link

codecov-commenter commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.46%. Comparing base (0a40b39) to head (bf218ea).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #51   +/-   ##
=======================================
  Coverage   99.46%   99.46%           
=======================================
  Files          28       28           
  Lines        2983     2990    +7     
=======================================
+ Hits         2967     2974    +7     
  Misses         16       16           

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

contracts/axelar-gateway/src/contract.rs Outdated Show resolved Hide resolved
contracts/axelar-gateway/src/auth.rs Outdated Show resolved Hide resolved
contracts/axelar-gateway/src/contract.rs Outdated Show resolved Hide resolved
- encapsulate instance extend ttl logic in a public function
- move call of extend_instance_ttl to approve_messages, the most commonly used entrypoint
- change const variables defining ttl extension params for clarity
- add comment explaining ttl extension reasoning
- remove pub visibility on extend_instance_ttl()
- remove space after /// to fix linting error
- increase instance ttl extend threshold to 14 days
@AttissNgo AttissNgo merged commit 12cba3b into main Nov 3, 2024
5 checks passed
@AttissNgo AttissNgo deleted the feat/gateway-instance-extend-ttl branch November 3, 2024 11:37
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.

4 participants