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

refactor: fees to use version system #1911

Merged
merged 51 commits into from
Jul 14, 2024

Conversation

ogabrielides
Copy link
Contributor

@ogabrielides ogabrielides commented Jun 27, 2024

Issue being fixed or feature implemented

Some fees needs to be fetched based on the processing EpochIndex (and not by getting the active PlatformVersion).

What was done?

In order to achieve that, a map of EpochIndex -> FeeVersion (on which Epoch the FeeVersion were updated) was introduced in PlatformState.

  • On upgrade_protocol_version_on_epoch_change, the map is updated only when the FeeVersion is changed.

How Has This Been Tested?

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have added "!" to the title and described breaking changes in the corresponding section if my code contains any
  • I have made corresponding changes to the documentation if needed

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

packages/rs-dpp/src/fee/default_costs/mod.rs Outdated Show resolved Hide resolved
packages/rs-dpp/src/fee/default_costs/mod.rs Outdated Show resolved Hide resolved
packages/rs-dpp/src/fee/fee_result/refunds.rs Outdated Show resolved Hide resolved
packages/rs-drive/Cargo.toml Outdated Show resolved Hide resolved
packages/rs-drive/src/drive/document/delete/mod.rs Outdated Show resolved Hide resolved
packages/rs-drive/src/drive/document/insert/mod.rs Outdated Show resolved Hide resolved
packages/rs-drive/src/drive/identity/key/fetch/mod.rs Outdated Show resolved Hide resolved
@ogabrielides ogabrielides requested a review from shumkov July 4, 2024 14:18
@ogabrielides ogabrielides requested a review from shumkov July 5, 2024 07:35
shumkov
shumkov previously approved these changes Jul 5, 2024
shumkov
shumkov previously approved these changes Jul 8, 2024
Copy link
Member

@shumkov shumkov left a comment

Choose a reason for hiding this comment

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

👍

packages/rs-dpp/src/fee/fee_result/refunds.rs Outdated Show resolved Hide resolved
packages/rs-dpp/src/fee/default_costs/mod.rs Outdated Show resolved Hide resolved
packages/rs-dpp/src/lib.rs Outdated Show resolved Hide resolved
packages/rs-sdk/src/platform/fetch_many.rs Outdated Show resolved Hide resolved
packages/rs-platform-version/Cargo.toml Outdated Show resolved Hide resolved
packages/rs-drive/src/drive/identity/key/fetch/mod.rs Outdated Show resolved Hide resolved
packages/rs-dpp/src/fee/default_costs/mod.rs Outdated Show resolved Hide resolved
packages/rs-dpp/src/fee/default_costs/mod.rs Outdated Show resolved Hide resolved
@QuantumExplorer QuantumExplorer changed the base branch from v1.0-dev to v1.0-dev-temp-fees July 14, 2024 17:57
@QuantumExplorer
Copy link
Member

Reviewed, works well, just a few needed changes that are in a future PR.

@QuantumExplorer QuantumExplorer merged commit f5ae7a4 into v1.0-dev-temp-fees Jul 14, 2024
39 of 64 checks passed
@QuantumExplorer QuantumExplorer deleted the refactor/FeesToUseVersionSystem branch July 14, 2024 17:59
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.

3 participants