-
Notifications
You must be signed in to change notification settings - Fork 716
feat: patch btc namespace price parameters
#2277
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
Conversation
jcnelson
left a comment
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 confirm that the .btc namespace gets instantiated when the Stacks 2.0 node boots up?
|
Can you add it to #2210? Then I'll approve it. |
|
@jcnelson are we okay to test this manually? It will take some time to add name testing to that PR, and we're trying to get a finalized v1 export image out. |
|
@lgalabru I was able to get the Stacks 2.0 Clarity BNS tests working here: e23459f And the parameters that result in 2 STX per name using the bns.clar contract are: {
buckets: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
base: 1000,
coeff: 200,
noVowelDiscount: 1,
nonAlphaDiscount: 1,
}Does this look right to you? |
|
Manual testing is fine, but you should be able to add an automated test to stacks-blockchain that just queries |
Yes, but we can't add Stacks 2.0 tests in this 1.0 branch. We first need to PR against master/next with a new |
|
Since we have #2286, what's our take on discarding this PR, and letting @MarvinJanssen update the btc price function, post migration? |
I'd recommend keeping it in -- the PR is ready and there's no additional risk in having the namespace materialize with the correct price function in Stacks 2.0 genesis, but the converse is not true. |
|
This PR won't be ready until #2286 is finalized, afterwards we can finalize the price parameters in this PR. |
jcnelson
left a comment
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.
As long as you're happy with the price parameters, this LGTM.
lgalabru
left a comment
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.
LGTM if this is the way!
afee62e to
76e8360
Compare
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Closes https://github.com/blockstackpbc/devops/issues/540
This PR adds a patch to the
btcnamespace price parameters that get exported for Stacks 2.0. The goal is for names on thebtcnamespace to cost 2 STX per name.@lgalabru can you verify the price parameters here are patched as intended? I ran into issues trying to test locally within the bns-test scripts.