Skip to content

Commit c506b7c

Browse files
committed
2.1.3 upgrade path
1 parent d7a8f01 commit c506b7c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

scripts/orbit-versioner/orbitVersioner.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ function _checkForPossibleUpgrades(
146146
version: 'v3.0.0',
147147
actionName: 'BOLD UpgradeAction',
148148
},
149+
{
150+
version: 'v2.1.3',
151+
actionName: 'NitroContracts2Point1Point3UpgradeAction',
152+
},
149153
{
150154
version: 'v2.1.2',
151155
actionName: 'NitroContracts2Point1Point2UpgradeAction',
@@ -221,6 +225,40 @@ function _canBeUpgradedToTargetVersion(
221225
// cannot upgrade erc20 orbit chains from v1 to v3 right now due to a storage diff
222226
supportedSourceVersionsPerContract.Bridge = ['v2.0.0', 'v2.1.0', 'v2.1.2']
223227
}
228+
} else if (targetVersion === 'v2.1.3') {
229+
// v2.1.3 will upgrade the SequencerInbox and Inbox contracts to prevent 7702 accounts from calling certain functions
230+
// v2.1.3 or v3.0.0 must be performed before the parent chain upgrades with 7702
231+
// has the same prerequisites as v3.0.0
232+
supportedSourceVersionsPerContract = {
233+
Inbox: [
234+
'v1.1.0',
235+
'v1.1.1',
236+
'v1.2.0',
237+
'v1.2.1',
238+
'v1.3.0',
239+
'v2.0.0',
240+
'v2.1.0',
241+
],
242+
Outbox: ['any'],
243+
Bridge: [
244+
'v1.1.0',
245+
'v1.1.1',
246+
'v1.2.0',
247+
'v1.2.1',
248+
'v1.3.0',
249+
'v2.0.0',
250+
'v2.1.0',
251+
],
252+
RollupEventInbox: ['any'],
253+
RollupProxy: ['any'],
254+
RollupAdminLogic: ['v2.0.0', 'v2.1.0'],
255+
RollupUserLogic: ['v2.0.0', 'v2.1.0'],
256+
ChallengeManager: ['v2.0.0', 'v2.1.0'],
257+
SequencerInbox: ['v1.2.1', 'v1.3.0', 'v2.0.0', 'v2.1.0'],
258+
}
259+
if (isFeeTokenChain) {
260+
supportedSourceVersionsPerContract.Bridge = ['v2.0.0', 'v2.1.0', 'v2.1.2']
261+
}
224262
} else if (targetVersion === 'v2.1.2') {
225263
// v2.1.2 will upgrade the ERC20Bridge contract to set decimals in storage
226264
// v2.1.2 is only required for custom fee token chains

0 commit comments

Comments
 (0)