clementine_core::citrea

Module BRIDGE_CONTRACT

Source
Expand description

Generated by the following Solidity interface…

library Bridge {
    struct MerkleProof {
        bytes intermediateNodes;
        uint256 blockHeight;
        uint256 index;
    }
    struct Transaction {
        bytes4 version;
        bytes2 flag;
        bytes vin;
        bytes vout;
        bytes witness;
        bytes4 locktime;
    }
    struct UTXO {
        bytes32 txId;
        bytes4 outputId;
    }
}

interface BRIDGE_CONTRACT {
    error InvalidInitialization();
    error NotInitializing();
    error OwnableInvalidOwner(address owner);
    error OwnableUnauthorizedAccount(address account);

    event Deposit(bytes32 wtxId, bytes32 txId, address recipient, uint256 timestamp, uint256 depositId);
    event DepositReplaced(uint256 index, bytes32 oldTxId, bytes32 newTxId);
    event DepositScriptUpdate(bytes depositPrefix, bytes depositSuffix);
    event DepositTransferFailed(bytes32 wtxId, bytes32 txId, address recipient, uint256 timestamp, uint256 depositId);
    event FailedDepositVaultUpdated(address oldVault, address newVault);
    event Initialized(uint64 version);
    event OperatorUpdated(address oldOperator, address newOperator);
    event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);
    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
    event ReplaceScriptUpdate(bytes replacePrefix, bytes replaceSuffix);
    event SafeWithdrawal(Bridge.Transaction payoutTx, Bridge.UTXO spentUtxo, uint256 index);
    event Withdrawal(Bridge.UTXO utxo, uint256 index, uint256 timestamp);

    function CODESEP_POS() external view returns (bytes memory);
    function EPOCH() external view returns (bytes memory);
    function INPUT_INDEX() external view returns (bytes memory);
    function KEY_VERSION() external view returns (bytes memory);
    function LIGHT_CLIENT() external view returns (address);
    function SCHNORR_VERIFIER_PRECOMPILE() external view returns (address);
    function SIGHASH_ALL_HASH_TYPE() external view returns (bytes memory);
    function SIGHASH_SINGLE_ANYONECANPAY_HASH_TYPE() external view returns (bytes memory);
    function SPEND_TYPE_EXT() external view returns (bytes memory);
    function SPEND_TYPE_NO_EXT() external view returns (bytes memory);
    function SYSTEM_CALLER() external view returns (address);
    function acceptOwnership() external;
    function batchWithdraw(bytes32[] memory txIds, bytes4[] memory outputIds) external payable;
    function deposit(Bridge.Transaction memory moveTx, Bridge.MerkleProof memory proof, bytes32 shaScriptPubkeys) external;
    function depositAmount() external view returns (uint256);
    function depositPrefix() external view returns (bytes memory);
    function depositSuffix() external view returns (bytes memory);
    function depositTxIds(uint256) external view returns (bytes32);
    function failedDepositVault() external view returns (address);
    function getAggregatedKey() external view returns (bytes memory);
    function getWithdrawalCount() external view returns (uint256);
    function initialize(bytes memory _depositPrefix, bytes memory _depositSuffix, uint256 _depositAmount) external;
    function initialized() external view returns (bool);
    function operator() external view returns (address);
    function owner() external view returns (address);
    function pendingOwner() external view returns (address);
    function processedTxIds(bytes32) external view returns (bool);
    function renounceOwnership() external;
    function replaceDeposit(Bridge.Transaction memory replaceTx, Bridge.MerkleProof memory proof, uint256 idToReplace, bytes32 shaScriptPubkeys) external;
    function replacePrefix() external view returns (bytes memory);
    function replaceSuffix() external view returns (bytes memory);
    function safeWithdraw(Bridge.Transaction memory prepareTx, Bridge.MerkleProof memory prepareProof, Bridge.Transaction memory payoutTx, bytes memory blockHeader, bytes memory scriptPubKey) external payable;
    function setDepositScript(bytes memory _depositPrefix, bytes memory _depositSuffix) external;
    function setFailedDepositVault(address _failedDepositVault) external;
    function setOperator(address _operator) external;
    function setReplaceScript(bytes memory _replacePrefix, bytes memory _replaceSuffix) external;
    function transferOwnership(address newOwner) external;
    function withdraw(bytes32 txId, bytes4 outputId) external payable;
    function withdrawalUTXOs(uint256) external view returns (bytes32 txId, bytes4 outputId);
}

…which was generated by the following JSON ABI:

