actions.ts 369 KB
Newer Older
1
// Generated by @wagmi/cli@1.3.0 on 7/17/2023 at 7:42:52 PM
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
import {
  getContract,
  GetContractArgs,
  readContract,
  ReadContractConfig,
  writeContract,
  WriteContractMode,
  WriteContractArgs,
  WriteContractPreparedArgs,
  WriteContractUnpreparedArgs,
  prepareWriteContract,
  PrepareWriteContractConfig,
  watchContractEvent,
  WatchContractEventConfig,
  WatchContractEventCallback,
} from 'wagmi/actions'

/* eslint-disable */

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// AddressManager
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdE1FCfB0851916CA5101820A69b13a4E276bd81F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xa6f73589243a6A7a9023b1Fa0651b1d89c177111)
 */
export const addressManagerABI = [
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: '_name', internalType: 'string', type: 'string', indexed: true },
      {
        name: '_newAddress',
        internalType: 'address',
        type: 'address',
        indexed: false,
      },
      {
        name: '_oldAddress',
        internalType: 'address',
        type: 'address',
        indexed: false,
      },
    ],
    name: 'AddressSet',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'previousOwner',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'newOwner',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
    ],
    name: 'OwnershipTransferred',
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '_name', internalType: 'string', type: 'string' }],
    name: 'getAddress',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'owner',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'renounceOwnership',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_name', internalType: 'string', type: 'string' },
      { name: '_address', internalType: 'address', type: 'address' },
    ],
    name: 'setAddress',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
    name: 'transferOwnership',
    outputs: [],
  },
] as const

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdE1FCfB0851916CA5101820A69b13a4E276bd81F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xa6f73589243a6A7a9023b1Fa0651b1d89c177111)
 */
export const addressManagerAddress = {
  1: '0xdE1FCfB0851916CA5101820A69b13a4E276bd81F',
  5: '0xa6f73589243a6A7a9023b1Fa0651b1d89c177111',
} as const

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdE1FCfB0851916CA5101820A69b13a4E276bd81F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xa6f73589243a6A7a9023b1Fa0651b1d89c177111)
 */
export const addressManagerConfig = {
  address: addressManagerAddress,
  abi: addressManagerABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
128
// AssetReceiver
129 130 131
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
132 133
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
134
 */
Will Cory's avatar
Will Cory committed
135
export const assetReceiverABI = [
136 137 138
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
Will Cory's avatar
Will Cory committed
139
    inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
140 141 142 143 144
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
Will Cory's avatar
Will Cory committed
145
      { name: 'user', internalType: 'address', type: 'address', indexed: true },
146
      {
Will Cory's avatar
Will Cory committed
147 148 149
        name: 'newOwner',
        internalType: 'address',
        type: 'address',
150 151 152
        indexed: true,
      },
    ],
Will Cory's avatar
Will Cory committed
153
    name: 'OwnerUpdated',
154 155 156 157 158
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
Will Cory's avatar
Will Cory committed
159 160 161 162 163 164 165
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
166
    ],
Will Cory's avatar
Will Cory committed
167
    name: 'ReceivedETH',
168 169 170 171 172 173
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
        name: 'withdrawer',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'recipient',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'asset',
        internalType: 'address',
        type: 'address',
189 190
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
191 192 193 194 195 196
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
197
    ],
Will Cory's avatar
Will Cory committed
198
    name: 'WithdrewERC20',
199 200 201 202 203 204
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
205
        name: 'withdrawer',
206 207 208 209 210
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
211
        name: 'recipient',
212 213
        internalType: 'address',
        type: 'address',
Will Cory's avatar
Will Cory committed
214
        indexed: true,
215 216
      },
      {
Will Cory's avatar
Will Cory committed
217 218 219 220
        name: 'asset',
        internalType: 'address',
        type: 'address',
        indexed: true,
221
      },
Will Cory's avatar
Will Cory committed
222
      { name: 'id', internalType: 'uint256', type: 'uint256', indexed: false },
223
    ],
Will Cory's avatar
Will Cory committed
224
    name: 'WithdrewERC721',
225 226 227 228 229 230
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
231
        name: 'withdrawer',
232 233 234 235 236
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
237 238 239 240 241 242 243
        name: 'recipient',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'amount',
244 245 246 247 248
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
    ],
Will Cory's avatar
Will Cory committed
249
    name: 'WithdrewETH',
250 251
  },
  {
Will Cory's avatar
Will Cory committed
252
    stateMutability: 'payable',
253
    type: 'function',
Will Cory's avatar
Will Cory committed
254 255 256 257 258 259 260
    inputs: [
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_data', internalType: 'bytes', type: 'bytes' },
      { name: '_gas', internalType: 'uint256', type: 'uint256' },
      { name: '_value', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'CALL',
261
    outputs: [
Will Cory's avatar
Will Cory committed
262 263
      { name: '', internalType: 'bool', type: 'bool' },
      { name: '', internalType: 'bytes', type: 'bytes' },
264 265 266
    ],
  },
  {
Will Cory's avatar
Will Cory committed
267
    stateMutability: 'payable',
268
    type: 'function',
Will Cory's avatar
Will Cory committed
269 270 271 272 273 274 275 276 277 278
    inputs: [
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_data', internalType: 'bytes', type: 'bytes' },
      { name: '_gas', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'DELEGATECALL',
    outputs: [
      { name: '', internalType: 'bool', type: 'bool' },
      { name: '', internalType: 'bytes', type: 'bytes' },
    ],
279 280 281 282 283
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
284 285
    name: 'owner',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
286 287
  },
  {
Will Cory's avatar
Will Cory committed
288
    stateMutability: 'nonpayable',
289
    type: 'function',
Will Cory's avatar
Will Cory committed
290 291 292
    inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
    name: 'setOwner',
    outputs: [],
293 294
  },
  {
Will Cory's avatar
Will Cory committed
295
    stateMutability: 'nonpayable',
296 297
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
298 299 300
      { name: '_asset', internalType: 'contract ERC20', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
301
    ],
Will Cory's avatar
Will Cory committed
302 303
    name: 'withdrawERC20',
    outputs: [],
304 305 306 307
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
308 309 310 311 312
    inputs: [
      { name: '_asset', internalType: 'contract ERC20', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
    ],
    name: 'withdrawERC20',
313 314 315
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
316
    stateMutability: 'nonpayable',
317 318
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
319 320 321
      { name: '_asset', internalType: 'contract ERC721', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_id', internalType: 'uint256', type: 'uint256' },
322
    ],
Will Cory's avatar
Will Cory committed
323
    name: 'withdrawERC721',
324 325 326
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
327
    stateMutability: 'nonpayable',
328 329
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
330 331
      { name: '_to', internalType: 'address payable', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
332
    ],
Will Cory's avatar
Will Cory committed
333
    name: 'withdrawETH',
334 335 336
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
337
    stateMutability: 'nonpayable',
338
    type: 'function',
Will Cory's avatar
Will Cory committed
339 340 341
    inputs: [{ name: '_to', internalType: 'address payable', type: 'address' }],
    name: 'withdrawETH',
    outputs: [],
342
  },
Will Cory's avatar
Will Cory committed
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373
  { stateMutability: 'payable', type: 'receive' },
] as const

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 */
export const assetReceiverAddress = {
  1: '0x15DdA60616Ffca20371ED1659dBB78E888f65556',
  10: '0x15DdA60616Ffca20371ED1659dBB78E888f65556',
} as const

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 */
export const assetReceiverConfig = {
  address: assetReceiverAddress,
  abi: assetReceiverABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CheckBalanceHigh
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x7eC64a8a591bFf829ff6C8be76074D540ACb813F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x7eC64a8a591bFf829ff6C8be76074D540ACb813F)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x5d7103853f12109A7d27F118e54BbC654ad847E9)
 */
export const checkBalanceHighABI = [
374
  {
Will Cory's avatar
Will Cory committed
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'params',
        internalType: 'struct CheckBalanceHigh.Params',
        type: 'tuple',
        components: [
          { name: 'target', internalType: 'address', type: 'address' },
          { name: 'threshold', internalType: 'uint256', type: 'uint256' },
        ],
        indexed: false,
      },
    ],
    name: '_EventToExposeStructInABI__Params',
390 391 392 393
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
394 395 396
    inputs: [{ name: '_params', internalType: 'bytes', type: 'bytes' }],
    name: 'check',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
397 398 399 400
  },
] as const

/**
Will Cory's avatar
Will Cory committed
401 402 403
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x7eC64a8a591bFf829ff6C8be76074D540ACb813F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x7eC64a8a591bFf829ff6C8be76074D540ACb813F)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x5d7103853f12109A7d27F118e54BbC654ad847E9)
404
 */
Will Cory's avatar
Will Cory committed
405 406 407 408
export const checkBalanceHighAddress = {
  1: '0x7eC64a8a591bFf829ff6C8be76074D540ACb813F',
  5: '0x7eC64a8a591bFf829ff6C8be76074D540ACb813F',
  420: '0x5d7103853f12109A7d27F118e54BbC654ad847E9',
409 410 411
} as const

/**
Will Cory's avatar
Will Cory committed
412 413 414
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x7eC64a8a591bFf829ff6C8be76074D540ACb813F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x7eC64a8a591bFf829ff6C8be76074D540ACb813F)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x5d7103853f12109A7d27F118e54BbC654ad847E9)
415
 */
Will Cory's avatar
Will Cory committed
416 417 418
export const checkBalanceHighConfig = {
  address: checkBalanceHighAddress,
  abi: checkBalanceHighABI,
419 420 421
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
422
// CheckBalanceLow
423 424 425
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
426 427 428
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x7Ce13D154FAEE5C8B3E6b19d4Add16f21d884474)
429
 */
Will Cory's avatar
Will Cory committed
430
export const checkBalanceLowABI = [
431 432 433 434 435
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
436 437 438 439 440 441 442
        name: 'params',
        internalType: 'struct CheckBalanceLow.Params',
        type: 'tuple',
        components: [
          { name: 'target', internalType: 'address', type: 'address' },
          { name: 'threshold', internalType: 'uint256', type: 'uint256' },
        ],
443 444 445
        indexed: false,
      },
    ],
Will Cory's avatar
Will Cory committed
446
    name: '_EventToExposeStructInABI__Params',
447 448 449 450
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
451 452
    inputs: [{ name: '_params', internalType: 'bytes', type: 'bytes' }],
    name: 'check',
453 454
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
Will Cory's avatar
Will Cory committed
455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487
] as const

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x7Ce13D154FAEE5C8B3E6b19d4Add16f21d884474)
 */
export const checkBalanceLowAddress = {
  1: '0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640',
  5: '0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640',
  420: '0x7Ce13D154FAEE5C8B3E6b19d4Add16f21d884474',
} as const

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x7Ce13D154FAEE5C8B3E6b19d4Add16f21d884474)
 */
export const checkBalanceLowConfig = {
  address: checkBalanceLowAddress,
  abi: checkBalanceLowABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CheckGelatoLow
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xF9c8a4Cb4021f57F9f6d69799cA9BefF64524862)
 */
export const checkGelatoLowABI = [
488
  {
Will Cory's avatar
Will Cory committed
489 490
    type: 'event',
    anonymous: false,
491 492
    inputs: [
      {
Will Cory's avatar
Will Cory committed
493 494 495 496 497 498 499 500 501
        name: 'params',
        internalType: 'struct CheckGelatoLow.Params',
        type: 'tuple',
        components: [
          { name: 'treasury', internalType: 'address', type: 'address' },
          { name: 'threshold', internalType: 'uint256', type: 'uint256' },
          { name: 'recipient', internalType: 'address', type: 'address' },
        ],
        indexed: false,
502 503
      },
    ],
Will Cory's avatar
Will Cory committed
504
    name: '_EventToExposeStructInABI__Params',
505 506 507 508
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
509 510 511
    inputs: [{ name: '_params', internalType: 'bytes', type: 'bytes' }],
    name: 'check',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
512
  },
Will Cory's avatar
Will Cory committed
513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545
] as const

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xF9c8a4Cb4021f57F9f6d69799cA9BefF64524862)
 */
export const checkGelatoLowAddress = {
  1: '0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa',
  5: '0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa',
  420: '0xF9c8a4Cb4021f57F9f6d69799cA9BefF64524862',
} as const

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xF9c8a4Cb4021f57F9f6d69799cA9BefF64524862)
 */
export const checkGelatoLowConfig = {
  address: checkGelatoLowAddress,
  abi: checkGelatoLowABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// CheckTrue
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5c741a38cb11424711231777D71689C458eE835D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5c741a38cb11424711231777D71689C458eE835D)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x47443D0C184e022F19BD1578F5bca6B8a9F58E32)
 */
export const checkTrueABI = [
546
  {
Will Cory's avatar
Will Cory committed
547
    stateMutability: 'pure',
548
    type: 'function',
Will Cory's avatar
Will Cory committed
549 550 551
    inputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
    name: 'check',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
552 553 554 555
  },
] as const

/**
Will Cory's avatar
Will Cory committed
556 557 558
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5c741a38cb11424711231777D71689C458eE835D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5c741a38cb11424711231777D71689C458eE835D)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x47443D0C184e022F19BD1578F5bca6B8a9F58E32)
559
 */
Will Cory's avatar
Will Cory committed
560 561 562 563
export const checkTrueAddress = {
  1: '0x5c741a38cb11424711231777D71689C458eE835D',
  5: '0x5c741a38cb11424711231777D71689C458eE835D',
  420: '0x47443D0C184e022F19BD1578F5bca6B8a9F58E32',
564 565 566
} as const

/**
Will Cory's avatar
Will Cory committed
567 568 569
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5c741a38cb11424711231777D71689C458eE835D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5c741a38cb11424711231777D71689C458eE835D)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x47443D0C184e022F19BD1578F5bca6B8a9F58E32)
570
 */
Will Cory's avatar
Will Cory committed
571 572 573
export const checkTrueConfig = {
  address: checkTrueAddress,
  abi: checkTrueABI,
574 575 576
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
577
// Drippie
578 579 580
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
581
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
582
 */
Will Cory's avatar
Will Cory committed
583
export const drippieABI = [
584 585 586
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
Will Cory's avatar
Will Cory committed
587 588 589 590 591
    inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
  },
  {
    type: 'event',
    anonymous: false,
592
    inputs: [
Will Cory's avatar
Will Cory committed
593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629
      {
        name: 'nameref',
        internalType: 'string',
        type: 'string',
        indexed: true,
      },
      { name: 'name', internalType: 'string', type: 'string', indexed: false },
      {
        name: 'config',
        internalType: 'struct Drippie.DripConfig',
        type: 'tuple',
        components: [
          { name: 'reentrant', internalType: 'bool', type: 'bool' },
          { name: 'interval', internalType: 'uint256', type: 'uint256' },
          {
            name: 'dripcheck',
            internalType: 'contract IDripCheck',
            type: 'address',
          },
          { name: 'checkparams', internalType: 'bytes', type: 'bytes' },
          {
            name: 'actions',
            internalType: 'struct Drippie.DripAction[]',
            type: 'tuple[]',
            components: [
              {
                name: 'target',
                internalType: 'address payable',
                type: 'address',
              },
              { name: 'data', internalType: 'bytes', type: 'bytes' },
              { name: 'value', internalType: 'uint256', type: 'uint256' },
            ],
          },
        ],
        indexed: false,
      },
630
    ],
Will Cory's avatar
Will Cory committed
631
    name: 'DripCreated',
632 633 634 635 636 637
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
638 639 640
        name: 'nameref',
        internalType: 'string',
        type: 'string',
641 642
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
643
      { name: 'name', internalType: 'string', type: 'string', indexed: false },
644
      {
Will Cory's avatar
Will Cory committed
645
        name: 'executor',
646 647
        internalType: 'address',
        type: 'address',
Will Cory's avatar
Will Cory committed
648
        indexed: false,
649 650
      },
      {
Will Cory's avatar
Will Cory committed
651
        name: 'timestamp',
652 653 654 655 656
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
    ],
Will Cory's avatar
Will Cory committed
657
    name: 'DripExecuted',
658 659 660 661 662 663
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
664 665 666
        name: 'nameref',
        internalType: 'string',
        type: 'string',
667 668
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
669
      { name: 'name', internalType: 'string', type: 'string', indexed: false },
670
      {
Will Cory's avatar
Will Cory committed
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685
        name: 'status',
        internalType: 'enum Drippie.DripStatus',
        type: 'uint8',
        indexed: false,
      },
    ],
    name: 'DripStatusUpdated',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'user', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'newOwner',
686 687 688 689
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
690 691 692 693 694 695 696
    ],
    name: 'OwnerUpdated',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
697 698 699 700 701 702 703 704
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
    ],
Will Cory's avatar
Will Cory committed
705
    name: 'ReceivedETH',
706 707 708 709 710 711
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
712
        name: 'withdrawer',
713 714 715 716 717
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
718
        name: 'recipient',
719 720 721 722 723
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
724 725 726 727
        name: 'asset',
        internalType: 'address',
        type: 'address',
        indexed: true,
728 729
      },
      {
Will Cory's avatar
Will Cory committed
730 731 732
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
733 734 735
        indexed: false,
      },
    ],
Will Cory's avatar
Will Cory committed
736
    name: 'WithdrewERC20',
737 738 739 740 741 742
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
743
        name: 'withdrawer',
744 745 746 747 748
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
749
        name: 'recipient',
750 751 752 753 754
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
755 756 757 758
        name: 'asset',
        internalType: 'address',
        type: 'address',
        indexed: true,
759
      },
Will Cory's avatar
Will Cory committed
760
      { name: 'id', internalType: 'uint256', type: 'uint256', indexed: false },
761
    ],
Will Cory's avatar
Will Cory committed
762
    name: 'WithdrewERC721',
763 764 765 766 767 768
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
769 770 771 772
        name: 'withdrawer',
        internalType: 'address',
        type: 'address',
        indexed: true,
773 774
      },
      {
Will Cory's avatar
Will Cory committed
775 776 777 778
        name: 'recipient',
        internalType: 'address',
        type: 'address',
        indexed: true,
779 780 781 782 783 784 785 786
      },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
    ],
Will Cory's avatar
Will Cory committed
787
    name: 'WithdrewETH',
788 789
  },
  {
Will Cory's avatar
Will Cory committed
790 791
    stateMutability: 'payable',
    type: 'function',
792
    inputs: [
Will Cory's avatar
Will Cory committed
793 794 795 796 797 798 799 800
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_data', internalType: 'bytes', type: 'bytes' },
      { name: '_value', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'CALL',
    outputs: [
      { name: '', internalType: 'bool', type: 'bool' },
      { name: '', internalType: 'bytes', type: 'bytes' },
801 802 803
    ],
  },
  {
Will Cory's avatar
Will Cory committed
804 805
    stateMutability: 'payable',
    type: 'function',
806
    inputs: [
Will Cory's avatar
Will Cory committed
807 808 809 810 811 812 813
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_data', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'DELEGATECALL',
    outputs: [
      { name: '', internalType: 'bool', type: 'bool' },
      { name: '', internalType: 'bytes', type: 'bytes' },
814 815 816 817 818 819
    ],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849
      { name: '_name', internalType: 'string', type: 'string' },
      {
        name: '_config',
        internalType: 'struct Drippie.DripConfig',
        type: 'tuple',
        components: [
          { name: 'reentrant', internalType: 'bool', type: 'bool' },
          { name: 'interval', internalType: 'uint256', type: 'uint256' },
          {
            name: 'dripcheck',
            internalType: 'contract IDripCheck',
            type: 'address',
          },
          { name: 'checkparams', internalType: 'bytes', type: 'bytes' },
          {
            name: 'actions',
            internalType: 'struct Drippie.DripAction[]',
            type: 'tuple[]',
            components: [
              {
                name: 'target',
                internalType: 'address payable',
                type: 'address',
              },
              { name: 'data', internalType: 'bytes', type: 'bytes' },
              { name: 'value', internalType: 'uint256', type: 'uint256' },
            ],
          },
        ],
      },
850
    ],
Will Cory's avatar
Will Cory committed
851
    name: 'create',
852 853 854 855 856
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
857 858
    inputs: [{ name: '_name', internalType: 'string', type: 'string' }],
    name: 'drip',
859 860 861
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
862
    stateMutability: 'view',
863
    type: 'function',
Will Cory's avatar
Will Cory committed
864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902
    inputs: [{ name: '', internalType: 'string', type: 'string' }],
    name: 'drips',
    outputs: [
      {
        name: 'status',
        internalType: 'enum Drippie.DripStatus',
        type: 'uint8',
      },
      {
        name: 'config',
        internalType: 'struct Drippie.DripConfig',
        type: 'tuple',
        components: [
          { name: 'reentrant', internalType: 'bool', type: 'bool' },
          { name: 'interval', internalType: 'uint256', type: 'uint256' },
          {
            name: 'dripcheck',
            internalType: 'contract IDripCheck',
            type: 'address',
          },
          { name: 'checkparams', internalType: 'bytes', type: 'bytes' },
          {
            name: 'actions',
            internalType: 'struct Drippie.DripAction[]',
            type: 'tuple[]',
            components: [
              {
                name: 'target',
                internalType: 'address payable',
                type: 'address',
              },
              { name: 'data', internalType: 'bytes', type: 'bytes' },
              { name: 'value', internalType: 'uint256', type: 'uint256' },
            ],
          },
        ],
      },
      { name: 'last', internalType: 'uint256', type: 'uint256' },
      { name: 'count', internalType: 'uint256', type: 'uint256' },
903 904 905
    ],
  },
  {
Will Cory's avatar
Will Cory committed
906
    stateMutability: 'view',
907
    type: 'function',
Will Cory's avatar
Will Cory committed
908 909 910
    inputs: [{ name: '_name', internalType: 'string', type: 'string' }],
    name: 'executable',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
911 912
  },
  {
Will Cory's avatar
Will Cory committed
913
    stateMutability: 'view',
914
    type: 'function',
Will Cory's avatar
Will Cory committed
915 916 917
    inputs: [],
    name: 'owner',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
918 919 920 921
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
922 923
    inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
    name: 'setOwner',
924 925 926
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
927
    stateMutability: 'nonpayable',
928 929
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
930 931 932 933 934 935
      { name: '_name', internalType: 'string', type: 'string' },
      {
        name: '_status',
        internalType: 'enum Drippie.DripStatus',
        type: 'uint8',
      },
936
    ],
Will Cory's avatar
Will Cory committed
937
    name: 'status',
938 939 940
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
941
    stateMutability: 'nonpayable',
942 943
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
944
      { name: '_asset', internalType: 'contract ERC20', type: 'address' },
945
      { name: '_to', internalType: 'address', type: 'address' },
Will Cory's avatar
Will Cory committed
946
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
947
    ],
Will Cory's avatar
Will Cory committed
948
    name: 'withdrawERC20',
949 950 951 952 953 954
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
955
      { name: '_asset', internalType: 'contract ERC20', type: 'address' },
956 957
      { name: '_to', internalType: 'address', type: 'address' },
    ],
Will Cory's avatar
Will Cory committed
958
    name: 'withdrawERC20',
959 960 961
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
962
    stateMutability: 'nonpayable',
963 964
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
965
      { name: '_asset', internalType: 'contract ERC721', type: 'address' },
966
      { name: '_to', internalType: 'address', type: 'address' },
Will Cory's avatar
Will Cory committed
967
      { name: '_id', internalType: 'uint256', type: 'uint256' },
968
    ],
Will Cory's avatar
Will Cory committed
969
    name: 'withdrawERC721',
970 971 972 973 974 975
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
976
      { name: '_to', internalType: 'address payable', type: 'address' },
977 978
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
    ],
Will Cory's avatar
Will Cory committed
979
    name: 'withdrawETH',
980 981 982
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
983
    stateMutability: 'nonpayable',
984
    type: 'function',
Will Cory's avatar
Will Cory committed
985 986
    inputs: [{ name: '_to', internalType: 'address payable', type: 'address' }],
    name: 'withdrawETH',
987 988 989 990 991 992
    outputs: [],
  },
  { stateMutability: 'payable', type: 'receive' },
] as const

/**
Will Cory's avatar
Will Cory committed
993
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
994
 */
Will Cory's avatar
Will Cory committed
995 996
export const drippieAddress = {
  1: '0x44b3A2a040057eBafC601A78647e805fd58B1f50',
997 998 999
} as const

/**
Will Cory's avatar
Will Cory committed
1000
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
1001
 */
Will Cory's avatar
Will Cory committed
1002 1003 1004
export const drippieConfig = {
  address: drippieAddress,
  abi: drippieABI,
1005 1006 1007
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
1008
// Drippie_goerli
1009 1010 1011
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
1012
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
1013
 */
Will Cory's avatar
Will Cory committed
1014
export const drippieGoerliABI = [
1015 1016 1017
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
Will Cory's avatar
Will Cory committed
1018 1019 1020 1021 1022
    inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
  },
  {
    type: 'event',
    anonymous: false,
1023 1024
    inputs: [
      {
Will Cory's avatar
Will Cory committed
1025 1026 1027 1028
        name: 'nameref',
        internalType: 'string',
        type: 'string',
        indexed: true,
1029
      },
Will Cory's avatar
Will Cory committed
1030
      { name: 'name', internalType: 'string', type: 'string', indexed: false },
1031
      {
Will Cory's avatar
Will Cory committed
1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082
        name: 'config',
        internalType: 'struct Drippie.DripConfig',
        type: 'tuple',
        components: [
          { name: 'reentrant', internalType: 'bool', type: 'bool' },
          { name: 'interval', internalType: 'uint256', type: 'uint256' },
          {
            name: 'dripcheck',
            internalType: 'contract IDripCheck',
            type: 'address',
          },
          { name: 'checkparams', internalType: 'bytes', type: 'bytes' },
          {
            name: 'actions',
            internalType: 'struct Drippie.DripAction[]',
            type: 'tuple[]',
            components: [
              {
                name: 'target',
                internalType: 'address payable',
                type: 'address',
              },
              { name: 'data', internalType: 'bytes', type: 'bytes' },
              { name: 'value', internalType: 'uint256', type: 'uint256' },
            ],
          },
        ],
        indexed: false,
      },
    ],
    name: 'DripCreated',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'nameref',
        internalType: 'string',
        type: 'string',
        indexed: true,
      },
      { name: 'name', internalType: 'string', type: 'string', indexed: false },
      {
        name: 'executor',
        internalType: 'address',
        type: 'address',
        indexed: false,
      },
      {
        name: 'timestamp',
1083 1084
        internalType: 'uint256',
        type: 'uint256',
Will Cory's avatar
Will Cory committed
1085
        indexed: false,
1086 1087
      },
    ],
Will Cory's avatar
Will Cory committed
1088
    name: 'DripExecuted',
1089 1090 1091 1092 1093
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
Will Cory's avatar
Will Cory committed
1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106
      {
        name: 'nameref',
        internalType: 'string',
        type: 'string',
        indexed: true,
      },
      { name: 'name', internalType: 'string', type: 'string', indexed: false },
      {
        name: 'status',
        internalType: 'enum Drippie.DripStatus',
        type: 'uint8',
        indexed: false,
      },
1107
    ],
Will Cory's avatar
Will Cory committed
1108
    name: 'DripStatusUpdated',
1109 1110 1111 1112 1113
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
Will Cory's avatar
Will Cory committed
1114
      { name: 'user', internalType: 'address', type: 'address', indexed: true },
1115
      {
Will Cory's avatar
Will Cory committed
1116 1117 1118
        name: 'newOwner',
        internalType: 'address',
        type: 'address',
1119 1120
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
1121 1122 1123 1124 1125 1126 1127 1128
    ],
    name: 'OwnerUpdated',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
1129
      {
Will Cory's avatar
Will Cory committed
1130
        name: 'amount',
1131 1132
        internalType: 'uint256',
        type: 'uint256',
Will Cory's avatar
Will Cory committed
1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145
        indexed: false,
      },
    ],
    name: 'ReceivedETH',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'withdrawer',
        internalType: 'address',
        type: 'address',
1146 1147 1148
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
1149 1150 1151
        name: 'recipient',
        internalType: 'address',
        type: 'address',
1152 1153 1154
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
1155 1156 1157 1158 1159 1160 1161
        name: 'asset',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'amount',
1162 1163 1164 1165 1166
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
    ],
Will Cory's avatar
Will Cory committed
1167
    name: 'WithdrewERC20',
1168 1169 1170 1171 1172 1173
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
1174 1175 1176
        name: 'withdrawer',
        internalType: 'address',
        type: 'address',
1177 1178 1179
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
1180 1181 1182
        name: 'recipient',
        internalType: 'address',
        type: 'address',
1183 1184
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
1185 1186 1187 1188 1189 1190 1191
      {
        name: 'asset',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'id', internalType: 'uint256', type: 'uint256', indexed: false },
1192
    ],
Will Cory's avatar
Will Cory committed
1193
    name: 'WithdrewERC721',
1194 1195
  },
  {
Will Cory's avatar
Will Cory committed
1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'withdrawer',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'recipient',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
    ],
    name: 'WithdrewETH',
1219 1220
  },
  {
Will Cory's avatar
Will Cory committed
1221
    stateMutability: 'payable',
1222 1223
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
1224 1225 1226 1227 1228 1229 1230 1231
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_data', internalType: 'bytes', type: 'bytes' },
      { name: '_value', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'CALL',
    outputs: [
      { name: '', internalType: 'bool', type: 'bool' },
      { name: '', internalType: 'bytes', type: 'bytes' },
1232 1233 1234
    ],
  },
  {
Will Cory's avatar
Will Cory committed
1235
    stateMutability: 'payable',
1236 1237
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
1238 1239 1240 1241 1242 1243 1244
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_data', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'DELEGATECALL',
    outputs: [
      { name: '', internalType: 'bool', type: 'bool' },
      { name: '', internalType: 'bytes', type: 'bytes' },
1245 1246 1247
    ],
  },
  {
Will Cory's avatar
Will Cory committed
1248
    stateMutability: 'nonpayable',
1249 1250
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
1251
      { name: '_name', internalType: 'string', type: 'string' },
1252
      {
Will Cory's avatar
Will Cory committed
1253 1254
        name: '_config',
        internalType: 'struct Drippie.DripConfig',
1255 1256
        type: 'tuple',
        components: [
Will Cory's avatar
Will Cory committed
1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278
          { name: 'reentrant', internalType: 'bool', type: 'bool' },
          { name: 'interval', internalType: 'uint256', type: 'uint256' },
          {
            name: 'dripcheck',
            internalType: 'contract IDripCheck',
            type: 'address',
          },
          { name: 'checkparams', internalType: 'bytes', type: 'bytes' },
          {
            name: 'actions',
            internalType: 'struct Drippie.DripAction[]',
            type: 'tuple[]',
            components: [
              {
                name: 'target',
                internalType: 'address payable',
                type: 'address',
              },
              { name: 'data', internalType: 'bytes', type: 'bytes' },
              { name: 'value', internalType: 'uint256', type: 'uint256' },
            ],
          },
1279 1280 1281
        ],
      },
    ],
Will Cory's avatar
Will Cory committed
1282 1283 1284 1285 1286 1287 1288 1289 1290
    name: 'create',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: '_name', internalType: 'string', type: 'string' }],
    name: 'drip',
    outputs: [],
1291 1292 1293 1294
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
1295 1296
    inputs: [{ name: '', internalType: 'string', type: 'string' }],
    name: 'drips',
