Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@ECJ222
Copy link
Contributor

@ECJ222 ECJ222 commented Nov 24, 2021

Added an example for balance AccountStore #6532.

13g44iYtkxLZ2tkp6iTJiqs7yEiEr4bVsPZTueWDjd6Bor1P

@ECJ222 ECJ222 changed the title chore: add example for balance AccountStore check (#10167) chore: add example for balance AccountStore Nov 24, 2021
///
/// ```
/// impl Balance for Runtime {
/// type AccountStore = StorageMapShim<Self::Account<Runtime>, frame_system::Provider<Runtime>, AccountId, Self::AccountData<Balance>>
Copy link
Member

Choose a reason for hiding this comment

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

Some docs on what this does would be nice.

Copy link
Member

Choose a reason for hiding this comment

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

@ECJ222 this is still not done.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Please could you explain a little bit more on this, can I put the explanation above the updated code?

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry but doc still is not really sensible. You should explain the context, what options are available (store the data in this pallet or in system), which one is better, what tradeoff exists etc.

I really don't see any value in adding this one example block.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made an update to my initial pr @kianenigma

Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

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

Needs addressing the review comments, thanks!

@stale
Copy link

stale bot commented Jan 3, 2022

Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the A5-stale Pull request did not receive any updates in a long time. No review needed at this stage. Close it. label Jan 3, 2022
@bkchr
Copy link
Member

bkchr commented Jan 3, 2022

Ping @ECJ222 ?

@stale stale bot removed the A5-stale Pull request did not receive any updates in a long time. No review needed at this stage. Close it. label Jan 3, 2022
@ECJ222
Copy link
Contributor Author

ECJ222 commented Jan 3, 2022

Hi @bkchr,

Hope you are doing good, I have been a little busy I will jump back on this issue.

@bkchr
Copy link
Member

bkchr commented Jan 8, 2022

Can you please resolve the requested changes?

@ECJ222
Copy link
Contributor Author

ECJ222 commented Jan 9, 2022

Hey @bkchr,

I have resolved your requested changes.

@bkchr bkchr requested a review from kianenigma January 11, 2022 18:29
@ECJ222
Copy link
Contributor Author

ECJ222 commented Jan 12, 2022

@kianenigma, @athei

@kianenigma
Copy link
Contributor

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@kianenigma
Copy link
Contributor

@ECJ222 please run cargo +nightly fmt and we're good to go.

@paritytech-processbot
Copy link

Merge cancelled due to error. Error: Head SHA changed from 4970679 to 3f71ad7

@ECJ222
Copy link
Contributor Author

ECJ222 commented Jan 25, 2022

@ECJ222 please run cargo +nightly fmt and we're good to go.

I have formatted my code changes @kianenigma 👍

@bkchr bkchr added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Jan 25, 2022
@bkchr bkchr merged commit 31d90c2 into paritytech:master Jan 25, 2022
eskimor pushed a commit that referenced this pull request Jan 27, 2022
* chore: modified example for balance AccountStore

* add example for account store balance

* add example for account store balance

* Update frame/balances/src/lib.rs

* Update frame/balances/src/lib.rs

* balance account store example

* balance account store example

* Update frame/balances/src/lib.rs

* Update frame/balances/src/lib.rs

* balance account store example

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Wizdave97 pushed a commit to ComposableFi/substrate that referenced this pull request Feb 4, 2022
* chore: modified example for balance AccountStore

* add example for account store balance

* add example for account store balance

* Update frame/balances/src/lib.rs

* Update frame/balances/src/lib.rs

* balance account store example

* balance account store example

* Update frame/balances/src/lib.rs

* Update frame/balances/src/lib.rs

* balance account store example

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* chore: modified example for balance AccountStore

* add example for account store balance

* add example for account store balance

* Update frame/balances/src/lib.rs

* Update frame/balances/src/lib.rs

* balance account store example

* balance account store example

* Update frame/balances/src/lib.rs

* Update frame/balances/src/lib.rs

* balance account store example

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* chore: modified example for balance AccountStore

* add example for account store balance

* add example for account store balance

* Update frame/balances/src/lib.rs

* Update frame/balances/src/lib.rs

* balance account store example

* balance account store example

* Update frame/balances/src/lib.rs

* Update frame/balances/src/lib.rs

* balance account store example

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants