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

WIP Pricing Module #191

Draft
wants to merge 10 commits into
base: tlee/formatter
Choose a base branch
from
Draft

WIP Pricing Module #191

wants to merge 10 commits into from

Conversation

leecchh
Copy link
Contributor

@leecchh leecchh commented Oct 22, 2024

No description provided.

Copy link

changeset-bot bot commented Oct 22, 2024

⚠️ No Changeset found

Latest commit: 43589f2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Oct 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
suins-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 18, 2024 3:34pm

@@ -43,8 +43,8 @@ public struct NameRenewed has copy, drop {
}

/// The renewal's package configuration.
public struct RenewalConfig has store, drop {
config: Config,
public struct RenewalConfig<phantom T> has store, drop {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we expose the Renewal<T> struct from the suins::pricing module instead? Also a "new" constructor as well as an immutable access to PricingConfig?

That'll make it easier for any higher-level (external) package to provide discounts etc for both registrations and renewals (direct reading from get_config<Renewal<SUI>>.config().calculate_price())

@manolisliolios
Copy link
Collaborator

Let's only include core package changes in this PR!

200 * suins::constants::mist_per_sui(),
50 * suins::constants::mist_per_sui(),
),
let range1 = new_range(vector[3, 3]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd ideally keep the old config too, so the previous config tests also work for now.

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