1297 1298
    outputs: [
      {
Will Cory's avatar
Will Cory committed
1299 1300 1301 1302 1303 1304 1305
        name: 'status',
        internalType: 'enum Drippie.DripStatus',
        type: 'uint8',
      },
      {
        name: 'config',
        internalType: 'struct Drippie.DripConfig',
1306 1307
        type: 'tuple',
        components: [
Will Cory's avatar
Will Cory committed
1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329
          { name: 'reentrant', internalType: 'bool', type: 'bool' },
          { name: 'interval', internalType: 'uint256', type: 'uint256' },
          {
            name: 'dripcheck',
            internalType: 'contract IDripCheck',
            type: 'address',
          },
          { name: 'checkparams', internalType: 'bytes', type: 'bytes' },
          {
            name: 'actions',
            internalType: 'struct Drippie.DripAction[]',
            type: 'tuple[]',
            components: [
              {
                name: 'target',
                internalType: 'address payable',
                type: 'address',
              },
              { name: 'data', internalType: 'bytes', type: 'bytes' },
              { name: 'value', internalType: 'uint256', type: 'uint256' },
            ],
          },
1330 1331
        ],
      },
Will Cory's avatar
Will Cory committed
1332 1333
      { name: 'last', internalType: 'uint256', type: 'uint256' },
      { name: 'count', internalType: 'uint256', type: 'uint256' },
1334 1335 1336 1337 1338
    ],
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
1339 1340 1341
    inputs: [{ name: '_name', internalType: 'string', type: 'string' }],
    name: 'executable',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1342 1343 1344 1345 1346
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
1347 1348
    name: 'owner',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
1349 1350
  },
  {
Will Cory's avatar
Will Cory committed
1351
    stateMutability: 'nonpayable',
1352
    type: 'function',
Will Cory's avatar
Will Cory committed
1353 1354 1355
    inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
    name: 'setOwner',
    outputs: [],
1356 1357
  },
  {
Will Cory's avatar
Will Cory committed
1358
    stateMutability: 'nonpayable',
1359
    type: 'function',
Will Cory's avatar
Will Cory committed
1360 1361 1362 1363 1364 1365 1366 1367 1368 1369
    inputs: [
      { name: '_name', internalType: 'string', type: 'string' },
      {
        name: '_status',
        internalType: 'enum Drippie.DripStatus',
        type: 'uint8',
      },
    ],
    name: 'status',
    outputs: [],
1370 1371
  },
  {
Will Cory's avatar
Will Cory committed
1372
    stateMutability: 'nonpayable',
1373
    type: 'function',
Will Cory's avatar
Will Cory committed
1374 1375 1376 1377 1378 1379 1380
    inputs: [
      { name: '_asset', internalType: 'contract ERC20', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'withdrawERC20',
    outputs: [],
1381 1382
  },
  {
Will Cory's avatar
Will Cory committed
1383
    stateMutability: 'nonpayable',
1384 1385
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
1386 1387
      { name: '_asset', internalType: 'contract ERC20', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
1388
    ],
Will Cory's avatar
Will Cory committed
1389
    name: 'withdrawERC20',
1390 1391 1392
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
1393
    stateMutability: 'nonpayable',
1394
    type: 'function',
Will Cory's avatar
Will Cory committed
1395 1396 1397 1398 1399 1400 1401
    inputs: [
      { name: '_asset', internalType: 'contract ERC721', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_id', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'withdrawERC721',
    outputs: [],
1402 1403
  },
  {
Will Cory's avatar
Will Cory committed
1404
    stateMutability: 'nonpayable',
1405
    type: 'function',
Will Cory's avatar
Will Cory committed
1406 1407 1408 1409 1410 1411
    inputs: [
      { name: '_to', internalType: 'address payable', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'withdrawETH',
    outputs: [],
1412 1413
  },
  {
Will Cory's avatar
Will Cory committed
1414
    stateMutability: 'nonpayable',
1415
    type: 'function',
Will Cory's avatar
Will Cory committed
1416 1417 1418
    inputs: [{ name: '_to', internalType: 'address payable', type: 'address' }],
    name: 'withdrawETH',
    outputs: [],
1419
  },
Will Cory's avatar
Will Cory committed
1420
  { stateMutability: 'payable', type: 'receive' },
1421 1422 1423
] as const

/**
Will Cory's avatar
Will Cory committed
1424
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
1425
 */
Will Cory's avatar
Will Cory committed
1426 1427
export const drippieGoerliAddress = {
  5: '0x44b3A2a040057eBafC601A78647e805fd58B1f50',
1428 1429 1430
} as const

/**
Will Cory's avatar
Will Cory committed
1431
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
1432
 */
Will Cory's avatar
Will Cory committed
1433 1434 1435
export const drippieGoerliConfig = {
  address: drippieGoerliAddress,
  abi: drippieGoerliABI,
1436 1437 1438
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
1439
// Drippie_optimism-goerli
1440 1441 1442
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
1443
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x8D8d533C16D23847EB04EEB0925be8900Dd3af86)
1444
 */
Will Cory's avatar
Will Cory committed
1445
export const drippieOptimismGoerliABI = [
1446 1447 1448
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
Will Cory's avatar
Will Cory committed
1449
    inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
1450 1451 1452 1453 1454 1455
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
1456 1457 1458
        name: 'nameref',
        internalType: 'string',
        type: 'string',
1459 1460
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
1461
      { name: 'name', internalType: 'string', type: 'string', indexed: false },
1462
      {
Will Cory's avatar
Will Cory committed
1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488
        name: 'config',
        internalType: 'struct Drippie.DripConfig',
        type: 'tuple',
        components: [
          { name: 'interval', internalType: 'uint256', type: 'uint256' },
          {
            name: 'dripcheck',
            internalType: 'contract IDripCheck',
            type: 'address',
          },
          { name: 'checkparams', internalType: 'bytes', type: 'bytes' },
          {
            name: 'actions',
            internalType: 'struct Drippie.DripAction[]',
            type: 'tuple[]',
            components: [
              {
                name: 'target',
                internalType: 'address payable',
                type: 'address',
              },
              { name: 'data', internalType: 'bytes', type: 'bytes' },
              { name: 'value', internalType: 'uint256', type: 'uint256' },
            ],
          },
        ],
1489 1490 1491
        indexed: false,
      },
    ],
Will Cory's avatar
Will Cory committed
1492
    name: 'DripCreated',
1493 1494 1495 1496 1497 1498
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
1499 1500 1501
        name: 'nameref',
        internalType: 'string',
        type: 'string',
1502 1503
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
1504
      { name: 'name', internalType: 'string', type: 'string', indexed: false },
1505
      {
Will Cory's avatar
Will Cory committed
1506
        name: 'executor',
1507 1508
        internalType: 'address',
        type: 'address',
Will Cory's avatar
Will Cory committed
1509
        indexed: false,
1510 1511
      },
      {
Will Cory's avatar
Will Cory committed
1512 1513 1514 1515
        name: 'timestamp',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
1516 1517
      },
    ],
Will Cory's avatar
Will Cory committed
1518
    name: 'DripExecuted',
1519 1520 1521 1522 1523
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
Will Cory's avatar
Will Cory committed
1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536
      {
        name: 'nameref',
        internalType: 'string',
        type: 'string',
        indexed: true,
      },
      { name: 'name', internalType: 'string', type: 'string', indexed: false },
      {
        name: 'status',
        internalType: 'enum Drippie.DripStatus',
        type: 'uint8',
        indexed: false,
      },
1537
    ],
Will Cory's avatar
Will Cory committed
1538
    name: 'DripStatusUpdated',
1539 1540 1541 1542 1543
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
Will Cory's avatar
Will Cory committed
1544
      { name: 'user', internalType: 'address', type: 'address', indexed: true },
1545
      {
Will Cory's avatar
Will Cory committed
1546
        name: 'newOwner',
1547 1548
        internalType: 'address',
        type: 'address',
Will Cory's avatar
Will Cory committed
1549
        indexed: true,
1550 1551
      },
    ],
Will Cory's avatar
Will Cory committed
1552
    name: 'OwnerUpdated',
1553 1554 1555 1556 1557 1558 1559
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      {
Will Cory's avatar
Will Cory committed
1560
        name: 'amount',
1561 1562 1563 1564 1565
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
    ],
Will Cory's avatar
Will Cory committed
1566
    name: 'ReceivedETH',
1567 1568 1569 1570 1571 1572
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
1573 1574 1575 1576 1577 1578 1579
        name: 'withdrawer',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'recipient',
1580 1581
        internalType: 'address',
        type: 'address',
Will Cory's avatar
Will Cory committed
1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593
        indexed: true,
      },
      {
        name: 'asset',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
1594 1595 1596
        indexed: false,
      },
    ],
Will Cory's avatar
Will Cory committed
1597
    name: 'WithdrewERC20',
1598 1599 1600 1601 1602 1603
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
1604 1605 1606
        name: 'withdrawer',
        internalType: 'address',
        type: 'address',
1607 1608
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621
      {
        name: 'recipient',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'asset',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'id', internalType: 'uint256', type: 'uint256', indexed: false },
1622
    ],
Will Cory's avatar
Will Cory committed
1623
    name: 'WithdrewERC721',
1624 1625 1626 1627 1628 1629
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
1630 1631 1632
        name: 'withdrawer',
        internalType: 'address',
        type: 'address',
1633 1634
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646
      {
        name: 'recipient',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
1647
    ],
Will Cory's avatar
Will Cory committed
1648
    name: 'WithdrewETH',
1649 1650
  },
  {
Will Cory's avatar
Will Cory committed
1651
    stateMutability: 'payable',
1652
    type: 'function',
Will Cory's avatar
Will Cory committed
1653 1654 1655 1656 1657
    inputs: [
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_data', internalType: 'bytes', type: 'bytes' },
      { name: '_gas', internalType: 'uint256', type: 'uint256' },
      { name: '_value', internalType: 'uint256', type: 'uint256' },
1658
    ],
Will Cory's avatar
Will Cory committed
1659
    name: 'CALL',
1660
    outputs: [
Will Cory's avatar
Will Cory committed
1661 1662
      { name: '', internalType: 'bool', type: 'bool' },
      { name: '', internalType: 'bytes', type: 'bytes' },
1663 1664 1665 1666 1667 1668
    ],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
1669
      { name: '_target', internalType: 'address', type: 'address' },
1670
      { name: '_data', internalType: 'bytes', type: 'bytes' },
Will Cory's avatar
Will Cory committed
1671 1672 1673 1674 1675 1676
      { name: '_gas', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'DELEGATECALL',
    outputs: [
      { name: '', internalType: 'bool', type: 'bool' },
      { name: '', internalType: 'bytes', type: 'bytes' },
1677 1678 1679 1680 1681 1682
    ],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
1683
      { name: '_name', internalType: 'string', type: 'string' },
1684
      {
Will Cory's avatar
Will Cory committed
1685 1686
        name: '_config',
        internalType: 'struct Drippie.DripConfig',
1687 1688
        type: 'tuple',
        components: [
Will Cory's avatar
Will Cory committed
1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709
          { name: 'interval', internalType: 'uint256', type: 'uint256' },
          {
            name: 'dripcheck',
            internalType: 'contract IDripCheck',
            type: 'address',
          },
          { name: 'checkparams', internalType: 'bytes', type: 'bytes' },
          {
            name: 'actions',
            internalType: 'struct Drippie.DripAction[]',
            type: 'tuple[]',
            components: [
              {
                name: 'target',
                internalType: 'address payable',
                type: 'address',
              },
              { name: 'data', internalType: 'bytes', type: 'bytes' },
              { name: 'value', internalType: 'uint256', type: 'uint256' },
            ],
          },
1710 1711 1712
        ],
      },
    ],
Will Cory's avatar
Will Cory committed
1713
    name: 'create',
1714 1715 1716 1717 1718
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
1719 1720
    inputs: [{ name: '_name', internalType: 'string', type: 'string' }],
    name: 'drip',
1721 1722 1723 1724 1725
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763
    inputs: [{ name: '', internalType: 'string', type: 'string' }],
    name: 'drips',
    outputs: [
      {
        name: 'status',
        internalType: 'enum Drippie.DripStatus',
        type: 'uint8',
      },
      {
        name: 'config',
        internalType: 'struct Drippie.DripConfig',
        type: 'tuple',
        components: [
          { name: 'interval', internalType: 'uint256', type: 'uint256' },
          {
            name: 'dripcheck',
            internalType: 'contract IDripCheck',
            type: 'address',
          },
          { name: 'checkparams', internalType: 'bytes', type: 'bytes' },
          {
            name: 'actions',
            internalType: 'struct Drippie.DripAction[]',
            type: 'tuple[]',
            components: [
              {
                name: 'target',
                internalType: 'address payable',
                type: 'address',
              },
              { name: 'data', internalType: 'bytes', type: 'bytes' },
              { name: 'value', internalType: 'uint256', type: 'uint256' },
            ],
          },
        ],
      },
      { name: 'last', internalType: 'uint256', type: 'uint256' },
      { name: 'count', internalType: 'uint256', type: 'uint256' },
1764
    ],
Will Cory's avatar
Will Cory committed
1765 1766 1767 1768 1769 1770
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '_name', internalType: 'string', type: 'string' }],
    name: 'executable',
1771 1772 1773 1774 1775 1776
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
1777
    name: 'owner',
1778 1779 1780
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
Will Cory's avatar
Will Cory committed
1781
    stateMutability: 'nonpayable',
1782
    type: 'function',
Will Cory's avatar
Will Cory committed
1783 1784 1785
    inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
    name: 'setOwner',
    outputs: [],
1786 1787
  },
  {
Will Cory's avatar
Will Cory committed
1788
    stateMutability: 'nonpayable',
1789
    type: 'function',
Will Cory's avatar
Will Cory committed
1790 1791 1792 1793 1794 1795 1796
    inputs: [
      { name: '_name', internalType: 'string', type: 'string' },
      {
        name: '_status',
        internalType: 'enum Drippie.DripStatus',
        type: 'uint8',
      },
1797
    ],
Will Cory's avatar
Will Cory committed
1798 1799
    name: 'status',
    outputs: [],
1800 1801 1802 1803
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
1804 1805 1806 1807 1808 1809
    inputs: [
      { name: '_asset', internalType: 'contract ERC20', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'withdrawERC20',
1810 1811 1812 1813 1814 1815
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
1816 1817
      { name: '_asset', internalType: 'contract ERC20', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
1818
    ],
Will Cory's avatar
Will Cory committed
1819
    name: 'withdrawERC20',
1820 1821 1822
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
1823
    stateMutability: 'nonpayable',
1824
    type: 'function',
Will Cory's avatar
Will Cory committed
1825 1826 1827 1828
    inputs: [
      { name: '_asset', internalType: 'contract ERC721', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_id', internalType: 'uint256', type: 'uint256' },
1829
    ],
Will Cory's avatar
Will Cory committed
1830 1831
    name: 'withdrawERC721',
    outputs: [],
1832 1833 1834 1835
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
1836 1837 1838 1839 1840
    inputs: [
      { name: '_to', internalType: 'address payable', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'withdrawETH',
1841 1842 1843
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
1844
    stateMutability: 'nonpayable',
1845
    type: 'function',
Will Cory's avatar
Will Cory committed
1846 1847 1848
    inputs: [{ name: '_to', internalType: 'address payable', type: 'address' }],
    name: 'withdrawETH',
    outputs: [],
1849 1850 1851 1852 1853
  },
  { stateMutability: 'payable', type: 'receive' },
] as const

/**
Will Cory's avatar
Will Cory committed
1854
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x8D8d533C16D23847EB04EEB0925be8900Dd3af86)
1855
 */
Will Cory's avatar
Will Cory committed
1856 1857
export const drippieOptimismGoerliAddress = {
  420: '0x8D8d533C16D23847EB04EEB0925be8900Dd3af86',
1858 1859 1860
} as const

/**
Will Cory's avatar
Will Cory committed
1861
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x8D8d533C16D23847EB04EEB0925be8900Dd3af86)
1862
 */
Will Cory's avatar
Will Cory committed
1863 1864 1865
export const drippieOptimismGoerliConfig = {
  address: drippieOptimismGoerliAddress,
  abi: drippieOptimismGoerliABI,
1866 1867 1868
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
1869
// L1CrossDomainMessenger
1870 1871 1872
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
1873 1874
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5086d1eEF304eb5284A0f6720f79403b4e9bE294)
1875
 */
Will Cory's avatar
Will Cory committed
1876
export const l1CrossDomainMessengerABI = [
1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
      {
        name: '_portal',
        internalType: 'contract OptimismPortal',
        type: 'address',
      },
    ],
  },
  {
Will Cory's avatar
Will Cory committed
1889 1890 1891 1892 1893 1894 1895 1896 1897
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'msgHash',
        internalType: 'bytes32',
        type: 'bytes32',
        indexed: true,
      },
1898
    ],
Will Cory's avatar
Will Cory committed
1899
    name: 'FailedRelayedMessage',
1900 1901
  },
  {
Will Cory's avatar
Will Cory committed
1902 1903 1904 1905 1906 1907
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'version', internalType: 'uint8', type: 'uint8', indexed: false },
    ],
    name: 'Initialized',
1908 1909
  },
  {
Will Cory's avatar
Will Cory committed
1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'msgHash',
        internalType: 'bytes32',
        type: 'bytes32',
        indexed: true,
      },
    ],
    name: 'RelayedMessage',
1921 1922 1923 1924 1925 1926
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
1927
        name: 'target',
1928 1929 1930 1931 1932
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
1933
        name: 'sender',
1934 1935
        internalType: 'address',
        type: 'address',
Will Cory's avatar
Will Cory committed
1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949
        indexed: false,
      },
      { name: 'message', internalType: 'bytes', type: 'bytes', indexed: false },
      {
        name: 'messageNonce',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'gasLimit',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
1950 1951
      },
    ],
Will Cory's avatar
Will Cory committed
1952
    name: 'SentMessage',
1953 1954
  },
  {
Will Cory's avatar
Will Cory committed
1955 1956
    type: 'event',
    anonymous: false,
1957
    inputs: [
Will Cory's avatar
Will Cory committed
1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969
      {
        name: 'sender',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'value',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
1970
    ],
Will Cory's avatar
Will Cory committed
1971
    name: 'SentMessageExtension1',
1972 1973 1974 1975
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
1976 1977 1978
    inputs: [],
    name: 'MESSAGE_VERSION',
    outputs: [{ name: '', internalType: 'uint16', type: 'uint16' }],
1979 1980 1981 1982
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
1983 1984 1985
    inputs: [],
    name: 'MIN_GAS_CALLDATA_OVERHEAD',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
1986 1987 1988 1989
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
1990 1991 1992
    inputs: [],
    name: 'MIN_GAS_DYNAMIC_OVERHEAD_DENOMINATOR',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
1993 1994 1995 1996 1997
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
1998 1999
    name: 'MIN_GAS_DYNAMIC_OVERHEAD_NUMERATOR',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
2000 2001 2002 2003 2004
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
2005
    name: 'OTHER_MESSENGER',
2006 2007 2008 2009 2010
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
2011 2012
    inputs: [],
    name: 'PORTAL',
2013
    outputs: [
Will Cory's avatar
Will Cory committed
2014
      { name: '', internalType: 'contract OptimismPortal', type: 'address' },
2015 2016 2017
    ],
  },
  {
Will Cory's avatar
Will Cory committed
2018
    stateMutability: 'view',
2019 2020
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
2021 2022
    name: 'RELAY_CALL_OVERHEAD',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
2023 2024
  },
  {
Will Cory's avatar
Will Cory committed
2025
    stateMutability: 'view',
2026
    type: 'function',
Will Cory's avatar
Will Cory committed
2027 2028 2029
    inputs: [],
    name: 'RELAY_CONSTANT_OVERHEAD',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
2030 2031
  },
  {
Will Cory's avatar
Will Cory committed
2032
    stateMutability: 'view',
2033
    type: 'function',
Will Cory's avatar
Will Cory committed
2034 2035 2036
    inputs: [],
    name: 'RELAY_GAS_CHECK_BUFFER',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
2037 2038
  },
  {
Will Cory's avatar
Will Cory committed
2039
    stateMutability: 'view',
2040
    type: 'function',
Will Cory's avatar
Will Cory committed
2041 2042 2043
    inputs: [],
    name: 'RELAY_RESERVED_GAS',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
2044 2045
  },
  {
Will Cory's avatar
Will Cory committed
2046
    stateMutability: 'pure',
2047 2048
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
2049 2050
      { name: '_message', internalType: 'bytes', type: 'bytes' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
2051
    ],
Will Cory's avatar
Will Cory committed
2052 2053
    name: 'baseGas',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
2054 2055
  },
  {
Will Cory's avatar
Will Cory committed
2056
    stateMutability: 'view',
2057
    type: 'function',
Will Cory's avatar
Will Cory committed
2058 2059 2060
    inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
    name: 'failedMessages',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2061 2062 2063 2064
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
2065 2066
    inputs: [],
    name: 'initialize',
2067 2068 2069
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
2070 2071 2072 2073 2074 2075 2076 2077
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'messageNonce',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'payable',
2078 2079
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
2080 2081 2082 2083 2084 2085
      { name: '_nonce', internalType: 'uint256', type: 'uint256' },
      { name: '_sender', internalType: 'address', type: 'address' },
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_value', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint256', type: 'uint256' },
      { name: '_message', internalType: 'bytes', type: 'bytes' },
2086
    ],
Will Cory's avatar
Will Cory committed
2087
    name: 'relayMessage',
2088 2089 2090 2091 2092 2093
    outputs: [],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
2094 2095 2096
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_message', internalType: 'bytes', type: 'bytes' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
2097
    ],
Will Cory's avatar
Will Cory committed
2098
    name: 'sendMessage',
2099 2100
    outputs: [],
  },
Will Cory's avatar
Will Cory committed
2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
    name: 'successfulMessages',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'xDomainMessageSender',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
2122 2123 2124
] as const

/**
Will Cory's avatar
Will Cory committed
2125 2126
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5086d1eEF304eb5284A0f6720f79403b4e9bE294)
2127
 */
Will Cory's avatar
Will Cory committed
2128 2129 2130
export const l1CrossDomainMessengerAddress = {
  1: '0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1',
  5: '0x5086d1eEF304eb5284A0f6720f79403b4e9bE294',
2131 2132 2133
} as const

/**
Will Cory's avatar
Will Cory committed
2134 2135
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5086d1eEF304eb5284A0f6720f79403b4e9bE294)
2136
 */
Will Cory's avatar
Will Cory committed
2137 2138 2139
export const l1CrossDomainMessengerConfig = {
  address: l1CrossDomainMessengerAddress,
  abi: l1CrossDomainMessengerABI,
2140 2141 2142
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
2143
// L1ERC721Bridge
2144 2145 2146
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
2147 2148
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5a7749f83b81B301cAb5f48EB8516B986DAef23D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x8DD330DdE8D9898d43b4dc840Da27A07dF91b3c9)
2149
 */
Will Cory's avatar
Will Cory committed
2150
export const l1Erc721BridgeABI = [
2151 2152 2153 2154
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
Will Cory's avatar
Will Cory committed
2155 2156
      { name: '_messenger', internalType: 'address', type: 'address' },
      { name: '_otherBridge', internalType: 'address', type: 'address' },
2157 2158 2159 2160 2161 2162 2163
    ],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
2164 2165 2166
        name: 'localToken',
        internalType: 'address',
        type: 'address',
2167 2168 2169
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
2170 2171 2172
        name: 'remoteToken',
        internalType: 'address',
        type: 'address',
2173 2174
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'tokenId',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
2189
    ],
Will Cory's avatar
Will Cory committed
2190
    name: 'ERC721BridgeFinalized',
2191 2192 2193 2194 2195 2196
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
2197
        name: 'localToken',
2198 2199 2200 2201 2202
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
2203
        name: 'remoteToken',
2204 2205 2206 2207
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'tokenId',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
2222
    ],
Will Cory's avatar
Will Cory committed
2223
    name: 'ERC721BridgeInitiated',
