Skip to content
Verified contractExactMIT

XChainSender

Address0xe82e2d3b9db59f7c7b438239d92e2190a64e26ce
Balance

0 ETH

 

Transactions

54,111

 

Compiler

solc 0.8.26

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.26+commit.8a97fa7a
Language
solidity
Optimization
Yes, 1,000,000 runs
EVM version
cancun
Via IR
yes
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
22,764,508
Creation transaction
0x33d77c5e79…dff47c2763

Read10

  • PERMIT2() → (address)
  • WETH() → (address)
  • getNextOrderId() → (bytes32)
  • isBridgeAdapterWhitelisted(address) → (bool)
  • isSwapFunctionWhitelisted(address,bytes) → (bool)
  • isSwapFunctionWhitelisted(address,bytes4) → (bool)
  • numberOfOrders() → (uint256)
  • owner() → (address)
  • paused() → (bool)
  • pendingOwner() → (address)

Write8

  • acceptOwnership()
  • pause()
  • renounceOwnership()
  • send(tuple)
  • setBridgeAdapterWhitelist(address,bool)
  • setSwapFunctionWhitelist(address,bytes4,bool)
  • transferOwnership(address)
  • unpause()

Events7

  • OwnershipTransferStarted(address,address)
  • OwnershipTransferred(address,address)
  • Paused(address)
  • Send(bytes32,bytes)
  • SetBridgeAdapterWhitelist(address,bool)
  • SetSwapFunctionWhitelist(address,bytes4,bool)
  • Unpaused(address)

Errors19

  • AddressZero()
  • BridgeAdapterNotWhitelisted()
  • CommandNotSupported(uint256)
  • DisallowCombination()
  • EnforcedPause()
  • ExpectedPause()
  • FailSwapCall(bytes32,address)
  • InsufficientBridgeInputBalance()
  • InsufficientETH()
  • InsufficientSendBalance()
  • InsufficientToken()
  • InvalidBytes32Address()
  • InvalidWhitelistSelector()
  • MoreThanOneBridgeCommand()
  • NoSwapAfterBridgeCommand()
  • OwnableInvalidOwner(address)
  • OwnableUnauthorizedAccount(address)
  • Reentrancy()
  • SwapFunctionNotWhitelisted()

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "owner",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "weth",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "permit2",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "AddressZero",
    "type": "error",
    "inputs": []
  },
  {
    "name": "BridgeAdapterNotWhitelisted",
    "type": "error",
    "inputs": []
  },
  {
    "name": "CommandNotSupported",
    "type": "error",
    "inputs": [
      {
        "name": "command",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "name": "DisallowCombination",
    "type": "error",
    "inputs": []
  },
  {
    "name": "EnforcedPause",
    "type": "error",
    "inputs": []
  },
  {
    "name": "ExpectedPause",
    "type": "error",
    "inputs": []
  },
  {
    "name": "FailSwapCall",
    "type": "error",
    "inputs": [
      {
        "name": "orderId",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "target",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "name": "InsufficientBridgeInputBalance",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InsufficientETH",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InsufficientSendBalance",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InsufficientToken",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidBytes32Address",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidWhitelistSelector",
    "type": "error",
    "inputs": []
  },
  {
    "name": "MoreThanOneBridgeCommand",
    "type": "error",
    "inputs": []
  },
  {
    "name": "NoSwapAfterBridgeCommand",
    "type": "error",
    "inputs": []
  },
  {
    "name": "OwnableInvalidOwner",
    "type": "error",
    "inputs": [
      {
        "name": "owner",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "name": "OwnableUnauthorizedAccount",
    "type": "error",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "name": "Reentrancy",
    "type": "error",
    "inputs": []
  },
  {
    "name": "SwapFunctionNotWhitelisted",
    "type": "error",
    "inputs": []
  },
  {
    "name": "OwnershipTransferStarted",
    "type": "event",
    "inputs": [
      {
        "name": "previousOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "newOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "OwnershipTransferred",
    "type": "event",
    "inputs": [
      {
        "name": "previousOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "newOwner",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Paused",
    "type": "event",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Send",
    "type": "event",
    "inputs": [
      {
        "name": "orderId",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "order",
        "type": "bytes",
        "indexed": false,
        "internalType": "bytes"
      }
    ],
    "anonymous": false
  },
  {
    "name": "SetBridgeAdapterWhitelist",
    "type": "event",
    "inputs": [
      {
        "name": "adapter",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "whitelisted",
        "type": "bool",
        "indexed": false,
        "internalType": "bool"
      }
    ],
    "anonymous": false
  },
  {
    "name": "SetSwapFunctionWhitelist",
    "type": "event",
    "inputs": [
      {
        "name": "target",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "selector",
        "type": "bytes4",
        "indexed": false,
        "internalType": "bytes4"
      },
      {
        "name": "whitelisted",
        "type": "bool",
        "indexed": false,
        "internalType": "bool"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Unpaused",
    "type": "event",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "PERMIT2",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "WETH",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract IWETH"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "acceptOwnership",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "getNextOrderId",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "isBridgeAdapterWhitelisted",
    "type": "function",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "isSwapFunctionWhitelisted",
    "type": "function",
    "inputs": [
      {
        "name": "target",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "input",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "isSwapFunctionWhitelisted",
    "type": "function",
    "inputs": [
      {
        "name": "target",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "selector",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "numberOfOrders",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "owner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "pause",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "paused",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "pendingOwner",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "renounceOwnership",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "send",
    "type": "function",
    "inputs": [
      {
        "name": "order",
        "type": "tuple",
        "components": [
          {
            "name": "inputToken",
            "type": "bytes32",
            "internalType": "bytes32"
          },
          {
            "name": "inputAmount",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "commands",
            "type": "tuple[]",
            "components": [
              {
                "name": "command",
                "type": "uint256",
                "internalType": "uint256"
              },
              {
                "name": "commandData",
                "type": "bytes",
                "internalType": "bytes"
              }
            ],
            "internalType": "struct PCSCommand[]"
          },
          {
            "name": "permit2Data",
            "type": "bytes",
            "internalType": "bytes"
          }
        ],
        "internalType": "struct PCSOrderData"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "name": "setBridgeAdapterWhitelist",
    "type": "function",
    "inputs": [
      {
        "name": "target",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "status",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setSwapFunctionWhitelist",
    "type": "function",
    "inputs": [
      {
        "name": "target",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "selector",
        "type": "bytes4",
        "internalType": "bytes4"
      },
      {
        "name": "status",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "transferOwnership",
    "type": "function",
    "inputs": [
      {
        "name": "newOwner",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "unpause",
    "type": "function",
    "inputs": [],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "receive",
    "stateMutability": "payable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.