export const TRANSACTION_MIRROR_ABI = [
  {
    inputs: [{ name: '_admin', internalType: 'address', type: 'address' }],
    stateMutability: 'nonpayable',
    type: 'constructor',
  },
  {
    inputs: [],
    name: 'admin',
    outputs: [{ name: '', internalType: 'address', type: 'address' }],
    stateMutability: 'view',
    type: 'function',
  },
  {
    inputs: [],
    name: 'paused',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
    stateMutability: 'view',
    type: 'function',
  },
  {
    inputs: [],
    name: 'CHAIN_138',
    outputs: [{ name: '', internalType: 'uint64', type: 'uint64' }],
    stateMutability: 'view',
    type: 'function',
  },
  {
    inputs: [],
    name: 'MAX_BATCH_SIZE',
    outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
    stateMutability: 'view',
    type: 'function',
  },
  {
    inputs: [
      { name: 'txHash', internalType: 'bytes32', type: 'bytes32' },
      { name: 'from', internalType: 'address', type: 'address' },
      { name: 'to', internalType: 'address', type: 'address' },
      { name: 'value', internalType: 'uint256', type: 'uint256' },
      { name: 'blockNumber', internalType: 'uint256', type: 'uint256' },
      { name: 'blockTimestamp', internalType: 'uint256', type: 'uint256' },
      { name: 'gasUsed', internalType: 'uint256', type: 'uint256' },
      { name: 'success', internalType: 'bool', type: 'bool' },
      { name: 'data', internalType: 'bytes', type: 'bytes' },
    ],
    name: 'mirrorTransaction',
    outputs: [],
    stateMutability: 'nonpayable',
    type: 'function',
  },
  {
    inputs: [
      { name: 'txHashes', internalType: 'bytes32[]', type: 'bytes32[]' },
      { name: 'froms', internalType: 'address[]', type: 'address[]' },
      { name: 'tos', internalType: 'address[]', type: 'address[]' },
      { name: 'values', internalType: 'uint256[]', type: 'uint256[]' },
      { name: 'blockNumbers', internalType: 'uint256[]', type: 'uint256[]' },
      { name: 'blockTimestamps', internalType: 'uint256[]', type: 'uint256[]' },
      { name: 'gasUseds', internalType: 'uint256[]', type: 'uint256[]' },
      { name: 'successes', internalType: 'bool[]', type: 'bool[]' },
      { name: 'datas', internalType: 'bytes[]', type: 'bytes[]' },
    ],
    name: 'mirrorBatchTransactions',
    outputs: [],
    stateMutability: 'nonpayable',
    type: 'function',
  },
  {
    inputs: [{ name: 'txHash', internalType: 'bytes32', type: 'bytes32' }],
    name: 'getTransaction',
    outputs: [
      {
        components: [
          { name: 'txHash', internalType: 'bytes32', type: 'bytes32' },
          { name: 'from', internalType: 'address', type: 'address' },
          { name: 'to', internalType: 'address', type: 'address' },
          { name: 'value', internalType: 'uint256', type: 'uint256' },
          { name: 'blockNumber', internalType: 'uint256', type: 'uint256' },
          { name: 'blockTimestamp', internalType: 'uint256', type: 'uint256' },
          { name: 'gasUsed', internalType: 'uint256', type: 'uint256' },
          { name: 'success', internalType: 'bool', type: 'bool' },
          { name: 'data', internalType: 'bytes', type: 'bytes' },
          { name: 'indexedHash', internalType: 'bytes32', type: 'bytes32' },
        ],
        internalType: 'struct TransactionMirror.MirroredTransaction',
        name: 'mirroredTx',
        type: 'tuple',
      },
    ],
    stateMutability: 'view',
    type: 'function',
  },
  {
    inputs: [{ name: 'txHash', internalType: 'bytes32', type: 'bytes32' }],
    name: 'isMirrored',
    outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
    stateMutability: 'view',
    type: 'function',
  },
  {
    inputs: [],
    name: 'getMirroredTransactionCount',
    outputs: [{ name: 'count', internalType: 'uint256', type: 'uint256' }],
    stateMutability: 'view',
    type: 'function',
  },
  {
    inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
    name: 'getMirroredTransaction',
    outputs: [{ name: 'txHash', internalType: 'bytes32', type: 'bytes32' }],
    stateMutability: 'view',
    type: 'function',
  },
  {
    inputs: [{ name: 'newAdmin', internalType: 'address', type: 'address' }],
    name: 'setAdmin',
    outputs: [],
    stateMutability: 'nonpayable',
    type: 'function',
  },
  {
    inputs: [],
    name: 'pause',
    outputs: [],
    stateMutability: 'nonpayable',
    type: 'function',
  },
  {
    inputs: [],
    name: 'unpause',
    outputs: [],
    stateMutability: 'nonpayable',
    type: 'function',
  },
  {
    anonymous: false,
    inputs: [{ indexed: true, name: 'newAdmin', internalType: 'address', type: 'address' }],
    name: 'AdminChanged',
    type: 'event',
  },
  {
    anonymous: false,
    inputs: [],
    name: 'Paused',
    type: 'event',
  },
  {
    anonymous: false,
    inputs: [],
    name: 'Unpaused',
    type: 'event',
  },
  {
    anonymous: false,
    inputs: [
      { indexed: true, name: 'txHash', internalType: 'bytes32', type: 'bytes32' },
      { indexed: true, name: 'from', internalType: 'address', type: 'address' },
      { indexed: true, name: 'to', internalType: 'address', type: 'address' },
      { indexed: false, name: 'value', internalType: 'uint256', type: 'uint256' },
      { indexed: false, name: 'blockNumber', internalType: 'uint256', type: 'uint256' },
      { indexed: false, name: 'blockTimestamp', internalType: 'uint256', type: 'uint256' },
      { indexed: false, name: 'gasUsed', internalType: 'uint256', type: 'uint256' },
      { indexed: false, name: 'success', internalType: 'bool', type: 'bool' },
    ],
    name: 'TransactionMirrored',
    type: 'event',
  },
  {
    anonymous: false,
    inputs: [
      { indexed: false, name: 'count', internalType: 'uint256', type: 'uint256' },
      { indexed: false, name: 'startBlock', internalType: 'uint256', type: 'uint256' },
      { indexed: false, name: 'endBlock', internalType: 'uint256', type: 'uint256' },
    ],
    name: 'BatchTransactionsMirrored',
    type: 'event',
  },
] as const