2224 2225
  },
  {
Will Cory's avatar
Will Cory committed
2226
    stateMutability: 'nonpayable',
2227
    type: 'function',
Will Cory's avatar
Will Cory committed
2228 2229 2230 2231 2232 2233 2234 2235 2236
    inputs: [
      { name: '_localToken', internalType: 'address', type: 'address' },
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_tokenId', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'bridgeERC721',
    outputs: [],
2237 2238
  },
  {
Will Cory's avatar
Will Cory committed
2239
    stateMutability: 'nonpayable',
2240
    type: 'function',
Will Cory's avatar
Will Cory committed
2241 2242 2243 2244 2245 2246 2247 2248 2249 2250
    inputs: [
      { name: '_localToken', internalType: 'address', type: 'address' },
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_tokenId', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'bridgeERC721To',
    outputs: [],
2251 2252 2253 2254
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
2255 2256 2257 2258 2259 2260 2261
    inputs: [
      { name: '', internalType: 'address', type: 'address' },
      { name: '', internalType: 'address', type: 'address' },
      { name: '', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'deposits',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
2262 2263 2264 2265 2266
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
2267 2268 2269 2270 2271 2272
      { name: '_localToken', internalType: 'address', type: 'address' },
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_from', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_tokenId', internalType: 'uint256', type: 'uint256' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
2273
    ],
Will Cory's avatar
Will Cory committed
2274
    name: 'finalizeBridgeERC721',
2275 2276 2277 2278 2279 2280
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
2281 2282 2283 2284 2285 2286 2287 2288
    name: 'messenger',
    outputs: [
      {
        name: '',
        internalType: 'contract CrossDomainMessenger',
        type: 'address',
      },
    ],
2289 2290 2291 2292 2293
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
2294
    name: 'otherBridge',
2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
] as const

/**
Will Cory's avatar
Will Cory committed
2307 2308
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5a7749f83b81B301cAb5f48EB8516B986DAef23D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x8DD330DdE8D9898d43b4dc840Da27A07dF91b3c9)
2309
 */
Will Cory's avatar
Will Cory committed
2310 2311 2312
export const l1Erc721BridgeAddress = {
  1: '0x5a7749f83b81B301cAb5f48EB8516B986DAef23D',
  5: '0x8DD330DdE8D9898d43b4dc840Da27A07dF91b3c9',
2313 2314 2315
} as const

/**
Will Cory's avatar
Will Cory committed
2316 2317
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5a7749f83b81B301cAb5f48EB8516B986DAef23D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x8DD330DdE8D9898d43b4dc840Da27A07dF91b3c9)
2318
 */
Will Cory's avatar
Will Cory committed
2319 2320 2321
export const l1Erc721BridgeConfig = {
  address: l1Erc721BridgeAddress,
  abi: l1Erc721BridgeABI,
2322 2323 2324
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
2325
// L1StandardBridge
2326 2327 2328
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
2329 2330
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x636Af16bf2f682dD3109e60102b8E1A089FedAa8)
2331
 */
Will Cory's avatar
Will Cory committed
2332
export const l1StandardBridgeABI = [
2333
  {
Will Cory's avatar
Will Cory committed
2334 2335
    stateMutability: 'nonpayable',
    type: 'constructor',
2336
    inputs: [
Will Cory's avatar
Will Cory committed
2337
      { name: '_messenger', internalType: 'address payable', type: 'address' },
2338 2339 2340 2341 2342 2343 2344
    ],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
2345
        name: 'localToken',
2346 2347 2348 2349 2350
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
2351
        name: 'remoteToken',
2352 2353 2354 2355
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
2370
    ],
Will Cory's avatar
Will Cory committed
2371
    name: 'ERC20BridgeFinalized',
2372 2373
  },
  {
Will Cory's avatar
Will Cory committed
2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'localToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'remoteToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'ERC20BridgeInitiated',
2405 2406
  },
  {
Will Cory's avatar
Will Cory committed
2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'l1Token',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'l2Token',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'ERC20DepositInitiated',
2438 2439
  },
  {
Will Cory's avatar
Will Cory committed
2440 2441 2442
    type: 'event',
    anonymous: false,
    inputs: [
2443
      {
Will Cory's avatar
Will Cory committed
2444 2445 2446 2447
        name: 'l1Token',
        internalType: 'address',
        type: 'address',
        indexed: true,
2448 2449
      },
      {
Will Cory's avatar
Will Cory committed
2450 2451 2452 2453
        name: 'l2Token',
        internalType: 'address',
        type: 'address',
        indexed: true,
2454
      },
Will Cory's avatar
Will Cory committed
2455 2456
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
2457
      {
Will Cory's avatar
Will Cory committed
2458 2459 2460 2461
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
2462 2463
      },
      {
Will Cory's avatar
Will Cory committed
2464 2465 2466 2467
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
2468 2469
      },
    ],
Will Cory's avatar
Will Cory committed
2470
    name: 'ERC20WithdrawalFinalized',
2471 2472
  },
  {
Will Cory's avatar
Will Cory committed
2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'ETHBridgeFinalized',
2492 2493
  },
  {
Will Cory's avatar
Will Cory committed
2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'ETHBridgeInitiated',
2513 2514
  },
  {
Will Cory's avatar
Will Cory committed
2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'ETHDepositInitiated',
2534 2535
  },
  {
Will Cory's avatar
Will Cory committed
2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'ETHWithdrawalFinalized',
2555 2556 2557 2558
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
2559 2560 2561 2562 2563 2564 2565 2566 2567
    inputs: [
      { name: '_localToken', internalType: 'address', type: 'address' },
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'bridgeERC20',
    outputs: [],
2568 2569 2570 2571 2572
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
2573 2574 2575 2576 2577 2578
      { name: '_localToken', internalType: 'address', type: 'address' },
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
2579
    ],
Will Cory's avatar
Will Cory committed
2580
    name: 'bridgeERC20To',
2581 2582 2583
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
2584
    stateMutability: 'payable',
2585
    type: 'function',
Will Cory's avatar
Will Cory committed
2586 2587 2588
    inputs: [
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
2589
    ],
Will Cory's avatar
Will Cory committed
2590 2591
    name: 'bridgeETH',
    outputs: [],
2592 2593
  },
  {
Will Cory's avatar
Will Cory committed
2594
    stateMutability: 'payable',
2595
    type: 'function',
Will Cory's avatar
Will Cory committed
2596 2597 2598 2599 2600 2601 2602
    inputs: [
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'bridgeETHTo',
    outputs: [],
2603 2604 2605 2606
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
2607 2608 2609 2610 2611 2612 2613 2614
    inputs: [
      { name: '_l1Token', internalType: 'address', type: 'address' },
      { name: '_l2Token', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'depositERC20',
2615 2616 2617 2618 2619
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
2620 2621 2622 2623 2624 2625 2626 2627 2628
    inputs: [
      { name: '_l1Token', internalType: 'address', type: 'address' },
      { name: '_l2Token', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'depositERC20To',
2629 2630 2631
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
2632
    stateMutability: 'payable',
2633
    type: 'function',
Will Cory's avatar
Will Cory committed
2634 2635 2636 2637 2638
    inputs: [
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'depositETH',
2639 2640 2641
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
2642
    stateMutability: 'payable',
2643
    type: 'function',
Will Cory's avatar
Will Cory committed
2644 2645 2646 2647 2648 2649
    inputs: [
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'depositETHTo',
2650 2651 2652
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
2653
    stateMutability: 'view',
2654
    type: 'function',
Will Cory's avatar
Will Cory committed
2655 2656 2657 2658 2659 2660
    inputs: [
      { name: '', internalType: 'address', type: 'address' },
      { name: '', internalType: 'address', type: 'address' },
    ],
    name: 'deposits',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2661 2662 2663 2664
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
2665 2666 2667 2668 2669 2670 2671 2672 2673
    inputs: [
      { name: '_localToken', internalType: 'address', type: 'address' },
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_from', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'finalizeBridgeERC20',
2674 2675 2676
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
2677
    stateMutability: 'payable',
2678
    type: 'function',
Will Cory's avatar
Will Cory committed
2679 2680 2681 2682 2683 2684 2685
    inputs: [
      { name: '_from', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'finalizeBridgeETH',
2686 2687 2688 2689 2690
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
2691 2692 2693 2694 2695 2696 2697 2698 2699
    inputs: [
      { name: '_l1Token', internalType: 'address', type: 'address' },
      { name: '_l2Token', internalType: 'address', type: 'address' },
      { name: '_from', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'finalizeERC20Withdrawal',
2700 2701 2702
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
2703
    stateMutability: 'payable',
2704
    type: 'function',
Will Cory's avatar
Will Cory committed
2705 2706 2707 2708 2709 2710 2711
    inputs: [
      { name: '_from', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'finalizeETHWithdrawal',
2712 2713 2714
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
2715
    stateMutability: 'view',
2716
    type: 'function',
Will Cory's avatar
Will Cory committed
2717 2718 2719 2720 2721 2722 2723 2724 2725 2726
    inputs: [],
    name: 'l2TokenBridge',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'messenger',
    outputs: [
2727
      {
Will Cory's avatar
Will Cory committed
2728 2729 2730
        name: '',
        internalType: 'contract CrossDomainMessenger',
        type: 'address',
2731 2732 2733
      },
    ],
  },
Will Cory's avatar
Will Cory committed
2734 2735 2736 2737 2738 2739 2740 2741
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  { stateMutability: 'payable', type: 'receive' },
2742 2743 2744
] as const

/**
Will Cory's avatar
Will Cory committed
2745 2746
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x636Af16bf2f682dD3109e60102b8E1A089FedAa8)
2747
 */
Will Cory's avatar
Will Cory committed
2748 2749 2750
export const l1StandardBridgeAddress = {
  1: '0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1',
  5: '0x636Af16bf2f682dD3109e60102b8E1A089FedAa8',
2751 2752 2753
} as const

/**
Will Cory's avatar
Will Cory committed
2754 2755
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x636Af16bf2f682dD3109e60102b8E1A089FedAa8)
2756
 */
Will Cory's avatar
Will Cory committed
2757 2758 2759
export const l1StandardBridgeConfig = {
  address: l1StandardBridgeAddress,
  abi: l1StandardBridgeABI,
2760 2761 2762
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
2763
// L2OutputOracle
2764 2765 2766
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
2767 2768
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdfe97868233d1aa22e815a266982f2cf17685a27)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0)
2769
 */
Will Cory's avatar
Will Cory committed
2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791
export const l2OutputOracleABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
      { name: '_submissionInterval', internalType: 'uint256', type: 'uint256' },
      { name: '_l2BlockTime', internalType: 'uint256', type: 'uint256' },
      {
        name: '_startingBlockNumber',
        internalType: 'uint256',
        type: 'uint256',
      },
      { name: '_startingTimestamp', internalType: 'uint256', type: 'uint256' },
      { name: '_proposer', internalType: 'address', type: 'address' },
      { name: '_challenger', internalType: 'address', type: 'address' },
      {
        name: '_finalizationPeriodSeconds',
        internalType: 'uint256',
        type: 'uint256',
      },
    ],
  },
2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'version', internalType: 'uint8', type: 'uint8', indexed: false },
    ],
    name: 'Initialized',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
2805 2806 2807
        name: 'outputRoot',
        internalType: 'bytes32',
        type: 'bytes32',
2808 2809 2810
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
2811 2812 2813 2814 2815 2816 2817 2818 2819
        name: 'l2OutputIndex',
        internalType: 'uint256',
        type: 'uint256',
        indexed: true,
      },
      {
        name: 'l2BlockNumber',
        internalType: 'uint256',
        type: 'uint256',
2820 2821
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
2822 2823 2824 2825 2826 2827
      {
        name: 'l1Timestamp',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
2828
    ],
Will Cory's avatar
Will Cory committed
2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848
    name: 'OutputProposed',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'prevNextOutputIndex',
        internalType: 'uint256',
        type: 'uint256',
        indexed: true,
      },
      {
        name: 'newNextOutputIndex',
        internalType: 'uint256',
        type: 'uint256',
        indexed: true,
      },
    ],
    name: 'OutputsDeleted',
2849 2850 2851 2852 2853
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
2854 2855
    name: 'CHALLENGER',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
2856 2857 2858 2859 2860
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
2861 2862
    name: 'FINALIZATION_PERIOD_SECONDS',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2863 2864 2865 2866 2867
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910
    name: 'L2_BLOCK_TIME',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'PROPOSER',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'SUBMISSION_INTERVAL',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [
      { name: '_l2BlockNumber', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'computeL2Timestamp',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_l2OutputIndex', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'deleteL2Outputs',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [
      { name: '_l2OutputIndex', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'getL2Output',
    outputs: [
2911
      {
Will Cory's avatar
Will Cory committed
2912 2913
        name: '',
        internalType: 'struct Types.OutputProposal',
2914 2915
        type: 'tuple',
        components: [
Will Cory's avatar
Will Cory committed
2916 2917 2918
          { name: 'outputRoot', internalType: 'bytes32', type: 'bytes32' },
          { name: 'timestamp', internalType: 'uint128', type: 'uint128' },
          { name: 'l2BlockNumber', internalType: 'uint128', type: 'uint128' },
2919 2920
        ],
      },
Will Cory's avatar
Will Cory committed
2921 2922 2923 2924 2925 2926 2927 2928 2929 2930
    ],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [
      { name: '_l2BlockNumber', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'getL2OutputAfter',
    outputs: [
2931
      {
Will Cory's avatar
Will Cory committed
2932 2933
        name: '',
        internalType: 'struct Types.OutputProposal',
2934 2935
        type: 'tuple',
        components: [
Will Cory's avatar
Will Cory committed
2936 2937 2938
          { name: 'outputRoot', internalType: 'bytes32', type: 'bytes32' },
          { name: 'timestamp', internalType: 'uint128', type: 'uint128' },
          { name: 'l2BlockNumber', internalType: 'uint128', type: 'uint128' },
2939 2940 2941 2942
        ],
      },
    ],
  },
Will Cory's avatar
Will Cory committed
2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [
      { name: '_l2BlockNumber', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'getL2OutputIndexAfter',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      {
        name: '_startingBlockNumber',
        internalType: 'uint256',
        type: 'uint256',
      },
      { name: '_startingTimestamp', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'initialize',
    outputs: [],
  },
2966 2967 2968 2969
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
2970 2971
    name: 'latestBlockNumber',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2972 2973 2974 2975 2976
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
2977 2978
    name: 'latestOutputIndex',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2979 2980
  },
  {
Will Cory's avatar
Will Cory committed
2981
    stateMutability: 'view',
2982 2983
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
2984 2985
    name: 'nextBlockNumber',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
2986 2987
  },
  {
Will Cory's avatar
Will Cory committed
2988
    stateMutability: 'view',
2989 2990
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003
    name: 'nextOutputIndex',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
      { name: '_outputRoot', internalType: 'bytes32', type: 'bytes32' },
      { name: '_l2BlockNumber', internalType: 'uint256', type: 'uint256' },
      { name: '_l1BlockHash', internalType: 'bytes32', type: 'bytes32' },
      { name: '_l1BlockNumber', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'proposeL2Output',
3004 3005 3006 3007 3008 3009
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3010 3011
    name: 'startingBlockNumber',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3012 3013
  },
  {
Will Cory's avatar
Will Cory committed
3014 3015 3016 3017 3018 3019 3020 3021
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'startingTimestamp',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
3022
    type: 'function',
Will Cory's avatar
Will Cory committed
3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
] as const

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdfe97868233d1aa22e815a266982f2cf17685a27)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0)
 */
export const l2OutputOracleAddress = {
  1: '0xdfe97868233d1aa22e815a266982f2cf17685a27',
  5: '0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0',
} as const

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdfe97868233d1aa22e815a266982f2cf17685a27)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0)
 */
export const l2OutputOracleConfig = {
  address: l2OutputOracleAddress,
  abi: l2OutputOracleABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// OptimismMintableERC20Factory
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000012)
 */
export const optimismMintableErc20FactoryABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [{ name: '_bridge', internalType: 'address', type: 'address' }],
  },
  {
    type: 'event',
    anonymous: false,
3065 3066
    inputs: [
      {
Will Cory's avatar
Will Cory committed
3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082
        name: 'localToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'remoteToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'deployer',
        internalType: 'address',
        type: 'address',
        indexed: false,
3083 3084
      },
    ],
Will Cory's avatar
Will Cory committed
3085
    name: 'OptimismMintableERC20Created',
3086 3087
  },
  {
Will Cory's avatar
Will Cory committed
3088 3089 3090
    type: 'event',
    anonymous: false,
    inputs: [
3091
      {
Will Cory's avatar
Will Cory committed
3092 3093 3094 3095
        name: 'remoteToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
3096 3097
      },
      {
Will Cory's avatar
Will Cory committed
3098 3099 3100 3101
        name: 'localToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
3102 3103
      },
    ],
Will Cory's avatar
Will Cory committed
3104
    name: 'StandardL2TokenCreated',
3105 3106 3107 3108 3109
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3110
    name: 'BRIDGE',
3111 3112 3113
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
Will Cory's avatar
Will Cory committed
3114
    stateMutability: 'nonpayable',
3115
    type: 'function',
Will Cory's avatar
Will Cory committed
3116 3117 3118 3119 3120 3121
    inputs: [
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_name', internalType: 'string', type: 'string' },
      { name: '_symbol', internalType: 'string', type: 'string' },
    ],
    name: 'createOptimismMintableERC20',
3122 3123 3124 3125 3126
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
3127 3128 3129 3130 3131 3132 3133
    inputs: [
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_name', internalType: 'string', type: 'string' },
      { name: '_symbol', internalType: 'string', type: 'string' },
    ],
    name: 'createStandardL2Token',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
3134 3135
  },
  {
Will Cory's avatar
Will Cory committed
3136
    stateMutability: 'view',
3137 3138
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3139 3140
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
3141
  },
Will Cory's avatar
Will Cory committed
3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173
] as const

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000012)
 */
export const optimismMintableErc20FactoryAddress = {
  1: '0x4200000000000000000000000000000000000012',
  5: '0x4200000000000000000000000000000000000012',
  420: '0x4200000000000000000000000000000000000012',
} as const

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000012)
 */
export const optimismMintableErc20FactoryConfig = {
  address: optimismMintableErc20FactoryAddress,
  abi: optimismMintableErc20FactoryABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// OptimismPortal
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xbEb5Fc579115071764c7423A4f12eDde41f106Ed)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383)
 */
export const optimismPortalABI = [
3174 3175
  {
    stateMutability: 'nonpayable',
Will Cory's avatar
Will Cory committed
3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190
    type: 'constructor',
    inputs: [
      {
        name: '_l2Oracle',
        internalType: 'contract L2OutputOracle',
        type: 'address',
      },
      { name: '_guardian', internalType: 'address', type: 'address' },
      { name: '_paused', internalType: 'bool', type: 'bool' },
      {
        name: '_config',
        internalType: 'contract SystemConfig',
        type: 'address',
      },
    ],
3191 3192
  },
  {
Will Cory's avatar
Will Cory committed
3193 3194 3195 3196 3197 3198
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'version', internalType: 'uint8', type: 'uint8', indexed: false },
    ],
    name: 'Initialized',
3199 3200
  },
  {
Will Cory's avatar
Will Cory committed
3201 3202
    type: 'event',
    anonymous: false,
3203 3204
    inputs: [
      {
Will Cory's avatar
Will Cory committed
3205 3206 3207 3208
        name: 'account',
        internalType: 'address',
        type: 'address',
        indexed: false,
3209 3210
      },
    ],
Will Cory's avatar
Will Cory committed
3211
    name: 'Paused',
3212 3213
  },
  {
Will Cory's avatar
Will Cory committed
3214 3215
    type: 'event',
    anonymous: false,
3216
    inputs: [
Will Cory's avatar
Will Cory committed
3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'version',
        internalType: 'uint256',
        type: 'uint256',
        indexed: true,
      },
      {
        name: 'opaqueData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
3231
    ],
Will Cory's avatar
Will Cory committed
3232
    name: 'TransactionDeposited',
3233 3234 3235 3236 3237 3238
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
3239
        name: 'account',
3240 3241
        internalType: 'address',
        type: 'address',
Will Cory's avatar
Will Cory committed
3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254
        indexed: false,
      },
    ],
    name: 'Unpaused',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'withdrawalHash',
        internalType: 'bytes32',
        type: 'bytes32',
3255 3256
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
3257 3258 3259 3260 3261 3262 3263 3264
      { name: 'success', internalType: 'bool', type: 'bool', indexed: false },
    ],
    name: 'WithdrawalFinalized',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
3265
      {
Will Cory's avatar
Will Cory committed
3266 3267 3268
        name: 'withdrawalHash',
        internalType: 'bytes32',
        type: 'bytes32',
3269 3270
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
3271 3272
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: true },
3273
    ],
Will Cory's avatar
Will Cory committed
3274
    name: 'WithdrawalProven',
3275 3276 3277 3278 3279
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3280 3281
    name: 'GUARDIAN',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
3282 3283 3284 3285 3286
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3287 3288 3289 3290
    name: 'L2_ORACLE',
    outputs: [
      { name: '', internalType: 'contract L2OutputOracle', type: 'address' },
    ],
3291 3292 3293 3294 3295
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3296 3297 3298 3299
    name: 'SYSTEM_CONFIG',
    outputs: [
      { name: '', internalType: 'contract SystemConfig', type: 'address' },
    ],
3300 3301
  },
  {
Will Cory's avatar
Will Cory committed
3302
    stateMutability: 'payable',
3303
    type: 'function',
Will Cory's avatar
Will Cory committed
3304 3305 3306 3307 3308 3309
    inputs: [
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_value', internalType: 'uint256', type: 'uint256' },
      { name: '_gasLimit', internalType: 'uint64', type: 'uint64' },
      { name: '_isCreation', internalType: 'bool', type: 'bool' },
      { name: '_data', internalType: 'bytes', type: 'bytes' },
3310
    ],
Will Cory's avatar
Will Cory committed
3311 3312 3313 3314 3315 3316 3317 3318 3319
    name: 'depositTransaction',
    outputs: [],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [],
    name: 'donateETH',
    outputs: [],
3320 3321 3322 3323 3324
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337
      {
        name: '_tx',
        internalType: 'struct Types.WithdrawalTransaction',
        type: 'tuple',
        components: [
          { name: 'nonce', internalType: 'uint256', type: 'uint256' },
          { name: 'sender', internalType: 'address', type: 'address' },
          { name: 'target', internalType: 'address', type: 'address' },
          { name: 'value', internalType: 'uint256', type: 'uint256' },
          { name: 'gasLimit', internalType: 'uint256', type: 'uint256' },
          { name: 'data', internalType: 'bytes', type: 'bytes' },
        ],
      },
3338
    ],
Will Cory's avatar
Will Cory committed
3339
    name: 'finalizeWithdrawalTransaction',
3340 3341 3342 3343 3344
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363
    inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
    name: 'finalizedWithdrawals',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: '_paused', internalType: 'bool', type: 'bool' }],
    name: 'initialize',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [
      { name: '_l2OutputIndex', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'isOutputFinalized',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3364 3365 3366 3367 3368
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3369
    name: 'l2Sender',
3370 3371 3372
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
Will Cory's avatar
Will Cory committed
3373 3374 3375 3376 3377 3378 3379 3380
    stateMutability: 'pure',
    type: 'function',
    inputs: [{ name: '_byteCount', internalType: 'uint64', type: 'uint64' }],
    name: 'minimumGasLimit',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
    stateMutability: 'view',
3381 3382
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3383 3384 3385 3386 3387 3388
    name: 'params',
    outputs: [
      { name: 'prevBaseFee', internalType: 'uint128', type: 'uint128' },
      { name: 'prevBoughtGas', internalType: 'uint64', type: 'uint64' },
      { name: 'prevBlockNum', internalType: 'uint64', type: 'uint64' },
    ],
3389 3390 3391 3392
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
3393 3394
    inputs: [],
    name: 'pause',
3395 3396
    outputs: [],
  },
Will Cory's avatar
Will Cory committed
3397 3398 3399 3400 3401 3402 3403
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'paused',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
3404 3405 3406 3407 3408
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      {
Will Cory's avatar
Will Cory committed
3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419
        name: '_tx',
        internalType: 'struct Types.WithdrawalTransaction',
        type: 'tuple',
        components: [
          { name: 'nonce', internalType: 'uint256', type: 'uint256' },
          { name: 'sender', internalType: 'address', type: 'address' },
          { name: 'target', internalType: 'address', type: 'address' },
          { name: 'value', internalType: 'uint256', type: 'uint256' },
          { name: 'gasLimit', internalType: 'uint256', type: 'uint256' },
          { name: 'data', internalType: 'bytes', type: 'bytes' },
        ],
3420
      },
Will Cory's avatar
Will Cory committed
3421
      { name: '_l2OutputIndex', internalType: 'uint256', type: 'uint256' },
3422
      {
Will Cory's avatar
Will Cory committed
3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435
        name: '_outputRootProof',
        internalType: 'struct Types.OutputRootProof',
        type: 'tuple',
        components: [
          { name: 'version', internalType: 'bytes32', type: 'bytes32' },
          { name: 'stateRoot', internalType: 'bytes32', type: 'bytes32' },
          {
            name: 'messagePasserStorageRoot',
            internalType: 'bytes32',
            type: 'bytes32',
          },
          { name: 'latestBlockhash', internalType: 'bytes32', type: 'bytes32' },
        ],
3436
      },
Will Cory's avatar
Will Cory committed
3437
      { name: '_withdrawalProof', internalType: 'bytes[]', type: 'bytes[]' },
3438
    ],
Will Cory's avatar
Will Cory committed
3439 3440
    name: 'proveWithdrawalTransaction',
    outputs: [],
3441 3442 3443 3444
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
3445 3446 3447 3448 3449 3450
    inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
    name: 'provenWithdrawals',
    outputs: [
      { name: 'outputRoot', internalType: 'bytes32', type: 'bytes32' },
      { name: 'timestamp', internalType: 'uint128', type: 'uint128' },
      { name: 'l2OutputIndex', internalType: 'uint128', type: 'uint128' },
3451 3452 3453
    ],
  },
  {
Will Cory's avatar
Will Cory committed
3454
    stateMutability: 'nonpayable',
3455 3456
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3457 3458
    name: 'unpause',
    outputs: [],
3459 3460 3461 3462 3463 3464 3465 3466
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
Will Cory's avatar
Will Cory committed
3467
  { stateMutability: 'payable', type: 'receive' },
3468 3469 3470
] as const

/**
Will Cory's avatar
Will Cory committed
3471 3472
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xbEb5Fc579115071764c7423A4f12eDde41f106Ed)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383)
3473
 */
Will Cory's avatar
Will Cory committed
3474 3475 3476
export const optimismPortalAddress = {
  1: '0xbEb5Fc579115071764c7423A4f12eDde41f106Ed',
  5: '0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383',
3477 3478 3479
} as const

/**
Will Cory's avatar
Will Cory committed
3480 3481
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xbEb5Fc579115071764c7423A4f12eDde41f106Ed)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383)
3482
 */
Will Cory's avatar
Will Cory committed
3483 3484 3485
export const optimismPortalConfig = {
  address: optimismPortalAddress,
  abi: optimismPortalABI,
3486 3487 3488
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
3489
// PortalSender
3490 3491 3492
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
3493 3494
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0A893d9576b9cFD9EF78595963dc973238E78210)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xe7FACd39531ee3C313330E93B4d7a8B8A3c84Aa4)
3495
 */
Will Cory's avatar
Will Cory committed
3496
export const portalSenderABI = [
3497 3498 3499 3500 3501
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
      {
Will Cory's avatar
Will Cory committed
3502 3503
        name: '_portal',
        internalType: 'contract OptimismPortal',
3504 3505 3506 3507 3508 3509 3510 3511
        type: 'address',
      },
    ],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3512 3513 3514
    name: 'PORTAL',
    outputs: [
      { name: '', internalType: 'contract OptimismPortal', type: 'address' },
3515 3516 3517
    ],
  },
  {
Will Cory's avatar
Will Cory committed
3518
    stateMutability: 'nonpayable',
3519 3520
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3521 3522
    name: 'donate',
    outputs: [],
3523 3524 3525 3526
  },
] as const

/**
Will Cory's avatar
Will Cory committed
3527 3528
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0A893d9576b9cFD9EF78595963dc973238E78210)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xe7FACd39531ee3C313330E93B4d7a8B8A3c84Aa4)
3529
 */
Will Cory's avatar
Will Cory committed
3530 3531 3532
export const portalSenderAddress = {
  1: '0x0A893d9576b9cFD9EF78595963dc973238E78210',
  5: '0xe7FACd39531ee3C313330E93B4d7a8B8A3c84Aa4',
3533 3534 3535
} as const

/**
Will Cory's avatar
Will Cory committed
3536 3537
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0A893d9576b9cFD9EF78595963dc973238E78210)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xe7FACd39531ee3C313330E93B4d7a8B8A3c84Aa4)
3538
 */
Will Cory's avatar
Will Cory committed
3539 3540 3541
export const portalSenderConfig = {
  address: portalSenderAddress,
  abi: portalSenderABI,
3542 3543 3544
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
3545
// ProxyAdmin
3546 3547 3548
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
3549 3550
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000018)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000018)
3551
 */
Will Cory's avatar
Will Cory committed
3552
export const proxyAdminABI = [
3553 3554 3555
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
Will Cory's avatar
Will Cory committed
3556
    inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
3557 3558 3559 3560 3561 3562
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
3563 3564 3565 3566
        name: 'previousOwner',
        internalType: 'address',
        type: 'address',
        indexed: true,
3567 3568
      },
      {
Will Cory's avatar
Will Cory committed
3569
        name: 'newOwner',
3570 3571
        internalType: 'address',
        type: 'address',
Will Cory's avatar
Will Cory committed
3572
        indexed: true,
3573 3574
      },
    ],
Will Cory's avatar
Will Cory committed
3575
    name: 'OwnershipTransferred',
3576 3577 3578 3579 3580
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3581 3582 3583 3584
    name: 'addressManager',
    outputs: [
      { name: '', internalType: 'contract AddressManager', type: 'address' },
    ],
3585 3586
  },
  {
Will Cory's avatar
Will Cory committed
3587
    stateMutability: 'nonpayable',
3588
    type: 'function',
Will Cory's avatar
Will Cory committed
3589 3590 3591 3592 3593 3594
    inputs: [
      { name: '_proxy', internalType: 'address payable', type: 'address' },
      { name: '_newAdmin', internalType: 'address', type: 'address' },
    ],
    name: 'changeProxyAdmin',
    outputs: [],
3595 3596 3597 3598
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
3599 3600 3601 3602 3603
    inputs: [
      { name: '_proxy', internalType: 'address payable', type: 'address' },
    ],
    name: 'getProxyAdmin',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
3604 3605 3606 3607
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
3608 3609 3610
    inputs: [{ name: '_proxy', internalType: 'address', type: 'address' }],
    name: 'getProxyImplementation',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
3611 3612 3613 3614
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
3615 3616 3617
    inputs: [{ name: '', internalType: 'address', type: 'address' }],
    name: 'implementationName',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
3618 3619 3620 3621 3622
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3623 3624
    name: 'isUpgrading',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
3625 3626 3627 3628 3629
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3630 3631
    name: 'owner',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
3632 3633 3634 3635
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
3636 3637 3638 3639 3640
    inputs: [{ name: '', internalType: 'address', type: 'address' }],
    name: 'proxyType',
    outputs: [
      { name: '', internalType: 'enum ProxyAdmin.ProxyType', type: 'uint8' },
    ],
3641 3642
  },
  {
Will Cory's avatar
Will Cory committed
3643
    stateMutability: 'nonpayable',
3644 3645
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3646 3647
    name: 'renounceOwnership',
    outputs: [],
3648 3649
  },
  {
Will Cory's avatar
Will Cory committed
3650
    stateMutability: 'nonpayable',
3651
    type: 'function',
Will Cory's avatar
Will Cory committed
3652 3653 3654 3655 3656 3657
    inputs: [
      { name: '_name', internalType: 'string', type: 'string' },
      { name: '_address', internalType: 'address', type: 'address' },
    ],
    name: 'setAddress',
    outputs: [],
3658 3659
  },
  {
Will Cory's avatar
Will Cory committed
3660
    stateMutability: 'nonpayable',
3661
    type: 'function',
Will Cory's avatar
Will Cory committed
3662 3663 3664 3665 3666 3667 3668 3669 3670
    inputs: [
      {
        name: '_address',
        internalType: 'contract AddressManager',
        type: 'address',
      },
    ],
    name: 'setAddressManager',
    outputs: [],
3671 3672
  },
  {
Will Cory's avatar
Will Cory committed
3673
    stateMutability: 'nonpayable',
3674
    type: 'function',
Will Cory's avatar
Will Cory committed
3675 3676 3677 3678 3679 3680
    inputs: [
      { name: '_address', internalType: 'address', type: 'address' },
      { name: '_name', internalType: 'string', type: 'string' },
    ],
    name: 'setImplementationName',
    outputs: [],
3681 3682
  },
  {
Will Cory's avatar
Will Cory committed
3683
    stateMutability: 'nonpayable',
3684
    type: 'function',
Will Cory's avatar
Will Cory committed
3685 3686 3687 3688 3689 3690 3691 3692 3693 3694
    inputs: [
      { name: '_address', internalType: 'address', type: 'address' },
      {
        name: '_type',
        internalType: 'enum ProxyAdmin.ProxyType',
        type: 'uint8',
      },
    ],
    name: 'setProxyType',
    outputs: [],
3695 3696
  },
  {
Will Cory's avatar
Will Cory committed
3697
    stateMutability: 'nonpayable',
3698
    type: 'function',
Will Cory's avatar
Will Cory committed
3699 3700 3701
    inputs: [{ name: '_upgrading', internalType: 'bool', type: 'bool' }],
    name: 'setUpgrading',
    outputs: [],
3702 3703
  },
  {
Will Cory's avatar
Will Cory committed
3704
    stateMutability: 'nonpayable',
3705
    type: 'function',
Will Cory's avatar
Will Cory committed
3706 3707 3708
    inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
    name: 'transferOwnership',
    outputs: [],
3709 3710 3711 3712 3713
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
3714 3715
      { name: '_proxy', internalType: 'address payable', type: 'address' },
      { name: '_implementation', internalType: 'address', type: 'address' },
3716
    ],
Will Cory's avatar
Will Cory committed
3717
    name: 'upgrade',
3718 3719 3720
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
3721
    stateMutability: 'payable',
3722
    type: 'function',
Will Cory's avatar
Will Cory committed
3723 3724 3725 3726 3727 3728 3729
    inputs: [
      { name: '_proxy', internalType: 'address payable', type: 'address' },
      { name: '_implementation', internalType: 'address', type: 'address' },
      { name: '_data', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'upgradeAndCall',
    outputs: [],
3730 3731 3732 3733
  },
] as const

/**
Will Cory's avatar
Will Cory committed
3734 3735
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000018)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000018)
3736
 */
Will Cory's avatar
Will Cory committed
3737 3738 3739
export const proxyAdminAddress = {
  1: '0x4200000000000000000000000000000000000018',
  5: '0x4200000000000000000000000000000000000018',
3740 3741 3742
} as const

/**
Will Cory's avatar
Will Cory committed
3743 3744
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000018)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000018)
3745
 */
Will Cory's avatar
Will Cory committed
3746 3747 3748
export const proxyAdminConfig = {
  address: proxyAdminAddress,
  abi: proxyAdminABI,
3749 3750 3751
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
3752
// SystemConfig
3753 3754 3755
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
3756 3757
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x229047fed2591dbec1eF1118d64F7aF3dB9EB290)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xAe851f927Ee40dE99aaBb7461C00f9622ab91d60)
3758
 */
Will Cory's avatar
Will Cory committed
3759
export const systemConfigABI = [
3760 3761 3762 3763
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
Will Cory's avatar
Will Cory committed
3764 3765 3766 3767 3768 3769
      { name: '_owner', internalType: 'address', type: 'address' },
      { name: '_overhead', internalType: 'uint256', type: 'uint256' },
      { name: '_scalar', internalType: 'uint256', type: 'uint256' },
      { name: '_batcherHash', internalType: 'bytes32', type: 'bytes32' },
      { name: '_gasLimit', internalType: 'uint64', type: 'uint64' },
      { name: '_unsafeBlockSigner', internalType: 'address', type: 'address' },
3770
      {
Will Cory's avatar
Will Cory committed
3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789
        name: '_config',
        internalType: 'struct ResourceMetering.ResourceConfig',
        type: 'tuple',
        components: [
          { name: 'maxResourceLimit', internalType: 'uint32', type: 'uint32' },
          {
            name: 'elasticityMultiplier',
            internalType: 'uint8',
            type: 'uint8',
          },
          {
            name: 'baseFeeMaxChangeDenominator',
            internalType: 'uint8',
            type: 'uint8',
          },
          { name: 'minimumBaseFee', internalType: 'uint32', type: 'uint32' },
          { name: 'systemTxMaxGas', internalType: 'uint32', type: 'uint32' },
          { name: 'maximumBaseFee', internalType: 'uint128', type: 'uint128' },
        ],
3790 3791 3792 3793 3794 3795 3796 3797
      },
    ],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
3798 3799 3800
        name: 'version',
        internalType: 'uint256',
        type: 'uint256',
3801 3802
        indexed: true,
      },
Will Cory's avatar
Will Cory committed
3803 3804 3805 3806 3807 3808 3809
      {
        name: 'updateType',
        internalType: 'enum SystemConfig.UpdateType',
        type: 'uint8',
        indexed: true,
      },
      { name: 'data', internalType: 'bytes', type: 'bytes', indexed: false },
3810
    ],
Will Cory's avatar
Will Cory committed
3811
    name: 'ConfigUpdate',
3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'version', internalType: 'uint8', type: 'uint8', indexed: false },
    ],
    name: 'Initialized',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
3826
        name: 'previousOwner',
3827 3828 3829 3830 3831
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
3832
        name: 'newOwner',
3833 3834 3835 3836 3837
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
    ],
Will Cory's avatar
Will Cory committed
3838
    name: 'OwnershipTransferred',
3839 3840 3841 3842 3843
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3844 3845
    name: 'UNSAFE_BLOCK_SIGNER_SLOT',
    outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3846 3847 3848 3849 3850
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3851 3852
    name: 'batcherHash',
    outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
3853 3854 3855 3856 3857
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3858
    name: 'gasLimit',
3859 3860 3861
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
Will Cory's avatar
Will Cory committed
3862
    stateMutability: 'nonpayable',
3863
    type: 'function',
Will Cory's avatar
Will Cory committed
3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894
    inputs: [
      { name: '_owner', internalType: 'address', type: 'address' },
      { name: '_overhead', internalType: 'uint256', type: 'uint256' },
      { name: '_scalar', internalType: 'uint256', type: 'uint256' },
      { name: '_batcherHash', internalType: 'bytes32', type: 'bytes32' },
      { name: '_gasLimit', internalType: 'uint64', type: 'uint64' },
      { name: '_unsafeBlockSigner', internalType: 'address', type: 'address' },
      {
        name: '_config',
        internalType: 'struct ResourceMetering.ResourceConfig',
        type: 'tuple',
        components: [
          { name: 'maxResourceLimit', internalType: 'uint32', type: 'uint32' },
          {
            name: 'elasticityMultiplier',
            internalType: 'uint8',
            type: 'uint8',
          },
          {
            name: 'baseFeeMaxChangeDenominator',
            internalType: 'uint8',
            type: 'uint8',
          },
          { name: 'minimumBaseFee', internalType: 'uint32', type: 'uint32' },
          { name: 'systemTxMaxGas', internalType: 'uint32', type: 'uint32' },
          { name: 'maximumBaseFee', internalType: 'uint128', type: 'uint128' },
        ],
      },
    ],
    name: 'initialize',
    outputs: [],
3895 3896 3897 3898 3899
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3900 3901
    name: 'minimumGasLimit',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
3902 3903 3904 3905 3906
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3907 3908
    name: 'overhead',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3909 3910 3911 3912 3913
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3914 3915
    name: 'owner',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
3916 3917
  },
  {
Will Cory's avatar
Will Cory committed
3918
    stateMutability: 'nonpayable',
3919 3920
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3921 3922
    name: 'renounceOwnership',
    outputs: [],
3923 3924 3925 3926 3927
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951
    name: 'resourceConfig',
    outputs: [
      {
        name: '',
        internalType: 'struct ResourceMetering.ResourceConfig',
        type: 'tuple',
        components: [
          { name: 'maxResourceLimit', internalType: 'uint32', type: 'uint32' },
          {
            name: 'elasticityMultiplier',
            internalType: 'uint8',
            type: 'uint8',
          },
          {
            name: 'baseFeeMaxChangeDenominator',
            internalType: 'uint8',
            type: 'uint8',
          },
          { name: 'minimumBaseFee', internalType: 'uint32', type: 'uint32' },
          { name: 'systemTxMaxGas', internalType: 'uint32', type: 'uint32' },
          { name: 'maximumBaseFee', internalType: 'uint128', type: 'uint128' },
        ],
      },
    ],
3952 3953 3954 3955
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
3956 3957 3958
    inputs: [],
    name: 'scalar',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
3959 3960 3961 3962
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
3963 3964 3965 3966
    inputs: [
      { name: '_batcherHash', internalType: 'bytes32', type: 'bytes32' },
    ],
    name: 'setBatcherHash',
3967 3968 3969
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
3970
    stateMutability: 'nonpayable',
3971
    type: 'function',
Will Cory's avatar
Will Cory committed
3972 3973 3974 3975 3976 3977
    inputs: [
      { name: '_overhead', internalType: 'uint256', type: 'uint256' },
      { name: '_scalar', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'setGasConfig',
    outputs: [],
3978 3979
  },
  {
Will Cory's avatar
Will Cory committed
3980
    stateMutability: 'nonpayable',
3981
    type: 'function',
Will Cory's avatar
Will Cory committed
3982 3983 3984
    inputs: [{ name: '_gasLimit', internalType: 'uint64', type: 'uint64' }],
    name: 'setGasLimit',
    outputs: [],
3985 3986
  },
  {
Will Cory's avatar
Will Cory committed
3987
    stateMutability: 'nonpayable',
3988 3989
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010
      {
        name: '_config',
        internalType: 'struct ResourceMetering.ResourceConfig',
        type: 'tuple',
        components: [
          { name: 'maxResourceLimit', internalType: 'uint32', type: 'uint32' },
          {
            name: 'elasticityMultiplier',
            internalType: 'uint8',
            type: 'uint8',
          },
          {
            name: 'baseFeeMaxChangeDenominator',
            internalType: 'uint8',
            type: 'uint8',
          },
          { name: 'minimumBaseFee', internalType: 'uint32', type: 'uint32' },
          { name: 'systemTxMaxGas', internalType: 'uint32', type: 'uint32' },
          { name: 'maximumBaseFee', internalType: 'uint128', type: 'uint128' },
        ],
      },
4011
    ],
Will Cory's avatar
Will Cory committed
4012
    name: 'setResourceConfig',
4013 4014 4015
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
4016
    stateMutability: 'nonpayable',
4017 4018
    type: 'function',
    inputs: [
Will Cory's avatar
Will Cory committed
4019
      { name: '_unsafeBlockSigner', internalType: 'address', type: 'address' },
4020
    ],
Will Cory's avatar
Will Cory committed
4021
    name: 'setUnsafeBlockSigner',
4022 4023 4024
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
4025
    stateMutability: 'nonpayable',
4026
    type: 'function',
Will Cory's avatar
Will Cory committed
4027 4028 4029
    inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
    name: 'transferOwnership',
    outputs: [],
4030 4031 4032 4033 4034
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4035 4036
    name: 'unsafeBlockSigner',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
4037 4038 4039 4040 4041
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4042 4043
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
4044 4045 4046 4047
  },
] as const

/**
Will Cory's avatar
Will Cory committed
4048 4049
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x229047fed2591dbec1eF1118d64F7aF3dB9EB290)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xAe851f927Ee40dE99aaBb7461C00f9622ab91d60)
4050
 */
Will Cory's avatar
Will Cory committed
4051 4052 4053
export const systemConfigAddress = {
  1: '0x229047fed2591dbec1eF1118d64F7aF3dB9EB290',
  5: '0xAe851f927Ee40dE99aaBb7461C00f9622ab91d60',
4054 4055 4056
} as const

/**
Will Cory's avatar
Will Cory committed
4057 4058
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x229047fed2591dbec1eF1118d64F7aF3dB9EB290)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xAe851f927Ee40dE99aaBb7461C00f9622ab91d60)
4059
 */
Will Cory's avatar
Will Cory committed
4060 4061 4062
export const systemConfigConfig = {
  address: systemConfigAddress,
  abi: systemConfigABI,
4063 4064 4065
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
4066
// SystemDictator
4067 4068 4069
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
4070
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xB4453CEb33d2e67FA244A24acf2E50CEF31F53cB)
4071
 */
Will Cory's avatar
Will Cory committed
4072 4073
export const systemDictatorABI = [
  { stateMutability: 'nonpayable', type: 'constructor', inputs: [] },
4074 4075 4076 4077
  {
    type: 'event',
    anonymous: false,
    inputs: [
Will Cory's avatar
Will Cory committed
4078
      { name: 'version', internalType: 'uint8', type: 'uint8', indexed: false },
4079
    ],
Will Cory's avatar
Will Cory committed
4080
    name: 'Initialized',
4081 4082 4083 4084 4085 4086
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
4087
        name: 'previousOwner',
4088 4089 4090 4091 4092
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
Will Cory's avatar
Will Cory committed
4093
        name: 'newOwner',
4094 4095 4096 4097 4098
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
    ],
Will Cory's avatar
Will Cory committed
4099
    name: 'OwnershipTransferred',
4100 4101 4102 4103 4104
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4105 4106
    name: 'EXIT_1_NO_RETURN_STEP',
    outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4107 4108 4109 4110 4111
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4112 4113
    name: 'PROXY_TRANSFER_STEP',
    outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4114 4115 4116 4117 4118
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4119 4120
    name: 'config',
    outputs: [
4121
      {
Will Cory's avatar
Will Cory committed
4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138
        name: 'globalConfig',
        internalType: 'struct SystemDictator.GlobalConfig',
        type: 'tuple',
        components: [
          {
            name: 'addressManager',
            internalType: 'contract AddressManager',
            type: 'address',
          },
          {
            name: 'proxyAdmin',
            internalType: 'contract ProxyAdmin',
            type: 'address',
          },
          { name: 'controller', internalType: 'address', type: 'address' },
          { name: 'finalOwner', internalType: 'address', type: 'address' },
        ],
4139 4140
      },
      {
Will Cory's avatar
Will Cory committed
4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180
        name: 'proxyAddressConfig',
        internalType: 'struct SystemDictator.ProxyAddressConfig',
        type: 'tuple',
        components: [
          {
            name: 'l2OutputOracleProxy',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'optimismPortalProxy',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'l1CrossDomainMessengerProxy',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'l1StandardBridgeProxy',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'optimismMintableERC20FactoryProxy',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'l1ERC721BridgeProxy',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'systemConfigProxy',
            internalType: 'address',
            type: 'address',
          },
        ],
4181 4182
      },
      {
Will Cory's avatar
Will Cory committed
4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227
        name: 'implementationAddressConfig',
        internalType: 'struct SystemDictator.ImplementationAddressConfig',
        type: 'tuple',
        components: [
          {
            name: 'l2OutputOracleImpl',
            internalType: 'contract L2OutputOracle',
            type: 'address',
          },
          {
            name: 'optimismPortalImpl',
            internalType: 'contract OptimismPortal',
            type: 'address',
          },
          {
            name: 'l1CrossDomainMessengerImpl',
            internalType: 'contract L1CrossDomainMessenger',
            type: 'address',
          },
          {
            name: 'l1StandardBridgeImpl',
            internalType: 'contract L1StandardBridge',
            type: 'address',
          },
          {
            name: 'optimismMintableERC20FactoryImpl',
            internalType: 'contract OptimismMintableERC20Factory',
            type: 'address',
          },
          {
            name: 'l1ERC721BridgeImpl',
            internalType: 'contract L1ERC721Bridge',
            type: 'address',
          },
          {
            name: 'portalSenderImpl',
            internalType: 'contract PortalSender',
            type: 'address',
          },
          {
            name: 'systemConfigImpl',
            internalType: 'contract SystemConfig',
            type: 'address',
          },
        ],
4228 4229
      },
      {
Will Cory's avatar
Will Cory committed
4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281
        name: 'systemConfigConfig',
        internalType: 'struct SystemDictator.SystemConfigConfig',
        type: 'tuple',
        components: [
          { name: 'owner', internalType: 'address', type: 'address' },
          { name: 'overhead', internalType: 'uint256', type: 'uint256' },
          { name: 'scalar', internalType: 'uint256', type: 'uint256' },
          { name: 'batcherHash', internalType: 'bytes32', type: 'bytes32' },
          { name: 'gasLimit', internalType: 'uint64', type: 'uint64' },
          {
            name: 'unsafeBlockSigner',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'resourceConfig',
            internalType: 'struct ResourceMetering.ResourceConfig',
            type: 'tuple',
            components: [
              {
                name: 'maxResourceLimit',
                internalType: 'uint32',
                type: 'uint32',
              },
              {
                name: 'elasticityMultiplier',
                internalType: 'uint8',
                type: 'uint8',
              },
              {
                name: 'baseFeeMaxChangeDenominator',
                internalType: 'uint8',
                type: 'uint8',
              },
              {
                name: 'minimumBaseFee',
                internalType: 'uint32',
                type: 'uint32',
              },
              {
                name: 'systemTxMaxGas',
                internalType: 'uint32',
                type: 'uint32',
              },
              {
                name: 'maximumBaseFee',
                internalType: 'uint128',
                type: 'uint128',
              },
            ],
          },
        ],
4282 4283 4284 4285
      },
    ],
  },
  {
Will Cory's avatar
Will Cory committed
4286 4287 4288 4289 4290
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'currentStep',
    outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4291 4292 4293 4294
  },
  {
    stateMutability: 'view',
    type: 'function',
Will Cory's avatar
Will Cory committed
4295 4296 4297
    inputs: [],
    name: 'dynamicConfigSet',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4298 4299 4300 4301
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
Will Cory's avatar
Will Cory committed
4302 4303
    inputs: [],
    name: 'exit1',
4304 4305 4306 4307 4308 4309
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4310 4311
    name: 'exited',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4312 4313
  },
  {
Will Cory's avatar
Will Cory committed
4314
    stateMutability: 'nonpayable',
4315 4316
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4317 4318
    name: 'finalize',
    outputs: [],
4319 4320 4321 4322 4323
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4324 4325
    name: 'finalized',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4326 4327
  },
  {
Will Cory's avatar
Will Cory committed
4328
    stateMutability: 'nonpayable',
4329 4330 4331
    type: 'function',
    inputs: [
      {
Will Cory's avatar
Will Cory committed
4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498
        name: '_config',
        internalType: 'struct SystemDictator.DeployConfig',
        type: 'tuple',
        components: [
          {
            name: 'globalConfig',
            internalType: 'struct SystemDictator.GlobalConfig',
            type: 'tuple',
            components: [
              {
                name: 'addressManager',
                internalType: 'contract AddressManager',
                type: 'address',
              },
              {
                name: 'proxyAdmin',
                internalType: 'contract ProxyAdmin',
                type: 'address',
              },
              { name: 'controller', internalType: 'address', type: 'address' },
              { name: 'finalOwner', internalType: 'address', type: 'address' },
            ],
          },
          {
            name: 'proxyAddressConfig',
            internalType: 'struct SystemDictator.ProxyAddressConfig',
            type: 'tuple',
            components: [
              {
                name: 'l2OutputOracleProxy',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'optimismPortalProxy',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'l1CrossDomainMessengerProxy',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'l1StandardBridgeProxy',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'optimismMintableERC20FactoryProxy',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'l1ERC721BridgeProxy',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'systemConfigProxy',
                internalType: 'address',
                type: 'address',
              },
            ],
          },
          {
            name: 'implementationAddressConfig',
            internalType: 'struct SystemDictator.ImplementationAddressConfig',
            type: 'tuple',
            components: [
              {
                name: 'l2OutputOracleImpl',
                internalType: 'contract L2OutputOracle',
                type: 'address',
              },
              {
                name: 'optimismPortalImpl',
                internalType: 'contract OptimismPortal',
                type: 'address',
              },
              {
                name: 'l1CrossDomainMessengerImpl',
                internalType: 'contract L1CrossDomainMessenger',
                type: 'address',
              },
              {
                name: 'l1StandardBridgeImpl',
                internalType: 'contract L1StandardBridge',
                type: 'address',
              },
              {
                name: 'optimismMintableERC20FactoryImpl',
                internalType: 'contract OptimismMintableERC20Factory',
                type: 'address',
              },
              {
                name: 'l1ERC721BridgeImpl',
                internalType: 'contract L1ERC721Bridge',
                type: 'address',
              },
              {
                name: 'portalSenderImpl',
                internalType: 'contract PortalSender',
                type: 'address',
              },
              {
                name: 'systemConfigImpl',
                internalType: 'contract SystemConfig',
                type: 'address',
              },
            ],
          },
          {
            name: 'systemConfigConfig',
            internalType: 'struct SystemDictator.SystemConfigConfig',
            type: 'tuple',
            components: [
              { name: 'owner', internalType: 'address', type: 'address' },
              { name: 'overhead', internalType: 'uint256', type: 'uint256' },
              { name: 'scalar', internalType: 'uint256', type: 'uint256' },
              { name: 'batcherHash', internalType: 'bytes32', type: 'bytes32' },
              { name: 'gasLimit', internalType: 'uint64', type: 'uint64' },
              {
                name: 'unsafeBlockSigner',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'resourceConfig',
                internalType: 'struct ResourceMetering.ResourceConfig',
                type: 'tuple',
                components: [
                  {
                    name: 'maxResourceLimit',
                    internalType: 'uint32',
                    type: 'uint32',
                  },
                  {
                    name: 'elasticityMultiplier',
                    internalType: 'uint8',
                    type: 'uint8',
                  },
                  {
                    name: 'baseFeeMaxChangeDenominator',
                    internalType: 'uint8',
                    type: 'uint8',
                  },
                  {
                    name: 'minimumBaseFee',
                    internalType: 'uint32',
                    type: 'uint32',
                  },
                  {
                    name: 'systemTxMaxGas',
                    internalType: 'uint32',
                    type: 'uint32',
                  },
                  {
                    name: 'maximumBaseFee',
                    internalType: 'uint128',
                    type: 'uint128',
                  },
                ],
              },
            ],
          },
        ],
4499
      },
Will Cory's avatar
Will Cory committed
4500 4501 4502 4503 4504 4505 4506 4507 4508 4509
    ],
    name: 'initialize',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'l2OutputOracleDynamicConfig',
    outputs: [
4510
      {
Will Cory's avatar
Will Cory committed
4511
        name: 'l2OutputOracleStartingBlockNumber',
4512 4513 4514 4515
        internalType: 'uint256',
        type: 'uint256',
      },
      {
Will Cory's avatar
Will Cory committed
4516
        name: 'l2OutputOracleStartingTimestamp',
4517 4518 4519 4520 4521 4522
        internalType: 'uint256',
        type: 'uint256',
      },
    ],
  },
  {
Will Cory's avatar
Will Cory committed
4523 4524 4525 4526 4527
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'oldL1CrossDomainMessenger',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
4528 4529 4530 4531 4532
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4533 4534
    name: 'optimismPortalDynamicConfig',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
4535 4536
  },
  {
Will Cory's avatar
Will Cory committed
4537
    stateMutability: 'view',
4538 4539
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4540 4541
    name: 'owner',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
4542 4543
  },
  {
Will Cory's avatar
Will Cory committed
4544
    stateMutability: 'nonpayable',
4545
    type: 'function',
Will Cory's avatar
Will Cory committed
4546 4547
    inputs: [],
    name: 'phase1',
4548 4549 4550
    outputs: [],
  },
  {
Will Cory's avatar
Will Cory committed
4551
    stateMutability: 'nonpayable',
4552 4553
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4554 4555
    name: 'phase2',
    outputs: [],
4556 4557
  },
  {
Will Cory's avatar
Will Cory committed
4558
    stateMutability: 'nonpayable',
4559
    type: 'function',
Will Cory's avatar
Will Cory committed
4560 4561 4562
    inputs: [],
    name: 'renounceOwnership',
    outputs: [],
4563 4564
  },
  {
Will Cory's avatar
Will Cory committed
4565
    stateMutability: 'nonpayable',
4566 4567
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634
    name: 'step1',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'step2',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'step3',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'step4',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'step5',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
    name: 'transferOwnership',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      {
        name: '_l2OutputOracleDynamicConfig',
        internalType: 'struct SystemDictator.L2OutputOracleDynamicConfig',
        type: 'tuple',
        components: [
          {
            name: 'l2OutputOracleStartingBlockNumber',
            internalType: 'uint256',
            type: 'uint256',
          },
          {
            name: 'l2OutputOracleStartingTimestamp',
            internalType: 'uint256',
            type: 'uint256',
          },
        ],
      },
      {
        name: '_optimismPortalDynamicConfig',
        internalType: 'bool',
        type: 'bool',
      },
    ],
    name: 'updateDynamicConfig',
    outputs: [],
4635 4636 4637 4638
  },
] as const

/**
Will Cory's avatar
Will Cory committed
4639
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xB4453CEb33d2e67FA244A24acf2E50CEF31F53cB)
4640
 */
Will Cory's avatar
Will Cory committed
4641 4642
export const systemDictatorAddress = {
  1: '0xB4453CEb33d2e67FA244A24acf2E50CEF31F53cB',
4643 4644 4645
} as const

/**
Will Cory's avatar
Will Cory committed
4646
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xB4453CEb33d2e67FA244A24acf2E50CEF31F53cB)
4647
 */
Will Cory's avatar
Will Cory committed
4648 4649 4650
export const systemDictatorConfig = {
  address: systemDictatorAddress,
  abi: systemDictatorABI,
4651 4652 4653
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Will Cory's avatar
Will Cory committed
4654
// SystemDictator_goerli
4655 4656 4657
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
Will Cory's avatar
Will Cory committed
4658
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x1f0613A44c9a8ECE7B3A2e0CdBdF0F5B47A50971)
4659
 */
Will Cory's avatar
Will Cory committed
4660
export const systemDictatorGoerliABI = [
4661
  {
Will Cory's avatar
Will Cory committed
4662 4663 4664 4665 4666 4667
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'version', internalType: 'uint8', type: 'uint8', indexed: false },
    ],
    name: 'Initialized',
4668 4669 4670 4671 4672 4673
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
Will Cory's avatar
Will Cory committed
4674 4675 4676 4677
        name: 'previousOwner',
        internalType: 'address',
        type: 'address',
        indexed: true,
4678 4679
      },
      {
Will Cory's avatar
Will Cory committed
4680
        name: 'newOwner',
4681 4682
        internalType: 'address',
        type: 'address',
Will Cory's avatar
Will Cory committed
4683
        indexed: true,
4684 4685
      },
    ],
Will Cory's avatar
Will Cory committed
4686
    name: 'OwnershipTransferred',
4687 4688 4689 4690 4691
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4692 4693
    name: 'EXIT_1_NO_RETURN_STEP',
    outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4694 4695 4696 4697 4698
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4699 4700
    name: 'PROXY_TRANSFER_STEP',
    outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
4701 4702 4703 4704 4705
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
Will Cory's avatar
Will Cory committed
4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218
    name: 'config',
    outputs: [
      {
        name: 'globalConfig',
        internalType: 'struct SystemDictator.GlobalConfig',
        type: 'tuple',
        components: [
          {
            name: 'addressManager',
            internalType: 'contract AddressManager',
            type: 'address',
          },
          {
            name: 'proxyAdmin',
            internalType: 'contract ProxyAdmin',
            type: 'address',
          },
          { name: 'controller', internalType: 'address', type: 'address' },
          { name: 'finalOwner', internalType: 'address', type: 'address' },
        ],
      },
      {
        name: 'proxyAddressConfig',
        internalType: 'struct SystemDictator.ProxyAddressConfig',
        type: 'tuple',
        components: [
          {
            name: 'l2OutputOracleProxy',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'optimismPortalProxy',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'l1CrossDomainMessengerProxy',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'l1StandardBridgeProxy',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'optimismMintableERC20FactoryProxy',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'l1ERC721BridgeProxy',
            internalType: 'address',
            type: 'address',
          },
          {
            name: 'systemConfigProxy',
            internalType: 'address',
            type: 'address',
          },
        ],
      },
      {
        name: 'implementationAddressConfig',
        internalType: 'struct SystemDictator.ImplementationAddressConfig',
        type: 'tuple',
        components: [
          {
            name: 'l2OutputOracleImpl',
            internalType: 'contract L2OutputOracle',
            type: 'address',
          },
          {
            name: 'optimismPortalImpl',
            internalType: 'contract OptimismPortal',
            type: 'address',
          },
          {
            name: 'l1CrossDomainMessengerImpl',
            internalType: 'contract L1CrossDomainMessenger',
            type: 'address',
          },
          {
            name: 'l1StandardBridgeImpl',
            internalType: 'contract L1StandardBridge',
            type: 'address',
          },
          {
            name: 'optimismMintableERC20FactoryImpl',
            internalType: 'contract OptimismMintableERC20Factory',
            type: 'address',
          },
          {
            name: 'l1ERC721BridgeImpl',
            internalType: 'contract L1ERC721Bridge',
            type: 'address',
          },
          {
            name: 'portalSenderImpl',
            internalType: 'contract PortalSender',
            type: 'address',
          },
          {
            name: 'systemConfigImpl',
            internalType: 'contract SystemConfig',
            type: 'address',
          },
        ],
      },
      {
        name: 'systemConfigConfig',
        internalType: 'struct SystemDictator.SystemConfigConfig',
        type: 'tuple',
        components: [
          { name: 'owner', internalType: 'address', type: 'address' },
          { name: 'overhead', internalType: 'uint256', type: 'uint256' },
          { name: 'scalar', internalType: 'uint256', type: 'uint256' },
          { name: 'batcherHash', internalType: 'bytes32', type: 'bytes32' },
          { name: 'gasLimit', internalType: 'uint64', type: 'uint64' },
          {
            name: 'unsafeBlockSigner',
            internalType: 'address',
            type: 'address',
          },
        ],
      },
    ],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'currentStep',
    outputs: [{ name: '', internalType: 'uint8', type: 'uint8' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'dynamicConfigSet',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'exit1',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'finalize',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'finalized',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      {
        name: '_config',
        internalType: 'struct SystemDictator.DeployConfig',
        type: 'tuple',
        components: [
          {
            name: 'globalConfig',
            internalType: 'struct SystemDictator.GlobalConfig',
            type: 'tuple',
            components: [
              {
                name: 'addressManager',
                internalType: 'contract AddressManager',
                type: 'address',
              },
              {
                name: 'proxyAdmin',
                internalType: 'contract ProxyAdmin',
                type: 'address',
              },
              { name: 'controller', internalType: 'address', type: 'address' },
              { name: 'finalOwner', internalType: 'address', type: 'address' },
            ],
          },
          {
            name: 'proxyAddressConfig',
            internalType: 'struct SystemDictator.ProxyAddressConfig',
            type: 'tuple',
            components: [
              {
                name: 'l2OutputOracleProxy',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'optimismPortalProxy',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'l1CrossDomainMessengerProxy',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'l1StandardBridgeProxy',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'optimismMintableERC20FactoryProxy',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'l1ERC721BridgeProxy',
                internalType: 'address',
                type: 'address',
              },
              {
                name: 'systemConfigProxy',
                internalType: 'address',
                type: 'address',
              },
            ],
          },
          {
            name: 'implementationAddressConfig',
            internalType: 'struct SystemDictator.ImplementationAddressConfig',
            type: 'tuple',
            components: [
              {
                name: 'l2OutputOracleImpl',
                internalType: 'contract L2OutputOracle',
                type: 'address',
              },
              {
                name: 'optimismPortalImpl',
                internalType: 'contract OptimismPortal',
                type: 'address',
              },
              {
                name: 'l1CrossDomainMessengerImpl',
                internalType: 'contract L1CrossDomainMessenger',
                type: 'address',
              },
              {
                name: 'l1StandardBridgeImpl',
                internalType: 'contract L1StandardBridge',
                type: 'address',
              },
              {
                name: 'optimismMintableERC20FactoryImpl',
                internalType: 'contract OptimismMintableERC20Factory',
                type: 'address',
              },
              {
                name: 'l1ERC721BridgeImpl',
                internalType: 'contract L1ERC721Bridge',
                type: 'address',
              },
              {
                name: 'portalSenderImpl',
                internalType: 'contract PortalSender',
                type: 'address',
              },
              {
                name: 'systemConfigImpl',
                internalType: 'contract SystemConfig',
                type: 'address',
              },
            ],
          },
          {
            name: 'systemConfigConfig',
            internalType: 'struct SystemDictator.SystemConfigConfig',
            type: 'tuple',
            components: [
              { name: 'owner', internalType: 'address', type: 'address' },
              { name: 'overhead', internalType: 'uint256', type: 'uint256' },
              { name: 'scalar', internalType: 'uint256', type: 'uint256' },
              { name: 'batcherHash', internalType: 'bytes32', type: 'bytes32' },
              { name: 'gasLimit', internalType: 'uint64', type: 'uint64' },
              {
                name: 'unsafeBlockSigner',
                internalType: 'address',
                type: 'address',
              },
            ],
          },
        ],
      },
    ],
    name: 'initialize',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'l2OutputOracleDynamicConfig',
    outputs: [
      {
        name: 'l2OutputOracleStartingBlockNumber',
        internalType: 'uint256',
        type: 'uint256',
      },
      {
        name: 'l2OutputOracleStartingTimestamp',
        internalType: 'uint256',
        type: 'uint256',
      },
    ],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'oldL1CrossDomainMessenger',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'owner',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'renounceOwnership',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'step1',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'step2',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'step3',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'step4',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'step5',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'step6',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
    name: 'transferOwnership',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      {
        name: '_l2OutputOracleDynamicConfig',
        internalType: 'struct SystemDictator.L2OutputOracleDynamicConfig',
        type: 'tuple',
        components: [
          {
            name: 'l2OutputOracleStartingBlockNumber',
            internalType: 'uint256',
            type: 'uint256',
          },
          {
            name: 'l2OutputOracleStartingTimestamp',
            internalType: 'uint256',
            type: 'uint256',
          },
        ],
      },
    ],
    name: 'updateL2OutputOracleDynamicConfig',
    outputs: [],
  },
] as const

/**
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x1f0613A44c9a8ECE7B3A2e0CdBdF0F5B47A50971)
 */
export const systemDictatorGoerliAddress = {
  5: '0x1f0613A44c9a8ECE7B3A2e0CdBdF0F5B47A50971',
} as const

/**
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x1f0613A44c9a8ECE7B3A2e0CdBdF0F5B47A50971)
 */
export const systemDictatorGoerliConfig = {
  address: systemDictatorGoerliAddress,
  abi: systemDictatorGoerliABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// TeleportrWithdrawer
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78A25524D90E3D0596558fb43789bD800a5c3007)
 */
export const teleportrWithdrawerABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'user', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'newOwner',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
    ],
    name: 'OwnerUpdated',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
    ],
    name: 'ReceivedETH',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'withdrawer',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'recipient',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'asset',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
    ],
    name: 'WithdrewERC20',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'withdrawer',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'recipient',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'asset',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'id', internalType: 'uint256', type: 'uint256', indexed: false },
    ],
    name: 'WithdrewERC721',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'withdrawer',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'recipient',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
    ],
    name: 'WithdrewETH',
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_data', internalType: 'bytes', type: 'bytes' },
      { name: '_gas', internalType: 'uint256', type: 'uint256' },
      { name: '_value', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'CALL',
    outputs: [
      { name: '', internalType: 'bool', type: 'bool' },
      { name: '', internalType: 'bytes', type: 'bytes' },
    ],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_data', internalType: 'bytes', type: 'bytes' },
      { name: '_gas', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'DELEGATECALL',
    outputs: [
      { name: '', internalType: 'bool', type: 'bool' },
      { name: '', internalType: 'bytes', type: 'bytes' },
    ],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'data',
    outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'owner',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'recipient',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: '_data', internalType: 'bytes', type: 'bytes' }],
    name: 'setData',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
    name: 'setOwner',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: '_recipient', internalType: 'address', type: 'address' }],
    name: 'setRecipient',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: '_teleportr', internalType: 'address', type: 'address' }],
    name: 'setTeleportr',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'teleportr',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_asset', internalType: 'contract ERC20', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'withdrawERC20',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_asset', internalType: 'contract ERC20', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
    ],
    name: 'withdrawERC20',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_asset', internalType: 'contract ERC721', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_id', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'withdrawERC721',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_to', internalType: 'address payable', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'withdrawETH',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: '_to', internalType: 'address payable', type: 'address' }],
    name: 'withdrawETH',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'withdrawFromTeleportr',
    outputs: [],
  },
  { stateMutability: 'payable', type: 'receive' },
] as const

/**
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78A25524D90E3D0596558fb43789bD800a5c3007)
 */
export const teleportrWithdrawerAddress = {
  1: '0x78A25524D90E3D0596558fb43789bD800a5c3007',
} as const

/**
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78A25524D90E3D0596558fb43789bD800a5c3007)
 */
export const teleportrWithdrawerConfig = {
  address: teleportrWithdrawerAddress,
  abi: teleportrWithdrawerABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// AttestationStation
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
 */
export const attestationStationABI = [
  { stateMutability: 'nonpayable', type: 'constructor', inputs: [] },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'creator',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'about',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'key', internalType: 'bytes32', type: 'bytes32', indexed: true },
      { name: 'val', internalType: 'bytes', type: 'bytes', indexed: false },
    ],
    name: 'AttestationCreated',
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      {
        name: '_attestations',
        internalType: 'struct AttestationStation.AttestationData[]',
        type: 'tuple[]',
        components: [
          { name: 'about', internalType: 'address', type: 'address' },
          { name: 'key', internalType: 'bytes32', type: 'bytes32' },
          { name: 'val', internalType: 'bytes', type: 'bytes' },
        ],
      },
    ],
    name: 'attest',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_about', internalType: 'address', type: 'address' },
      { name: '_key', internalType: 'bytes32', type: 'bytes32' },
      { name: '_val', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'attest',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [
      { name: '', internalType: 'address', type: 'address' },
      { name: '', internalType: 'address', type: 'address' },
      { name: '', internalType: 'bytes32', type: 'bytes32' },
    ],
    name: 'attestations',
    outputs: [{ name: '', internalType: 'bytes', type: 'bytes' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
] as const

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
 */
export const attestationStationAddress = {
  10: '0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77',
  420: '0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77',
} as const

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
 */
export const attestationStationConfig = {
  address: attestationStationAddress,
  abi: attestationStationABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// L2ERC721Bridge
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000014)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000014)
 */
export const l2Erc721BridgeABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
      { name: '_messenger', internalType: 'address', type: 'address' },
      { name: '_otherBridge', internalType: 'address', type: 'address' },
    ],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'localToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'remoteToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'tokenId',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'ERC721BridgeFinalized',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'localToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'remoteToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'tokenId',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'ERC721BridgeInitiated',
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_localToken', internalType: 'address', type: 'address' },
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_tokenId', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'bridgeERC721',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_localToken', internalType: 'address', type: 'address' },
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_tokenId', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'bridgeERC721To',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_localToken', internalType: 'address', type: 'address' },
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_from', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_tokenId', internalType: 'uint256', type: 'uint256' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'finalizeBridgeERC721',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'messenger',
    outputs: [
      {
        name: '',
        internalType: 'contract CrossDomainMessenger',
        type: 'address',
      },
    ],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'otherBridge',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
] as const

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000014)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000014)
 */
