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

Init v2_2_0 #492

Merged
merged 5 commits into from
Dec 19, 2022
Merged

Init v2_2_0 #492

merged 5 commits into from
Dec 19, 2022

Conversation

zajck
Copy link
Member

@zajck zajck commented Dec 19, 2022

Adds implementation to initV2_2_0 in ProtocolInitializationFacet

I added parameter _initializationData to initialize which is then passed into initV2_2_0. _initializationData type is bytes since every upgrade might require different initialization data. Bytes is generic format and initVX_Y_Z can always abi.decode it and get desired types.
I had to update getInitializeCalldata, and other scripts that call it, but otherwise there were no other big changes to the scripts.
I added initV2_2_0 related unit tests.

@zajck zajck marked this pull request as ready for review December 19, 2022 11:22
contracts/mock/MockProtocolInitializationFacet.sol Outdated Show resolved Hide resolved
test/protocol/ProtocolInitializationHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ProtocolInitializationHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ProtocolInitializationHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ProtocolInitializationHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ProtocolInitializationHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ProtocolInitializationHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ProtocolInitializationHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ProtocolInitializationHandlerTest.js Outdated Show resolved Hide resolved
test/protocol/ProtocolInitializationHandlerTest.js Outdated Show resolved Hide resolved
@zajck zajck requested review from anajuliabit and mischat December 19, 2022 12:19
anajuliabit
anajuliabit previously approved these changes Dec 19, 2022
Copy link
Contributor

@anajuliabit anajuliabit left a comment

Choose a reason for hiding this comment

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

Great job here

Copy link
Member

@mischat mischat left a comment

Choose a reason for hiding this comment

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

I have a comment in there, as I don't understand something, otherwise it looks good to me

contracts/domain/BosonConstants.sol Outdated Show resolved Hide resolved
@zajck zajck requested review from mischat and anajuliabit December 19, 2022 13:08
@zajck zajck merged commit 38c7ba3 into main Dec 19, 2022
@zajck zajck deleted the init_v2_2_0 branch December 19, 2022 13:39
@anajuliabit anajuliabit mentioned this pull request Dec 30, 2022
38 tasks
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