[
  {
    "type": "function",
    "name": "CODESEP_POS",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "EPOCH",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "INPUT_INDEX",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "KEY_VERSION",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "LIGHT_CLIENT",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract BitcoinLightClient"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "SCHNORR_VERIFIER_PRECOMPILE",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "SIGHASH_ALL_HASH_TYPE",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "SIGHASH_SINGLE_ANYONECANPAY_HASH_TYPE",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "SPEND_TYPE_EXT",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "SPEND_TYPE_NO_EXT",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "SYSTEM_CALLER",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "acceptOwnership",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "batchWithdraw",
    "inputs": [
      {
        "name": "txIds",
        "type": "bytes32[]",
        "internalType": "bytes32[]"
      },
      {
        "name": "outputIds",
        "type": "bytes4[]",
        "internalType": "bytes4[]"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "type": "function",
    "name": "deposit",
    "inputs": [
      {
        "name": "moveTx",
        "type": "tuple",
        "internalType": "struct Bridge.Transaction",
        "components": [
          {
            "name": "version",
            "type": "bytes4",
            "internalType": "bytes4"
          },
          {
            "name": "flag",
            "type": "bytes2",
            "internalType": "bytes2"
          },
          {
            "name": "vin",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "vout",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "witness",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "locktime",
            "type": "bytes4",
            "internalType": "bytes4"
          }
        ]
      },
      {
        "name": "proof",
        "type": "tuple",
        "internalType": "struct Bridge.MerkleProof",
        "components": [
          {
            "name": "intermediateNodes",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "blockHeight",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "index",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      },
      {
        "name": "shaScriptPubkeys",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "depositAmount",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "depositPrefix",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "depositSuffix",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "depositTxIds",
    "inputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "failedDepositVault",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "getAggregatedKey",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "getWithdrawalCount",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "initialize",
    "inputs": [
      {
        "name": "_depositPrefix",
        "type": "bytes",
        "internalType": "bytes"
      },
      {
        "name": "_depositSuffix",
        "type": "bytes",
        "internalType": "bytes"
      },
      {
        "name": "_depositAmount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "initialized",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "operator",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "owner",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "pendingOwner",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "processedTxIds",
    "inputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "renounceOwnership",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "replaceDeposit",
    "inputs": [
      {
        "name": "replaceTx",
        "type": "tuple",
        "internalType": "struct Bridge.Transaction",
        "components": [
          {
            "name": "version",
            "type": "bytes4",
            "internalType": "bytes4"
          },
          {
            "name": "flag",
            "type": "bytes2",
            "internalType": "bytes2"
          },
          {
            "name": "vin",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "vout",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "witness",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "locktime",
            "type": "bytes4",
            "internalType": "bytes4"
          }
        ]
      },
      {
        "name": "proof",
        "type": "tuple",
        "internalType": "struct Bridge.MerkleProof",
        "components": [
          {
            "name": "intermediateNodes",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "blockHeight",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "index",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      },
      {
        "name": "idToReplace",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "shaScriptPubkeys",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "replacePrefix",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "replaceSuffix",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "safeWithdraw",
    "inputs": [
      {
        "name": "prepareTx",
        "type": "tuple",
        "internalType": "struct Bridge.Transaction",
        "components": [
          {
            "name": "version",
            "type": "bytes4",
            "internalType": "bytes4"
          },
          {
            "name": "flag",
            "type": "bytes2",
            "internalType": "bytes2"
          },
          {
            "name": "vin",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "vout",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "witness",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "locktime",
            "type": "bytes4",
            "internalType": "bytes4"
          }
        ]
      },
      {
        "name": "prepareProof",
        "type": "tuple",
        "internalType": "struct Bridge.MerkleProof",
        "components": [
          {
            "name": "intermediateNodes",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "blockHeight",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "index",
            "type": "uint256",
            "internalType": "uint256"
          }
        ]
      },
      {
        "name": "payoutTx",
        "type": "tuple",
        "internalType": "struct Bridge.Transaction",
        "components": [
          {
            "name": "version",
            "type": "bytes4",
            "internalType": "bytes4"
          },
          {
            "name": "flag",
            "type": "bytes2",
            "internalType": "bytes2"
          },
          {
            "name": "vin",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "vout",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "witness",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "locktime",
            "type": "bytes4",
            "internalType": "bytes4"
          }
        ]
      },
      {
        "name": "blockHeader",
        "type": "bytes",
        "internalType": "bytes"
      },
      {
        "name": "scriptPubKey",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "type": "function",
    "name": "setDepositScript",
    "inputs": [
      {
        "name": "_depositPrefix",
        "type": "bytes",
        "internalType": "bytes"
      },
      {
        "name": "_depositSuffix",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "setFailedDepositVault",
    "inputs": [
      {
        "name": "_failedDepositVault",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "setOperator",
    "inputs": [
      {
        "name": "_operator",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "setReplaceScript",
    "inputs": [
      {
        "name": "_replacePrefix",
        "type": "bytes",
        "internalType": "bytes"
      },
      {
        "name": "_replaceSuffix",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "transferOwnership",
    "inputs": [
      {
        "name": "newOwner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "withdraw",
    "inputs": [
      {
        "name": "txId",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "outputId",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "type": "function",
    "name": "withdrawalUTXOs",
    "inputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "txId",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "outputId",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "event",
    "name": "Deposit",
    "inputs": [
      {
        "name": "wtxId",
        "type": "bytes32",
        "indexed": false,
        "internalType": "bytes32"
      },
      {
        "name": "txId",
        "type": "bytes32",
        "indexed": false,
        "internalType": "bytes32"
      },
      {
        "name": "recipient",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "timestamp",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "depositId",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "DepositReplaced",
    "inputs": [
      {
        "name": "index",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "oldTxId",
        "type": "bytes32",
        "indexed": false,
        "internalType": "bytes32"
      },
      {
        "name": "newTxId",
        "type": "bytes32",
        "indexed": false,
        "internalType": "bytes32"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "DepositScriptUpdate",
    "inputs": [
      {
        "name": "depositPrefix",
        "type": "bytes",
        "indexed": false,
        "internalType": "bytes"
      },
      {
        "name": "depositSuffix",
        "type": "bytes",
        "indexed": false,
        "internalType": "bytes"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "DepositTransferFailed",
    "inputs": [
      {
        "name": "wtxId",
        "type": "bytes32",
        "indexed": false,
        "internalType": "bytes32"
      },
      {
        "name": "txId",
        "type": "bytes32",
        "indexed": false,
        "internalType": "bytes32"
      },
      {
        "name": "recipient",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "timestamp",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "depositId",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "FailedDepositVaultUpdated",
    "inputs": [
      {
        "name": "oldVault",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "newVault",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "Initialized",
    "inputs": [
      {
        "name": "version",
        "type": "uint64",
        "indexed": false,
        "internalType": "uint64"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "OperatorUpdated",
    "inputs": [
      {
        "name": "oldOperator",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "newOperator",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "OwnershipTransferStarted",
    "inputs": [
      {
        "name": "previousOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "newOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "OwnershipTransferred",
    "inputs": [
      {
        "name": "previousOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "newOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "ReplaceScriptUpdate",
    "inputs": [
      {
        "name": "replacePrefix",
        "type": "bytes",
        "indexed": false,
        "internalType": "bytes"
      },
      {
        "name": "replaceSuffix",
        "type": "bytes",
        "indexed": false,
        "internalType": "bytes"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "SafeWithdrawal",
    "inputs": [
      {
        "name": "payoutTx",
        "type": "tuple",
        "indexed": false,
        "internalType": "struct Bridge.Transaction",
        "components": [
          {
            "name": "version",
            "type": "bytes4",
            "internalType": "bytes4"
          },
          {
            "name": "flag",
            "type": "bytes2",
            "internalType": "bytes2"
          },
          {
            "name": "vin",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "vout",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "witness",
            "type": "bytes",
            "internalType": "bytes"
          },
          {
            "name": "locktime",
            "type": "bytes4",
            "internalType": "bytes4"
          }
        ]
      },
      {
        "name": "spentUtxo",
        "type": "tuple",
        "indexed": false,
        "internalType": "struct Bridge.UTXO",
        "components": [
          {
            "name": "txId",
            "type": "bytes32",
            "internalType": "bytes32"
          },
          {
            "name": "outputId",
            "type": "bytes4",
            "internalType": "bytes4"
          }
        ]
      },
      {
        "name": "index",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "type": "event",
    "name": "Withdrawal",
    "inputs": [
      {
        "name": "utxo",
        "type": "tuple",
        "indexed": false,
        "internalType": "struct Bridge.UTXO",
        "components": [
          {
            "name": "txId",
            "type": "bytes32",
            "internalType": "bytes32"
          },
          {
            "name": "outputId",
            "type": "bytes4",
            "internalType": "bytes4"
          }
        ]
      },
      {
        "name": "index",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "timestamp",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "type": "error",
    "name": "InvalidInitialization",
    "inputs": []
  },
  {
    "type": "error",
    "name": "NotInitializing",
    "inputs": []
  },
  {
    "type": "error",
    "name": "OwnableInvalidOwner",
    "inputs": [
      {
        "name": "owner",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "type": "error",
    "name": "OwnableUnauthorizedAccount",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      }
    ]
  }
]

Structs§

Enums§

Statics§

  • The creation / init bytecode of the contract.
  • The runtime bytecode of the contract, as deployed on the network.

Functions§

  • Deploys this contract using the given provider and constructor arguments, if any.
  • Creates a RawCallBuilder for deploying this contract using the given provider and constructor arguments, if any.
  • Creates a new wrapper around an on-chain BRIDGE_CONTRACT contract instance.