-
Notifications
You must be signed in to change notification settings - Fork 58
feat(node): Remove multiple versions of types #3499
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
Conversation
…he iota-system types (#3048) * refactor(iota-framework/iota-system): Remove deprecated structures * refactor(iota-framework/iota-system): Rename ValidatorSet to ValidatorSetV1 * refactor(iota-framework/iota-system): Rename Validator to ValidatorV1 * refactor(iota-framework/iota-system): Rename ValidatorMetadata to ValidatorMetadataV1 * refactor(iota-framework/iota-system): Rename IotaSystemStateInnerV1 to IotaSystemStateV1 * refactor(iota-framework/iota-system): Rename SystemEpochInfoEvent to SystemEpochInfoEventV1 * refactor(iota-framework/iota-system): Rename StakingPool to StakingPoolV1 * refactor(iota-framework/iota-system): Rename PoolTokenExchangeRate to PoolTokenExchangeRateV1 * refactor(iota-framework/iota-system): Rename StakedIota to StakedIotaV1 * refactor(iota-framework/iota-system): Rename StorageFund to StorageFundV1 * refactor(iota-framework/iota-system): Rename TimelockedStakedIota to TimelockedStakedIotaV1 * refactor(iota-framework/iota-system): Rename IotaSystemStateInner to IotaSystemState in comments
* !chore(core-node): remove deprecated tables in `AuthorityEpochTables` * !chore(core-node): remove deprecated tables in `IndexStoreTables` * chore(scripts): add `target` to ignored_dirs
…ochTable` logic (#3139) * !chore(core-node): remove unused EpochFlags * !chore(core-node): remove ExecutedInEpochTable EpochFlag incl. special logic
…rStateUpdate` (#3173) * refactor(iota-types/authenticator-state): Rename AuthenticatorStateUpdate * refactor(iota-types/authenticator-state): Fix fmt and clippy
…o V1 or no suffix
…igned_shared_object_versions
…mulatorV2` (#3524) * Remove StateAccumulatorV1 * Remove the state_accumulator_v2 always true logic * Rename state_accumulator_v2_enabled_config to be state_accumulator_config * Set the default state_accumulator_config * Rename with_state_accumulator_v2_enabled_callback to be with_state_accumulator_callback * Rename StateAccumulatorV2 to be StateAccumulatorV1 * clippy and fmt * Remove StateAccumulatorV1Enabled* flags
* Clean narwhal type versioning * Fix Batch::V2 to Batch::V1 in test
* Clean data types related to iota-e2e-tests * Rename ExecuteTransactionRequestV1::new_v2 to be new_v1
|
This pull request has been deployed to Vercel. Latest commit: d4ff63c ✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-14pgav61v.vercel.app |
|
This pull request has been deployed to Vercel. Latest commit: d4ff63c ✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-6deakiiop.vercel.app |
|
This pull request has been deployed to Vercel. Latest commit: d4ff63c ✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-guvs8tbao.vercel.app |
… for msim match branches
|
This pull request has been deployed to Vercel. Latest commit: 7d2c562 ✅ Preview: https://apps-backend-29a719c9ccbdb9b80c97b599a599d8953354da-ptg0dnepw.vercel.app |
|
This pull request has been deployed to Vercel. Latest commit: 7d2c562 ✅ Preview: https://iota-rebased-explorer-092603f1de8088243ccb8b861b23e-k9zq003tz.vercel.app |
|
This pull request has been deployed to Vercel. Latest commit: 7d2c562 ✅ Preview: https://wallet-dashboard-a225fcfa1e2f852205a61a7cd1d5d93e92-b17sc9sbv.vercel.app |
Description of change
Remove multiple versions of types in the Move and Rust codebases, and start versioning from the latest type version.
Move
The renaming changes in accordance with the rules:
Wrapperpostfix.Inner, just add version postfix{structure}V1.Structures with versioning:
SystemParametersV2->SystemParametersV1IotaSystemStateWrapper->IotaSystemStateIotaSystemStateInnerV2->IotaSystemStateV1ValidatorWrapper->ValidatorValidator->ValidatorV1ValidatorMetadata->ValidatorMetadataV1ValidatorSet->ValidatorSetV1ValidatorEpochInfoEvent->ValidatorEpochInfoEventV1SystemEpochInfoEvent->SystemEpochInfoEventV1StakingPool->StakingPoolV1StorageFund->StorageFundV1VotingPowerInfoV2->VotingPowerInfoV1Rust
Note:
IotaSystemStateWrapperstill exists and corresponds toIotaSystemStatein Move. It's a thin wrapper for accessing the inner object and is rarely used in Rust. It's used only in genesis snapshots and testing, and in most cases, we use the enumIotaSystemStateinstead.IotaSystemStateInnverV2->IotaSystemStateV1ValidatorWrapper->ValidatorUnverifiedValidatorOperationCapV1->UnverifiedValidatorOperationCapLinks to any relevant issues
Close partially #1083
Type of change
Choose a type of change, and delete any options that are not relevant.
Change checklist