Skip to content
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

Fix/rpc vesting #96

Merged
merged 10 commits into from
Sep 5, 2023
Merged

Fix/rpc vesting #96

merged 10 commits into from
Sep 5, 2023

Conversation

devdanco
Copy link
Member

No description provided.

Copy link
Member

@mateuszaaa mateuszaaa left a comment

Choose a reason for hiding this comment

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

few questions

Balance: Codec + MaybeDisplay + sp_std::fmt::Debug,
TokenId: Codec + MaybeDisplay + sp_std::fmt::Debug,
BlockNumber: Codec + MaybeDisplay + sp_std::fmt::Debug,
AccountId: Codec + MaybeDisplay + MaybeFromStr,
Copy link
Member

Choose a reason for hiding this comment

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

why exactly we need string conversions here?

{
fn get_vesting_locked_at(who: AccountId, token_id: TokenId, at_block_number: Option<BlockNumber>) -> VestingInfosWithLockedAt<Balance, BlockNumber>;
fn get_vesting_locked_at(who: AccountId, token_id: TokenId, at_block_number: Option<BlockNumber>) -> Vec<(VestingInfo<Balance, BlockNumber>, Balance)>;
Copy link
Member

Choose a reason for hiding this comment

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

looking at the name i would consider it should just return balance ?

Copy link
Member

@mateuszaaa mateuszaaa left a comment

Choose a reason for hiding this comment

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

nice

frame/vesting-mangata/rpc/runtime-api/src/lib.rs Outdated Show resolved Hide resolved
frame/vesting-mangata/rpc/src/lib.rs Outdated Show resolved Hide resolved
@devdanco devdanco merged commit 462977d into mangata-dev Sep 5, 2023
3 of 4 checks passed
@devdanco devdanco deleted the fix/rpc-vesting branch September 5, 2023 10:38
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