-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: tlee/formatter
Are you sure you want to change the base?
WIP Pricing Module #191
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
packages/renewal/sources/renew.move
Outdated
@@ -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 { |
There was a problem hiding this comment.
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()
)
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]); |
There was a problem hiding this comment.
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.
No description provided.