export const l2Erc721BridgeAddress = {
  10: '0x4200000000000000000000000000000000000014',
  420: '0x4200000000000000000000000000000000000014',
} as const

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000014)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000014)
 */
export const l2Erc721BridgeConfig = {
  address: l2Erc721BridgeAddress,
  abi: l2Erc721BridgeABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// MintManager
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x5C4e7Ba1E219E47948e6e3F55019A647bA501005)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x038a8825A3C3B0c08d52Cc76E5E361953Cf6Dc76)
 */
export const mintManagerABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
      { name: '_upgrader', internalType: 'address', type: 'address' },
      { name: '_governanceToken', internalType: 'address', type: 'address' },
    ],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'previousOwner',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'newOwner',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
    ],
    name: 'OwnershipTransferred',
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'DENOMINATOR',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'MINT_CAP',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'MINT_PERIOD',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'governanceToken',
    outputs: [
      { name: '', internalType: 'contract GovernanceToken', type: 'address' },
    ],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_account', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'mint',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'mintPermittedAfter',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'owner',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'renounceOwnership',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
    name: 'transferOwnership',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_newMintManager', internalType: 'address', type: 'address' },
    ],
    name: 'upgrade',
    outputs: [],
  },
] as const

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x5C4e7Ba1E219E47948e6e3F55019A647bA501005)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x038a8825A3C3B0c08d52Cc76E5E361953Cf6Dc76)
 */
export const mintManagerAddress = {
  10: '0x5C4e7Ba1E219E47948e6e3F55019A647bA501005',
  420: '0x038a8825A3C3B0c08d52Cc76E5E361953Cf6Dc76',
} as const

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x5C4e7Ba1E219E47948e6e3F55019A647bA501005)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x038a8825A3C3B0c08d52Cc76E5E361953Cf6Dc76)
 */
export const mintManagerConfig = {
  address: mintManagerAddress,
  abi: mintManagerABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// OptimismMintableERC721Factory
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000017)
 */
export const optimismMintableErc721FactoryABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
      { name: '_bridge', internalType: 'address', type: 'address' },
      { name: '_remoteChainId', internalType: 'uint256', type: 'uint256' },
    ],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'localToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'remoteToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'deployer',
        internalType: 'address',
        type: 'address',
        indexed: false,
      },
    ],
    name: 'OptimismMintableERC721Created',
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'bridge',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_name', internalType: 'string', type: 'string' },
      { name: '_symbol', internalType: 'string', type: 'string' },
    ],
    name: 'createOptimismMintableERC721',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '', internalType: 'address', type: 'address' }],
    name: 'isOptimismMintableERC721',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'remoteChainId',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
] as const

/**
 * [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000017)
 */
export const optimismMintableErc721FactoryAddress = {
  10: '0x4200000000000000000000000000000000000017',
} as const

/**
 * [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000017)
 */
export const optimismMintableErc721FactoryConfig = {
  address: optimismMintableErc721FactoryAddress,
  abi: optimismMintableErc721FactoryABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// OptimismMintableERC721Factory_optimism-goerli
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000017)
 */
export const optimismMintableErc721FactoryOptimismGoerliABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
      { name: '_bridge', internalType: 'address', type: 'address' },
      { name: '_remoteChainId', internalType: 'uint256', type: 'uint256' },
    ],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'localToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'remoteToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'deployer',
        internalType: 'address',
        type: 'address',
        indexed: false,
      },
    ],
    name: 'OptimismMintableERC721Created',
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'BRIDGE',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'REMOTE_CHAIN_ID',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_name', internalType: 'string', type: 'string' },
      { name: '_symbol', internalType: 'string', type: 'string' },
    ],
    name: 'createOptimismMintableERC721',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '', internalType: 'address', type: 'address' }],
    name: 'isOptimismMintableERC721',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
] as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000017)
 */
export const optimismMintableErc721FactoryOptimismGoerliAddress = {
  420: '0x4200000000000000000000000000000000000017',
} as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000017)
 */
export const optimismMintableErc721FactoryOptimismGoerliConfig = {
  address: optimismMintableErc721FactoryOptimismGoerliAddress,
  abi: optimismMintableErc721FactoryOptimismGoerliABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Optimist
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
 */
export const optimistABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
      { name: '_name', internalType: 'string', type: 'string' },
      { name: '_symbol', internalType: 'string', type: 'string' },
      { name: '_baseURIAttestor', internalType: 'address', type: 'address' },
      {
        name: '_attestationStation',
        internalType: 'contract AttestationStation',
        type: 'address',
      },
      {
        name: '_optimistAllowlist',
        internalType: 'contract OptimistAllowlist',
        type: 'address',
      },
    ],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'owner',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'approved',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'tokenId',
        internalType: 'uint256',
        type: 'uint256',
        indexed: true,
      },
    ],
    name: 'Approval',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'owner',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'operator',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'approved', internalType: 'bool', type: 'bool', indexed: false },
    ],
    name: 'ApprovalForAll',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'version', internalType: 'uint8', type: 'uint8', indexed: false },
    ],
    name: 'Initialized',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'tokenId',
        internalType: 'uint256',
        type: 'uint256',
        indexed: true,
      },
    ],
    name: 'Transfer',
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'ATTESTATION_STATION',
    outputs: [
      {
        name: '',
        internalType: 'contract AttestationStation',
        type: 'address',
      },
    ],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'BASE_URI_ATTESTATION_KEY',
    outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'BASE_URI_ATTESTOR',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'OPTIMIST_ALLOWLIST',
    outputs: [
      { name: '', internalType: 'contract OptimistAllowlist', type: 'address' },
    ],
  },
  {
    stateMutability: 'pure',
    type: 'function',
    inputs: [
      { name: '', internalType: 'address', type: 'address' },
      { name: '', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'approve',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
    name: 'balanceOf',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'baseURI',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
    name: 'burn',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
    name: 'getApproved',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_name', internalType: 'string', type: 'string' },
      { name: '_symbol', internalType: 'string', type: 'string' },
    ],
    name: 'initialize',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [
      { name: 'owner', internalType: 'address', type: 'address' },
      { name: 'operator', internalType: 'address', type: 'address' },
    ],
    name: 'isApprovedForAll',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '_recipient', internalType: 'address', type: 'address' }],
    name: 'isOnAllowList',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: '_recipient', internalType: 'address', type: 'address' }],
    name: 'mint',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'name',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: 'tokenId', internalType: 'uint256', type: 'uint256' }],
    name: 'ownerOf',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: 'from', internalType: 'address', type: 'address' },
      { name: 'to', internalType: 'address', type: 'address' },
      { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'safeTransferFrom',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: 'from', internalType: 'address', type: 'address' },
      { name: 'to', internalType: 'address', type: 'address' },
      { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
      { name: 'data', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'safeTransferFrom',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '', internalType: 'address', type: 'address' },
      { name: '', internalType: 'bool', type: 'bool' },
    ],
    name: 'setApprovalForAll',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
    name: 'supportsInterface',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'symbol',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  {
    stateMutability: 'pure',
    type: 'function',
    inputs: [{ name: '_owner', internalType: 'address', type: 'address' }],
    name: 'tokenIdOfAddress',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '_tokenId', internalType: 'uint256', type: 'uint256' }],
    name: 'tokenURI',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: 'from', internalType: 'address', type: 'address' },
      { name: 'to', internalType: 'address', type: 'address' },
      { name: 'tokenId', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'transferFrom',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
] as const

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
 */
export const optimistAddress = {
  10: '0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5',
  420: '0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5',
} as const

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
 */
export const optimistConfig = {
  address: optimistAddress,
  abi: optimistABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// OptimistAllowlist
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x482b1945D58f2E9Db0CEbe13c7fcFc6876b41180)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x482b1945D58f2E9Db0CEbe13c7fcFc6876b41180)
 */
export const optimistAllowlistABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
      {
        name: '_attestationStation',
        internalType: 'contract AttestationStation',
        type: 'address',
      },
      { name: '_allowlistAttestor', internalType: 'address', type: 'address' },
      {
        name: '_coinbaseQuestAttestor',
        internalType: 'address',
        type: 'address',
      },
      { name: '_optimistInviter', internalType: 'address', type: 'address' },
    ],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'ALLOWLIST_ATTESTOR',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'ATTESTATION_STATION',
    outputs: [
      {
        name: '',
        internalType: 'contract AttestationStation',
        type: 'address',
      },
    ],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'COINBASE_QUEST_ATTESTOR',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'COINBASE_QUEST_ELIGIBLE_ATTESTATION_KEY',
    outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'OPTIMIST_CAN_MINT_ATTESTATION_KEY',
    outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'OPTIMIST_INVITER',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '_claimer', internalType: 'address', type: 'address' }],
    name: 'isAllowedToMint',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
] as const

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x482b1945D58f2E9Db0CEbe13c7fcFc6876b41180)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x482b1945D58f2E9Db0CEbe13c7fcFc6876b41180)
 */
export const optimistAllowlistAddress = {
  10: '0x482b1945D58f2E9Db0CEbe13c7fcFc6876b41180',
  420: '0x482b1945D58f2E9Db0CEbe13c7fcFc6876b41180',
} as const

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x482b1945D58f2E9Db0CEbe13c7fcFc6876b41180)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x482b1945D58f2E9Db0CEbe13c7fcFc6876b41180)
 */
export const optimistAllowlistConfig = {
  address: optimistAllowlistAddress,
  abi: optimistAllowlistABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// OptimistInviter
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 */
export const optimistInviterABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
      { name: '_inviteGranter', internalType: 'address', type: 'address' },
      {
        name: '_attestationStation',
        internalType: 'contract AttestationStation',
        type: 'address',
      },
    ],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'version', internalType: 'uint8', type: 'uint8', indexed: false },
    ],
    name: 'Initialized',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'issuer',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'claimer',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
    ],
    name: 'InviteClaimed',
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'ATTESTATION_STATION',
    outputs: [
      {
        name: '',
        internalType: 'contract AttestationStation',
        type: 'address',
      },
    ],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'CAN_INVITE_ATTESTATION_KEY',
    outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'CLAIMABLE_INVITE_TYPEHASH',
    outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'EIP712_VERSION',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'INVITE_GRANTER',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'MIN_COMMITMENT_PERIOD',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_claimer', internalType: 'address', type: 'address' },
      {
        name: '_claimableInvite',
        internalType: 'struct OptimistInviter.ClaimableInvite',
        type: 'tuple',
        components: [
          { name: 'issuer', internalType: 'address', type: 'address' },
          { name: 'nonce', internalType: 'bytes32', type: 'bytes32' },
        ],
      },
      { name: '_signature', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'claimInvite',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: '_commitment', internalType: 'bytes32', type: 'bytes32' }],
    name: 'commitInvite',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
    name: 'commitmentTimestamps',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [{ name: '_name', internalType: 'string', type: 'string' }],
    name: 'initialize',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '', internalType: 'address', type: 'address' }],
    name: 'inviteCounts',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_accounts', internalType: 'address[]', type: 'address[]' },
      { name: '_inviteCount', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'setInviteCounts',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [
      { name: '', internalType: 'address', type: 'address' },
      { name: '', internalType: 'bytes32', type: 'bytes32' },
    ],
    name: 'usedNonces',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
] as const

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 */
export const optimistInviterAddress = {
  10: '0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929',
  420: '0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929',
} as const

/**
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 */
export const optimistInviterConfig = {
  address: optimistInviterAddress,
  abi: optimistInviterABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// BaseFeeVault
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000019)
 */
export const baseFeeVaultABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [{ name: '_recipient', internalType: 'address', type: 'address' }],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'value',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'from',
        internalType: 'address',
        type: 'address',
        indexed: false,
      },
    ],
    name: 'Withdrawal',
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'MIN_WITHDRAWAL_AMOUNT',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'RECIPIENT',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'totalProcessed',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'withdraw',
    outputs: [],
  },
  { stateMutability: 'payable', type: 'receive' },
] as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000019)
 */
export const baseFeeVaultAddress = {
  420: '0x4200000000000000000000000000000000000019',
} as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000019)
 */
export const baseFeeVaultConfig = {
  address: baseFeeVaultAddress,
  abi: baseFeeVaultABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// GasPriceOracle
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000000F)
 */
export const gasPriceOracleABI = [
  { stateMutability: 'nonpayable', type: 'constructor', inputs: [] },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'baseFee',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'pure',
    type: 'function',
    inputs: [],
    name: 'decimals',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'gasPrice',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '_data', internalType: 'bytes', type: 'bytes' }],
    name: 'getL1Fee',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '_data', internalType: 'bytes', type: 'bytes' }],
    name: 'getL1GasUsed',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'l1BaseFee',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'overhead',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'scalar',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
] as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000000F)
 */
export const gasPriceOracleAddress = {
  420: '0x420000000000000000000000000000000000000F',
} as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000000F)
 */
export const gasPriceOracleConfig = {
  address: gasPriceOracleAddress,
  abi: gasPriceOracleABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// L1Block
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000015)
 */
export const l1BlockABI = [
  { stateMutability: 'nonpayable', type: 'constructor', inputs: [] },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'DEPOSITOR_ACCOUNT',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'basefee',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'batcherHash',
    outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'hash',
    outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'l1FeeOverhead',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'l1FeeScalar',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'number',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'sequenceNumber',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_number', internalType: 'uint64', type: 'uint64' },
      { name: '_timestamp', internalType: 'uint64', type: 'uint64' },
      { name: '_basefee', internalType: 'uint256', type: 'uint256' },
      { name: '_hash', internalType: 'bytes32', type: 'bytes32' },
      { name: '_sequenceNumber', internalType: 'uint64', type: 'uint64' },
      { name: '_batcherHash', internalType: 'bytes32', type: 'bytes32' },
      { name: '_l1FeeOverhead', internalType: 'uint256', type: 'uint256' },
      { name: '_l1FeeScalar', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'setL1BlockValues',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'timestamp',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
] as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000015)
 */
export const l1BlockAddress = {
  420: '0x4200000000000000000000000000000000000015',
} as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000015)
 */
export const l1BlockConfig = {
  address: l1BlockAddress,
  abi: l1BlockABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// L1FeeVault
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000001a)
 */
export const l1FeeVaultABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [{ name: '_recipient', internalType: 'address', type: 'address' }],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'value',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'from',
        internalType: 'address',
        type: 'address',
        indexed: false,
      },
    ],
    name: 'Withdrawal',
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'MIN_WITHDRAWAL_AMOUNT',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'RECIPIENT',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'totalProcessed',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'withdraw',
    outputs: [],
  },
  { stateMutability: 'payable', type: 'receive' },
] as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000001a)
 */
export const l1FeeVaultAddress = {
  420: '0x420000000000000000000000000000000000001A',
} as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000001a)
 */
export const l1FeeVaultConfig = {
  address: l1FeeVaultAddress,
  abi: l1FeeVaultABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// L2CrossDomainMessenger
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000007)
 */
export const l2CrossDomainMessengerABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
      {
        name: '_l1CrossDomainMessenger',
        internalType: 'address',
        type: 'address',
      },
    ],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'msgHash',
        internalType: 'bytes32',
        type: 'bytes32',
        indexed: true,
      },
    ],
    name: 'FailedRelayedMessage',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'version', internalType: 'uint8', type: 'uint8', indexed: false },
    ],
    name: 'Initialized',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'msgHash',
        internalType: 'bytes32',
        type: 'bytes32',
        indexed: true,
      },
    ],
    name: 'RelayedMessage',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'target',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'sender',
        internalType: 'address',
        type: 'address',
        indexed: false,
      },
      { name: 'message', internalType: 'bytes', type: 'bytes', indexed: false },
      {
        name: 'messageNonce',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'gasLimit',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
    ],
    name: 'SentMessage',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'sender',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'value',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
    ],
    name: 'SentMessageExtension1',
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'MESSAGE_VERSION',
    outputs: [{ name: '', internalType: 'uint16', type: 'uint16' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'MIN_GAS_CALLDATA_OVERHEAD',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'MIN_GAS_DYNAMIC_OVERHEAD_DENOMINATOR',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'MIN_GAS_DYNAMIC_OVERHEAD_NUMERATOR',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'OTHER_MESSENGER',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'RELAY_CALL_OVERHEAD',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'RELAY_CONSTANT_OVERHEAD',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'RELAY_GAS_CHECK_BUFFER',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'RELAY_RESERVED_GAS',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
    stateMutability: 'pure',
    type: 'function',
    inputs: [
      { name: '_message', internalType: 'bytes', type: 'bytes' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
    ],
    name: 'baseGas',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
    name: 'failedMessages',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'initialize',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'l1CrossDomainMessenger',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'messageNonce',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
      { name: '_nonce', internalType: 'uint256', type: 'uint256' },
      { name: '_sender', internalType: 'address', type: 'address' },
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_value', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint256', type: 'uint256' },
      { name: '_message', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'relayMessage',
    outputs: [],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_message', internalType: 'bytes', type: 'bytes' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
    ],
    name: 'sendMessage',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
    name: 'successfulMessages',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'xDomainMessageSender',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
] as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000007)
 */
export const l2CrossDomainMessengerAddress = {
  420: '0x4200000000000000000000000000000000000007',
} as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000007)
 */
export const l2CrossDomainMessengerConfig = {
  address: l2CrossDomainMessengerAddress,
  abi: l2CrossDomainMessengerABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// L2StandardBridge
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000010)
 */
export const l2StandardBridgeABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [
      {
        name: '_otherBridge',
        internalType: 'address payable',
        type: 'address',
      },
    ],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'l1Token',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'l2Token',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'DepositFinalized',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'localToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'remoteToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'ERC20BridgeFinalized',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'localToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'remoteToken',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'ERC20BridgeInitiated',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'ETHBridgeFinalized',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: true },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'ETHBridgeInitiated',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'l1Token',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'l2Token',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      { name: 'from', internalType: 'address', type: 'address', indexed: true },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'extraData',
        internalType: 'bytes',
        type: 'bytes',
        indexed: false,
      },
    ],
    name: 'WithdrawalInitiated',
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_localToken', internalType: 'address', type: 'address' },
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'bridgeERC20',
    outputs: [],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_localToken', internalType: 'address', type: 'address' },
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'bridgeERC20To',
    outputs: [],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'bridgeETH',
    outputs: [],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'bridgeETHTo',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [
      { name: '', internalType: 'address', type: 'address' },
      { name: '', internalType: 'address', type: 'address' },
    ],
    name: 'deposits',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [
      { name: '_localToken', internalType: 'address', type: 'address' },
      { name: '_remoteToken', internalType: 'address', type: 'address' },
      { name: '_from', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'finalizeBridgeERC20',
    outputs: [],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
      { name: '_from', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'finalizeBridgeETH',
    outputs: [],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
      { name: '_l1Token', internalType: 'address', type: 'address' },
      { name: '_l2Token', internalType: 'address', type: 'address' },
      { name: '_from', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'finalizeDeposit',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'l1TokenBridge',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'messenger',
    outputs: [
      {
        name: '',
        internalType: 'contract CrossDomainMessenger',
        type: 'address',
      },
    ],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
      { name: '_l2Token', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'withdraw',
    outputs: [],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
      { name: '_l2Token', internalType: 'address', type: 'address' },
      { name: '_to', internalType: 'address', type: 'address' },
      { name: '_amount', internalType: 'uint256', type: 'uint256' },
      { name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
      { name: '_extraData', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'withdrawTo',
    outputs: [],
  },
  { stateMutability: 'payable', type: 'receive' },
] as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000010)
 */
export const l2StandardBridgeAddress = {
  420: '0x4200000000000000000000000000000000000010',
} as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000010)
 */
export const l2StandardBridgeConfig = {
  address: l2StandardBridgeAddress,
  abi: l2StandardBridgeABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// L2ToL1MessagePasser
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000016)
 */
export const l2ToL1MessagePasserABI = [
  { stateMutability: 'nonpayable', type: 'constructor', inputs: [] },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'nonce',
        internalType: 'uint256',
        type: 'uint256',
        indexed: true,
      },
      {
        name: 'sender',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'target',
        internalType: 'address',
        type: 'address',
        indexed: true,
      },
      {
        name: 'value',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      {
        name: 'gasLimit',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      { name: 'data', internalType: 'bytes', type: 'bytes', indexed: false },
      {
        name: 'withdrawalHash',
        internalType: 'bytes32',
        type: 'bytes32',
        indexed: false,
      },
    ],
    name: 'MessagePassed',
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'amount',
        internalType: 'uint256',
        type: 'uint256',
        indexed: true,
      },
    ],
    name: 'WithdrawerBalanceBurnt',
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'MESSAGE_VERSION',
    outputs: [{ name: '', internalType: 'uint16', type: 'uint16' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'burn',
    outputs: [],
  },
  {
    stateMutability: 'payable',
    type: 'function',
    inputs: [
      { name: '_target', internalType: 'address', type: 'address' },
      { name: '_gasLimit', internalType: 'uint256', type: 'uint256' },
      { name: '_data', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'initiateWithdrawal',
    outputs: [],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'messageNonce',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
    name: 'sentMessages',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  { stateMutability: 'payable', type: 'receive' },
] as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000016)
 */
export const l2ToL1MessagePasserAddress = {
  420: '0x4200000000000000000000000000000000000016',
} as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000016)
 */
export const l2ToL1MessagePasserConfig = {
  address: l2ToL1MessagePasserAddress,
  abi: l2ToL1MessagePasserABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// SequencerFeeVault
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000011)
 */
export const sequencerFeeVaultABI = [
  {
    stateMutability: 'nonpayable',
    type: 'constructor',
    inputs: [{ name: '_recipient', internalType: 'address', type: 'address' }],
  },
  {
    type: 'event',
    anonymous: false,
    inputs: [
      {
        name: 'value',
        internalType: 'uint256',
        type: 'uint256',
        indexed: false,
      },
      { name: 'to', internalType: 'address', type: 'address', indexed: false },
      {
        name: 'from',
        internalType: 'address',
        type: 'address',
        indexed: false,
      },
    ],
    name: 'Withdrawal',
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'MIN_WITHDRAWAL_AMOUNT',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'RECIPIENT',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'l1FeeWallet',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'totalProcessed',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
  },
  {
    stateMutability: 'view',
    type: 'function',
    inputs: [],
    name: 'version',
    outputs: [{ name: '', internalType: 'string', type: 'string' }],
  },
  {
    stateMutability: 'nonpayable',
    type: 'function',
    inputs: [],
    name: 'withdraw',
    outputs: [],
  },
  { stateMutability: 'payable', type: 'receive' },
] as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000011)
 */
export const sequencerFeeVaultAddress = {
  420: '0x4200000000000000000000000000000000000011',
} as const

/**
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000011)
 */
export const sequencerFeeVaultConfig = {
  address: sequencerFeeVaultAddress,
  abi: sequencerFeeVaultABI,
} as const

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// eslintIgnore
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Core
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link addressManagerABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdE1FCfB0851916CA5101820A69b13a4E276bd81F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xa6f73589243a6A7a9023b1Fa0651b1d89c177111)
 */
export function getAddressManager(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof addressManagerAddress
  }
) {
  return getContract({
    abi: addressManagerABI,
    address:
      addressManagerAddress[
        config.chainId as keyof typeof addressManagerAddress
      ],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link addressManagerABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdE1FCfB0851916CA5101820A69b13a4E276bd81F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xa6f73589243a6A7a9023b1Fa0651b1d89c177111)
 */
export function readAddressManager<
  TAbi extends readonly unknown[] = typeof addressManagerABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof addressManagerAddress
  }
) {
  return readContract({
    abi: addressManagerABI,
    address:
      addressManagerAddress[
        config.chainId as keyof typeof addressManagerAddress
      ],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link addressManagerABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdE1FCfB0851916CA5101820A69b13a4E276bd81F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xa6f73589243a6A7a9023b1Fa0651b1d89c177111)
 */
export function writeAddressManager<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof addressManagerAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof addressManagerABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof addressManagerAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<typeof addressManagerABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof addressManagerAddress
      })
) {
  return writeContract({
    abi: addressManagerABI,
    address:
      addressManagerAddress[
        config.chainId as keyof typeof addressManagerAddress
      ],
    ...config,
  } as unknown as WriteContractArgs<typeof addressManagerABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link addressManagerABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdE1FCfB0851916CA5101820A69b13a4E276bd81F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xa6f73589243a6A7a9023b1Fa0651b1d89c177111)
 */
export function prepareWriteAddressManager<
  TAbi extends readonly unknown[] = typeof addressManagerABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof addressManagerAddress }
) {
  return prepareWriteContract({
    abi: addressManagerABI,
    address:
      addressManagerAddress[
        config.chainId as keyof typeof addressManagerAddress
      ],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link addressManagerABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdE1FCfB0851916CA5101820A69b13a4E276bd81F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xa6f73589243a6A7a9023b1Fa0651b1d89c177111)
 */
export function watchAddressManagerEvent<
  TAbi extends readonly unknown[] = typeof addressManagerABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof addressManagerAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: addressManagerABI,
      address:
        addressManagerAddress[
          config.chainId as keyof typeof addressManagerAddress
        ],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link assetReceiverABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 */
export function getAssetReceiver(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof assetReceiverAddress
  }
) {
  return getContract({
    abi: assetReceiverABI,
    address:
      assetReceiverAddress[config.chainId as keyof typeof assetReceiverAddress],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link assetReceiverABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 */
export function readAssetReceiver<
  TAbi extends readonly unknown[] = typeof assetReceiverABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof assetReceiverAddress
  }
) {
  return readContract({
    abi: assetReceiverABI,
    address:
      assetReceiverAddress[config.chainId as keyof typeof assetReceiverAddress],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link assetReceiverABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 */
export function writeAssetReceiver<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof assetReceiverAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof assetReceiverABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof assetReceiverAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<typeof assetReceiverABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof assetReceiverAddress
      })
) {
  return writeContract({
    abi: assetReceiverABI,
    address:
      assetReceiverAddress[config.chainId as keyof typeof assetReceiverAddress],
    ...config,
  } as unknown as WriteContractArgs<typeof assetReceiverABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link assetReceiverABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 */
export function prepareWriteAssetReceiver<
  TAbi extends readonly unknown[] = typeof assetReceiverABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof assetReceiverAddress }
) {
  return prepareWriteContract({
    abi: assetReceiverABI,
    address:
      assetReceiverAddress[config.chainId as keyof typeof assetReceiverAddress],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link assetReceiverABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x15DdA60616Ffca20371ED1659dBB78E888f65556)
 */
export function watchAssetReceiverEvent<
  TAbi extends readonly unknown[] = typeof assetReceiverABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof assetReceiverAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: assetReceiverABI,
      address:
        assetReceiverAddress[
          config.chainId as keyof typeof assetReceiverAddress
        ],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link checkBalanceHighABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x7eC64a8a591bFf829ff6C8be76074D540ACb813F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x7eC64a8a591bFf829ff6C8be76074D540ACb813F)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x5d7103853f12109A7d27F118e54BbC654ad847E9)
 */
export function getCheckBalanceHigh(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof checkBalanceHighAddress
  }
) {
  return getContract({
    abi: checkBalanceHighABI,
    address:
      checkBalanceHighAddress[
        config.chainId as keyof typeof checkBalanceHighAddress
      ],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link checkBalanceHighABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x7eC64a8a591bFf829ff6C8be76074D540ACb813F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x7eC64a8a591bFf829ff6C8be76074D540ACb813F)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x5d7103853f12109A7d27F118e54BbC654ad847E9)
 */
export function readCheckBalanceHigh<
  TAbi extends readonly unknown[] = typeof checkBalanceHighABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof checkBalanceHighAddress
  }
) {
  return readContract({
    abi: checkBalanceHighABI,
    address:
      checkBalanceHighAddress[
        config.chainId as keyof typeof checkBalanceHighAddress
      ],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link checkBalanceHighABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x7eC64a8a591bFf829ff6C8be76074D540ACb813F)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x7eC64a8a591bFf829ff6C8be76074D540ACb813F)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x5d7103853f12109A7d27F118e54BbC654ad847E9)
 */
export function watchCheckBalanceHighEvent<
  TAbi extends readonly unknown[] = typeof checkBalanceHighABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof checkBalanceHighAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: checkBalanceHighABI,
      address:
        checkBalanceHighAddress[
          config.chainId as keyof typeof checkBalanceHighAddress
        ],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link checkBalanceLowABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x7Ce13D154FAEE5C8B3E6b19d4Add16f21d884474)
 */
export function getCheckBalanceLow(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof checkBalanceLowAddress
  }
) {
  return getContract({
    abi: checkBalanceLowABI,
    address:
      checkBalanceLowAddress[
        config.chainId as keyof typeof checkBalanceLowAddress
      ],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link checkBalanceLowABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x7Ce13D154FAEE5C8B3E6b19d4Add16f21d884474)
 */
export function readCheckBalanceLow<
  TAbi extends readonly unknown[] = typeof checkBalanceLowABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof checkBalanceLowAddress
  }
) {
  return readContract({
    abi: checkBalanceLowABI,
    address:
      checkBalanceLowAddress[
        config.chainId as keyof typeof checkBalanceLowAddress
      ],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link checkBalanceLowABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x381a4eFC2A2C914eA1889722bB4B44Fa6BD5b640)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x7Ce13D154FAEE5C8B3E6b19d4Add16f21d884474)
 */
export function watchCheckBalanceLowEvent<
  TAbi extends readonly unknown[] = typeof checkBalanceLowABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof checkBalanceLowAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: checkBalanceLowABI,
      address:
        checkBalanceLowAddress[
          config.chainId as keyof typeof checkBalanceLowAddress
        ],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link checkGelatoLowABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xF9c8a4Cb4021f57F9f6d69799cA9BefF64524862)
 */
export function getCheckGelatoLow(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof checkGelatoLowAddress
  }
) {
  return getContract({
    abi: checkGelatoLowABI,
    address:
      checkGelatoLowAddress[
        config.chainId as keyof typeof checkGelatoLowAddress
      ],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link checkGelatoLowABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xF9c8a4Cb4021f57F9f6d69799cA9BefF64524862)
 */
export function readCheckGelatoLow<
  TAbi extends readonly unknown[] = typeof checkGelatoLowABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof checkGelatoLowAddress
  }
) {
  return readContract({
    abi: checkGelatoLowABI,
    address:
      checkGelatoLowAddress[
        config.chainId as keyof typeof checkGelatoLowAddress
      ],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link checkGelatoLowABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4f7CFc43f6D262a085F3b946cAC69E7a8E39BBAa)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xF9c8a4Cb4021f57F9f6d69799cA9BefF64524862)
 */
export function watchCheckGelatoLowEvent<
  TAbi extends readonly unknown[] = typeof checkGelatoLowABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof checkGelatoLowAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: checkGelatoLowABI,
      address:
        checkGelatoLowAddress[
          config.chainId as keyof typeof checkGelatoLowAddress
        ],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link checkTrueABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5c741a38cb11424711231777D71689C458eE835D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5c741a38cb11424711231777D71689C458eE835D)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x47443D0C184e022F19BD1578F5bca6B8a9F58E32)
 */
