Skip to content

Feat(metadata): basic metadata api support #38

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 10 commits into from
Aug 1, 2024
Merged

Conversation

indirection42
Copy link
Contributor

@indirection42 indirection42 commented Jul 26, 2024

  • No support for metadata serialization yet

@indirection42 indirection42 requested a review from xlc July 26, 2024 03:23
@indirection42 indirection42 marked this pull request as draft July 26, 2024 05:27
@indirection42 indirection42 requested a review from xlc July 30, 2024 03:05
type AccountId: Decode;
type AssetId: Decode;
type Balance: Encode;
type AssetId: Encode + Decode;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type AssetId: Encode + Decode;
type AssetId: Codec;

// quote! {}
// };
Ok(parse_quote!(
#[derive(Decode)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to use fully qualified name for Decode

@indirection42 indirection42 marked this pull request as ready for review July 30, 2024 07:56
@indirection42 indirection42 requested a review from xlc July 30, 2024 07:56
__Phantom(core::marker::PhantomData<Impl>)
));
Ok(parse_quote!(
#[derive(parity_scale_codec::Decode)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this work if parity_scale_codec was imported with a different name? maybe we need to do something like #xcq_extension::deps::parity_scale_codec::Decode

@@ -18,6 +18,7 @@ pub type XcqResult = Result<XcqResponse, XcqError>;
pub mod metadata;
pub mod metadata_ir;

pub mod umbrella {
pub mod deps {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add #[doc(hidden)] for internal use only but public items

@indirection42 indirection42 merged commit 38a9804 into master Aug 1, 2024
2 checks passed
@indirection42 indirection42 deleted the metadata-api branch August 1, 2024 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants