@matterlabs/zksync-js 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/ethers/client.cjs +632 -649
- package/dist/adapters/ethers/client.cjs.map +1 -1
- package/dist/adapters/ethers/client.js +5 -5
- package/dist/adapters/ethers/index.cjs +670 -662
- package/dist/adapters/ethers/index.cjs.map +1 -1
- package/dist/adapters/ethers/index.js +7 -7
- package/dist/adapters/ethers/sdk.cjs +669 -661
- package/dist/adapters/ethers/sdk.cjs.map +1 -1
- package/dist/adapters/ethers/sdk.js +5 -5
- package/dist/adapters/viem/client.js +5 -5
- package/dist/adapters/viem/index.js +7 -7
- package/dist/adapters/viem/sdk.js +5 -5
- package/dist/{chunk-IYEDEUXG.js → chunk-6IT5PEEN.js} +1 -1
- package/dist/{chunk-ZBGQQ63V.js → chunk-CCUAGJ6K.js} +3 -3
- package/dist/{chunk-VKUTFNZA.js → chunk-EWBYKU4G.js} +3 -3
- package/dist/{chunk-HOZTREW6.js → chunk-FXSFLZ6D.js} +4 -4
- package/dist/{chunk-SRPKTXIF.js → chunk-H3BPVVMN.js} +1 -1
- package/dist/{chunk-AIFHAPJC.js → chunk-IQVH7YZT.js} +1 -1
- package/dist/{chunk-QDJOEVGJ.js → chunk-N4PR5SVB.js} +2 -2
- package/dist/{chunk-FBKBF7YM.js → chunk-QFEYV4O3.js} +669 -661
- package/dist/{chunk-N3FVEFOK.js → chunk-QUI3J42E.js} +2 -2
- package/dist/{chunk-MBEMIFYS.js → chunk-TL26ZONW.js} +6 -6
- package/dist/{chunk-UIXU35ZU.js → chunk-USXSAFYA.js} +1 -1
- package/dist/core/abi.d.ts +2 -2
- package/dist/core/index.cjs +668 -660
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +3 -3
- package/dist/core/internal/abis/IInteropCenter.d.ts +425 -121
- package/dist/core/internal/abis/IInteropHandler.d.ts +121 -69
- package/dist/core/internal/abis/IInteropRootStorage.d.ts +40 -0
- package/dist/index.cjs +668 -660
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/core/internal/abis/InteropCenter.d.ts +0 -578
- package/dist/core/internal/abis/InteropRootStorage.d.ts +0 -20
|
@@ -5099,969 +5099,952 @@ var MailboxABI = [
|
|
|
5099
5099
|
];
|
|
5100
5100
|
var Mailbox_default = MailboxABI;
|
|
5101
5101
|
|
|
5102
|
-
// src/core/internal/abis/
|
|
5103
|
-
var
|
|
5102
|
+
// src/core/internal/abis/IInteropCenter.ts
|
|
5103
|
+
var IInteropCenterABI = [
|
|
5104
5104
|
{
|
|
5105
|
-
|
|
5105
|
+
type: "function",
|
|
5106
|
+
name: "L1_CHAIN_ID",
|
|
5107
|
+
inputs: [],
|
|
5108
|
+
outputs: [
|
|
5106
5109
|
{
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
+
name: "",
|
|
5111
|
+
type: "uint256",
|
|
5112
|
+
internalType: "uint256"
|
|
5110
5113
|
}
|
|
5111
5114
|
],
|
|
5112
|
-
|
|
5113
|
-
type: "error"
|
|
5115
|
+
stateMutability: "view"
|
|
5114
5116
|
},
|
|
5115
5117
|
{
|
|
5116
|
-
|
|
5118
|
+
type: "function",
|
|
5119
|
+
name: "ZK_INTEROP_FEE",
|
|
5120
|
+
inputs: [],
|
|
5121
|
+
outputs: [
|
|
5117
5122
|
{
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
}
|
|
5123
|
+
name: "",
|
|
5124
|
+
type: "uint256",
|
|
5125
|
+
internalType: "uint256"
|
|
5126
|
+
}
|
|
5127
|
+
],
|
|
5128
|
+
stateMutability: "view"
|
|
5129
|
+
},
|
|
5130
|
+
{
|
|
5131
|
+
type: "function",
|
|
5132
|
+
name: "ZK_TOKEN_ASSET_ID",
|
|
5133
|
+
inputs: [],
|
|
5134
|
+
outputs: [
|
|
5122
5135
|
{
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5136
|
+
name: "",
|
|
5137
|
+
type: "bytes32",
|
|
5138
|
+
internalType: "bytes32"
|
|
5126
5139
|
}
|
|
5127
5140
|
],
|
|
5128
|
-
|
|
5129
|
-
type: "error"
|
|
5141
|
+
stateMutability: "view"
|
|
5130
5142
|
},
|
|
5131
5143
|
{
|
|
5144
|
+
type: "function",
|
|
5145
|
+
name: "accumulatedProtocolFees",
|
|
5132
5146
|
inputs: [
|
|
5133
5147
|
{
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
}
|
|
5148
|
+
name: "coinbase",
|
|
5149
|
+
type: "address",
|
|
5150
|
+
internalType: "address"
|
|
5151
|
+
}
|
|
5152
|
+
],
|
|
5153
|
+
outputs: [
|
|
5138
5154
|
{
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5155
|
+
name: "",
|
|
5156
|
+
type: "uint256",
|
|
5157
|
+
internalType: "uint256"
|
|
5142
5158
|
}
|
|
5143
5159
|
],
|
|
5144
|
-
|
|
5145
|
-
type: "error"
|
|
5160
|
+
stateMutability: "view"
|
|
5146
5161
|
},
|
|
5147
5162
|
{
|
|
5163
|
+
type: "function",
|
|
5164
|
+
name: "accumulatedZKFees",
|
|
5148
5165
|
inputs: [
|
|
5149
5166
|
{
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5167
|
+
name: "coinbase",
|
|
5168
|
+
type: "address",
|
|
5169
|
+
internalType: "address"
|
|
5153
5170
|
}
|
|
5154
5171
|
],
|
|
5155
|
-
|
|
5156
|
-
|
|
5172
|
+
outputs: [
|
|
5173
|
+
{
|
|
5174
|
+
name: "",
|
|
5175
|
+
type: "uint256",
|
|
5176
|
+
internalType: "uint256"
|
|
5177
|
+
}
|
|
5178
|
+
],
|
|
5179
|
+
stateMutability: "view"
|
|
5157
5180
|
},
|
|
5158
5181
|
{
|
|
5182
|
+
type: "function",
|
|
5183
|
+
name: "claimProtocolFees",
|
|
5159
5184
|
inputs: [
|
|
5160
5185
|
{
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5186
|
+
name: "_receiver",
|
|
5187
|
+
type: "address",
|
|
5188
|
+
internalType: "address"
|
|
5164
5189
|
}
|
|
5165
5190
|
],
|
|
5166
|
-
|
|
5167
|
-
|
|
5191
|
+
outputs: [],
|
|
5192
|
+
stateMutability: "nonpayable"
|
|
5168
5193
|
},
|
|
5169
5194
|
{
|
|
5195
|
+
type: "function",
|
|
5196
|
+
name: "claimZKFees",
|
|
5170
5197
|
inputs: [
|
|
5171
5198
|
{
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5199
|
+
name: "_receiver",
|
|
5200
|
+
type: "address",
|
|
5201
|
+
internalType: "address"
|
|
5175
5202
|
}
|
|
5176
5203
|
],
|
|
5177
|
-
|
|
5178
|
-
|
|
5204
|
+
outputs: [],
|
|
5205
|
+
stateMutability: "nonpayable"
|
|
5179
5206
|
},
|
|
5180
5207
|
{
|
|
5208
|
+
type: "function",
|
|
5209
|
+
name: "forwardTransactionOnGatewayWithBalanceChange",
|
|
5181
5210
|
inputs: [
|
|
5182
5211
|
{
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5212
|
+
name: "_chainId",
|
|
5213
|
+
type: "uint256",
|
|
5214
|
+
internalType: "uint256"
|
|
5186
5215
|
},
|
|
5187
5216
|
{
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5217
|
+
name: "_canonicalTxHash",
|
|
5218
|
+
type: "bytes32",
|
|
5219
|
+
internalType: "bytes32"
|
|
5220
|
+
},
|
|
5221
|
+
{
|
|
5222
|
+
name: "_expirationTimestamp",
|
|
5223
|
+
type: "uint64",
|
|
5224
|
+
internalType: "uint64"
|
|
5225
|
+
},
|
|
5226
|
+
{
|
|
5227
|
+
name: "_balanceChange",
|
|
5228
|
+
type: "tuple",
|
|
5229
|
+
internalType: "struct BalanceChange",
|
|
5230
|
+
components: [
|
|
5231
|
+
{
|
|
5232
|
+
name: "version",
|
|
5233
|
+
type: "bytes1",
|
|
5234
|
+
internalType: "bytes1"
|
|
5235
|
+
},
|
|
5236
|
+
{
|
|
5237
|
+
name: "originToken",
|
|
5238
|
+
type: "address",
|
|
5239
|
+
internalType: "address"
|
|
5240
|
+
},
|
|
5241
|
+
{
|
|
5242
|
+
name: "baseTokenAssetId",
|
|
5243
|
+
type: "bytes32",
|
|
5244
|
+
internalType: "bytes32"
|
|
5245
|
+
},
|
|
5246
|
+
{
|
|
5247
|
+
name: "baseTokenAmount",
|
|
5248
|
+
type: "uint256",
|
|
5249
|
+
internalType: "uint256"
|
|
5250
|
+
},
|
|
5251
|
+
{
|
|
5252
|
+
name: "assetId",
|
|
5253
|
+
type: "bytes32",
|
|
5254
|
+
internalType: "bytes32"
|
|
5255
|
+
},
|
|
5256
|
+
{
|
|
5257
|
+
name: "amount",
|
|
5258
|
+
type: "uint256",
|
|
5259
|
+
internalType: "uint256"
|
|
5260
|
+
},
|
|
5261
|
+
{
|
|
5262
|
+
name: "tokenOriginChainId",
|
|
5263
|
+
type: "uint256",
|
|
5264
|
+
internalType: "uint256"
|
|
5265
|
+
}
|
|
5266
|
+
]
|
|
5191
5267
|
}
|
|
5192
5268
|
],
|
|
5193
|
-
|
|
5194
|
-
|
|
5269
|
+
outputs: [],
|
|
5270
|
+
stateMutability: "nonpayable"
|
|
5195
5271
|
},
|
|
5196
5272
|
{
|
|
5273
|
+
type: "function",
|
|
5274
|
+
name: "getZKTokenAddress",
|
|
5197
5275
|
inputs: [],
|
|
5198
|
-
|
|
5199
|
-
|
|
5276
|
+
outputs: [
|
|
5277
|
+
{
|
|
5278
|
+
name: "",
|
|
5279
|
+
type: "address",
|
|
5280
|
+
internalType: "address"
|
|
5281
|
+
}
|
|
5282
|
+
],
|
|
5283
|
+
stateMutability: "view"
|
|
5200
5284
|
},
|
|
5201
5285
|
{
|
|
5286
|
+
type: "function",
|
|
5287
|
+
name: "initL2",
|
|
5202
5288
|
inputs: [
|
|
5203
5289
|
{
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5290
|
+
name: "_l1ChainId",
|
|
5291
|
+
type: "uint256",
|
|
5292
|
+
internalType: "uint256"
|
|
5207
5293
|
},
|
|
5208
5294
|
{
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5295
|
+
name: "_owner",
|
|
5296
|
+
type: "address",
|
|
5297
|
+
internalType: "address"
|
|
5298
|
+
},
|
|
5299
|
+
{
|
|
5300
|
+
name: "_zkTokenAssetId",
|
|
5301
|
+
type: "bytes32",
|
|
5302
|
+
internalType: "bytes32"
|
|
5212
5303
|
}
|
|
5213
5304
|
],
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
},
|
|
5217
|
-
{
|
|
5218
|
-
inputs: [],
|
|
5219
|
-
name: "SlotOccupied",
|
|
5220
|
-
type: "error"
|
|
5305
|
+
outputs: [],
|
|
5306
|
+
stateMutability: "nonpayable"
|
|
5221
5307
|
},
|
|
5222
5308
|
{
|
|
5309
|
+
type: "function",
|
|
5310
|
+
name: "interopBundleNonce",
|
|
5223
5311
|
inputs: [
|
|
5224
5312
|
{
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5313
|
+
name: "sender",
|
|
5314
|
+
type: "address",
|
|
5315
|
+
internalType: "address"
|
|
5228
5316
|
}
|
|
5229
5317
|
],
|
|
5230
|
-
|
|
5231
|
-
type: "error"
|
|
5232
|
-
},
|
|
5233
|
-
{
|
|
5234
|
-
inputs: [
|
|
5318
|
+
outputs: [
|
|
5235
5319
|
{
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5320
|
+
name: "",
|
|
5321
|
+
type: "uint256",
|
|
5322
|
+
internalType: "uint256"
|
|
5239
5323
|
}
|
|
5240
5324
|
],
|
|
5241
|
-
|
|
5242
|
-
type: "error"
|
|
5325
|
+
stateMutability: "view"
|
|
5243
5326
|
},
|
|
5244
5327
|
{
|
|
5245
|
-
|
|
5246
|
-
|
|
5328
|
+
type: "function",
|
|
5329
|
+
name: "interopProtocolFee",
|
|
5330
|
+
inputs: [],
|
|
5331
|
+
outputs: [
|
|
5247
5332
|
{
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
type: "uint8"
|
|
5333
|
+
name: "",
|
|
5334
|
+
type: "uint256",
|
|
5335
|
+
internalType: "uint256"
|
|
5252
5336
|
}
|
|
5253
5337
|
],
|
|
5254
|
-
|
|
5255
|
-
type: "event"
|
|
5338
|
+
stateMutability: "view"
|
|
5256
5339
|
},
|
|
5257
5340
|
{
|
|
5258
|
-
|
|
5341
|
+
type: "function",
|
|
5342
|
+
name: "parseAttributes",
|
|
5259
5343
|
inputs: [
|
|
5260
5344
|
{
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
type: "bytes32"
|
|
5345
|
+
name: "_attributes",
|
|
5346
|
+
type: "bytes[]",
|
|
5347
|
+
internalType: "bytes[]"
|
|
5265
5348
|
},
|
|
5266
5349
|
{
|
|
5267
|
-
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
|
|
5350
|
+
name: "_restriction",
|
|
5351
|
+
type: "uint8",
|
|
5352
|
+
internalType: "enum IInteropCenter.AttributeParsingRestrictions"
|
|
5353
|
+
}
|
|
5354
|
+
],
|
|
5355
|
+
outputs: [
|
|
5272
5356
|
{
|
|
5357
|
+
name: "callAttributes",
|
|
5358
|
+
type: "tuple",
|
|
5359
|
+
internalType: "struct CallAttributes",
|
|
5273
5360
|
components: [
|
|
5274
5361
|
{
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5362
|
+
name: "interopCallValue",
|
|
5363
|
+
type: "uint256",
|
|
5364
|
+
internalType: "uint256"
|
|
5278
5365
|
},
|
|
5279
5366
|
{
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5367
|
+
name: "indirectCall",
|
|
5368
|
+
type: "bool",
|
|
5369
|
+
internalType: "bool"
|
|
5283
5370
|
},
|
|
5284
5371
|
{
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
}
|
|
5372
|
+
name: "indirectCallMessageValue",
|
|
5373
|
+
type: "uint256",
|
|
5374
|
+
internalType: "uint256"
|
|
5375
|
+
}
|
|
5376
|
+
]
|
|
5377
|
+
},
|
|
5378
|
+
{
|
|
5379
|
+
name: "bundleAttributes",
|
|
5380
|
+
type: "tuple",
|
|
5381
|
+
internalType: "struct BundleAttributes",
|
|
5382
|
+
components: [
|
|
5289
5383
|
{
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5384
|
+
name: "executionAddress",
|
|
5385
|
+
type: "bytes",
|
|
5386
|
+
internalType: "bytes"
|
|
5293
5387
|
},
|
|
5294
5388
|
{
|
|
5295
|
-
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
name: "version",
|
|
5299
|
-
type: "bytes1"
|
|
5300
|
-
},
|
|
5301
|
-
{
|
|
5302
|
-
internalType: "bool",
|
|
5303
|
-
name: "shadowAccount",
|
|
5304
|
-
type: "bool"
|
|
5305
|
-
},
|
|
5306
|
-
{
|
|
5307
|
-
internalType: "address",
|
|
5308
|
-
name: "to",
|
|
5309
|
-
type: "address"
|
|
5310
|
-
},
|
|
5311
|
-
{
|
|
5312
|
-
internalType: "address",
|
|
5313
|
-
name: "from",
|
|
5314
|
-
type: "address"
|
|
5315
|
-
},
|
|
5316
|
-
{
|
|
5317
|
-
internalType: "uint256",
|
|
5318
|
-
name: "value",
|
|
5319
|
-
type: "uint256"
|
|
5320
|
-
},
|
|
5321
|
-
{
|
|
5322
|
-
internalType: "bytes",
|
|
5323
|
-
name: "data",
|
|
5324
|
-
type: "bytes"
|
|
5325
|
-
}
|
|
5326
|
-
],
|
|
5327
|
-
internalType: "struct InteropCall[]",
|
|
5328
|
-
name: "calls",
|
|
5329
|
-
type: "tuple[]"
|
|
5389
|
+
name: "unbundlerAddress",
|
|
5390
|
+
type: "bytes",
|
|
5391
|
+
internalType: "bytes"
|
|
5330
5392
|
},
|
|
5331
5393
|
{
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
name: "executionAddress",
|
|
5336
|
-
type: "bytes"
|
|
5337
|
-
},
|
|
5338
|
-
{
|
|
5339
|
-
internalType: "bytes",
|
|
5340
|
-
name: "unbundlerAddress",
|
|
5341
|
-
type: "bytes"
|
|
5342
|
-
}
|
|
5343
|
-
],
|
|
5344
|
-
internalType: "struct BundleAttributes",
|
|
5345
|
-
name: "bundleAttributes",
|
|
5346
|
-
type: "tuple"
|
|
5394
|
+
name: "useFixedFee",
|
|
5395
|
+
type: "bool",
|
|
5396
|
+
internalType: "bool"
|
|
5347
5397
|
}
|
|
5348
|
-
]
|
|
5349
|
-
indexed: false,
|
|
5350
|
-
internalType: "struct InteropBundle",
|
|
5351
|
-
name: "interopBundle",
|
|
5352
|
-
type: "tuple"
|
|
5398
|
+
]
|
|
5353
5399
|
}
|
|
5354
5400
|
],
|
|
5355
|
-
|
|
5356
|
-
type: "event"
|
|
5401
|
+
stateMutability: "pure"
|
|
5357
5402
|
},
|
|
5358
5403
|
{
|
|
5359
|
-
|
|
5404
|
+
type: "function",
|
|
5405
|
+
name: "pause",
|
|
5406
|
+
inputs: [],
|
|
5407
|
+
outputs: [],
|
|
5408
|
+
stateMutability: "nonpayable"
|
|
5409
|
+
},
|
|
5410
|
+
{
|
|
5411
|
+
type: "function",
|
|
5412
|
+
name: "sendBundle",
|
|
5360
5413
|
inputs: [
|
|
5361
5414
|
{
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
type: "bytes32"
|
|
5366
|
-
},
|
|
5367
|
-
{
|
|
5368
|
-
indexed: false,
|
|
5369
|
-
internalType: "bytes",
|
|
5370
|
-
name: "sender",
|
|
5371
|
-
type: "bytes"
|
|
5372
|
-
},
|
|
5373
|
-
{
|
|
5374
|
-
indexed: false,
|
|
5375
|
-
internalType: "bytes",
|
|
5376
|
-
name: "recipient",
|
|
5377
|
-
type: "bytes"
|
|
5415
|
+
name: "_destinationChainId",
|
|
5416
|
+
type: "bytes",
|
|
5417
|
+
internalType: "bytes"
|
|
5378
5418
|
},
|
|
5379
5419
|
{
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5420
|
+
name: "_callStarters",
|
|
5421
|
+
type: "tuple[]",
|
|
5422
|
+
internalType: "struct InteropCallStarter[]",
|
|
5423
|
+
components: [
|
|
5424
|
+
{
|
|
5425
|
+
name: "to",
|
|
5426
|
+
type: "bytes",
|
|
5427
|
+
internalType: "bytes"
|
|
5428
|
+
},
|
|
5429
|
+
{
|
|
5430
|
+
name: "data",
|
|
5431
|
+
type: "bytes",
|
|
5432
|
+
internalType: "bytes"
|
|
5433
|
+
},
|
|
5434
|
+
{
|
|
5435
|
+
name: "callAttributes",
|
|
5436
|
+
type: "bytes[]",
|
|
5437
|
+
internalType: "bytes[]"
|
|
5438
|
+
}
|
|
5439
|
+
]
|
|
5384
5440
|
},
|
|
5385
5441
|
{
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5442
|
+
name: "_bundleAttributes",
|
|
5443
|
+
type: "bytes[]",
|
|
5444
|
+
internalType: "bytes[]"
|
|
5445
|
+
}
|
|
5446
|
+
],
|
|
5447
|
+
outputs: [
|
|
5391
5448
|
{
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
type: "bytes[]"
|
|
5449
|
+
name: "bundleHash",
|
|
5450
|
+
type: "bytes32",
|
|
5451
|
+
internalType: "bytes32"
|
|
5396
5452
|
}
|
|
5397
5453
|
],
|
|
5398
|
-
|
|
5399
|
-
type: "event"
|
|
5454
|
+
stateMutability: "payable"
|
|
5400
5455
|
},
|
|
5401
5456
|
{
|
|
5402
|
-
|
|
5457
|
+
type: "function",
|
|
5458
|
+
name: "setInteropFee",
|
|
5403
5459
|
inputs: [
|
|
5404
5460
|
{
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
type: "address"
|
|
5409
|
-
},
|
|
5410
|
-
{
|
|
5411
|
-
indexed: true,
|
|
5412
|
-
internalType: "address",
|
|
5413
|
-
name: "newAssetRouter",
|
|
5414
|
-
type: "address"
|
|
5461
|
+
name: "_fee",
|
|
5462
|
+
type: "uint256",
|
|
5463
|
+
internalType: "uint256"
|
|
5415
5464
|
}
|
|
5416
5465
|
],
|
|
5417
|
-
|
|
5418
|
-
|
|
5466
|
+
outputs: [],
|
|
5467
|
+
stateMutability: "nonpayable"
|
|
5419
5468
|
},
|
|
5420
5469
|
{
|
|
5421
|
-
|
|
5470
|
+
type: "function",
|
|
5471
|
+
name: "unpause",
|
|
5472
|
+
inputs: [],
|
|
5473
|
+
outputs: [],
|
|
5474
|
+
stateMutability: "nonpayable"
|
|
5475
|
+
},
|
|
5476
|
+
{
|
|
5477
|
+
type: "function",
|
|
5478
|
+
name: "updateL2",
|
|
5422
5479
|
inputs: [
|
|
5423
5480
|
{
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
type: "address"
|
|
5481
|
+
name: "_l1ChainId",
|
|
5482
|
+
type: "uint256",
|
|
5483
|
+
internalType: "uint256"
|
|
5428
5484
|
},
|
|
5429
5485
|
{
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
type: "address"
|
|
5486
|
+
name: "_owner",
|
|
5487
|
+
type: "address",
|
|
5488
|
+
internalType: "address"
|
|
5434
5489
|
}
|
|
5435
5490
|
],
|
|
5436
|
-
|
|
5437
|
-
|
|
5491
|
+
outputs: [],
|
|
5492
|
+
stateMutability: "nonpayable"
|
|
5438
5493
|
},
|
|
5439
5494
|
{
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
internalType: "address",
|
|
5445
|
-
name: "previousOwner",
|
|
5446
|
-
type: "address"
|
|
5447
|
-
},
|
|
5495
|
+
type: "function",
|
|
5496
|
+
name: "zkToken",
|
|
5497
|
+
inputs: [],
|
|
5498
|
+
outputs: [
|
|
5448
5499
|
{
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
type: "address"
|
|
5500
|
+
name: "",
|
|
5501
|
+
type: "address",
|
|
5502
|
+
internalType: "contract IERC20"
|
|
5453
5503
|
}
|
|
5454
5504
|
],
|
|
5455
|
-
|
|
5456
|
-
type: "event"
|
|
5505
|
+
stateMutability: "view"
|
|
5457
5506
|
},
|
|
5458
5507
|
{
|
|
5459
|
-
|
|
5508
|
+
type: "event",
|
|
5509
|
+
name: "FixedZKFeesAccumulated",
|
|
5460
5510
|
inputs: [
|
|
5461
5511
|
{
|
|
5512
|
+
name: "payer",
|
|
5513
|
+
type: "address",
|
|
5462
5514
|
indexed: true,
|
|
5463
|
-
internalType: "address"
|
|
5464
|
-
name: "previousOwner",
|
|
5465
|
-
type: "address"
|
|
5515
|
+
internalType: "address"
|
|
5466
5516
|
},
|
|
5467
5517
|
{
|
|
5518
|
+
name: "coinbase",
|
|
5519
|
+
type: "address",
|
|
5468
5520
|
indexed: true,
|
|
5469
|
-
internalType: "address"
|
|
5470
|
-
|
|
5471
|
-
type: "address"
|
|
5472
|
-
}
|
|
5473
|
-
],
|
|
5474
|
-
name: "OwnershipTransferred",
|
|
5475
|
-
type: "event"
|
|
5476
|
-
},
|
|
5477
|
-
{
|
|
5478
|
-
anonymous: false,
|
|
5479
|
-
inputs: [
|
|
5521
|
+
internalType: "address"
|
|
5522
|
+
},
|
|
5480
5523
|
{
|
|
5524
|
+
name: "amount",
|
|
5525
|
+
type: "uint256",
|
|
5481
5526
|
indexed: false,
|
|
5482
|
-
internalType: "
|
|
5483
|
-
name: "account",
|
|
5484
|
-
type: "address"
|
|
5527
|
+
internalType: "uint256"
|
|
5485
5528
|
}
|
|
5486
5529
|
],
|
|
5487
|
-
|
|
5488
|
-
type: "event"
|
|
5530
|
+
anonymous: false
|
|
5489
5531
|
},
|
|
5490
5532
|
{
|
|
5491
|
-
|
|
5533
|
+
type: "event",
|
|
5534
|
+
name: "InteropBundleSent",
|
|
5492
5535
|
inputs: [
|
|
5493
5536
|
{
|
|
5537
|
+
name: "l2l1MsgHash",
|
|
5538
|
+
type: "bytes32",
|
|
5494
5539
|
indexed: false,
|
|
5495
|
-
internalType: "
|
|
5496
|
-
name: "account",
|
|
5497
|
-
type: "address"
|
|
5498
|
-
}
|
|
5499
|
-
],
|
|
5500
|
-
name: "Unpaused",
|
|
5501
|
-
type: "event"
|
|
5502
|
-
},
|
|
5503
|
-
{
|
|
5504
|
-
inputs: [],
|
|
5505
|
-
name: "L1_CHAIN_ID",
|
|
5506
|
-
outputs: [
|
|
5507
|
-
{
|
|
5508
|
-
internalType: "uint256",
|
|
5509
|
-
name: "",
|
|
5510
|
-
type: "uint256"
|
|
5511
|
-
}
|
|
5512
|
-
],
|
|
5513
|
-
stateMutability: "view",
|
|
5514
|
-
type: "function"
|
|
5515
|
-
},
|
|
5516
|
-
{
|
|
5517
|
-
inputs: [],
|
|
5518
|
-
name: "acceptOwnership",
|
|
5519
|
-
outputs: [],
|
|
5520
|
-
stateMutability: "nonpayable",
|
|
5521
|
-
type: "function"
|
|
5522
|
-
},
|
|
5523
|
-
{
|
|
5524
|
-
inputs: [
|
|
5525
|
-
{
|
|
5526
|
-
internalType: "uint256",
|
|
5527
|
-
name: "_chainId",
|
|
5528
|
-
type: "uint256"
|
|
5529
|
-
},
|
|
5530
|
-
{
|
|
5531
|
-
internalType: "bytes32",
|
|
5532
|
-
name: "_canonicalTxHash",
|
|
5533
|
-
type: "bytes32"
|
|
5540
|
+
internalType: "bytes32"
|
|
5534
5541
|
},
|
|
5535
5542
|
{
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5543
|
+
name: "interopBundleHash",
|
|
5544
|
+
type: "bytes32",
|
|
5545
|
+
indexed: false,
|
|
5546
|
+
internalType: "bytes32"
|
|
5539
5547
|
},
|
|
5540
5548
|
{
|
|
5549
|
+
name: "interopBundle",
|
|
5550
|
+
type: "tuple",
|
|
5551
|
+
indexed: false,
|
|
5552
|
+
internalType: "struct InteropBundle",
|
|
5541
5553
|
components: [
|
|
5542
5554
|
{
|
|
5543
|
-
internalType: "bytes1",
|
|
5544
5555
|
name: "version",
|
|
5545
|
-
type: "bytes1"
|
|
5546
|
-
|
|
5547
|
-
{
|
|
5548
|
-
internalType: "address",
|
|
5549
|
-
name: "originToken",
|
|
5550
|
-
type: "address"
|
|
5556
|
+
type: "bytes1",
|
|
5557
|
+
internalType: "bytes1"
|
|
5551
5558
|
},
|
|
5552
5559
|
{
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5560
|
+
name: "sourceChainId",
|
|
5561
|
+
type: "uint256",
|
|
5562
|
+
internalType: "uint256"
|
|
5556
5563
|
},
|
|
5557
5564
|
{
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5565
|
+
name: "destinationChainId",
|
|
5566
|
+
type: "uint256",
|
|
5567
|
+
internalType: "uint256"
|
|
5561
5568
|
},
|
|
5562
5569
|
{
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5570
|
+
name: "interopBundleSalt",
|
|
5571
|
+
type: "bytes32",
|
|
5572
|
+
internalType: "bytes32"
|
|
5566
5573
|
},
|
|
5567
5574
|
{
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5575
|
+
name: "calls",
|
|
5576
|
+
type: "tuple[]",
|
|
5577
|
+
internalType: "struct InteropCall[]",
|
|
5578
|
+
components: [
|
|
5579
|
+
{
|
|
5580
|
+
name: "version",
|
|
5581
|
+
type: "bytes1",
|
|
5582
|
+
internalType: "bytes1"
|
|
5583
|
+
},
|
|
5584
|
+
{
|
|
5585
|
+
name: "shadowAccount",
|
|
5586
|
+
type: "bool",
|
|
5587
|
+
internalType: "bool"
|
|
5588
|
+
},
|
|
5589
|
+
{
|
|
5590
|
+
name: "to",
|
|
5591
|
+
type: "address",
|
|
5592
|
+
internalType: "address"
|
|
5593
|
+
},
|
|
5594
|
+
{
|
|
5595
|
+
name: "from",
|
|
5596
|
+
type: "address",
|
|
5597
|
+
internalType: "address"
|
|
5598
|
+
},
|
|
5599
|
+
{
|
|
5600
|
+
name: "value",
|
|
5601
|
+
type: "uint256",
|
|
5602
|
+
internalType: "uint256"
|
|
5603
|
+
},
|
|
5604
|
+
{
|
|
5605
|
+
name: "data",
|
|
5606
|
+
type: "bytes",
|
|
5607
|
+
internalType: "bytes"
|
|
5608
|
+
}
|
|
5609
|
+
]
|
|
5571
5610
|
},
|
|
5572
5611
|
{
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5612
|
+
name: "bundleAttributes",
|
|
5613
|
+
type: "tuple",
|
|
5614
|
+
internalType: "struct BundleAttributes",
|
|
5615
|
+
components: [
|
|
5616
|
+
{
|
|
5617
|
+
name: "executionAddress",
|
|
5618
|
+
type: "bytes",
|
|
5619
|
+
internalType: "bytes"
|
|
5620
|
+
},
|
|
5621
|
+
{
|
|
5622
|
+
name: "unbundlerAddress",
|
|
5623
|
+
type: "bytes",
|
|
5624
|
+
internalType: "bytes"
|
|
5625
|
+
},
|
|
5626
|
+
{
|
|
5627
|
+
name: "useFixedFee",
|
|
5628
|
+
type: "bool",
|
|
5629
|
+
internalType: "bool"
|
|
5630
|
+
}
|
|
5631
|
+
]
|
|
5576
5632
|
}
|
|
5577
|
-
]
|
|
5578
|
-
internalType: "struct BalanceChange",
|
|
5579
|
-
name: "_balanceChange",
|
|
5580
|
-
type: "tuple"
|
|
5633
|
+
]
|
|
5581
5634
|
}
|
|
5582
5635
|
],
|
|
5583
|
-
|
|
5584
|
-
outputs: [],
|
|
5585
|
-
stateMutability: "nonpayable",
|
|
5586
|
-
type: "function"
|
|
5636
|
+
anonymous: false
|
|
5587
5637
|
},
|
|
5588
5638
|
{
|
|
5639
|
+
type: "event",
|
|
5640
|
+
name: "InteropFeeUpdated",
|
|
5589
5641
|
inputs: [
|
|
5590
5642
|
{
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5643
|
+
name: "oldFee",
|
|
5644
|
+
type: "uint256",
|
|
5645
|
+
indexed: true,
|
|
5646
|
+
internalType: "uint256"
|
|
5594
5647
|
},
|
|
5595
5648
|
{
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
],
|
|
5601
|
-
name: "initL2",
|
|
5602
|
-
outputs: [],
|
|
5603
|
-
stateMutability: "nonpayable",
|
|
5604
|
-
type: "function"
|
|
5605
|
-
},
|
|
5606
|
-
{
|
|
5607
|
-
inputs: [
|
|
5608
|
-
{
|
|
5609
|
-
internalType: "address",
|
|
5610
|
-
name: "sender",
|
|
5611
|
-
type: "address"
|
|
5612
|
-
}
|
|
5613
|
-
],
|
|
5614
|
-
name: "interopBundleNonce",
|
|
5615
|
-
outputs: [
|
|
5616
|
-
{
|
|
5617
|
-
internalType: "uint256",
|
|
5618
|
-
name: "numberOfBundlesSent",
|
|
5619
|
-
type: "uint256"
|
|
5620
|
-
}
|
|
5621
|
-
],
|
|
5622
|
-
stateMutability: "view",
|
|
5623
|
-
type: "function"
|
|
5624
|
-
},
|
|
5625
|
-
{
|
|
5626
|
-
inputs: [],
|
|
5627
|
-
name: "owner",
|
|
5628
|
-
outputs: [
|
|
5629
|
-
{
|
|
5630
|
-
internalType: "address",
|
|
5631
|
-
name: "",
|
|
5632
|
-
type: "address"
|
|
5649
|
+
name: "newFee",
|
|
5650
|
+
type: "uint256",
|
|
5651
|
+
indexed: true,
|
|
5652
|
+
internalType: "uint256"
|
|
5633
5653
|
}
|
|
5634
5654
|
],
|
|
5635
|
-
|
|
5636
|
-
type: "function"
|
|
5655
|
+
anonymous: false
|
|
5637
5656
|
},
|
|
5638
5657
|
{
|
|
5658
|
+
type: "event",
|
|
5659
|
+
name: "NewAssetRouter",
|
|
5639
5660
|
inputs: [
|
|
5640
5661
|
{
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
{
|
|
5646
|
-
internalType: "enum IInteropCenter.AttributeParsingRestrictions",
|
|
5647
|
-
name: "_restriction",
|
|
5648
|
-
type: "uint8"
|
|
5649
|
-
}
|
|
5650
|
-
],
|
|
5651
|
-
name: "parseAttributes",
|
|
5652
|
-
outputs: [
|
|
5653
|
-
{
|
|
5654
|
-
components: [
|
|
5655
|
-
{
|
|
5656
|
-
internalType: "uint256",
|
|
5657
|
-
name: "interopCallValue",
|
|
5658
|
-
type: "uint256"
|
|
5659
|
-
},
|
|
5660
|
-
{
|
|
5661
|
-
internalType: "bool",
|
|
5662
|
-
name: "indirectCall",
|
|
5663
|
-
type: "bool"
|
|
5664
|
-
},
|
|
5665
|
-
{
|
|
5666
|
-
internalType: "uint256",
|
|
5667
|
-
name: "indirectCallMessageValue",
|
|
5668
|
-
type: "uint256"
|
|
5669
|
-
}
|
|
5670
|
-
],
|
|
5671
|
-
internalType: "struct CallAttributes",
|
|
5672
|
-
name: "callAttributes",
|
|
5673
|
-
type: "tuple"
|
|
5662
|
+
name: "oldAssetRouter",
|
|
5663
|
+
type: "address",
|
|
5664
|
+
indexed: true,
|
|
5665
|
+
internalType: "address"
|
|
5674
5666
|
},
|
|
5675
5667
|
{
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
type: "bytes"
|
|
5681
|
-
},
|
|
5682
|
-
{
|
|
5683
|
-
internalType: "bytes",
|
|
5684
|
-
name: "unbundlerAddress",
|
|
5685
|
-
type: "bytes"
|
|
5686
|
-
}
|
|
5687
|
-
],
|
|
5688
|
-
internalType: "struct BundleAttributes",
|
|
5689
|
-
name: "bundleAttributes",
|
|
5690
|
-
type: "tuple"
|
|
5691
|
-
}
|
|
5692
|
-
],
|
|
5693
|
-
stateMutability: "pure",
|
|
5694
|
-
type: "function"
|
|
5695
|
-
},
|
|
5696
|
-
{
|
|
5697
|
-
inputs: [],
|
|
5698
|
-
name: "pause",
|
|
5699
|
-
outputs: [],
|
|
5700
|
-
stateMutability: "nonpayable",
|
|
5701
|
-
type: "function"
|
|
5702
|
-
},
|
|
5703
|
-
{
|
|
5704
|
-
inputs: [],
|
|
5705
|
-
name: "paused",
|
|
5706
|
-
outputs: [
|
|
5707
|
-
{
|
|
5708
|
-
internalType: "bool",
|
|
5709
|
-
name: "",
|
|
5710
|
-
type: "bool"
|
|
5711
|
-
}
|
|
5712
|
-
],
|
|
5713
|
-
stateMutability: "view",
|
|
5714
|
-
type: "function"
|
|
5715
|
-
},
|
|
5716
|
-
{
|
|
5717
|
-
inputs: [],
|
|
5718
|
-
name: "pendingOwner",
|
|
5719
|
-
outputs: [
|
|
5720
|
-
{
|
|
5721
|
-
internalType: "address",
|
|
5722
|
-
name: "",
|
|
5723
|
-
type: "address"
|
|
5668
|
+
name: "newAssetRouter",
|
|
5669
|
+
type: "address",
|
|
5670
|
+
indexed: true,
|
|
5671
|
+
internalType: "address"
|
|
5724
5672
|
}
|
|
5725
5673
|
],
|
|
5726
|
-
|
|
5727
|
-
type: "function"
|
|
5728
|
-
},
|
|
5729
|
-
{
|
|
5730
|
-
inputs: [],
|
|
5731
|
-
name: "renounceOwnership",
|
|
5732
|
-
outputs: [],
|
|
5733
|
-
stateMutability: "nonpayable",
|
|
5734
|
-
type: "function"
|
|
5674
|
+
anonymous: false
|
|
5735
5675
|
},
|
|
5736
5676
|
{
|
|
5677
|
+
type: "event",
|
|
5678
|
+
name: "NewAssetTracker",
|
|
5737
5679
|
inputs: [
|
|
5738
5680
|
{
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
{
|
|
5744
|
-
components: [
|
|
5745
|
-
{
|
|
5746
|
-
internalType: "bytes",
|
|
5747
|
-
name: "to",
|
|
5748
|
-
type: "bytes"
|
|
5749
|
-
},
|
|
5750
|
-
{
|
|
5751
|
-
internalType: "bytes",
|
|
5752
|
-
name: "data",
|
|
5753
|
-
type: "bytes"
|
|
5754
|
-
},
|
|
5755
|
-
{
|
|
5756
|
-
internalType: "bytes[]",
|
|
5757
|
-
name: "callAttributes",
|
|
5758
|
-
type: "bytes[]"
|
|
5759
|
-
}
|
|
5760
|
-
],
|
|
5761
|
-
internalType: "struct InteropCallStarter[]",
|
|
5762
|
-
name: "_callStarters",
|
|
5763
|
-
type: "tuple[]"
|
|
5681
|
+
name: "oldAssetTracker",
|
|
5682
|
+
type: "address",
|
|
5683
|
+
indexed: true,
|
|
5684
|
+
internalType: "address"
|
|
5764
5685
|
},
|
|
5765
5686
|
{
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
],
|
|
5771
|
-
name: "sendBundle",
|
|
5772
|
-
outputs: [
|
|
5773
|
-
{
|
|
5774
|
-
internalType: "bytes32",
|
|
5775
|
-
name: "bundleHash",
|
|
5776
|
-
type: "bytes32"
|
|
5687
|
+
name: "newAssetTracker",
|
|
5688
|
+
type: "address",
|
|
5689
|
+
indexed: true,
|
|
5690
|
+
internalType: "address"
|
|
5777
5691
|
}
|
|
5778
5692
|
],
|
|
5779
|
-
|
|
5780
|
-
type: "function"
|
|
5693
|
+
anonymous: false
|
|
5781
5694
|
},
|
|
5782
5695
|
{
|
|
5696
|
+
type: "event",
|
|
5697
|
+
name: "ProtocolFeesAccumulated",
|
|
5783
5698
|
inputs: [
|
|
5784
5699
|
{
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
{
|
|
5790
|
-
internalType: "bytes",
|
|
5791
|
-
name: "payload",
|
|
5792
|
-
type: "bytes"
|
|
5700
|
+
name: "coinbase",
|
|
5701
|
+
type: "address",
|
|
5702
|
+
indexed: true,
|
|
5703
|
+
internalType: "address"
|
|
5793
5704
|
},
|
|
5794
5705
|
{
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
],
|
|
5800
|
-
name: "sendMessage",
|
|
5801
|
-
outputs: [
|
|
5802
|
-
{
|
|
5803
|
-
internalType: "bytes32",
|
|
5804
|
-
name: "sendId",
|
|
5805
|
-
type: "bytes32"
|
|
5706
|
+
name: "amount",
|
|
5707
|
+
type: "uint256",
|
|
5708
|
+
indexed: false,
|
|
5709
|
+
internalType: "uint256"
|
|
5806
5710
|
}
|
|
5807
5711
|
],
|
|
5808
|
-
|
|
5809
|
-
type: "function"
|
|
5712
|
+
anonymous: false
|
|
5810
5713
|
},
|
|
5811
5714
|
{
|
|
5715
|
+
type: "event",
|
|
5716
|
+
name: "ProtocolFeesClaimed",
|
|
5812
5717
|
inputs: [
|
|
5813
5718
|
{
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
name: "supportsAttribute",
|
|
5820
|
-
outputs: [
|
|
5719
|
+
name: "coinbase",
|
|
5720
|
+
type: "address",
|
|
5721
|
+
indexed: true,
|
|
5722
|
+
internalType: "address"
|
|
5723
|
+
},
|
|
5821
5724
|
{
|
|
5822
|
-
|
|
5823
|
-
|
|
5824
|
-
|
|
5725
|
+
name: "receiver",
|
|
5726
|
+
type: "address",
|
|
5727
|
+
indexed: true,
|
|
5728
|
+
internalType: "address"
|
|
5729
|
+
},
|
|
5730
|
+
{
|
|
5731
|
+
name: "amount",
|
|
5732
|
+
type: "uint256",
|
|
5733
|
+
indexed: false,
|
|
5734
|
+
internalType: "uint256"
|
|
5825
5735
|
}
|
|
5826
5736
|
],
|
|
5827
|
-
|
|
5828
|
-
type: "function"
|
|
5737
|
+
anonymous: false
|
|
5829
5738
|
},
|
|
5830
5739
|
{
|
|
5740
|
+
type: "event",
|
|
5741
|
+
name: "ZKFeesClaimed",
|
|
5831
5742
|
inputs: [
|
|
5832
5743
|
{
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5744
|
+
name: "coinbase",
|
|
5745
|
+
type: "address",
|
|
5746
|
+
indexed: true,
|
|
5747
|
+
internalType: "address"
|
|
5748
|
+
},
|
|
5749
|
+
{
|
|
5750
|
+
name: "receiver",
|
|
5751
|
+
type: "address",
|
|
5752
|
+
indexed: true,
|
|
5753
|
+
internalType: "address"
|
|
5754
|
+
},
|
|
5755
|
+
{
|
|
5756
|
+
name: "amount",
|
|
5757
|
+
type: "uint256",
|
|
5758
|
+
indexed: false,
|
|
5759
|
+
internalType: "uint256"
|
|
5836
5760
|
}
|
|
5837
5761
|
],
|
|
5838
|
-
|
|
5839
|
-
outputs: [],
|
|
5840
|
-
stateMutability: "nonpayable",
|
|
5841
|
-
type: "function"
|
|
5842
|
-
},
|
|
5843
|
-
{
|
|
5844
|
-
inputs: [],
|
|
5845
|
-
name: "unpause",
|
|
5846
|
-
outputs: [],
|
|
5847
|
-
stateMutability: "nonpayable",
|
|
5848
|
-
type: "function"
|
|
5762
|
+
anonymous: false
|
|
5849
5763
|
}
|
|
5850
5764
|
];
|
|
5851
|
-
var
|
|
5765
|
+
var IInteropCenter_default = IInteropCenterABI;
|
|
5852
5766
|
|
|
5853
5767
|
// src/core/internal/abis/IInteropHandler.ts
|
|
5854
5768
|
var IInteropHandlerABI = [
|
|
5855
5769
|
{
|
|
5856
|
-
|
|
5857
|
-
|
|
5770
|
+
type: "function",
|
|
5771
|
+
name: "L1_CHAIN_ID",
|
|
5772
|
+
inputs: [],
|
|
5773
|
+
outputs: [
|
|
5858
5774
|
{
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
type: "bytes32"
|
|
5775
|
+
name: "",
|
|
5776
|
+
type: "uint256",
|
|
5777
|
+
internalType: "uint256"
|
|
5863
5778
|
}
|
|
5864
5779
|
],
|
|
5865
|
-
|
|
5866
|
-
type: "event"
|
|
5780
|
+
stateMutability: "view"
|
|
5867
5781
|
},
|
|
5868
5782
|
{
|
|
5869
|
-
|
|
5783
|
+
type: "function",
|
|
5784
|
+
name: "bundleStatus",
|
|
5870
5785
|
inputs: [
|
|
5871
5786
|
{
|
|
5872
|
-
indexed: true,
|
|
5873
|
-
internalType: "bytes32",
|
|
5874
5787
|
name: "bundleHash",
|
|
5875
|
-
type: "bytes32"
|
|
5788
|
+
type: "bytes32",
|
|
5789
|
+
internalType: "bytes32"
|
|
5876
5790
|
}
|
|
5877
5791
|
],
|
|
5878
|
-
|
|
5879
|
-
type: "event"
|
|
5880
|
-
},
|
|
5881
|
-
{
|
|
5882
|
-
anonymous: false,
|
|
5883
|
-
inputs: [
|
|
5792
|
+
outputs: [
|
|
5884
5793
|
{
|
|
5885
|
-
|
|
5886
|
-
|
|
5887
|
-
|
|
5888
|
-
type: "bytes32"
|
|
5794
|
+
name: "",
|
|
5795
|
+
type: "uint8",
|
|
5796
|
+
internalType: "enum BundleStatus"
|
|
5889
5797
|
}
|
|
5890
5798
|
],
|
|
5891
|
-
|
|
5892
|
-
type: "event"
|
|
5799
|
+
stateMutability: "view"
|
|
5893
5800
|
},
|
|
5894
5801
|
{
|
|
5895
|
-
|
|
5802
|
+
type: "function",
|
|
5803
|
+
name: "callStatus",
|
|
5896
5804
|
inputs: [
|
|
5897
5805
|
{
|
|
5898
|
-
indexed: true,
|
|
5899
|
-
internalType: "bytes32",
|
|
5900
5806
|
name: "bundleHash",
|
|
5901
|
-
type: "bytes32"
|
|
5807
|
+
type: "bytes32",
|
|
5808
|
+
internalType: "bytes32"
|
|
5902
5809
|
},
|
|
5903
5810
|
{
|
|
5904
|
-
indexed: true,
|
|
5905
|
-
internalType: "uint256",
|
|
5906
5811
|
name: "callIndex",
|
|
5907
|
-
type: "uint256"
|
|
5908
|
-
|
|
5812
|
+
type: "uint256",
|
|
5813
|
+
internalType: "uint256"
|
|
5814
|
+
}
|
|
5815
|
+
],
|
|
5816
|
+
outputs: [
|
|
5909
5817
|
{
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
type: "uint8"
|
|
5818
|
+
name: "",
|
|
5819
|
+
type: "uint8",
|
|
5820
|
+
internalType: "enum CallStatus"
|
|
5914
5821
|
}
|
|
5915
5822
|
],
|
|
5916
|
-
|
|
5917
|
-
type: "event"
|
|
5823
|
+
stateMutability: "view"
|
|
5918
5824
|
},
|
|
5919
5825
|
{
|
|
5826
|
+
type: "function",
|
|
5827
|
+
name: "executeBundle",
|
|
5920
5828
|
inputs: [
|
|
5921
5829
|
{
|
|
5922
|
-
internalType: "bytes",
|
|
5923
5830
|
name: "_bundle",
|
|
5924
|
-
type: "bytes"
|
|
5831
|
+
type: "bytes",
|
|
5832
|
+
internalType: "bytes"
|
|
5925
5833
|
},
|
|
5926
5834
|
{
|
|
5835
|
+
name: "_proof",
|
|
5836
|
+
type: "tuple",
|
|
5837
|
+
internalType: "struct MessageInclusionProof",
|
|
5927
5838
|
components: [
|
|
5928
5839
|
{
|
|
5929
|
-
internalType: "uint256",
|
|
5930
5840
|
name: "chainId",
|
|
5931
|
-
type: "uint256"
|
|
5841
|
+
type: "uint256",
|
|
5842
|
+
internalType: "uint256"
|
|
5932
5843
|
},
|
|
5933
5844
|
{
|
|
5934
|
-
internalType: "uint256",
|
|
5935
5845
|
name: "l1BatchNumber",
|
|
5936
|
-
type: "uint256"
|
|
5846
|
+
type: "uint256",
|
|
5847
|
+
internalType: "uint256"
|
|
5937
5848
|
},
|
|
5938
5849
|
{
|
|
5939
|
-
internalType: "uint256",
|
|
5940
5850
|
name: "l2MessageIndex",
|
|
5941
|
-
type: "uint256"
|
|
5851
|
+
type: "uint256",
|
|
5852
|
+
internalType: "uint256"
|
|
5942
5853
|
},
|
|
5943
5854
|
{
|
|
5855
|
+
name: "message",
|
|
5856
|
+
type: "tuple",
|
|
5857
|
+
internalType: "struct L2Message",
|
|
5944
5858
|
components: [
|
|
5945
5859
|
{
|
|
5946
|
-
internalType: "uint16",
|
|
5947
5860
|
name: "txNumberInBatch",
|
|
5948
|
-
type: "uint16"
|
|
5861
|
+
type: "uint16",
|
|
5862
|
+
internalType: "uint16"
|
|
5949
5863
|
},
|
|
5950
5864
|
{
|
|
5951
|
-
internalType: "address",
|
|
5952
5865
|
name: "sender",
|
|
5953
|
-
type: "address"
|
|
5866
|
+
type: "address",
|
|
5867
|
+
internalType: "address"
|
|
5954
5868
|
},
|
|
5955
5869
|
{
|
|
5956
|
-
internalType: "bytes",
|
|
5957
5870
|
name: "data",
|
|
5958
|
-
type: "bytes"
|
|
5871
|
+
type: "bytes",
|
|
5872
|
+
internalType: "bytes"
|
|
5959
5873
|
}
|
|
5960
|
-
]
|
|
5961
|
-
internalType: "struct L2Message",
|
|
5962
|
-
name: "message",
|
|
5963
|
-
type: "tuple"
|
|
5874
|
+
]
|
|
5964
5875
|
},
|
|
5965
5876
|
{
|
|
5966
|
-
internalType: "bytes32[]",
|
|
5967
5877
|
name: "proof",
|
|
5968
|
-
type: "bytes32[]"
|
|
5878
|
+
type: "bytes32[]",
|
|
5879
|
+
internalType: "bytes32[]"
|
|
5969
5880
|
}
|
|
5970
|
-
]
|
|
5971
|
-
internalType: "struct MessageInclusionProof",
|
|
5972
|
-
name: "_proof",
|
|
5973
|
-
type: "tuple"
|
|
5881
|
+
]
|
|
5974
5882
|
}
|
|
5975
5883
|
],
|
|
5976
|
-
name: "executeBundle",
|
|
5977
5884
|
outputs: [],
|
|
5978
|
-
stateMutability: "nonpayable"
|
|
5979
|
-
type: "function"
|
|
5885
|
+
stateMutability: "nonpayable"
|
|
5980
5886
|
},
|
|
5981
5887
|
{
|
|
5888
|
+
type: "function",
|
|
5889
|
+
name: "initL2",
|
|
5890
|
+
inputs: [
|
|
5891
|
+
{
|
|
5892
|
+
name: "_l1ChainId",
|
|
5893
|
+
type: "uint256",
|
|
5894
|
+
internalType: "uint256"
|
|
5895
|
+
}
|
|
5896
|
+
],
|
|
5897
|
+
outputs: [],
|
|
5898
|
+
stateMutability: "nonpayable"
|
|
5899
|
+
},
|
|
5900
|
+
{
|
|
5901
|
+
type: "function",
|
|
5902
|
+
name: "unbundleBundle",
|
|
5982
5903
|
inputs: [
|
|
5983
5904
|
{
|
|
5984
|
-
internalType: "uint256",
|
|
5985
5905
|
name: "_sourceChainId",
|
|
5986
|
-
type: "uint256"
|
|
5906
|
+
type: "uint256",
|
|
5907
|
+
internalType: "uint256"
|
|
5987
5908
|
},
|
|
5988
5909
|
{
|
|
5989
|
-
internalType: "bytes",
|
|
5990
5910
|
name: "_bundle",
|
|
5991
|
-
type: "bytes"
|
|
5911
|
+
type: "bytes",
|
|
5912
|
+
internalType: "bytes"
|
|
5992
5913
|
},
|
|
5993
5914
|
{
|
|
5994
|
-
internalType: "enum CallStatus[]",
|
|
5995
5915
|
name: "_callStatus",
|
|
5996
|
-
type: "uint8[]"
|
|
5916
|
+
type: "uint8[]",
|
|
5917
|
+
internalType: "enum CallStatus[]"
|
|
5997
5918
|
}
|
|
5998
5919
|
],
|
|
5999
|
-
name: "unbundleBundle",
|
|
6000
5920
|
outputs: [],
|
|
6001
|
-
stateMutability: "nonpayable"
|
|
6002
|
-
type: "function"
|
|
5921
|
+
stateMutability: "nonpayable"
|
|
6003
5922
|
},
|
|
6004
5923
|
{
|
|
5924
|
+
type: "function",
|
|
5925
|
+
name: "verifyBundle",
|
|
6005
5926
|
inputs: [
|
|
6006
5927
|
{
|
|
6007
|
-
internalType: "bytes",
|
|
6008
5928
|
name: "_bundle",
|
|
6009
|
-
type: "bytes"
|
|
5929
|
+
type: "bytes",
|
|
5930
|
+
internalType: "bytes"
|
|
6010
5931
|
},
|
|
6011
5932
|
{
|
|
5933
|
+
name: "_proof",
|
|
5934
|
+
type: "tuple",
|
|
5935
|
+
internalType: "struct MessageInclusionProof",
|
|
6012
5936
|
components: [
|
|
6013
5937
|
{
|
|
6014
|
-
internalType: "uint256",
|
|
6015
5938
|
name: "chainId",
|
|
6016
|
-
type: "uint256"
|
|
5939
|
+
type: "uint256",
|
|
5940
|
+
internalType: "uint256"
|
|
6017
5941
|
},
|
|
6018
5942
|
{
|
|
6019
|
-
internalType: "uint256",
|
|
6020
5943
|
name: "l1BatchNumber",
|
|
6021
|
-
type: "uint256"
|
|
5944
|
+
type: "uint256",
|
|
5945
|
+
internalType: "uint256"
|
|
6022
5946
|
},
|
|
6023
5947
|
{
|
|
6024
|
-
internalType: "uint256",
|
|
6025
5948
|
name: "l2MessageIndex",
|
|
6026
|
-
type: "uint256"
|
|
5949
|
+
type: "uint256",
|
|
5950
|
+
internalType: "uint256"
|
|
6027
5951
|
},
|
|
6028
5952
|
{
|
|
5953
|
+
name: "message",
|
|
5954
|
+
type: "tuple",
|
|
5955
|
+
internalType: "struct L2Message",
|
|
6029
5956
|
components: [
|
|
6030
5957
|
{
|
|
6031
|
-
internalType: "uint16",
|
|
6032
5958
|
name: "txNumberInBatch",
|
|
6033
|
-
type: "uint16"
|
|
5959
|
+
type: "uint16",
|
|
5960
|
+
internalType: "uint16"
|
|
6034
5961
|
},
|
|
6035
5962
|
{
|
|
6036
|
-
internalType: "address",
|
|
6037
5963
|
name: "sender",
|
|
6038
|
-
type: "address"
|
|
5964
|
+
type: "address",
|
|
5965
|
+
internalType: "address"
|
|
6039
5966
|
},
|
|
6040
5967
|
{
|
|
6041
|
-
internalType: "bytes",
|
|
6042
5968
|
name: "data",
|
|
6043
|
-
type: "bytes"
|
|
5969
|
+
type: "bytes",
|
|
5970
|
+
internalType: "bytes"
|
|
6044
5971
|
}
|
|
6045
|
-
]
|
|
6046
|
-
internalType: "struct L2Message",
|
|
6047
|
-
name: "message",
|
|
6048
|
-
type: "tuple"
|
|
5972
|
+
]
|
|
6049
5973
|
},
|
|
6050
5974
|
{
|
|
6051
|
-
internalType: "bytes32[]",
|
|
6052
5975
|
name: "proof",
|
|
6053
|
-
type: "bytes32[]"
|
|
5976
|
+
type: "bytes32[]",
|
|
5977
|
+
internalType: "bytes32[]"
|
|
6054
5978
|
}
|
|
6055
|
-
]
|
|
6056
|
-
internalType: "struct MessageInclusionProof",
|
|
6057
|
-
name: "_proof",
|
|
6058
|
-
type: "tuple"
|
|
5979
|
+
]
|
|
6059
5980
|
}
|
|
6060
5981
|
],
|
|
6061
|
-
name: "verifyBundle",
|
|
6062
5982
|
outputs: [],
|
|
6063
|
-
stateMutability: "nonpayable"
|
|
6064
|
-
|
|
5983
|
+
stateMutability: "nonpayable"
|
|
5984
|
+
},
|
|
5985
|
+
{
|
|
5986
|
+
type: "event",
|
|
5987
|
+
name: "BundleExecuted",
|
|
5988
|
+
inputs: [
|
|
5989
|
+
{
|
|
5990
|
+
name: "bundleHash",
|
|
5991
|
+
type: "bytes32",
|
|
5992
|
+
indexed: true,
|
|
5993
|
+
internalType: "bytes32"
|
|
5994
|
+
}
|
|
5995
|
+
],
|
|
5996
|
+
anonymous: false
|
|
5997
|
+
},
|
|
5998
|
+
{
|
|
5999
|
+
type: "event",
|
|
6000
|
+
name: "BundleUnbundled",
|
|
6001
|
+
inputs: [
|
|
6002
|
+
{
|
|
6003
|
+
name: "bundleHash",
|
|
6004
|
+
type: "bytes32",
|
|
6005
|
+
indexed: true,
|
|
6006
|
+
internalType: "bytes32"
|
|
6007
|
+
}
|
|
6008
|
+
],
|
|
6009
|
+
anonymous: false
|
|
6010
|
+
},
|
|
6011
|
+
{
|
|
6012
|
+
type: "event",
|
|
6013
|
+
name: "BundleVerified",
|
|
6014
|
+
inputs: [
|
|
6015
|
+
{
|
|
6016
|
+
name: "bundleHash",
|
|
6017
|
+
type: "bytes32",
|
|
6018
|
+
indexed: true,
|
|
6019
|
+
internalType: "bytes32"
|
|
6020
|
+
}
|
|
6021
|
+
],
|
|
6022
|
+
anonymous: false
|
|
6023
|
+
},
|
|
6024
|
+
{
|
|
6025
|
+
type: "event",
|
|
6026
|
+
name: "CallProcessed",
|
|
6027
|
+
inputs: [
|
|
6028
|
+
{
|
|
6029
|
+
name: "bundleHash",
|
|
6030
|
+
type: "bytes32",
|
|
6031
|
+
indexed: true,
|
|
6032
|
+
internalType: "bytes32"
|
|
6033
|
+
},
|
|
6034
|
+
{
|
|
6035
|
+
name: "callIndex",
|
|
6036
|
+
type: "uint256",
|
|
6037
|
+
indexed: true,
|
|
6038
|
+
internalType: "uint256"
|
|
6039
|
+
},
|
|
6040
|
+
{
|
|
6041
|
+
name: "status",
|
|
6042
|
+
type: "uint8",
|
|
6043
|
+
indexed: false,
|
|
6044
|
+
internalType: "enum CallStatus"
|
|
6045
|
+
}
|
|
6046
|
+
],
|
|
6047
|
+
anonymous: false
|
|
6065
6048
|
}
|
|
6066
6049
|
];
|
|
6067
6050
|
var IInteropHandler_default = IInteropHandlerABI;
|
|
@@ -6651,7 +6634,7 @@ function createEthersClient(args) {
|
|
|
6651
6634
|
l2AssetRouter: new ethers.Contract(a.l2AssetRouter, IL2AssetRouter_default, l2),
|
|
6652
6635
|
l2NativeTokenVault: new ethers.Contract(a.l2NativeTokenVault, L2NativeTokenVault_default, l2),
|
|
6653
6636
|
l2BaseTokenSystem: new ethers.Contract(a.l2BaseTokenSystem, IBaseToken_default, l2),
|
|
6654
|
-
interopCenter: new ethers.Contract(a.interopCenter,
|
|
6637
|
+
interopCenter: new ethers.Contract(a.interopCenter, IInteropCenter_default, l2),
|
|
6655
6638
|
interopHandler: new ethers.Contract(a.interopHandler, IInteropHandler_default, l2),
|
|
6656
6639
|
l2MessageVerification: new ethers.Contract(a.l2MessageVerification, L2MessageVerification_default, l2)
|
|
6657
6640
|
};
|