export function getCheckTrue(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof checkTrueAddress
  }
) {
  return getContract({
    abi: checkTrueABI,
    address: checkTrueAddress[config.chainId as keyof typeof checkTrueAddress],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link checkTrueABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5c741a38cb11424711231777D71689C458eE835D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5c741a38cb11424711231777D71689C458eE835D)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x47443D0C184e022F19BD1578F5bca6B8a9F58E32)
 */
export function readCheckTrue<
  TAbi extends readonly unknown[] = typeof checkTrueABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof checkTrueAddress
  }
) {
  return readContract({
    abi: checkTrueABI,
    address: checkTrueAddress[config.chainId as keyof typeof checkTrueAddress],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link drippieABI}__.
 *
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
 */
export function getDrippie(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof drippieAddress
  }
) {
  return getContract({ abi: drippieABI, address: drippieAddress[1], ...config })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link drippieABI}__.
 *
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
 */
export function readDrippie<
  TAbi extends readonly unknown[] = typeof drippieABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof drippieAddress
  }
) {
  return readContract({
    abi: drippieABI,
    address: drippieAddress[1],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link drippieABI}__.
 *
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
 */
export function writeDrippie<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof drippieAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof drippieABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof drippieAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<typeof drippieABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof drippieAddress
      })
) {
  return writeContract({
    abi: drippieABI,
    address: drippieAddress[1],
    ...config,
  } as unknown as WriteContractArgs<typeof drippieABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link drippieABI}__.
 *
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
 */
export function prepareWriteDrippie<
  TAbi extends readonly unknown[] = typeof drippieABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof drippieAddress }
) {
  return prepareWriteContract({
    abi: drippieABI,
    address: drippieAddress[1],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link drippieABI}__.
 *
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
 */
export function watchDrippieEvent<
  TAbi extends readonly unknown[] = typeof drippieABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof drippieAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: drippieABI,
      address: drippieAddress[1],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link drippieGoerliABI}__.
 *
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
 */
export function getDrippieGoerli(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof drippieGoerliAddress
  }
) {
  return getContract({
    abi: drippieGoerliABI,
    address: drippieGoerliAddress[5],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link drippieGoerliABI}__.
 *
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
 */
export function readDrippieGoerli<
  TAbi extends readonly unknown[] = typeof drippieGoerliABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof drippieGoerliAddress
  }
) {
  return readContract({
    abi: drippieGoerliABI,
    address: drippieGoerliAddress[5],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link drippieGoerliABI}__.
 *
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
 */
export function writeDrippieGoerli<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof drippieGoerliAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof drippieGoerliABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof drippieGoerliAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<typeof drippieGoerliABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof drippieGoerliAddress
      })
) {
  return writeContract({
    abi: drippieGoerliABI,
    address: drippieGoerliAddress[5],
    ...config,
  } as unknown as WriteContractArgs<typeof drippieGoerliABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link drippieGoerliABI}__.
 *
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
 */
export function prepareWriteDrippieGoerli<
  TAbi extends readonly unknown[] = typeof drippieGoerliABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof drippieGoerliAddress }
) {
  return prepareWriteContract({
    abi: drippieGoerliABI,
    address: drippieGoerliAddress[5],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link drippieGoerliABI}__.
 *
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x44b3A2a040057eBafC601A78647e805fd58B1f50)
 */
export function watchDrippieGoerliEvent<
  TAbi extends readonly unknown[] = typeof drippieGoerliABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof drippieGoerliAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: drippieGoerliABI,
      address: drippieGoerliAddress[5],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link drippieOptimismGoerliABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x8D8d533C16D23847EB04EEB0925be8900Dd3af86)
 */
export function getDrippieOptimismGoerli(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof drippieOptimismGoerliAddress
  }
) {
  return getContract({
    abi: drippieOptimismGoerliABI,
    address: drippieOptimismGoerliAddress[420],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link drippieOptimismGoerliABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x8D8d533C16D23847EB04EEB0925be8900Dd3af86)
 */
export function readDrippieOptimismGoerli<
  TAbi extends readonly unknown[] = typeof drippieOptimismGoerliABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof drippieOptimismGoerliAddress
  }
) {
  return readContract({
    abi: drippieOptimismGoerliABI,
    address: drippieOptimismGoerliAddress[420],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link drippieOptimismGoerliABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x8D8d533C16D23847EB04EEB0925be8900Dd3af86)
 */
export function writeDrippieOptimismGoerli<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof drippieOptimismGoerliAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<
          typeof drippieOptimismGoerliABI,
          TFunctionName
        >,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof drippieOptimismGoerliAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<
          typeof drippieOptimismGoerliABI,
          TFunctionName
        >,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof drippieOptimismGoerliAddress
      })
) {
  return writeContract({
    abi: drippieOptimismGoerliABI,
    address: drippieOptimismGoerliAddress[420],
    ...config,
  } as unknown as WriteContractArgs<typeof drippieOptimismGoerliABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link drippieOptimismGoerliABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x8D8d533C16D23847EB04EEB0925be8900Dd3af86)
 */
export function prepareWriteDrippieOptimismGoerli<
  TAbi extends readonly unknown[] = typeof drippieOptimismGoerliABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof drippieOptimismGoerliAddress }
) {
  return prepareWriteContract({
    abi: drippieOptimismGoerliABI,
    address: drippieOptimismGoerliAddress[420],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link drippieOptimismGoerliABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x8D8d533C16D23847EB04EEB0925be8900Dd3af86)
 */
export function watchDrippieOptimismGoerliEvent<
  TAbi extends readonly unknown[] = typeof drippieOptimismGoerliABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof drippieOptimismGoerliAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: drippieOptimismGoerliABI,
      address: drippieOptimismGoerliAddress[420],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link l1CrossDomainMessengerABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5086d1eEF304eb5284A0f6720f79403b4e9bE294)
 */
export function getL1CrossDomainMessenger(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof l1CrossDomainMessengerAddress
  }
) {
  return getContract({
    abi: l1CrossDomainMessengerABI,
    address:
      l1CrossDomainMessengerAddress[
        config.chainId as keyof typeof l1CrossDomainMessengerAddress
      ],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link l1CrossDomainMessengerABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5086d1eEF304eb5284A0f6720f79403b4e9bE294)
 */
export function readL1CrossDomainMessenger<
  TAbi extends readonly unknown[] = typeof l1CrossDomainMessengerABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof l1CrossDomainMessengerAddress
  }
) {
  return readContract({
    abi: l1CrossDomainMessengerABI,
    address:
      l1CrossDomainMessengerAddress[
        config.chainId as keyof typeof l1CrossDomainMessengerAddress
      ],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link l1CrossDomainMessengerABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5086d1eEF304eb5284A0f6720f79403b4e9bE294)
 */
export function writeL1CrossDomainMessenger<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof l1CrossDomainMessengerAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<
          typeof l1CrossDomainMessengerABI,
          TFunctionName
        >,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l1CrossDomainMessengerAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<
          typeof l1CrossDomainMessengerABI,
          TFunctionName
        >,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l1CrossDomainMessengerAddress
      })
) {
  return writeContract({
    abi: l1CrossDomainMessengerABI,
    address:
      l1CrossDomainMessengerAddress[
        config.chainId as keyof typeof l1CrossDomainMessengerAddress
      ],
    ...config,
  } as unknown as WriteContractArgs<typeof l1CrossDomainMessengerABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link l1CrossDomainMessengerABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5086d1eEF304eb5284A0f6720f79403b4e9bE294)
 */
export function prepareWriteL1CrossDomainMessenger<
  TAbi extends readonly unknown[] = typeof l1CrossDomainMessengerABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l1CrossDomainMessengerAddress }
) {
  return prepareWriteContract({
    abi: l1CrossDomainMessengerABI,
    address:
      l1CrossDomainMessengerAddress[
        config.chainId as keyof typeof l1CrossDomainMessengerAddress
      ],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link l1CrossDomainMessengerABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x25ace71c97B33Cc4729CF772ae268934F7ab5fA1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5086d1eEF304eb5284A0f6720f79403b4e9bE294)
 */
export function watchL1CrossDomainMessengerEvent<
  TAbi extends readonly unknown[] = typeof l1CrossDomainMessengerABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l1CrossDomainMessengerAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: l1CrossDomainMessengerABI,
      address:
        l1CrossDomainMessengerAddress[
          config.chainId as keyof typeof l1CrossDomainMessengerAddress
        ],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link l1Erc721BridgeABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5a7749f83b81B301cAb5f48EB8516B986DAef23D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x8DD330DdE8D9898d43b4dc840Da27A07dF91b3c9)
 */
export function getL1Erc721Bridge(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof l1Erc721BridgeAddress
  }
) {
  return getContract({
    abi: l1Erc721BridgeABI,
    address:
      l1Erc721BridgeAddress[
        config.chainId as keyof typeof l1Erc721BridgeAddress
      ],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link l1Erc721BridgeABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5a7749f83b81B301cAb5f48EB8516B986DAef23D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x8DD330DdE8D9898d43b4dc840Da27A07dF91b3c9)
 */
export function readL1Erc721Bridge<
  TAbi extends readonly unknown[] = typeof l1Erc721BridgeABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof l1Erc721BridgeAddress
  }
) {
  return readContract({
    abi: l1Erc721BridgeABI,
    address:
      l1Erc721BridgeAddress[
        config.chainId as keyof typeof l1Erc721BridgeAddress
      ],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link l1Erc721BridgeABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5a7749f83b81B301cAb5f48EB8516B986DAef23D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x8DD330DdE8D9898d43b4dc840Da27A07dF91b3c9)
 */
export function writeL1Erc721Bridge<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof l1Erc721BridgeAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof l1Erc721BridgeABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l1Erc721BridgeAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<typeof l1Erc721BridgeABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l1Erc721BridgeAddress
      })
) {
  return writeContract({
    abi: l1Erc721BridgeABI,
    address:
      l1Erc721BridgeAddress[
        config.chainId as keyof typeof l1Erc721BridgeAddress
      ],
    ...config,
  } as unknown as WriteContractArgs<typeof l1Erc721BridgeABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link l1Erc721BridgeABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5a7749f83b81B301cAb5f48EB8516B986DAef23D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x8DD330DdE8D9898d43b4dc840Da27A07dF91b3c9)
 */
export function prepareWriteL1Erc721Bridge<
  TAbi extends readonly unknown[] = typeof l1Erc721BridgeABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l1Erc721BridgeAddress }
) {
  return prepareWriteContract({
    abi: l1Erc721BridgeABI,
    address:
      l1Erc721BridgeAddress[
        config.chainId as keyof typeof l1Erc721BridgeAddress
      ],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link l1Erc721BridgeABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x5a7749f83b81B301cAb5f48EB8516B986DAef23D)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x8DD330DdE8D9898d43b4dc840Da27A07dF91b3c9)
 */
export function watchL1Erc721BridgeEvent<
  TAbi extends readonly unknown[] = typeof l1Erc721BridgeABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l1Erc721BridgeAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: l1Erc721BridgeABI,
      address:
        l1Erc721BridgeAddress[
          config.chainId as keyof typeof l1Erc721BridgeAddress
        ],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link l1StandardBridgeABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x636Af16bf2f682dD3109e60102b8E1A089FedAa8)
 */
export function getL1StandardBridge(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof l1StandardBridgeAddress
  }
) {
  return getContract({
    abi: l1StandardBridgeABI,
    address:
      l1StandardBridgeAddress[
        config.chainId as keyof typeof l1StandardBridgeAddress
      ],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link l1StandardBridgeABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x636Af16bf2f682dD3109e60102b8E1A089FedAa8)
 */
export function readL1StandardBridge<
  TAbi extends readonly unknown[] = typeof l1StandardBridgeABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof l1StandardBridgeAddress
  }
) {
  return readContract({
    abi: l1StandardBridgeABI,
    address:
      l1StandardBridgeAddress[
        config.chainId as keyof typeof l1StandardBridgeAddress
      ],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link l1StandardBridgeABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x636Af16bf2f682dD3109e60102b8E1A089FedAa8)
 */
export function writeL1StandardBridge<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof l1StandardBridgeAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof l1StandardBridgeABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l1StandardBridgeAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<typeof l1StandardBridgeABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l1StandardBridgeAddress
      })
) {
  return writeContract({
    abi: l1StandardBridgeABI,
    address:
      l1StandardBridgeAddress[
        config.chainId as keyof typeof l1StandardBridgeAddress
      ],
    ...config,
  } as unknown as WriteContractArgs<typeof l1StandardBridgeABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link l1StandardBridgeABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x636Af16bf2f682dD3109e60102b8E1A089FedAa8)
 */
export function prepareWriteL1StandardBridge<
  TAbi extends readonly unknown[] = typeof l1StandardBridgeABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l1StandardBridgeAddress }
) {
  return prepareWriteContract({
    abi: l1StandardBridgeABI,
    address:
      l1StandardBridgeAddress[
        config.chainId as keyof typeof l1StandardBridgeAddress
      ],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link l1StandardBridgeABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x636Af16bf2f682dD3109e60102b8E1A089FedAa8)
 */
export function watchL1StandardBridgeEvent<
  TAbi extends readonly unknown[] = typeof l1StandardBridgeABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l1StandardBridgeAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: l1StandardBridgeABI,
      address:
        l1StandardBridgeAddress[
          config.chainId as keyof typeof l1StandardBridgeAddress
        ],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link l2OutputOracleABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdfe97868233d1aa22e815a266982f2cf17685a27)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0)
 */
export function getL2OutputOracle(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof l2OutputOracleAddress
  }
) {
  return getContract({
    abi: l2OutputOracleABI,
    address:
      l2OutputOracleAddress[
        config.chainId as keyof typeof l2OutputOracleAddress
      ],
    ...config,
  })
}
9219 9220

/**
Will Cory's avatar
Will Cory committed
9221 9222 9223 9224
 * Wraps __{@link readContract}__ with `abi` set to __{@link l2OutputOracleABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdfe97868233d1aa22e815a266982f2cf17685a27)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0)
9225
 */
Will Cory's avatar
Will Cory committed
9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242
export function readL2OutputOracle<
  TAbi extends readonly unknown[] = typeof l2OutputOracleABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof l2OutputOracleAddress
  }
) {
  return readContract({
    abi: l2OutputOracleABI,
    address:
      l2OutputOracleAddress[
        config.chainId as keyof typeof l2OutputOracleAddress
      ],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}
9243 9244

/**
Will Cory's avatar
Will Cory committed
9245 9246 9247 9248
 * Wraps __{@link writeContract}__ with `abi` set to __{@link l2OutputOracleABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdfe97868233d1aa22e815a266982f2cf17685a27)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0)
9249
 */
Will Cory's avatar
Will Cory committed
9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283
export function writeL2OutputOracle<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof l2OutputOracleAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof l2OutputOracleABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l2OutputOracleAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<typeof l2OutputOracleABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l2OutputOracleAddress
      })
) {
  return writeContract({
    abi: l2OutputOracleABI,
    address:
      l2OutputOracleAddress[
        config.chainId as keyof typeof l2OutputOracleAddress
      ],
    ...config,
  } as unknown as WriteContractArgs<typeof l2OutputOracleABI, TFunctionName>)
}
9284

Will Cory's avatar
Will Cory committed
9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308
/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link l2OutputOracleABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdfe97868233d1aa22e815a266982f2cf17685a27)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0)
 */
export function prepareWriteL2OutputOracle<
  TAbi extends readonly unknown[] = typeof l2OutputOracleABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l2OutputOracleAddress }
) {
  return prepareWriteContract({
    abi: l2OutputOracleABI,
    address:
      l2OutputOracleAddress[
        config.chainId as keyof typeof l2OutputOracleAddress
      ],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}
9309

Will Cory's avatar
Will Cory committed
9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337
/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link l2OutputOracleABI}__.
 *
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xdfe97868233d1aa22e815a266982f2cf17685a27)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xE6Dfba0953616Bacab0c9A8ecb3a9BBa77FC15c0)
 */
export function watchL2OutputOracleEvent<
  TAbi extends readonly unknown[] = typeof l2OutputOracleABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l2OutputOracleAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: l2OutputOracleABI,
      address:
        l2OutputOracleAddress[
          config.chainId as keyof typeof l2OutputOracleAddress
        ],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}
9338 9339

/**
Will Cory's avatar
Will Cory committed
9340
 * Wraps __{@link getContract}__ with `abi` set to __{@link optimismMintableErc20FactoryABI}__.
9341
 *
Will Cory's avatar
Will Cory committed
9342 9343 9344
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000012)
9345
 */
Will Cory's avatar
Will Cory committed
9346
export function getOptimismMintableErc20Factory(
9347
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
9348
    chainId?: keyof typeof optimismMintableErc20FactoryAddress
9349 9350 9351
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
9352
    abi: optimismMintableErc20FactoryABI,
9353
    address:
Will Cory's avatar
Will Cory committed
9354 9355
      optimismMintableErc20FactoryAddress[
        config.chainId as keyof typeof optimismMintableErc20FactoryAddress
9356 9357 9358 9359 9360 9361
      ],
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
9362
 * Wraps __{@link readContract}__ with `abi` set to __{@link optimismMintableErc20FactoryABI}__.
9363
 *
Will Cory's avatar
Will Cory committed
9364 9365 9366
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000012)
9367
 */
Will Cory's avatar
Will Cory committed
9368 9369
export function readOptimismMintableErc20Factory<
  TAbi extends readonly unknown[] = typeof optimismMintableErc20FactoryABI,
9370 9371 9372
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
9373
    chainId?: keyof typeof optimismMintableErc20FactoryAddress
9374 9375 9376
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
9377
    abi: optimismMintableErc20FactoryABI,
9378
    address:
Will Cory's avatar
Will Cory committed
9379 9380
      optimismMintableErc20FactoryAddress[
        config.chainId as keyof typeof optimismMintableErc20FactoryAddress
9381 9382 9383 9384 9385 9386
      ],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
9387
 * Wraps __{@link writeContract}__ with `abi` set to __{@link optimismMintableErc20FactoryABI}__.
9388
 *
Will Cory's avatar
Will Cory committed
9389 9390 9391
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000012)
9392
 */
Will Cory's avatar
Will Cory committed
9393
export function writeOptimismMintableErc20Factory<
9394 9395
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
9396
  TChainId extends number = keyof typeof optimismMintableErc20FactoryAddress
9397 9398 9399
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
9400 9401 9402 9403
        WriteContractPreparedArgs<
          typeof optimismMintableErc20FactoryABI,
          TFunctionName
        >,
9404 9405 9406 9407 9408
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
9409
          : keyof typeof optimismMintableErc20FactoryAddress
9410 9411
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
9412 9413 9414 9415
        WriteContractUnpreparedArgs<
          typeof optimismMintableErc20FactoryABI,
          TFunctionName
        >,
9416 9417 9418 9419 9420
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
9421
          : keyof typeof optimismMintableErc20FactoryAddress
9422 9423 9424
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
9425
    abi: optimismMintableErc20FactoryABI,
9426
    address:
Will Cory's avatar
Will Cory committed
9427 9428
      optimismMintableErc20FactoryAddress[
        config.chainId as keyof typeof optimismMintableErc20FactoryAddress
9429 9430
      ],
    ...config,
Will Cory's avatar
Will Cory committed
9431
  } as unknown as WriteContractArgs<typeof optimismMintableErc20FactoryABI, TFunctionName>)
9432 9433 9434
}

/**
Will Cory's avatar
Will Cory committed
9435
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link optimismMintableErc20FactoryABI}__.
9436
 *
Will Cory's avatar
Will Cory committed
9437 9438 9439
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000012)
9440
 */
Will Cory's avatar
Will Cory committed
9441 9442
export function prepareWriteOptimismMintableErc20Factory<
  TAbi extends readonly unknown[] = typeof optimismMintableErc20FactoryABI,
9443 9444 9445 9446 9447
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
9448
  > & { chainId?: keyof typeof optimismMintableErc20FactoryAddress }
9449 9450
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
9451
    abi: optimismMintableErc20FactoryABI,
9452
    address:
Will Cory's avatar
Will Cory committed
9453 9454
      optimismMintableErc20FactoryAddress[
        config.chainId as keyof typeof optimismMintableErc20FactoryAddress
9455 9456 9457 9458 9459 9460
      ],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
9461
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link optimismMintableErc20FactoryABI}__.
9462
 *
Will Cory's avatar
Will Cory committed
9463 9464 9465
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000012)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000012)
9466
 */
Will Cory's avatar
Will Cory committed
9467 9468
export function watchOptimismMintableErc20FactoryEvent<
  TAbi extends readonly unknown[] = typeof optimismMintableErc20FactoryABI,
9469 9470 9471 9472 9473
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
9474
  > & { chainId?: keyof typeof optimismMintableErc20FactoryAddress },
9475 9476 9477 9478
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
9479
      abi: optimismMintableErc20FactoryABI,
9480
      address:
Will Cory's avatar
Will Cory committed
9481 9482
        optimismMintableErc20FactoryAddress[
          config.chainId as keyof typeof optimismMintableErc20FactoryAddress
9483 9484 9485 9486 9487 9488 9489 9490
        ],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
Will Cory's avatar
Will Cory committed
9491
 * Wraps __{@link getContract}__ with `abi` set to __{@link optimismPortalABI}__.
9492
 *
Will Cory's avatar
Will Cory committed
9493 9494
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xbEb5Fc579115071764c7423A4f12eDde41f106Ed)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383)
9495
 */
Will Cory's avatar
Will Cory committed
9496
export function getOptimismPortal(
9497
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
9498
    chainId?: keyof typeof optimismPortalAddress
9499 9500 9501
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
9502
    abi: optimismPortalABI,
9503
    address:
Will Cory's avatar
Will Cory committed
9504 9505
      optimismPortalAddress[
        config.chainId as keyof typeof optimismPortalAddress
9506 9507 9508 9509 9510 9511
      ],
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
9512
 * Wraps __{@link readContract}__ with `abi` set to __{@link optimismPortalABI}__.
9513
 *
Will Cory's avatar
Will Cory committed
9514 9515
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xbEb5Fc579115071764c7423A4f12eDde41f106Ed)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383)
9516
 */
Will Cory's avatar
Will Cory committed
9517 9518
export function readOptimismPortal<
  TAbi extends readonly unknown[] = typeof optimismPortalABI,
9519 9520 9521
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
9522
    chainId?: keyof typeof optimismPortalAddress
9523 9524 9525
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
9526
    abi: optimismPortalABI,
9527
    address:
Will Cory's avatar
Will Cory committed
9528 9529
      optimismPortalAddress[
        config.chainId as keyof typeof optimismPortalAddress
9530 9531 9532 9533 9534 9535
      ],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
9536
 * Wraps __{@link writeContract}__ with `abi` set to __{@link optimismPortalABI}__.
9537
 *
Will Cory's avatar
Will Cory committed
9538 9539
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xbEb5Fc579115071764c7423A4f12eDde41f106Ed)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383)
9540
 */
Will Cory's avatar
Will Cory committed
9541
export function writeOptimismPortal<
9542 9543
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
9544
  TChainId extends number = keyof typeof optimismPortalAddress
9545 9546 9547
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
9548
        WriteContractPreparedArgs<typeof optimismPortalABI, TFunctionName>,
9549 9550 9551 9552 9553
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
9554
          : keyof typeof optimismPortalAddress
9555 9556
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
9557
        WriteContractUnpreparedArgs<typeof optimismPortalABI, TFunctionName>,
9558 9559 9560 9561 9562
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
9563
          : keyof typeof optimismPortalAddress
9564 9565 9566
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
9567
    abi: optimismPortalABI,
9568
    address:
Will Cory's avatar
Will Cory committed
9569 9570
      optimismPortalAddress[
        config.chainId as keyof typeof optimismPortalAddress
9571 9572
      ],
    ...config,
Will Cory's avatar
Will Cory committed
9573
  } as unknown as WriteContractArgs<typeof optimismPortalABI, TFunctionName>)
9574 9575 9576
}

/**
Will Cory's avatar
Will Cory committed
9577
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link optimismPortalABI}__.
9578
 *
Will Cory's avatar
Will Cory committed
9579 9580
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xbEb5Fc579115071764c7423A4f12eDde41f106Ed)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383)
9581
 */
Will Cory's avatar
Will Cory committed
9582 9583
export function prepareWriteOptimismPortal<
  TAbi extends readonly unknown[] = typeof optimismPortalABI,
9584 9585 9586 9587 9588
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
9589
  > & { chainId?: keyof typeof optimismPortalAddress }
9590 9591
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
9592
    abi: optimismPortalABI,
9593
    address:
Will Cory's avatar
Will Cory committed
9594 9595
      optimismPortalAddress[
        config.chainId as keyof typeof optimismPortalAddress
9596 9597 9598 9599 9600 9601
      ],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
9602
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link optimismPortalABI}__.
9603
 *
Will Cory's avatar
Will Cory committed
9604 9605
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xbEb5Fc579115071764c7423A4f12eDde41f106Ed)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x5b47E1A08Ea6d985D6649300584e6722Ec4B1383)
9606
 */
Will Cory's avatar
Will Cory committed
9607 9608
export function watchOptimismPortalEvent<
  TAbi extends readonly unknown[] = typeof optimismPortalABI,
9609 9610 9611 9612 9613
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
9614
  > & { chainId?: keyof typeof optimismPortalAddress },
9615 9616 9617 9618
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
9619
      abi: optimismPortalABI,
9620
      address:
Will Cory's avatar
Will Cory committed
9621 9622
        optimismPortalAddress[
          config.chainId as keyof typeof optimismPortalAddress
9623 9624 9625 9626 9627 9628 9629 9630
        ],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
Will Cory's avatar
Will Cory committed
9631
 * Wraps __{@link getContract}__ with `abi` set to __{@link portalSenderABI}__.
9632
 *
Will Cory's avatar
Will Cory committed
9633 9634
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0A893d9576b9cFD9EF78595963dc973238E78210)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xe7FACd39531ee3C313330E93B4d7a8B8A3c84Aa4)
9635
 */
Will Cory's avatar
Will Cory committed
9636
export function getPortalSender(
9637
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
9638
    chainId?: keyof typeof portalSenderAddress
9639 9640 9641
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
9642
    abi: portalSenderABI,
9643
    address:
Will Cory's avatar
Will Cory committed
9644
      portalSenderAddress[config.chainId as keyof typeof portalSenderAddress],
9645 9646 9647 9648 9649
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
9650
 * Wraps __{@link readContract}__ with `abi` set to __{@link portalSenderABI}__.
9651
 *
Will Cory's avatar
Will Cory committed
9652 9653
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0A893d9576b9cFD9EF78595963dc973238E78210)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xe7FACd39531ee3C313330E93B4d7a8B8A3c84Aa4)
9654
 */
Will Cory's avatar
Will Cory committed
9655 9656
export function readPortalSender<
  TAbi extends readonly unknown[] = typeof portalSenderABI,
9657 9658 9659
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
9660
    chainId?: keyof typeof portalSenderAddress
9661 9662 9663
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
9664
    abi: portalSenderABI,
9665
    address:
Will Cory's avatar
Will Cory committed
9666
      portalSenderAddress[config.chainId as keyof typeof portalSenderAddress],
9667 9668 9669 9670 9671
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
9672
 * Wraps __{@link writeContract}__ with `abi` set to __{@link portalSenderABI}__.
9673
 *
Will Cory's avatar
Will Cory committed
9674 9675
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0A893d9576b9cFD9EF78595963dc973238E78210)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xe7FACd39531ee3C313330E93B4d7a8B8A3c84Aa4)
9676
 */
Will Cory's avatar
Will Cory committed
9677
export function writePortalSender<
9678 9679
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
9680
  TChainId extends number = keyof typeof portalSenderAddress
9681 9682 9683
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
9684
        WriteContractPreparedArgs<typeof portalSenderABI, TFunctionName>,
9685 9686 9687 9688 9689
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
9690
          : keyof typeof portalSenderAddress
9691 9692
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
9693
        WriteContractUnpreparedArgs<typeof portalSenderABI, TFunctionName>,
9694 9695 9696 9697 9698
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
9699
          : keyof typeof portalSenderAddress
9700 9701 9702
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
9703
    abi: portalSenderABI,
9704
    address:
Will Cory's avatar
Will Cory committed
9705
      portalSenderAddress[config.chainId as keyof typeof portalSenderAddress],
9706
    ...config,
Will Cory's avatar
Will Cory committed
9707
  } as unknown as WriteContractArgs<typeof portalSenderABI, TFunctionName>)
9708 9709 9710
}

/**
Will Cory's avatar
Will Cory committed
9711
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link portalSenderABI}__.
9712
 *
Will Cory's avatar
Will Cory committed
9713 9714
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x0A893d9576b9cFD9EF78595963dc973238E78210)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xe7FACd39531ee3C313330E93B4d7a8B8A3c84Aa4)
9715
 */
Will Cory's avatar
Will Cory committed
9716 9717
export function prepareWritePortalSender<
  TAbi extends readonly unknown[] = typeof portalSenderABI,
9718 9719 9720 9721 9722
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
9723
  > & { chainId?: keyof typeof portalSenderAddress }
9724 9725
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
9726
    abi: portalSenderABI,
9727
    address:
Will Cory's avatar
Will Cory committed
9728
      portalSenderAddress[config.chainId as keyof typeof portalSenderAddress],
9729 9730 9731 9732 9733
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
9734
 * Wraps __{@link getContract}__ with `abi` set to __{@link proxyAdminABI}__.
9735
 *
Will Cory's avatar
Will Cory committed
9736 9737
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000018)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000018)
9738
 */
Will Cory's avatar
Will Cory committed
9739
export function getProxyAdmin(
9740
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
9741
    chainId?: keyof typeof proxyAdminAddress
9742 9743 9744
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
9745
    abi: proxyAdminABI,
9746
    address:
Will Cory's avatar
Will Cory committed
9747
      proxyAdminAddress[config.chainId as keyof typeof proxyAdminAddress],
9748 9749 9750 9751 9752
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
9753
 * Wraps __{@link readContract}__ with `abi` set to __{@link proxyAdminABI}__.
9754
 *
Will Cory's avatar
Will Cory committed
9755 9756
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000018)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000018)
9757
 */
Will Cory's avatar
Will Cory committed
9758 9759
export function readProxyAdmin<
  TAbi extends readonly unknown[] = typeof proxyAdminABI,
9760 9761 9762
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
9763
    chainId?: keyof typeof proxyAdminAddress
9764 9765 9766
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
9767
    abi: proxyAdminABI,
9768
    address:
Will Cory's avatar
Will Cory committed
9769
      proxyAdminAddress[config.chainId as keyof typeof proxyAdminAddress],
9770 9771 9772 9773 9774
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
9775
 * Wraps __{@link writeContract}__ with `abi` set to __{@link proxyAdminABI}__.
9776
 *
Will Cory's avatar
Will Cory committed
9777 9778
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000018)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000018)
9779
 */
Will Cory's avatar
Will Cory committed
9780
export function writeProxyAdmin<
9781 9782
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
9783
  TChainId extends number = keyof typeof proxyAdminAddress
