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

Add renewal functionality #113

Merged
merged 14 commits into from
Aug 1, 2024
Merged

Add renewal functionality #113

merged 14 commits into from
Aug 1, 2024

Conversation

realnimish
Copy link
Member

No description provided.

@realnimish realnimish marked this pull request as ready for review July 8, 2024 19:01
@realnimish realnimish requested a review from wottpal July 8, 2024 19:01
Copy link
Member

@wottpal wottpal left a comment

Choose a reason for hiding this comment

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

  • Can you specify the exact cargo-contract & rust versions we're using. I assume both are not the latest as we're not updating to v5 yet.
    • → cargo-contract v3.2.0 & rust >v1.69
  • Can you provide basic tests for renew.
  • Can you do extensive local testing which includes the contract updgrade. E.g.:
    • Deploy commit 5a64553 locally (current testnet/mainnet deployments afaik)
    • Do some registrations/etc.
    • Upgrade contracts to this branch
    • Set new values (i.e. maxRegistrationDuration, commonPrice)
    • Do some registrations/renewals/etc.

FYI Haven't tested the code myself yet (will do asap).

Copy link
Member

@wottpal wottpal left a comment

Choose a reason for hiding this comment

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

Updates as discussed:

  • Remove max expiry limit
    • → no contract changes requires as of now, just the extra tx after upgrade
  • Ability to register a new free domain for 1 year whenever the renewal amount exceeds 10 years (hardcoded). Same for registrations with 10+ years.

@realnimish

This comment was marked as resolved.

@wottpal
Copy link
Member

wottpal commented Jul 18, 2024

  • Batch Renewal
  • Rename to register_v2

Copy link
Member

@wottpal wottpal left a comment

Choose a reason for hiding this comment

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

lfg

@realnimish realnimish merged commit fa112c2 into develop Aug 1, 2024
2 checks passed
@realnimish realnimish deleted the feat/add-renewal-feature branch August 1, 2024 15:44
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.

2 participants