-
Notifications
You must be signed in to change notification settings - Fork 47
chore: more improvements #592
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
Merged
Changes from 15 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
3c1a13d
Improve comment
ntn-x2 3fc3ff1
Usernamable -> GetUsername
ntn-x2 6e5309a
Refactor proof verification logic
ntn-x2 e0b4e82
Refund unused call weight
ntn-x2 7d9c77f
Rename types
ntn-x2 511114f
Add defaults for proof verifier generics
ntn-x2 f1705d4
Remove non_exhaustive
ntn-x2 e2197de
Improve steps comments
ntn-x2 8ffed84
Modules in different fiels
ntn-x2 3aaecfb
Bump to Incrementable
ntn-x2 72bbeb2
Fix hooks in pallet-dip-provider
ntn-x2 52bbb73
Rename support to primitives
ntn-x2 e279abc
Update TODO
ntn-x2 5df91bf
Fix import error
ntn-x2 c90b64b
Improve web3name logic
ntn-x2 ad3317a
Update hooks
ntn-x2 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
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,21 +16,20 @@ | |
|
|
||
| // If you feel like getting in touch with us, you can do so at [email protected] | ||
|
|
||
| /// Verification logic to integrate a child chain as a DIP provider. | ||
| pub mod child; | ||
| /// Verification logic to integrate a sibling chain as a DIP provider. | ||
| pub mod sibling; | ||
| pub mod parachain; | ||
| /// Verification logic to integrate a child chain as a DIP provider. | ||
| pub mod relaychain; | ||
|
|
||
| mod common; | ||
|
|
||
| pub use child::{ | ||
| DipChildProviderStateProofVerifierError, KiltVersionedChildProviderVerifier, VersionedChildParachainDipStateProof, | ||
| pub use parachain::{ | ||
| DipParachainStateProofVerifierError, KiltVersionedParachainVerifier, VersionedDipParachainStateProof, | ||
| }; | ||
| pub use sibling::{ | ||
| DipSiblingProviderStateProofVerifierError, KiltVersionedSiblingProviderVerifier, | ||
| VersionedSiblingParachainDipStateProof, | ||
| pub use relaychain::{ | ||
| DipRelaychainStateProofVerifierError, KiltVersionedRelaychainVerifier, VersionedRelaychainStateProof, | ||
| }; | ||
|
|
||
| pub mod latest { | ||
| pub use super::{child::latest::*, common::latest::*, sibling::latest::*}; | ||
| pub use super::{common::latest::*, parachain::latest::*, relaychain::latest::*}; | ||
| } | ||
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.
is this not a bit redundant? The mods are public or not?
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.
Perhaps. The goal is to allow a consumer to import directly from the root, and we export the most important types there.
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. I do not have a strong opinion on that. Discard the comment if you like.
Maybe the developer experience is better having shorter names. Instead of
DipParachainStateProofVerifierErrorit could be renamed toStateProofVerifierError, which is imported fromparachain? Just an idea.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.
There are conflicts if the same type is re-exported from two different modules. I would move on for now, but won't close this issue. It will probably be part of the next batch of improvements.