9784 9785 9786
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
9787
        WriteContractPreparedArgs<typeof proxyAdminABI, TFunctionName>,
9788 9789 9790 9791 9792
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
9793
          : keyof typeof proxyAdminAddress
9794 9795
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
9796
        WriteContractUnpreparedArgs<typeof proxyAdminABI, TFunctionName>,
9797 9798 9799 9800 9801
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
9802
          : keyof typeof proxyAdminAddress
9803 9804 9805
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
9806
    abi: proxyAdminABI,
9807
    address:
Will Cory's avatar
Will Cory committed
9808
      proxyAdminAddress[config.chainId as keyof typeof proxyAdminAddress],
9809
    ...config,
Will Cory's avatar
Will Cory committed
9810
  } as unknown as WriteContractArgs<typeof proxyAdminABI, TFunctionName>)
9811 9812 9813
}

/**
Will Cory's avatar
Will Cory committed
9814
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link proxyAdminABI}__.
9815
 *
Will Cory's avatar
Will Cory committed
9816 9817
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000018)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000018)
9818
 */
Will Cory's avatar
Will Cory committed
9819 9820
export function prepareWriteProxyAdmin<
  TAbi extends readonly unknown[] = typeof proxyAdminABI,
9821 9822 9823 9824 9825
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
9826
  > & { chainId?: keyof typeof proxyAdminAddress }
9827 9828
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
9829
    abi: proxyAdminABI,
9830
    address:
Will Cory's avatar
Will Cory committed
9831
      proxyAdminAddress[config.chainId as keyof typeof proxyAdminAddress],
9832 9833 9834 9835 9836
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
9837
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link proxyAdminABI}__.
9838
 *
Will Cory's avatar
Will Cory committed
9839 9840
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x4200000000000000000000000000000000000018)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x4200000000000000000000000000000000000018)
9841
 */
Will Cory's avatar
Will Cory committed
9842 9843
export function watchProxyAdminEvent<
  TAbi extends readonly unknown[] = typeof proxyAdminABI,
9844 9845 9846 9847 9848
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
9849
  > & { chainId?: keyof typeof proxyAdminAddress },
9850 9851 9852 9853
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
9854
      abi: proxyAdminABI,
9855
      address:
Will Cory's avatar
Will Cory committed
9856
        proxyAdminAddress[config.chainId as keyof typeof proxyAdminAddress],
9857 9858 9859 9860 9861 9862 9863
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
Will Cory's avatar
Will Cory committed
9864
 * Wraps __{@link getContract}__ with `abi` set to __{@link systemConfigABI}__.
9865
 *
Will Cory's avatar
Will Cory committed
9866 9867
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x229047fed2591dbec1eF1118d64F7aF3dB9EB290)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xAe851f927Ee40dE99aaBb7461C00f9622ab91d60)
9868
 */
Will Cory's avatar
Will Cory committed
9869
export function getSystemConfig(
9870
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
9871
    chainId?: keyof typeof systemConfigAddress
9872 9873 9874
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
9875
    abi: systemConfigABI,
9876
    address:
Will Cory's avatar
Will Cory committed
9877
      systemConfigAddress[config.chainId as keyof typeof systemConfigAddress],
9878 9879 9880 9881 9882
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
9883
 * Wraps __{@link readContract}__ with `abi` set to __{@link systemConfigABI}__.
9884
 *
Will Cory's avatar
Will Cory committed
9885 9886
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x229047fed2591dbec1eF1118d64F7aF3dB9EB290)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xAe851f927Ee40dE99aaBb7461C00f9622ab91d60)
9887
 */
Will Cory's avatar
Will Cory committed
9888 9889
export function readSystemConfig<
  TAbi extends readonly unknown[] = typeof systemConfigABI,
9890 9891 9892
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
9893
    chainId?: keyof typeof systemConfigAddress
9894 9895 9896
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
9897
    abi: systemConfigABI,
9898
    address:
Will Cory's avatar
Will Cory committed
9899
      systemConfigAddress[config.chainId as keyof typeof systemConfigAddress],
9900 9901 9902 9903 9904
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
9905
 * Wraps __{@link writeContract}__ with `abi` set to __{@link systemConfigABI}__.
9906
 *
Will Cory's avatar
Will Cory committed
9907 9908
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x229047fed2591dbec1eF1118d64F7aF3dB9EB290)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xAe851f927Ee40dE99aaBb7461C00f9622ab91d60)
9909
 */
Will Cory's avatar
Will Cory committed
9910
export function writeSystemConfig<
9911 9912
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
9913
  TChainId extends number = keyof typeof systemConfigAddress
9914 9915 9916
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
9917
        WriteContractPreparedArgs<typeof systemConfigABI, TFunctionName>,
9918 9919 9920 9921 9922
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
9923
          : keyof typeof systemConfigAddress
9924 9925
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
9926
        WriteContractUnpreparedArgs<typeof systemConfigABI, TFunctionName>,
9927 9928 9929 9930 9931
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
9932
          : keyof typeof systemConfigAddress
9933 9934 9935
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
9936
    abi: systemConfigABI,
9937
    address:
Will Cory's avatar
Will Cory committed
9938
      systemConfigAddress[config.chainId as keyof typeof systemConfigAddress],
9939
    ...config,
Will Cory's avatar
Will Cory committed
9940
  } as unknown as WriteContractArgs<typeof systemConfigABI, TFunctionName>)
9941 9942 9943
}

/**
Will Cory's avatar
Will Cory committed
9944
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link systemConfigABI}__.
9945
 *
Will Cory's avatar
Will Cory committed
9946 9947
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x229047fed2591dbec1eF1118d64F7aF3dB9EB290)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xAe851f927Ee40dE99aaBb7461C00f9622ab91d60)
9948
 */
Will Cory's avatar
Will Cory committed
9949 9950
export function prepareWriteSystemConfig<
  TAbi extends readonly unknown[] = typeof systemConfigABI,
9951 9952 9953 9954 9955
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
9956
  > & { chainId?: keyof typeof systemConfigAddress }
9957 9958
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
9959
    abi: systemConfigABI,
9960
    address:
Will Cory's avatar
Will Cory committed
9961
      systemConfigAddress[config.chainId as keyof typeof systemConfigAddress],
9962 9963 9964 9965 9966
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
9967
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link systemConfigABI}__.
9968
 *
Will Cory's avatar
Will Cory committed
9969 9970
 * - [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x229047fed2591dbec1eF1118d64F7aF3dB9EB290)
 * - [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0xAe851f927Ee40dE99aaBb7461C00f9622ab91d60)
9971
 */
Will Cory's avatar
Will Cory committed
9972 9973
export function watchSystemConfigEvent<
  TAbi extends readonly unknown[] = typeof systemConfigABI,
9974 9975 9976 9977 9978
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
9979
  > & { chainId?: keyof typeof systemConfigAddress },
9980 9981 9982 9983
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
9984
      abi: systemConfigABI,
9985
      address:
Will Cory's avatar
Will Cory committed
9986
        systemConfigAddress[config.chainId as keyof typeof systemConfigAddress],
9987 9988 9989 9990 9991 9992 9993
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
Will Cory's avatar
Will Cory committed
9994
 * Wraps __{@link getContract}__ with `abi` set to __{@link systemDictatorABI}__.
9995
 *
Will Cory's avatar
Will Cory committed
9996
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xB4453CEb33d2e67FA244A24acf2E50CEF31F53cB)
9997
 */
Will Cory's avatar
Will Cory committed
9998
export function getSystemDictator(
9999
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10000
    chainId?: keyof typeof systemDictatorAddress
10001 10002 10003
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
10004 10005
    abi: systemDictatorABI,
    address: systemDictatorAddress[1],
10006 10007 10008 10009 10010
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
10011
 * Wraps __{@link readContract}__ with `abi` set to __{@link systemDictatorABI}__.
10012
 *
Will Cory's avatar
Will Cory committed
10013
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xB4453CEb33d2e67FA244A24acf2E50CEF31F53cB)
10014
 */
Will Cory's avatar
Will Cory committed
10015 10016
export function readSystemDictator<
  TAbi extends readonly unknown[] = typeof systemDictatorABI,
10017 10018 10019
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10020
    chainId?: keyof typeof systemDictatorAddress
10021 10022 10023
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
10024 10025
    abi: systemDictatorABI,
    address: systemDictatorAddress[1],
10026 10027 10028 10029 10030
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10031
 * Wraps __{@link writeContract}__ with `abi` set to __{@link systemDictatorABI}__.
10032
 *
Will Cory's avatar
Will Cory committed
10033
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xB4453CEb33d2e67FA244A24acf2E50CEF31F53cB)
10034
 */
Will Cory's avatar
Will Cory committed
10035
export function writeSystemDictator<
10036 10037
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
10038
  TChainId extends number = keyof typeof systemDictatorAddress
10039 10040 10041
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
10042
        WriteContractPreparedArgs<typeof systemDictatorABI, TFunctionName>,
10043 10044 10045 10046 10047
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10048
          : keyof typeof systemDictatorAddress
10049 10050
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
10051
        WriteContractUnpreparedArgs<typeof systemDictatorABI, TFunctionName>,
10052 10053 10054 10055 10056
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10057
          : keyof typeof systemDictatorAddress
10058 10059 10060
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
10061 10062
    abi: systemDictatorABI,
    address: systemDictatorAddress[1],
10063
    ...config,
Will Cory's avatar
Will Cory committed
10064
  } as unknown as WriteContractArgs<typeof systemDictatorABI, TFunctionName>)
10065 10066 10067
}

/**
Will Cory's avatar
Will Cory committed
10068
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link systemDictatorABI}__.
10069
 *
Will Cory's avatar
Will Cory committed
10070
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xB4453CEb33d2e67FA244A24acf2E50CEF31F53cB)
10071
 */
Will Cory's avatar
Will Cory committed
10072 10073
export function prepareWriteSystemDictator<
  TAbi extends readonly unknown[] = typeof systemDictatorABI,
10074 10075 10076 10077 10078
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10079
  > & { chainId?: keyof typeof systemDictatorAddress }
10080 10081
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
10082 10083
    abi: systemDictatorABI,
    address: systemDictatorAddress[1],
10084 10085 10086 10087 10088
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10089
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link systemDictatorABI}__.
10090
 *
Will Cory's avatar
Will Cory committed
10091
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0xB4453CEb33d2e67FA244A24acf2E50CEF31F53cB)
10092
 */
Will Cory's avatar
Will Cory committed
10093 10094
export function watchSystemDictatorEvent<
  TAbi extends readonly unknown[] = typeof systemDictatorABI,
10095 10096 10097 10098 10099
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10100
  > & { chainId?: keyof typeof systemDictatorAddress },
10101 10102 10103 10104
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
10105 10106
      abi: systemDictatorABI,
      address: systemDictatorAddress[1],
10107 10108 10109 10110 10111 10112 10113
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
Will Cory's avatar
Will Cory committed
10114
 * Wraps __{@link getContract}__ with `abi` set to __{@link systemDictatorGoerliABI}__.
10115
 *
Will Cory's avatar
Will Cory committed
10116
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x1f0613A44c9a8ECE7B3A2e0CdBdF0F5B47A50971)
10117
 */
Will Cory's avatar
Will Cory committed
10118
export function getSystemDictatorGoerli(
10119
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10120
    chainId?: keyof typeof systemDictatorGoerliAddress
10121 10122 10123
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
10124 10125
    abi: systemDictatorGoerliABI,
    address: systemDictatorGoerliAddress[5],
10126 10127 10128 10129 10130
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
10131 10132 10133
 * Wraps __{@link readContract}__ with `abi` set to __{@link systemDictatorGoerliABI}__.
 *
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x1f0613A44c9a8ECE7B3A2e0CdBdF0F5B47A50971)
10134
 */
Will Cory's avatar
Will Cory committed
10135 10136
export function readSystemDictatorGoerli<
  TAbi extends readonly unknown[] = typeof systemDictatorGoerliABI,
10137 10138 10139
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10140
    chainId?: keyof typeof systemDictatorGoerliAddress
10141 10142 10143
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
10144 10145
    abi: systemDictatorGoerliABI,
    address: systemDictatorGoerliAddress[5],
10146 10147 10148 10149 10150
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10151
 * Wraps __{@link writeContract}__ with `abi` set to __{@link systemDictatorGoerliABI}__.
10152
 *
Will Cory's avatar
Will Cory committed
10153
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x1f0613A44c9a8ECE7B3A2e0CdBdF0F5B47A50971)
10154
 */
Will Cory's avatar
Will Cory committed
10155
export function writeSystemDictatorGoerli<
10156 10157
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
10158
  TChainId extends number = keyof typeof systemDictatorGoerliAddress
10159 10160 10161
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
10162 10163 10164 10165
        WriteContractPreparedArgs<
          typeof systemDictatorGoerliABI,
          TFunctionName
        >,
10166 10167 10168 10169 10170
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10171
          : keyof typeof systemDictatorGoerliAddress
10172 10173
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
10174 10175 10176 10177
        WriteContractUnpreparedArgs<
          typeof systemDictatorGoerliABI,
          TFunctionName
        >,
10178 10179 10180 10181 10182
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10183
          : keyof typeof systemDictatorGoerliAddress
10184 10185 10186
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
10187 10188
    abi: systemDictatorGoerliABI,
    address: systemDictatorGoerliAddress[5],
10189
    ...config,
Will Cory's avatar
Will Cory committed
10190
  } as unknown as WriteContractArgs<typeof systemDictatorGoerliABI, TFunctionName>)
10191 10192 10193
}

/**
Will Cory's avatar
Will Cory committed
10194
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link systemDictatorGoerliABI}__.
10195
 *
Will Cory's avatar
Will Cory committed
10196
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x1f0613A44c9a8ECE7B3A2e0CdBdF0F5B47A50971)
10197
 */
Will Cory's avatar
Will Cory committed
10198 10199
export function prepareWriteSystemDictatorGoerli<
  TAbi extends readonly unknown[] = typeof systemDictatorGoerliABI,
10200 10201 10202 10203 10204
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10205
  > & { chainId?: keyof typeof systemDictatorGoerliAddress }
10206 10207
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
10208 10209
    abi: systemDictatorGoerliABI,
    address: systemDictatorGoerliAddress[5],
10210 10211 10212 10213 10214
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10215
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link systemDictatorGoerliABI}__.
10216
 *
Will Cory's avatar
Will Cory committed
10217
 * [__View Contract on Goerli Etherscan__](https://goerli.etherscan.io/address/0x1f0613A44c9a8ECE7B3A2e0CdBdF0F5B47A50971)
10218
 */
Will Cory's avatar
Will Cory committed
10219 10220
export function watchSystemDictatorGoerliEvent<
  TAbi extends readonly unknown[] = typeof systemDictatorGoerliABI,
10221 10222 10223 10224 10225
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10226
  > & { chainId?: keyof typeof systemDictatorGoerliAddress },
10227 10228 10229 10230
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
10231 10232
      abi: systemDictatorGoerliABI,
      address: systemDictatorGoerliAddress[5],
10233 10234 10235 10236 10237 10238 10239
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
Will Cory's avatar
Will Cory committed
10240
 * Wraps __{@link getContract}__ with `abi` set to __{@link teleportrWithdrawerABI}__.
10241
 *
Will Cory's avatar
Will Cory committed
10242
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78A25524D90E3D0596558fb43789bD800a5c3007)
10243
 */
Will Cory's avatar
Will Cory committed
10244
export function getTeleportrWithdrawer(
10245
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10246
    chainId?: keyof typeof teleportrWithdrawerAddress
10247 10248 10249
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
10250 10251
    abi: teleportrWithdrawerABI,
    address: teleportrWithdrawerAddress[1],
10252 10253 10254 10255 10256
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
10257
 * Wraps __{@link readContract}__ with `abi` set to __{@link teleportrWithdrawerABI}__.
10258
 *
Will Cory's avatar
Will Cory committed
10259
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78A25524D90E3D0596558fb43789bD800a5c3007)
10260
 */
Will Cory's avatar
Will Cory committed
10261 10262
export function readTeleportrWithdrawer<
  TAbi extends readonly unknown[] = typeof teleportrWithdrawerABI,
10263 10264 10265
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10266
    chainId?: keyof typeof teleportrWithdrawerAddress
10267 10268 10269
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
10270 10271
    abi: teleportrWithdrawerABI,
    address: teleportrWithdrawerAddress[1],
10272 10273 10274 10275 10276
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10277
 * Wraps __{@link writeContract}__ with `abi` set to __{@link teleportrWithdrawerABI}__.
10278
 *
Will Cory's avatar
Will Cory committed
10279
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78A25524D90E3D0596558fb43789bD800a5c3007)
10280
 */
Will Cory's avatar
Will Cory committed
10281
export function writeTeleportrWithdrawer<
10282 10283
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
10284
  TChainId extends number = keyof typeof teleportrWithdrawerAddress
10285 10286 10287
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
10288
        WriteContractPreparedArgs<typeof teleportrWithdrawerABI, TFunctionName>,
10289 10290 10291 10292 10293
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10294
          : keyof typeof teleportrWithdrawerAddress
10295 10296
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
10297 10298 10299 10300
        WriteContractUnpreparedArgs<
          typeof teleportrWithdrawerABI,
          TFunctionName
        >,
10301 10302 10303 10304 10305
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10306
          : keyof typeof teleportrWithdrawerAddress
10307 10308 10309
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
10310 10311
    abi: teleportrWithdrawerABI,
    address: teleportrWithdrawerAddress[1],
10312
    ...config,
Will Cory's avatar
Will Cory committed
10313
  } as unknown as WriteContractArgs<typeof teleportrWithdrawerABI, TFunctionName>)
10314 10315 10316
}

/**
Will Cory's avatar
Will Cory committed
10317
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link teleportrWithdrawerABI}__.
10318
 *
Will Cory's avatar
Will Cory committed
10319
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78A25524D90E3D0596558fb43789bD800a5c3007)
10320
 */
Will Cory's avatar
Will Cory committed
10321 10322
export function prepareWriteTeleportrWithdrawer<
  TAbi extends readonly unknown[] = typeof teleportrWithdrawerABI,
10323 10324 10325 10326 10327
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10328
  > & { chainId?: keyof typeof teleportrWithdrawerAddress }
10329 10330
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
10331 10332
    abi: teleportrWithdrawerABI,
    address: teleportrWithdrawerAddress[1],
10333 10334 10335 10336 10337
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10338
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link teleportrWithdrawerABI}__.
10339
 *
Will Cory's avatar
Will Cory committed
10340
 * [__View Contract on Ethereum Etherscan__](https://etherscan.io/address/0x78A25524D90E3D0596558fb43789bD800a5c3007)
10341
 */
Will Cory's avatar
Will Cory committed
10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368
export function watchTeleportrWithdrawerEvent<
  TAbi extends readonly unknown[] = typeof teleportrWithdrawerABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof teleportrWithdrawerAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: teleportrWithdrawerABI,
      address: teleportrWithdrawerAddress[1],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link attestationStationABI}__.
 *
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
 */
export function getAttestationStation(
10369
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10370
    chainId?: keyof typeof attestationStationAddress
10371 10372 10373
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
10374
    abi: attestationStationABI,
10375
    address:
Will Cory's avatar
Will Cory committed
10376 10377 10378
      attestationStationAddress[
        config.chainId as keyof typeof attestationStationAddress
      ],
10379 10380 10381 10382 10383
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
10384
 * Wraps __{@link readContract}__ with `abi` set to __{@link attestationStationABI}__.
10385
 *
Will Cory's avatar
Will Cory committed
10386 10387
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
10388
 */
Will Cory's avatar
Will Cory committed
10389 10390
export function readAttestationStation<
  TAbi extends readonly unknown[] = typeof attestationStationABI,
10391 10392 10393
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10394
    chainId?: keyof typeof attestationStationAddress
10395 10396 10397
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
10398
    abi: attestationStationABI,
10399
    address:
Will Cory's avatar
Will Cory committed
10400 10401 10402
      attestationStationAddress[
        config.chainId as keyof typeof attestationStationAddress
      ],
10403 10404 10405 10406 10407
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10408
 * Wraps __{@link writeContract}__ with `abi` set to __{@link attestationStationABI}__.
10409
 *
Will Cory's avatar
Will Cory committed
10410 10411
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
10412
 */
Will Cory's avatar
Will Cory committed
10413
export function writeAttestationStation<
10414 10415
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
10416
  TChainId extends number = keyof typeof attestationStationAddress
10417 10418 10419
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
10420
        WriteContractPreparedArgs<typeof attestationStationABI, TFunctionName>,
10421 10422 10423 10424 10425
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10426
          : keyof typeof attestationStationAddress
10427 10428
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
10429 10430 10431 10432
        WriteContractUnpreparedArgs<
          typeof attestationStationABI,
          TFunctionName
        >,
10433 10434 10435 10436 10437
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10438
          : keyof typeof attestationStationAddress
10439 10440 10441
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
10442
    abi: attestationStationABI,
10443
    address:
Will Cory's avatar
Will Cory committed
10444 10445 10446
      attestationStationAddress[
        config.chainId as keyof typeof attestationStationAddress
      ],
10447
    ...config,
Will Cory's avatar
Will Cory committed
10448
  } as unknown as WriteContractArgs<typeof attestationStationABI, TFunctionName>)
10449 10450 10451
}

/**
Will Cory's avatar
Will Cory committed
10452
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link attestationStationABI}__.
10453
 *
Will Cory's avatar
Will Cory committed
10454 10455
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
10456
 */
Will Cory's avatar
Will Cory committed
10457 10458
export function prepareWriteAttestationStation<
  TAbi extends readonly unknown[] = typeof attestationStationABI,
10459 10460 10461 10462 10463
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10464
  > & { chainId?: keyof typeof attestationStationAddress }
10465 10466
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
10467
    abi: attestationStationABI,
10468
    address:
Will Cory's avatar
Will Cory committed
10469 10470 10471
      attestationStationAddress[
        config.chainId as keyof typeof attestationStationAddress
      ],
10472 10473 10474 10475 10476
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10477
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link attestationStationABI}__.
10478
 *
Will Cory's avatar
Will Cory committed
10479 10480
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0xEE36eaaD94d1Cc1d0eccaDb55C38bFfB6Be06C77)
10481
 */
Will Cory's avatar
Will Cory committed
10482 10483
export function watchAttestationStationEvent<
  TAbi extends readonly unknown[] = typeof attestationStationABI,
10484 10485 10486 10487 10488
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10489
  > & { chainId?: keyof typeof attestationStationAddress },
10490 10491 10492 10493
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
10494
      abi: attestationStationABI,
10495
      address:
Will Cory's avatar
Will Cory committed
10496 10497 10498
        attestationStationAddress[
          config.chainId as keyof typeof attestationStationAddress
        ],
10499 10500 10501 10502 10503 10504 10505
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
Will Cory's avatar
Will Cory committed
10506
 * Wraps __{@link getContract}__ with `abi` set to __{@link l2Erc721BridgeABI}__.
10507
 *
Will Cory's avatar
Will Cory committed
10508 10509
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000014)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000014)
10510
 */
Will Cory's avatar
Will Cory committed
10511
export function getL2Erc721Bridge(
10512
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10513
    chainId?: keyof typeof l2Erc721BridgeAddress
10514 10515 10516
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
10517
    abi: l2Erc721BridgeABI,
10518
    address:
Will Cory's avatar
Will Cory committed
10519 10520 10521
      l2Erc721BridgeAddress[
        config.chainId as keyof typeof l2Erc721BridgeAddress
      ],
10522 10523 10524 10525 10526
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
10527
 * Wraps __{@link readContract}__ with `abi` set to __{@link l2Erc721BridgeABI}__.
10528
 *
Will Cory's avatar
Will Cory committed
10529 10530
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000014)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000014)
10531
 */
Will Cory's avatar
Will Cory committed
10532 10533
export function readL2Erc721Bridge<
  TAbi extends readonly unknown[] = typeof l2Erc721BridgeABI,
10534 10535 10536
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10537
    chainId?: keyof typeof l2Erc721BridgeAddress
10538 10539 10540
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
10541
    abi: l2Erc721BridgeABI,
10542
    address:
Will Cory's avatar
Will Cory committed
10543 10544 10545
      l2Erc721BridgeAddress[
        config.chainId as keyof typeof l2Erc721BridgeAddress
      ],
10546 10547 10548 10549 10550
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10551
 * Wraps __{@link writeContract}__ with `abi` set to __{@link l2Erc721BridgeABI}__.
10552
 *
Will Cory's avatar
Will Cory committed
10553 10554
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000014)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000014)
10555
 */
Will Cory's avatar
Will Cory committed
10556
export function writeL2Erc721Bridge<
10557 10558
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
10559
  TChainId extends number = keyof typeof l2Erc721BridgeAddress
10560 10561 10562
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
10563
        WriteContractPreparedArgs<typeof l2Erc721BridgeABI, TFunctionName>,
10564 10565 10566 10567 10568
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10569
          : keyof typeof l2Erc721BridgeAddress
10570 10571
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
10572
        WriteContractUnpreparedArgs<typeof l2Erc721BridgeABI, TFunctionName>,
10573 10574 10575 10576 10577
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10578
          : keyof typeof l2Erc721BridgeAddress
10579 10580 10581
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
10582
    abi: l2Erc721BridgeABI,
10583
    address:
Will Cory's avatar
Will Cory committed
10584 10585 10586
      l2Erc721BridgeAddress[
        config.chainId as keyof typeof l2Erc721BridgeAddress
      ],
10587
    ...config,
Will Cory's avatar
Will Cory committed
10588
  } as unknown as WriteContractArgs<typeof l2Erc721BridgeABI, TFunctionName>)
10589 10590 10591
}

/**
Will Cory's avatar
Will Cory committed
10592
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link l2Erc721BridgeABI}__.
10593
 *
Will Cory's avatar
Will Cory committed
10594 10595
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000014)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000014)
10596
 */
Will Cory's avatar
Will Cory committed
10597 10598
export function prepareWriteL2Erc721Bridge<
  TAbi extends readonly unknown[] = typeof l2Erc721BridgeABI,
10599 10600 10601 10602 10603
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10604
  > & { chainId?: keyof typeof l2Erc721BridgeAddress }
10605 10606
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
10607
    abi: l2Erc721BridgeABI,
10608
    address:
Will Cory's avatar
Will Cory committed
10609 10610 10611
      l2Erc721BridgeAddress[
        config.chainId as keyof typeof l2Erc721BridgeAddress
      ],
10612 10613 10614 10615 10616
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10617
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link l2Erc721BridgeABI}__.
10618
 *
Will Cory's avatar
Will Cory committed
10619 10620
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000014)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000014)
10621
 */
Will Cory's avatar
Will Cory committed
10622 10623
export function watchL2Erc721BridgeEvent<
  TAbi extends readonly unknown[] = typeof l2Erc721BridgeABI,
10624 10625 10626 10627 10628
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10629
  > & { chainId?: keyof typeof l2Erc721BridgeAddress },
10630 10631 10632 10633
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
10634
      abi: l2Erc721BridgeABI,
10635
      address:
Will Cory's avatar
Will Cory committed
10636 10637 10638
        l2Erc721BridgeAddress[
          config.chainId as keyof typeof l2Erc721BridgeAddress
        ],
10639 10640 10641 10642 10643 10644 10645
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
Will Cory's avatar
Will Cory committed
10646
 * Wraps __{@link getContract}__ with `abi` set to __{@link mintManagerABI}__.
10647
 *
Will Cory's avatar
Will Cory committed
10648 10649
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x5C4e7Ba1E219E47948e6e3F55019A647bA501005)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x038a8825A3C3B0c08d52Cc76E5E361953Cf6Dc76)
10650
 */
Will Cory's avatar
Will Cory committed
10651
export function getMintManager(
10652
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10653
    chainId?: keyof typeof mintManagerAddress
10654 10655 10656
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
10657 10658 10659
    abi: mintManagerABI,
    address:
      mintManagerAddress[config.chainId as keyof typeof mintManagerAddress],
10660 10661 10662 10663 10664
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
10665
 * Wraps __{@link readContract}__ with `abi` set to __{@link mintManagerABI}__.
10666
 *
Will Cory's avatar
Will Cory committed
10667 10668
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x5C4e7Ba1E219E47948e6e3F55019A647bA501005)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x038a8825A3C3B0c08d52Cc76E5E361953Cf6Dc76)
10669
 */
Will Cory's avatar
Will Cory committed
10670 10671
export function readMintManager<
  TAbi extends readonly unknown[] = typeof mintManagerABI,
10672 10673 10674
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10675
    chainId?: keyof typeof mintManagerAddress
10676 10677 10678
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
10679 10680 10681
    abi: mintManagerABI,
    address:
      mintManagerAddress[config.chainId as keyof typeof mintManagerAddress],
10682 10683 10684 10685 10686
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10687
 * Wraps __{@link writeContract}__ with `abi` set to __{@link mintManagerABI}__.
10688
 *
Will Cory's avatar
Will Cory committed
10689 10690
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x5C4e7Ba1E219E47948e6e3F55019A647bA501005)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x038a8825A3C3B0c08d52Cc76E5E361953Cf6Dc76)
10691
 */
Will Cory's avatar
Will Cory committed
10692
export function writeMintManager<
10693 10694
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
10695
  TChainId extends number = keyof typeof mintManagerAddress
10696 10697 10698
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
10699
        WriteContractPreparedArgs<typeof mintManagerABI, TFunctionName>,
10700 10701 10702 10703 10704
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10705
          : keyof typeof mintManagerAddress
10706 10707
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
10708
        WriteContractUnpreparedArgs<typeof mintManagerABI, TFunctionName>,
10709 10710 10711 10712 10713
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10714
          : keyof typeof mintManagerAddress
10715 10716 10717
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
10718 10719 10720
    abi: mintManagerABI,
    address:
      mintManagerAddress[config.chainId as keyof typeof mintManagerAddress],
10721
    ...config,
Will Cory's avatar
Will Cory committed
10722
  } as unknown as WriteContractArgs<typeof mintManagerABI, TFunctionName>)
10723 10724 10725
}

/**
Will Cory's avatar
Will Cory committed
10726
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link mintManagerABI}__.
10727
 *
Will Cory's avatar
Will Cory committed
10728 10729
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x5C4e7Ba1E219E47948e6e3F55019A647bA501005)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x038a8825A3C3B0c08d52Cc76E5E361953Cf6Dc76)
10730
 */
Will Cory's avatar
Will Cory committed
10731 10732
export function prepareWriteMintManager<
  TAbi extends readonly unknown[] = typeof mintManagerABI,
10733 10734 10735 10736 10737
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10738
  > & { chainId?: keyof typeof mintManagerAddress }
10739 10740
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
10741 10742 10743
    abi: mintManagerABI,
    address:
      mintManagerAddress[config.chainId as keyof typeof mintManagerAddress],
10744 10745 10746 10747 10748
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10749
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link mintManagerABI}__.
10750
 *
Will Cory's avatar
Will Cory committed
10751 10752
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x5C4e7Ba1E219E47948e6e3F55019A647bA501005)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x038a8825A3C3B0c08d52Cc76E5E361953Cf6Dc76)
10753
 */
Will Cory's avatar
Will Cory committed
10754 10755
export function watchMintManagerEvent<
  TAbi extends readonly unknown[] = typeof mintManagerABI,
10756 10757 10758 10759 10760
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10761
  > & { chainId?: keyof typeof mintManagerAddress },
10762 10763 10764 10765
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
10766 10767 10768
      abi: mintManagerABI,
      address:
        mintManagerAddress[config.chainId as keyof typeof mintManagerAddress],
