-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[draft] Storage Deposit #6514
[draft] Storage Deposit #6514
Conversation
a854b49
to
f1ecc6f
Compare
let entry = vector::borrow(&slot_charges, i); | ||
let coin = coin::extract_from_aggregatable_coin(&mut global_storage_deposit.deposit, entry.amount); | ||
coin::deposit(entry.account, coin); | ||
// FIXME(aldenhu): central events kills concurrency, probably need to augment Account with these events |
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.
@davidiw ..
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.
Considering that there'd be no way to know why you get refunds, I'm not sure a way around 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.
Now that it's part of the gas, I'm thinking being obscure (just like other gas charges) is fine 🤡
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.
Oh.. the refund won't be deducted from gas_used
though..
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.
With the movement toward objects, we could consider explicit user-owned objects for reimbursements, but there's a whole host of other issues that need to be addressed, such as opt-in, what to do if the user has only one -- do we have a framework to maximize parallelization..
7447ff9
to
084b912
Compare
in preparation for exposing StateValue
We only had a "New mistakenly converted to Modification" issue for normal resources. Modules and resource groups were never affected.
…king * StateValue now has a new flavor which carries StateValueMetadata. * similarly there is now WriteOp::CreationWithMetadata and friends
…nish() SessionOutput is removed entirely, SessionExt::finish() directly returns ChangeSetExt
So that in the VM adapter and session it's possible to access on-chain configs and state slot metadata
9863cb1
to
e9e5328
Compare
e9e5328
to
58f6be0
Compare
58f6be0
to
798ea0b
Compare
|
||
let existing_value_opt = self | ||
.remote | ||
.get_state_value(state_key) |
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 issue is stale because it has been open 45 days with no activity. Remove the |
This issue is stale because it has been open 45 days with no activity. Remove the |
in preparation for exposing StateValue### Description
Test Plan