-
Notifications
You must be signed in to change notification settings - Fork 58
refactor(iota-framework/iota-system): Remove multiple versions from the iota-system types #3048
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(iota-framework/iota-system): Remove multiple versions from the iota-system types #3048
Conversation
|
Why did you add |
Because there's Still the question is, should we have for example: V.S. |
9e5d23a to
ee91dff
Compare
|
✅ Vercel Preview Deployment is ready! |
miker83z
left a comment
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.
Looks good!
crates/iota-framework/packages/iota-system/sources/iota_system.move
Outdated
Show resolved
Hide resolved
crates/iota-framework/packages/iota-system/sources/iota_system.move
Outdated
Show resolved
Hide resolved
lzpap
left a comment
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.
Since we modify the framework and don't intend to release a new protocol version for this, we should update the framework-snapshot bytes for protocol version 1. If this is not done then nodes will panic on startup that they have a different framework loaded from the snapshot than what is present in the node software.
We don't have to do this once we start bumping protocol versions, then we only create a new snapshot cut when the new protocol version is introduced.
…IotaSystemState in comments
Yes! Thanks for the reminder, we will do this update in a sole commit in the feature branch so it will not be squashed. |
IMHO it doesn't matter right now if the commit is squashed or not, I would keep it together with the framework changes (this PR), unless you plan to modfiy other stuff in the |
I talked to @miker83z , and he mentioned there will be additional changes for deny list type. So, it'd be good to do it later. 💪 |
I suggested to create the snapshot after the changes to the framework are finalized in the feature branch |
| id: UID, | ||
| /// A self-custodial object holding the staked IOTA tokens. | ||
| staked_iota: StakedIota, | ||
| staked_iota: StakedIotaV1, |
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.
TimelockedStakedIota and StakedIota are part of the public API, so it will have ramifications in the TS SDK, wallet and explorer too. FYI @begonaalvarezd
3b0f4fd
into
core-node/feat/remove-multiple-types
…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
…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
…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
…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
Description of change
This PR will be merged to the feature branch
core-node/feat/remove-multiple-types.Reduce amount of versioned types V2 to V1:
This PR also includes renaming changes in accordance with the rules:
Wrapperpostfix.Inner, just add version postfix{structure}V1.Structures with versioning:
Structures that would not get changed, thus with no version postfix:
***** genesis *****
***** validator cap *****
***** validator *****
Links to any relevant issues
Close #2089
Type of change
How the change has been tested
Run the build and test commands:
iota move buildiota move testChange checklist