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
[testnet] switch testnet minting from AssocRoot account to TreasuryCompliance account #4458
Conversation
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.
Looks good to me. Only thing I'm wondering is if this breaks the faucet service for the client?
|
||
// TODO: temporary, we should ideally make MintCapability unique eventually... | ||
public fun grant_mint_capability_to_association<CoinType>(association: &signer) { | ||
assert_assoc_and_currency<CoinType>(association); | ||
move_to(association, MintCapability<CoinType>{}) | ||
} | ||
|
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.
That is a very good point. I will check the faucet code and make sure--ideally it should be as simple as sending faucet txes from |
☔ The latest upstream changes (presumably 50ee2bd) made this pull request unmergeable. Please resolve the merge conflicts. |
41c0618
to
8463b01
Compare
This PR made the following dependency changes: Added Packages (Duplicate versions in '()'):
enum_dispatch 0.3.1
|
92e6866
to
b16e321
Compare
CC @christinacelee @thefallentree to make sure this won't break the faucet service. |
3e9b6db
to
5416d19
Compare
looks good to me since you already modified CLI which faucet uses. |
5416d19
to
97afddb
Compare
@bors-libra r=tzakian |
📌 Commit 97afddb has been approved by |
This was a temporary hack that violates an important invariant: the MintCapability for a given currency should be globally unique. This property should now be true. Closes: #4458 Approved by: tzakian
💔 Test failed - checks-circle_commit_workflow |
2f3011b
to
3b7120f
Compare
@bors-libra r=tzakian |
📌 Commit 3b7120f has been approved by |
This was a temporary hack that violates an important invariant: the MintCapability for a given currency should be globally unique. This property should now be true. Closes: #4458 Approved by: tzakian
Cluster Test failed - test report processing failed. See https://github.com/libra/libra/actions/runs/133853596
|
💔 Test failed - checks-actions_land_blocking_test |
☔ The latest upstream changes (presumably 44dcf38) made this pull request unmergeable. Please resolve the merge conflicts. |
8faa84f
to
a7973ce
Compare
@bors-libra r=tzakian |
📌 Commit a7973ce has been approved by |
This was a temporary hack that violates an important invariant: the MintCapability for a given currency should be globally unique. This property should now be true. Closes: #4458 Approved by: tzakian
Cluster Test failed - test report processing failed. See https://github.com/libra/libra/actions/runs/134391884
|
💔 Test failed - checks-actions_land_blocking_test |
Cluster Test failed - test report processing failed. See https://github.com/libra/libra/actions/runs/134391884
|
a7973ce
to
f1f0ab9
Compare
@bors-libra r=tzakian |
📌 Commit f1f0ab9 has been approved by |
This was a temporary hack that violates an important invariant: the MintCapability for a given currency should be globally unique. This property should now be true. Closes: #4458 Approved by: tzakian
This was a temporary hack that violates an important invariant: the MintCapability for a given currency should be globally unique. This property should now be true.
f1f0ab9
to
073c1d5
Compare
@bors-libra r=tzakian |
📌 Commit 073c1d5 has been approved by |
Cluster Test Result
Repro cmd:
|
Cluster Test Result
Repro cmd:
|
☀️ Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow |
Today, minting in testnet and in all tests is performed from the AssocRoot account
0xA550C18
. This is different from the production configuration, where there is a singleMintCapability
given to the TreasuryCompliance account0xB1E55ED
.This PR changes tests/testnet to reflect production.
Libra::grant_mint_capability_to_association
. This was a temporary hack that violates an important invariant: theMintCapability
for a given currency should be globally unique. This property should now be true.treasury_compliance_account
to the client CLI. Minting operations now use this account. It uses the same keypair as AssocRoot for now (but need not)0xA550C18
for minting