-
Notifications
You must be signed in to change notification settings - Fork 24
Update provider registry and application registry via governance #2587
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
Merged
saraswatpuneet
merged 29 commits into
feat/provider-context-development
from
2549_update_provider
Sep 6, 2025
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
566faae
add update_provider_via_governance extrinsic
saraswatpuneet c6a6446
provider update related ext
saraswatpuneet ff260b4
add extrinsics to update a given application
saraswatpuneet fa1dfcb
add provider/application update tests
saraswatpuneet e8d61b7
add benchmarks and tests
saraswatpuneet ce09338
Update weights
saraswatpuneet 02208fe
update weights and add e2e tests
saraswatpuneet 5f47790
lint e2e
saraswatpuneet 3e53ac9
Merge branch 'feat/provider-context-development' into 2549_update_pro…
saraswatpuneet 8fcd4d3
add a non sudo required create application function and block it in r…
saraswatpuneet fa789ef
cleanups
saraswatpuneet 19dac9b
better assertions
saraswatpuneet 232bf98
update benchmarks to run over a lenght of locales
saraswatpuneet 013b982
Update weights
saraswatpuneet 156ae37
make benchmakrs more grandular
saraswatpuneet 9af87fb
temporary: to make benchmarks run with m,n
saraswatpuneet 720a627
Update weights
saraswatpuneet a8e49d7
improve benchmarks
saraswatpuneet e7f01ed
Update weights
saraswatpuneet d7451c3
set correct weights on extrinsics
saraswatpuneet 1dab27b
Update weights
saraswatpuneet 1fa7330
fix lint
saraswatpuneet 7e40764
block on filter
saraswatpuneet 5680042
remove hidden in test
saraswatpuneet c6a4a74
update pallet readme with new apis and runtime api
saraswatpuneet 6517305
set proper removabls of older cids from logo storage
saraswatpuneet a8643af
Update weights
saraswatpuneet b944fe8
better assertions
saraswatpuneet 267f015
remove unused variable
saraswatpuneet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add a non sudo required create application function and block it in r…
…untime
- Loading branch information
commit 8fcd4d321e6efe1c26dad6058863ef9361464649
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
So, for a while I've wondered why we filter the calls this way, instead of simply feature-flagging those extrinsics out for a mainnet build.
Doing the call filtering this way, the extrinsics still show up in the metadata on mainnet, but you can't call them... but you don't know that until you try to call them...
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.
this only block capacity tx, one can use sudo/ council keys with tokens to by pass this ? which is okay i guess
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.
Sorry, I meant to point out line 263 above, where we filter out for mainnet
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 see what you mean, good catch I will add it there too, this runtime is getting huge
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.
Right--so my question is, why do we filter the calls from mainnet instead of just feature-flagging the extrinsics out?
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'm going to raise the question as a parking lot next week in standup; maybe we'll create an issue based on the outcome of the discussion.
FYI here's what AI said (with my comments appended)
Comparison of
BaseCallFiltervs. feature flagsUh oh!
There was an error while loading. Please reload this page.
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's pretty useful thank you and I agree this is worth discussing we can start to optimize the runtime.
Also linked above comment to main Provider Context PR
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 think the problem with having features on top of extrinsics was that it would modify the extrinsic indices between testnet and mainnet when we didn't have explicit index assignment for each extrinsic.
The other issue is the metadata compatibility. Having metadata for a feature that is disabled is better compared to not having any metadata for it. If we gate extrinisics by feature it would fork metadata into 2 different versions depending on if it was generated for testnet or mainnnet which can also be another pain point in future.
I think if we decide to add feature to these it should probably be inside the extrinsic body and the implementation should be refactored to support this.
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.
Hmm... regarding the extrinsic index, isn't this set explicitly by
#[pallet::call_index(5)], for instance? We already have "holes" in the extrinsic indices for deprecated extrinsics that have been completely removed.Also, the metadata is already different between chains, since we remove the entire
sudopallet for Mainnet.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.
Yes as mentioned in my previous comment initially we didn't have that explicit indexing capability but since it's that is fixed the only argument about having these as a filter would be to keep the metadata as consistent as possible.
The argument about sudo pallet is correct but that seems to be an exceptional case I'm not sure how metadata difference would affect when filtering an extrinsic by a feature. It might be alright or it might cause issues. The problem is that if we generate the metadata with mainnet then we can never call those extrinsics from e2e tests which is not great and if we decide to generate the metadata for paseo then we would have metadata for a featurer which does not exists on the chain and that might cause other issues.