10769 10770 10771 10772 10773 10774 10775
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
Will Cory's avatar
Will Cory committed
10776
 * Wraps __{@link getContract}__ with `abi` set to __{@link optimismMintableErc721FactoryABI}__.
10777
 *
Will Cory's avatar
Will Cory committed
10778
 * [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000017)
10779
 */
Will Cory's avatar
Will Cory committed
10780
export function getOptimismMintableErc721Factory(
10781
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10782
    chainId?: keyof typeof optimismMintableErc721FactoryAddress
10783 10784 10785
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
10786 10787
    abi: optimismMintableErc721FactoryABI,
    address: optimismMintableErc721FactoryAddress[10],
10788 10789 10790 10791 10792
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
10793
 * Wraps __{@link readContract}__ with `abi` set to __{@link optimismMintableErc721FactoryABI}__.
10794
 *
Will Cory's avatar
Will Cory committed
10795
 * [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000017)
10796
 */
Will Cory's avatar
Will Cory committed
10797 10798
export function readOptimismMintableErc721Factory<
  TAbi extends readonly unknown[] = typeof optimismMintableErc721FactoryABI,
10799 10800 10801
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10802
    chainId?: keyof typeof optimismMintableErc721FactoryAddress
10803 10804 10805
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
10806 10807
    abi: optimismMintableErc721FactoryABI,
    address: optimismMintableErc721FactoryAddress[10],
10808 10809 10810 10811 10812
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10813
 * Wraps __{@link writeContract}__ with `abi` set to __{@link optimismMintableErc721FactoryABI}__.
10814
 *
Will Cory's avatar
Will Cory committed
10815
 * [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000017)
10816
 */
Will Cory's avatar
Will Cory committed
10817
export function writeOptimismMintableErc721Factory<
10818 10819
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
10820
  TChainId extends number = keyof typeof optimismMintableErc721FactoryAddress
10821 10822 10823 10824
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<
Will Cory's avatar
Will Cory committed
10825
          typeof optimismMintableErc721FactoryABI,
10826 10827 10828 10829 10830 10831 10832
          TFunctionName
        >,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10833
          : keyof typeof optimismMintableErc721FactoryAddress
10834 10835 10836
      })
    | (Omit<
        WriteContractUnpreparedArgs<
Will Cory's avatar
Will Cory committed
10837
          typeof optimismMintableErc721FactoryABI,
10838 10839 10840 10841 10842 10843 10844
          TFunctionName
        >,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10845
          : keyof typeof optimismMintableErc721FactoryAddress
10846 10847 10848
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
10849 10850
    abi: optimismMintableErc721FactoryABI,
    address: optimismMintableErc721FactoryAddress[10],
10851
    ...config,
Will Cory's avatar
Will Cory committed
10852
  } as unknown as WriteContractArgs<typeof optimismMintableErc721FactoryABI, TFunctionName>)
10853 10854 10855
}

/**
Will Cory's avatar
Will Cory committed
10856
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link optimismMintableErc721FactoryABI}__.
10857
 *
Will Cory's avatar
Will Cory committed
10858
 * [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000017)
10859
 */
Will Cory's avatar
Will Cory committed
10860 10861
export function prepareWriteOptimismMintableErc721Factory<
  TAbi extends readonly unknown[] = typeof optimismMintableErc721FactoryABI,
10862 10863 10864 10865 10866
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10867
  > & { chainId?: keyof typeof optimismMintableErc721FactoryAddress }
10868 10869
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
10870 10871
    abi: optimismMintableErc721FactoryABI,
    address: optimismMintableErc721FactoryAddress[10],
10872 10873 10874 10875 10876
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10877
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link optimismMintableErc721FactoryABI}__.
10878
 *
Will Cory's avatar
Will Cory committed
10879
 * [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x4200000000000000000000000000000000000017)
10880
 */
Will Cory's avatar
Will Cory committed
10881 10882
export function watchOptimismMintableErc721FactoryEvent<
  TAbi extends readonly unknown[] = typeof optimismMintableErc721FactoryABI,
10883 10884 10885 10886 10887
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10888
  > & { chainId?: keyof typeof optimismMintableErc721FactoryAddress },
10889 10890 10891 10892
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
10893 10894
      abi: optimismMintableErc721FactoryABI,
      address: optimismMintableErc721FactoryAddress[10],
10895 10896 10897 10898 10899 10900 10901
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
Will Cory's avatar
Will Cory committed
10902
 * Wraps __{@link getContract}__ with `abi` set to __{@link optimismMintableErc721FactoryOptimismGoerliABI}__.
10903
 *
Will Cory's avatar
Will Cory committed
10904
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000017)
10905
 */
Will Cory's avatar
Will Cory committed
10906
export function getOptimismMintableErc721FactoryOptimismGoerli(
10907
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10908
    chainId?: keyof typeof optimismMintableErc721FactoryOptimismGoerliAddress
10909 10910 10911
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
10912 10913
    abi: optimismMintableErc721FactoryOptimismGoerliABI,
    address: optimismMintableErc721FactoryOptimismGoerliAddress[420],
10914 10915 10916 10917 10918
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
10919
 * Wraps __{@link readContract}__ with `abi` set to __{@link optimismMintableErc721FactoryOptimismGoerliABI}__.
10920
 *
Will Cory's avatar
Will Cory committed
10921
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000017)
10922
 */
Will Cory's avatar
Will Cory committed
10923 10924
export function readOptimismMintableErc721FactoryOptimismGoerli<
  TAbi extends readonly unknown[] = typeof optimismMintableErc721FactoryOptimismGoerliABI,
10925 10926 10927
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
10928
    chainId?: keyof typeof optimismMintableErc721FactoryOptimismGoerliAddress
10929 10930 10931
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
10932 10933
    abi: optimismMintableErc721FactoryOptimismGoerliABI,
    address: optimismMintableErc721FactoryOptimismGoerliAddress[420],
10934 10935 10936 10937 10938
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
10939
 * Wraps __{@link writeContract}__ with `abi` set to __{@link optimismMintableErc721FactoryOptimismGoerliABI}__.
10940
 *
Will Cory's avatar
Will Cory committed
10941
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000017)
10942
 */
Will Cory's avatar
Will Cory committed
10943
export function writeOptimismMintableErc721FactoryOptimismGoerli<
10944 10945
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
10946
  TChainId extends number = keyof typeof optimismMintableErc721FactoryOptimismGoerliAddress
10947 10948 10949
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
10950 10951 10952 10953
        WriteContractPreparedArgs<
          typeof optimismMintableErc721FactoryOptimismGoerliABI,
          TFunctionName
        >,
10954 10955 10956 10957 10958
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10959
          : keyof typeof optimismMintableErc721FactoryOptimismGoerliAddress
10960 10961
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
10962 10963 10964 10965
        WriteContractUnpreparedArgs<
          typeof optimismMintableErc721FactoryOptimismGoerliABI,
          TFunctionName
        >,
10966 10967 10968 10969 10970
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
10971
          : keyof typeof optimismMintableErc721FactoryOptimismGoerliAddress
10972 10973 10974
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
10975 10976
    abi: optimismMintableErc721FactoryOptimismGoerliABI,
    address: optimismMintableErc721FactoryOptimismGoerliAddress[420],
10977
    ...config,
Will Cory's avatar
Will Cory committed
10978
  } as unknown as WriteContractArgs<typeof optimismMintableErc721FactoryOptimismGoerliABI, TFunctionName>)
10979 10980 10981
}

/**
Will Cory's avatar
Will Cory committed
10982
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link optimismMintableErc721FactoryOptimismGoerliABI}__.
10983
 *
Will Cory's avatar
Will Cory committed
10984
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000017)
10985
 */
Will Cory's avatar
Will Cory committed
10986 10987
export function prepareWriteOptimismMintableErc721FactoryOptimismGoerli<
  TAbi extends readonly unknown[] = typeof optimismMintableErc721FactoryOptimismGoerliABI,
10988 10989 10990 10991 10992
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
10993 10994 10995
  > & {
    chainId?: keyof typeof optimismMintableErc721FactoryOptimismGoerliAddress
  }
10996 10997
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
10998 10999
    abi: optimismMintableErc721FactoryOptimismGoerliABI,
    address: optimismMintableErc721FactoryOptimismGoerliAddress[420],
11000 11001 11002 11003 11004
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
11005
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link optimismMintableErc721FactoryOptimismGoerliABI}__.
11006
 *
Will Cory's avatar
Will Cory committed
11007
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000017)
11008
 */
Will Cory's avatar
Will Cory committed
11009 11010
export function watchOptimismMintableErc721FactoryOptimismGoerliEvent<
  TAbi extends readonly unknown[] = typeof optimismMintableErc721FactoryOptimismGoerliABI,
11011 11012 11013 11014 11015
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
11016 11017 11018
  > & {
    chainId?: keyof typeof optimismMintableErc721FactoryOptimismGoerliAddress
  },
11019 11020 11021 11022
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
11023 11024
      abi: optimismMintableErc721FactoryOptimismGoerliABI,
      address: optimismMintableErc721FactoryOptimismGoerliAddress[420],
11025 11026 11027 11028 11029 11030 11031
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
Will Cory's avatar
Will Cory committed
11032
 * Wraps __{@link getContract}__ with `abi` set to __{@link optimistABI}__.
11033
 *
Will Cory's avatar
Will Cory committed
11034 11035
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
11036
 */
Will Cory's avatar
Will Cory committed
11037
export function getOptimist(
11038
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
11039
    chainId?: keyof typeof optimistAddress
11040 11041 11042
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
11043 11044
    abi: optimistABI,
    address: optimistAddress[config.chainId as keyof typeof optimistAddress],
11045 11046 11047 11048 11049
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
11050
 * Wraps __{@link readContract}__ with `abi` set to __{@link optimistABI}__.
11051
 *
Will Cory's avatar
Will Cory committed
11052 11053
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
11054
 */
Will Cory's avatar
Will Cory committed
11055 11056
export function readOptimist<
  TAbi extends readonly unknown[] = typeof optimistABI,
11057 11058 11059
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
11060
    chainId?: keyof typeof optimistAddress
11061 11062 11063
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
11064 11065
    abi: optimistABI,
    address: optimistAddress[config.chainId as keyof typeof optimistAddress],
11066 11067 11068 11069 11070
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
11071
 * Wraps __{@link writeContract}__ with `abi` set to __{@link optimistABI}__.
11072
 *
Will Cory's avatar
Will Cory committed
11073 11074
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
11075
 */
Will Cory's avatar
Will Cory committed
11076
export function writeOptimist<
11077 11078
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
11079
  TChainId extends number = keyof typeof optimistAddress
11080 11081 11082
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
11083
        WriteContractPreparedArgs<typeof optimistABI, TFunctionName>,
11084 11085 11086 11087 11088
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
11089
          : keyof typeof optimistAddress
11090 11091
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
11092
        WriteContractUnpreparedArgs<typeof optimistABI, TFunctionName>,
11093 11094 11095 11096 11097
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
11098
          : keyof typeof optimistAddress
11099 11100 11101
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
11102 11103
    abi: optimistABI,
    address: optimistAddress[config.chainId as keyof typeof optimistAddress],
11104
    ...config,
Will Cory's avatar
Will Cory committed
11105
  } as unknown as WriteContractArgs<typeof optimistABI, TFunctionName>)
11106 11107 11108
}

/**
Will Cory's avatar
Will Cory committed
11109
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link optimistABI}__.
11110
 *
Will Cory's avatar
Will Cory committed
11111 11112
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
11113
 */
Will Cory's avatar
Will Cory committed
11114 11115
export function prepareWriteOptimist<
  TAbi extends readonly unknown[] = typeof optimistABI,
11116 11117 11118 11119 11120
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
11121
  > & { chainId?: keyof typeof optimistAddress }
11122 11123
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
11124 11125
    abi: optimistABI,
    address: optimistAddress[config.chainId as keyof typeof optimistAddress],
11126 11127 11128 11129 11130
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
11131
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link optimistABI}__.
11132
 *
Will Cory's avatar
Will Cory committed
11133 11134
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x2335022c740d17c2837f9C884Bfe4fFdbf0A95D5)
11135
 */
Will Cory's avatar
Will Cory committed
11136 11137
export function watchOptimistEvent<
  TAbi extends readonly unknown[] = typeof optimistABI,
11138 11139 11140 11141 11142
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
11143
  > & { chainId?: keyof typeof optimistAddress },
11144 11145 11146 11147
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
11148 11149
      abi: optimistABI,
      address: optimistAddress[config.chainId as keyof typeof optimistAddress],
11150 11151 11152 11153 11154 11155 11156
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
Will Cory's avatar
Will Cory committed
11157
 * Wraps __{@link getContract}__ with `abi` set to __{@link optimistAllowlistABI}__.
11158
 *
Will Cory's avatar
Will Cory committed
11159 11160
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x482b1945D58f2E9Db0CEbe13c7fcFc6876b41180)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x482b1945D58f2E9Db0CEbe13c7fcFc6876b41180)
11161
 */
Will Cory's avatar
Will Cory committed
11162
export function getOptimistAllowlist(
11163
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
11164
    chainId?: keyof typeof optimistAllowlistAddress
11165 11166 11167
  }
) {
  return getContract({
Will Cory's avatar
Will Cory committed
11168 11169 11170 11171 11172
    abi: optimistAllowlistABI,
    address:
      optimistAllowlistAddress[
        config.chainId as keyof typeof optimistAllowlistAddress
      ],
11173 11174 11175 11176 11177
    ...config,
  })
}

/**
Will Cory's avatar
Will Cory committed
11178
 * Wraps __{@link readContract}__ with `abi` set to __{@link optimistAllowlistABI}__.
11179
 *
Will Cory's avatar
Will Cory committed
11180 11181
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x482b1945D58f2E9Db0CEbe13c7fcFc6876b41180)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x482b1945D58f2E9Db0CEbe13c7fcFc6876b41180)
11182
 */
Will Cory's avatar
Will Cory committed
11183 11184
export function readOptimistAllowlist<
  TAbi extends readonly unknown[] = typeof optimistAllowlistABI,
11185 11186 11187
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
Will Cory's avatar
Will Cory committed
11188
    chainId?: keyof typeof optimistAllowlistAddress
11189 11190 11191
  }
) {
  return readContract({
Will Cory's avatar
Will Cory committed
11192 11193 11194 11195 11196
    abi: optimistAllowlistABI,
    address:
      optimistAllowlistAddress[
        config.chainId as keyof typeof optimistAllowlistAddress
      ],
11197 11198 11199 11200 11201
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
11202
 * Wraps __{@link getContract}__ with `abi` set to __{@link optimistInviterABI}__.
11203
 *
Will Cory's avatar
Will Cory committed
11204 11205
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
11206
 */
Will Cory's avatar
Will Cory committed
11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252
export function getOptimistInviter(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof optimistInviterAddress
  }
) {
  return getContract({
    abi: optimistInviterABI,
    address:
      optimistInviterAddress[
        config.chainId as keyof typeof optimistInviterAddress
      ],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link optimistInviterABI}__.
 *
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 */
export function readOptimistInviter<
  TAbi extends readonly unknown[] = typeof optimistInviterABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof optimistInviterAddress
  }
) {
  return readContract({
    abi: optimistInviterABI,
    address:
      optimistInviterAddress[
        config.chainId as keyof typeof optimistInviterAddress
      ],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link optimistInviterABI}__.
 *
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 */
export function writeOptimistInviter<
11253 11254
  TFunctionName extends string,
  TMode extends WriteContractMode,
Will Cory's avatar
Will Cory committed
11255
  TChainId extends number = keyof typeof optimistInviterAddress
11256 11257 11258
>(
  config:
    | (Omit<
Will Cory's avatar
Will Cory committed
11259
        WriteContractPreparedArgs<typeof optimistInviterABI, TFunctionName>,
11260 11261 11262 11263 11264
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
11265
          : keyof typeof optimistInviterAddress
11266 11267
      })
    | (Omit<
Will Cory's avatar
Will Cory committed
11268
        WriteContractUnpreparedArgs<typeof optimistInviterABI, TFunctionName>,
11269 11270 11271 11272 11273
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
Will Cory's avatar
Will Cory committed
11274
          : keyof typeof optimistInviterAddress
11275 11276 11277
      })
) {
  return writeContract({
Will Cory's avatar
Will Cory committed
11278 11279 11280 11281 11282
    abi: optimistInviterABI,
    address:
      optimistInviterAddress[
        config.chainId as keyof typeof optimistInviterAddress
      ],
11283
    ...config,
Will Cory's avatar
Will Cory committed
11284
  } as unknown as WriteContractArgs<typeof optimistInviterABI, TFunctionName>)
11285 11286 11287
}

/**
Will Cory's avatar
Will Cory committed
11288
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link optimistInviterABI}__.
11289
 *
Will Cory's avatar
Will Cory committed
11290 11291
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
11292
 */
Will Cory's avatar
Will Cory committed
11293 11294
export function prepareWriteOptimistInviter<
  TAbi extends readonly unknown[] = typeof optimistInviterABI,
11295 11296 11297 11298 11299
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
11300
  > & { chainId?: keyof typeof optimistInviterAddress }
11301 11302
) {
  return prepareWriteContract({
Will Cory's avatar
Will Cory committed
11303 11304 11305 11306 11307
    abi: optimistInviterABI,
    address:
      optimistInviterAddress[
        config.chainId as keyof typeof optimistInviterAddress
      ],
11308 11309 11310 11311 11312
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
Will Cory's avatar
Will Cory committed
11313
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link optimistInviterABI}__.
11314
 *
Will Cory's avatar
Will Cory committed
11315 11316
 * - [__View Contract on Optimism Optimism Explorer__](https://explorer.optimism.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
 * - [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x073031A1E1b8F5458Ed41Ce56331F5fd7e1de929)
11317
 */
Will Cory's avatar
Will Cory committed
11318 11319
export function watchOptimistInviterEvent<
  TAbi extends readonly unknown[] = typeof optimistInviterABI,
11320 11321 11322 11323 11324
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
Will Cory's avatar
Will Cory committed
11325
  > & { chainId?: keyof typeof optimistInviterAddress },
11326 11327 11328 11329
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
Will Cory's avatar
Will Cory committed
11330 11331 11332 11333 11334
      abi: optimistInviterABI,
      address:
        optimistInviterAddress[
          config.chainId as keyof typeof optimistInviterAddress
        ],
11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link baseFeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000019)
 */
export function getBaseFeeVault(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof baseFeeVaultAddress
  }
) {
  return getContract({
    abi: baseFeeVaultABI,
    address: baseFeeVaultAddress[420],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link baseFeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000019)
 */
export function readBaseFeeVault<
  TAbi extends readonly unknown[] = typeof baseFeeVaultABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof baseFeeVaultAddress
  }
) {
  return readContract({
    abi: baseFeeVaultABI,
    address: baseFeeVaultAddress[420],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link baseFeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000019)
 */
export function writeBaseFeeVault<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof baseFeeVaultAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof baseFeeVaultABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof baseFeeVaultAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<typeof baseFeeVaultABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof baseFeeVaultAddress
      })
) {
  return writeContract({
    abi: baseFeeVaultABI,
    address: baseFeeVaultAddress[420],
    ...config,
  } as unknown as WriteContractArgs<typeof baseFeeVaultABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link baseFeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000019)
 */
export function prepareWriteBaseFeeVault<
  TAbi extends readonly unknown[] = typeof baseFeeVaultABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof baseFeeVaultAddress }
) {
  return prepareWriteContract({
    abi: baseFeeVaultABI,
    address: baseFeeVaultAddress[420],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link baseFeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000019)
 */
export function watchBaseFeeVaultEvent<
  TAbi extends readonly unknown[] = typeof baseFeeVaultABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof baseFeeVaultAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: baseFeeVaultABI,
      address: baseFeeVaultAddress[420],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link gasPriceOracleABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000000F)
 */
export function getGasPriceOracle(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof gasPriceOracleAddress
  }
) {
  return getContract({
    abi: gasPriceOracleABI,
    address: gasPriceOracleAddress[420],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link gasPriceOracleABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000000F)
 */
export function readGasPriceOracle<
  TAbi extends readonly unknown[] = typeof gasPriceOracleABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof gasPriceOracleAddress
  }
) {
  return readContract({
    abi: gasPriceOracleABI,
    address: gasPriceOracleAddress[420],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link l1BlockABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000015)
 */
export function getL1Block(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof l1BlockAddress
  }
) {
  return getContract({
    abi: l1BlockABI,
    address: l1BlockAddress[420],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link l1BlockABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000015)
 */
export function readL1Block<
  TAbi extends readonly unknown[] = typeof l1BlockABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof l1BlockAddress
  }
) {
  return readContract({
    abi: l1BlockABI,
    address: l1BlockAddress[420],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link l1BlockABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000015)
 */
export function writeL1Block<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof l1BlockAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof l1BlockABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l1BlockAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<typeof l1BlockABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l1BlockAddress
      })
) {
  return writeContract({
    abi: l1BlockABI,
    address: l1BlockAddress[420],
    ...config,
  } as unknown as WriteContractArgs<typeof l1BlockABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link l1BlockABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000015)
 */
export function prepareWriteL1Block<
  TAbi extends readonly unknown[] = typeof l1BlockABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l1BlockAddress }
) {
  return prepareWriteContract({
    abi: l1BlockABI,
    address: l1BlockAddress[420],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link l1FeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000001a)
 */
export function getL1FeeVault(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof l1FeeVaultAddress
  }
) {
  return getContract({
    abi: l1FeeVaultABI,
    address: l1FeeVaultAddress[420],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link l1FeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000001a)
 */
export function readL1FeeVault<
  TAbi extends readonly unknown[] = typeof l1FeeVaultABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof l1FeeVaultAddress
  }
) {
  return readContract({
    abi: l1FeeVaultABI,
    address: l1FeeVaultAddress[420],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link l1FeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000001a)
 */
export function writeL1FeeVault<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof l1FeeVaultAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof l1FeeVaultABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l1FeeVaultAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<typeof l1FeeVaultABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l1FeeVaultAddress
      })
) {
  return writeContract({
    abi: l1FeeVaultABI,
    address: l1FeeVaultAddress[420],
    ...config,
  } as unknown as WriteContractArgs<typeof l1FeeVaultABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link l1FeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000001a)
 */
export function prepareWriteL1FeeVault<
  TAbi extends readonly unknown[] = typeof l1FeeVaultABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l1FeeVaultAddress }
) {
  return prepareWriteContract({
    abi: l1FeeVaultABI,
    address: l1FeeVaultAddress[420],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link l1FeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x420000000000000000000000000000000000001a)
 */
export function watchL1FeeVaultEvent<
  TAbi extends readonly unknown[] = typeof l1FeeVaultABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l1FeeVaultAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: l1FeeVaultABI,
      address: l1FeeVaultAddress[420],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link l2CrossDomainMessengerABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000007)
 */
export function getL2CrossDomainMessenger(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof l2CrossDomainMessengerAddress
  }
) {
  return getContract({
    abi: l2CrossDomainMessengerABI,
    address: l2CrossDomainMessengerAddress[420],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link l2CrossDomainMessengerABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000007)
 */
export function readL2CrossDomainMessenger<
  TAbi extends readonly unknown[] = typeof l2CrossDomainMessengerABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof l2CrossDomainMessengerAddress
  }
) {
  return readContract({
    abi: l2CrossDomainMessengerABI,
    address: l2CrossDomainMessengerAddress[420],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link l2CrossDomainMessengerABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000007)
 */
export function writeL2CrossDomainMessenger<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof l2CrossDomainMessengerAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<
          typeof l2CrossDomainMessengerABI,
          TFunctionName
        >,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l2CrossDomainMessengerAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<
          typeof l2CrossDomainMessengerABI,
          TFunctionName
        >,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l2CrossDomainMessengerAddress
      })
) {
  return writeContract({
    abi: l2CrossDomainMessengerABI,
    address: l2CrossDomainMessengerAddress[420],
    ...config,
  } as unknown as WriteContractArgs<typeof l2CrossDomainMessengerABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link l2CrossDomainMessengerABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000007)
 */
export function prepareWriteL2CrossDomainMessenger<
  TAbi extends readonly unknown[] = typeof l2CrossDomainMessengerABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l2CrossDomainMessengerAddress }
) {
  return prepareWriteContract({
    abi: l2CrossDomainMessengerABI,
    address: l2CrossDomainMessengerAddress[420],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link l2CrossDomainMessengerABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000007)
 */
export function watchL2CrossDomainMessengerEvent<
  TAbi extends readonly unknown[] = typeof l2CrossDomainMessengerABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l2CrossDomainMessengerAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: l2CrossDomainMessengerABI,
      address: l2CrossDomainMessengerAddress[420],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link l2StandardBridgeABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000010)
 */
export function getL2StandardBridge(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof l2StandardBridgeAddress
  }
) {
  return getContract({
    abi: l2StandardBridgeABI,
    address: l2StandardBridgeAddress[420],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link l2StandardBridgeABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000010)
 */
export function readL2StandardBridge<
  TAbi extends readonly unknown[] = typeof l2StandardBridgeABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof l2StandardBridgeAddress
  }
) {
  return readContract({
    abi: l2StandardBridgeABI,
    address: l2StandardBridgeAddress[420],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link l2StandardBridgeABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000010)
 */
export function writeL2StandardBridge<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof l2StandardBridgeAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof l2StandardBridgeABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l2StandardBridgeAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<typeof l2StandardBridgeABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l2StandardBridgeAddress
      })
) {
  return writeContract({
    abi: l2StandardBridgeABI,
    address: l2StandardBridgeAddress[420],
    ...config,
  } as unknown as WriteContractArgs<typeof l2StandardBridgeABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link l2StandardBridgeABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000010)
 */
export function prepareWriteL2StandardBridge<
  TAbi extends readonly unknown[] = typeof l2StandardBridgeABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l2StandardBridgeAddress }
) {
  return prepareWriteContract({
    abi: l2StandardBridgeABI,
    address: l2StandardBridgeAddress[420],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link l2StandardBridgeABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000010)
 */
export function watchL2StandardBridgeEvent<
  TAbi extends readonly unknown[] = typeof l2StandardBridgeABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l2StandardBridgeAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: l2StandardBridgeABI,
      address: l2StandardBridgeAddress[420],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link l2ToL1MessagePasserABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000016)
 */
export function getL2ToL1MessagePasser(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof l2ToL1MessagePasserAddress
  }
) {
  return getContract({
    abi: l2ToL1MessagePasserABI,
    address: l2ToL1MessagePasserAddress[420],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link l2ToL1MessagePasserABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000016)
 */
export function readL2ToL1MessagePasser<
  TAbi extends readonly unknown[] = typeof l2ToL1MessagePasserABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof l2ToL1MessagePasserAddress
  }
) {
  return readContract({
    abi: l2ToL1MessagePasserABI,
    address: l2ToL1MessagePasserAddress[420],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link l2ToL1MessagePasserABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000016)
 */
export function writeL2ToL1MessagePasser<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof l2ToL1MessagePasserAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof l2ToL1MessagePasserABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l2ToL1MessagePasserAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<
          typeof l2ToL1MessagePasserABI,
          TFunctionName
        >,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof l2ToL1MessagePasserAddress
      })
) {
  return writeContract({
    abi: l2ToL1MessagePasserABI,
    address: l2ToL1MessagePasserAddress[420],
    ...config,
  } as unknown as WriteContractArgs<typeof l2ToL1MessagePasserABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link l2ToL1MessagePasserABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000016)
 */
export function prepareWriteL2ToL1MessagePasser<
  TAbi extends readonly unknown[] = typeof l2ToL1MessagePasserABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l2ToL1MessagePasserAddress }
) {
  return prepareWriteContract({
    abi: l2ToL1MessagePasserABI,
    address: l2ToL1MessagePasserAddress[420],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link l2ToL1MessagePasserABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000016)
 */
export function watchL2ToL1MessagePasserEvent<
  TAbi extends readonly unknown[] = typeof l2ToL1MessagePasserABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof l2ToL1MessagePasserAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: l2ToL1MessagePasserABI,
      address: l2ToL1MessagePasserAddress[420],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}

/**
 * Wraps __{@link getContract}__ with `abi` set to __{@link sequencerFeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000011)
 */
export function getSequencerFeeVault(
  config: Omit<GetContractArgs, 'abi' | 'address'> & {
    chainId?: keyof typeof sequencerFeeVaultAddress
  }
) {
  return getContract({
    abi: sequencerFeeVaultABI,
    address: sequencerFeeVaultAddress[420],
    ...config,
  })
}

/**
 * Wraps __{@link readContract}__ with `abi` set to __{@link sequencerFeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000011)
 */
export function readSequencerFeeVault<
  TAbi extends readonly unknown[] = typeof sequencerFeeVaultABI,
  TFunctionName extends string = string
>(
  config: Omit<ReadContractConfig<TAbi, TFunctionName>, 'abi' | 'address'> & {
    chainId?: keyof typeof sequencerFeeVaultAddress
  }
) {
  return readContract({
    abi: sequencerFeeVaultABI,
    address: sequencerFeeVaultAddress[420],
    ...config,
  } as unknown as ReadContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link writeContract}__ with `abi` set to __{@link sequencerFeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000011)
 */
export function writeSequencerFeeVault<
  TFunctionName extends string,
  TMode extends WriteContractMode,
  TChainId extends number = keyof typeof sequencerFeeVaultAddress
>(
  config:
    | (Omit<
        WriteContractPreparedArgs<typeof sequencerFeeVaultABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof sequencerFeeVaultAddress
      })
    | (Omit<
        WriteContractUnpreparedArgs<typeof sequencerFeeVaultABI, TFunctionName>,
        'abi' | 'address'
      > & {
        mode: TMode
        chainId?: TMode extends 'prepared'
          ? TChainId
          : keyof typeof sequencerFeeVaultAddress
      })
) {
  return writeContract({
    abi: sequencerFeeVaultABI,
    address: sequencerFeeVaultAddress[420],
    ...config,
  } as unknown as WriteContractArgs<typeof sequencerFeeVaultABI, TFunctionName>)
}

/**
 * Wraps __{@link prepareWriteContract}__ with `abi` set to __{@link sequencerFeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000011)
 */
export function prepareWriteSequencerFeeVault<
  TAbi extends readonly unknown[] = typeof sequencerFeeVaultABI,
  TFunctionName extends string = string
>(
  config: Omit<
    PrepareWriteContractConfig<TAbi, TFunctionName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof sequencerFeeVaultAddress }
) {
  return prepareWriteContract({
    abi: sequencerFeeVaultABI,
    address: sequencerFeeVaultAddress[420],
    ...config,
  } as unknown as PrepareWriteContractConfig<TAbi, TFunctionName>)
}

/**
 * Wraps __{@link watchContractEvent}__ with `abi` set to __{@link sequencerFeeVaultABI}__.
 *
 * [__View Contract on Optimism Goerli Etherscan__](https://goerli-optimism.etherscan.io/address/0x4200000000000000000000000000000000000011)
 */
export function watchSequencerFeeVaultEvent<
  TAbi extends readonly unknown[] = typeof sequencerFeeVaultABI,
  TEventName extends string = string
>(
  config: Omit<
    WatchContractEventConfig<TAbi, TEventName>,
    'abi' | 'address'
  > & { chainId?: keyof typeof sequencerFeeVaultAddress },
  callback: WatchContractEventCallback<TAbi, TEventName>
) {
  return watchContractEvent(
    {
      abi: sequencerFeeVaultABI,
      address: sequencerFeeVaultAddress[420],
      ...config,
    } as WatchContractEventConfig<TAbi, TEventName>,
    callback
  )
}