Skip to content
Verified contractExactUnlicense

SponsoredCCTPDstPeriphery

Address0x214c19fbcdfb683f2c726b4bbaf24ab483bfadf3
Balance

0 ETH

 

Transactions

31,172

 

Compiler

solc 0.8.30

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.30+commit.73712a01
Language
solidity
Optimization
Yes, 300 runs
EVM version
prague
Via IR
yes
License
Unlicense
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
25,050,837
Creation transaction
0xd3a1f51d69…a49ba408e2

Read17

  • AUTHORIZED_FUNDED_FLOW_SLOT() → (bytes32)
  • DEFAULT_ADMIN_ROLE() → (bytes32)
  • DIRECT_CALLER_ROLE() → (bytes32)
  • FUNDS_SWEEPER_ROLE() → (bytes32)
  • PERMISSIONED_BOT_ROLE() → (bytes32)
  • baseToken() → (address)
  • cctpMessageTransmitter() → (address)
  • cctpTokenMessenger() → (address)
  • getRoleAdmin(bytes32) → (bytes32)
  • hasRole(bytes32,address) → (bool)
  • hyperCoreModule() → (address)
  • multicallHandler() → (address)
  • quoteDeadlineBuffer() → (uint256)
  • signer() → (address)
  • supportsInterface(bytes4) → (bool)
  • usedNonces(bytes32) → (bool)
  • validateMessage(bytes) → (bool)

Write8

  • directReceiveMessage(tuple)
  • emergencyReceiveMessage(bytes,bytes)
  • grantRole(bytes32,address)
  • receiveMessage(bytes,bytes,bytes)
  • renounceRole(bytes32,address)
  • revokeRole(bytes32,address)
  • setQuoteDeadlineBuffer(uint256)
  • setSigner(address)

Events8

  • ArbitraryActionsExecuted(bytes32,address,uint256,address,uint256)
  • EmergencyReceiveMessage(bytes32,address,address,uint256)
  • Initialized(uint64)
  • RoleAdminChanged(bytes32,bytes32,bytes32)
  • RoleGranted(bytes32,address,address)
  • RoleRevoked(bytes32,address,address)
  • SponsoredCCTPDirectExecution(bytes32,address,bytes32,uint256,uint256,uint256,bytes32,uint32,uint8,bytes)
  • SponsoredDepositForBurn(bytes32,address,bytes32,uint256,uint256,uint256,bytes32,uint32,uint8,bytes)

