@@ -146,6 +146,10 @@ function _checkForPossibleUpgrades(
146
146
version : 'v3.0.0' ,
147
147
actionName : 'BOLD UpgradeAction' ,
148
148
} ,
149
+ {
150
+ version : 'v2.1.3' ,
151
+ actionName : 'NitroContracts2Point1Point3UpgradeAction' ,
152
+ } ,
149
153
{
150
154
version : 'v2.1.2' ,
151
155
actionName : 'NitroContracts2Point1Point2UpgradeAction' ,
@@ -221,6 +225,40 @@ function _canBeUpgradedToTargetVersion(
221
225
// cannot upgrade erc20 orbit chains from v1 to v3 right now due to a storage diff
222
226
supportedSourceVersionsPerContract . Bridge = [ 'v2.0.0' , 'v2.1.0' , 'v2.1.2' ]
223
227
}
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
+ }
224
262
} else if ( targetVersion === 'v2.1.2' ) {
225
263
// v2.1.2 will upgrade the ERC20Bridge contract to set decimals in storage
226
264
// v2.1.2 is only required for custom fee token chains
0 commit comments