Errors18

  • AccessControlBadConfirmation()
  • AccessControlUnauthorizedAccount(address,bytes32)
  • CCTPMessageTransmitterFailed()
  • FundedFlowNotAuthorized()
  • InvalidBurnToken()
  • InvalidBytes32()
  • InvalidDeadline()
  • InvalidDirectHandler()
  • InvalidInitialization()
  • InvalidMintedAmount()
  • InvalidMintedToken()
  • InvalidNonce()
  • InvalidRecipient()
  • InvalidSignature()
  • InvalidSourceDomain()
  • NotInitializing()
  • OutOfBounds()
  • SafeERC20FailedOperation(address)

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "_cctpMessageTransmitter",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_cctpTokenMessenger",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_signer",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_donationBox",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_baseToken",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_multicallHandler",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "name": "AccessControlBadConfirmation",
    "type": "error",
    "inputs": []
  },
  {
    "name": "AccessControlUnauthorizedAccount",
    "type": "error",
    "inputs": [
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "neededRole",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ]
  },
  {
    "name": "CCTPMessageTransmitterFailed",
    "type": "error",
    "inputs": []
  },
  {
    "name": "FundedFlowNotAuthorized",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidBurnToken",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidBytes32",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidDeadline",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidDirectHandler",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidInitialization",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidMintedAmount",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidMintedToken",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidNonce",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidRecipient",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidSignature",
    "type": "error",
    "inputs": []
  },
  {
    "name": "InvalidSourceDomain",
    "type": "error",
    "inputs": []
  },
  {
    "name": "NotInitializing",
    "type": "error",
    "inputs": []
  },
  {
    "name": "OutOfBounds",
    "type": "error",
    "inputs": []
  },
  {
    "name": "SafeERC20FailedOperation",
    "type": "error",
    "inputs": [
      {
        "name": "token",
        "type": "address",
        "internalType": "address"
      }
    ]
  },
  {
    "name": "ArbitraryActionsExecuted",
    "type": "event",
    "inputs": [
      {
        "name": "quoteNonce",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "initialToken",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "initialAmount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "finalToken",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "finalAmount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "EmergencyReceiveMessage",
    "type": "event",
    "inputs": [
      {
        "name": "nonce",
        "type": "bytes32",
        "indexed": false,
        "internalType": "bytes32"
      },
      {
        "name": "finalRecipent",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "finalToken",
        "type": "address",
        "indexed": false,
        "internalType": "address"
      },
      {
        "name": "amount",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      }
    ],
    "anonymous": false
  },
  {
    "name": "Initialized",
    "type": "event",
    "inputs": [
      {
        "name": "version",
        "type": "uint64",
        "indexed": false,
        "internalType": "uint64"
      }
    ],
    "anonymous": false
  },
  {
    "name": "RoleAdminChanged",
    "type": "event",
    "inputs": [
      {
        "name": "role",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "previousAdminRole",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "newAdminRole",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      }
    ],
    "anonymous": false
  },
  {
    "name": "RoleGranted",
    "type": "event",
    "inputs": [
      {
        "name": "role",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "account",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "sender",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "RoleRevoked",
    "type": "event",
    "inputs": [
      {
        "name": "role",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "account",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "sender",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      }
    ],
    "anonymous": false
  },
  {
    "name": "SponsoredCCTPDirectExecution",
    "type": "event",
    "inputs": [
      {
        "name": "quoteNonce",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "originSender",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "finalRecipient",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "quoteDeadline",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "maxBpsToSponsor",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "maxUserSlippageBps",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "finalToken",
        "type": "bytes32",
        "indexed": false,
        "internalType": "bytes32"
      },
      {
        "name": "destinationDex",
        "type": "uint32",
        "indexed": false,
        "internalType": "uint32"
      },
      {
        "name": "accountCreationMode",
        "type": "uint8",
        "indexed": false,
        "internalType": "uint8"
      },
      {
        "name": "signature",
        "type": "bytes",
        "indexed": false,
        "internalType": "bytes"
      }
    ],
    "anonymous": false
  },
  {
    "name": "SponsoredDepositForBurn",
    "type": "event",
    "inputs": [
      {
        "name": "quoteNonce",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "originSender",
        "type": "address",
        "indexed": true,
        "internalType": "address"
      },
      {
        "name": "finalRecipient",
        "type": "bytes32",
        "indexed": true,
        "internalType": "bytes32"
      },
      {
        "name": "quoteDeadline",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "maxBpsToSponsor",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "maxUserSlippageBps",
        "type": "uint256",
        "indexed": false,
        "internalType": "uint256"
      },
      {
        "name": "finalToken",
        "type": "bytes32",
        "indexed": false,
        "internalType": "bytes32"
      },
      {
        "name": "destinationDex",
        "type": "uint32",
        "indexed": false,
        "internalType": "uint32"
      },
      {
        "name": "accountCreationMode",
        "type": "uint8",
        "indexed": false,
        "internalType": "uint8"
      },
      {
        "name": "signature",
        "type": "bytes",
        "indexed": false,
        "internalType": "bytes"
      }
    ],
    "anonymous": false
  },
  {
    "type": "fallback",
    "stateMutability": "nonpayable"
  },
  {
    "name": "AUTHORIZED_FUNDED_FLOW_SLOT",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "DEFAULT_ADMIN_ROLE",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "DIRECT_CALLER_ROLE",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "FUNDS_SWEEPER_ROLE",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "PERMISSIONED_BOT_ROLE",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "baseToken",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "cctpMessageTransmitter",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract IMessageTransmitterV2"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "cctpTokenMessenger",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract ITokenMessengerV2"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "directReceiveMessage",
    "type": "function",
    "inputs": [
      {
        "name": "quote",
        "type": "tuple",
        "components": [
          {
            "name": "sourceDomain",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "destinationDomain",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "mintRecipient",
            "type": "bytes32",
            "internalType": "bytes32"
          },
          {
            "name": "amount",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "burnToken",
            "type": "bytes32",
            "internalType": "bytes32"
          },
          {
            "name": "destinationCaller",
            "type": "bytes32",
            "internalType": "bytes32"
          },
          {
            "name": "maxFee",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "minFinalityThreshold",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "nonce",
            "type": "bytes32",
            "internalType": "bytes32"
          },
          {
            "name": "deadline",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "maxBpsToSponsor",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "maxUserSlippageBps",
            "type": "uint256",
            "internalType": "uint256"
          },
          {
            "name": "finalRecipient",
            "type": "bytes32",
            "internalType": "bytes32"
          },
          {
            "name": "finalToken",
            "type": "bytes32",
            "internalType": "bytes32"
          },
          {
            "name": "destinationDex",
            "type": "uint32",
            "internalType": "uint32"
          },
          {
            "name": "accountCreationMode",
            "type": "uint8",
            "internalType": "uint8"
          },
          {
            "name": "executionMode",
            "type": "uint8",
            "internalType": "uint8"
          },
          {
            "name": "actionData",
            "type": "bytes",
            "internalType": "bytes"
          }
        ],
        "internalType": "struct SponsoredCCTPInterface.SponsoredCCTPQuote"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "emergencyReceiveMessage",
    "type": "function",
    "inputs": [
      {
        "name": "message",
        "type": "bytes",
        "internalType": "bytes"
      },
      {
        "name": "attestation",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "getRoleAdmin",
    "type": "function",
    "inputs": [
      {
        "name": "role",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "grantRole",
    "type": "function",
    "inputs": [
      {
        "name": "role",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "hasRole",
    "type": "function",
    "inputs": [
      {
        "name": "role",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "hyperCoreModule",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "multicallHandler",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "quoteDeadlineBuffer",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "receiveMessage",
    "type": "function",
    "inputs": [
      {
        "name": "message",
        "type": "bytes",
        "internalType": "bytes"
      },
      {
        "name": "attestation",
        "type": "bytes",
        "internalType": "bytes"
      },
      {
        "name": "signature",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "renounceRole",
    "type": "function",
    "inputs": [
      {
        "name": "role",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "callerConfirmation",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "revokeRole",
    "type": "function",
    "inputs": [
      {
        "name": "role",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setQuoteDeadlineBuffer",
    "type": "function",
    "inputs": [
      {
        "name": "_quoteDeadlineBuffer",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setSigner",
    "type": "function",
    "inputs": [
      {
        "name": "_signer",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "signer",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "supportsInterface",
    "type": "function",
    "inputs": [
      {
        "name": "interfaceId",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "usedNonces",
    "type": "function",
    "inputs": [
      {
        "name": "nonce",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "validateMessage",
    "type": "function",
    "inputs": [
      {
        "name": "message",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "receive",
    "stateMutability": "payable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.