Skip to content
Verified contractExactUNLICENSED

RouteTransferWrapper

Address0xde72bf9a7b1dd9376ad2d7d02463d65d20249331
Balance

0 ETH

 

Transactions

301

 

Compiler

solc 0.8.20

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.20+commit.a1b79de6
Language
solidity
Optimization
Yes, 999,999 runs
EVM version
paris
License
UNLICENSED
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
20,260,927
Creation transaction
0xa402222b09…b420ff598f

Read10

  • DEFAULT_ADMIN_ROLE() → (bytes32)
  • ROUTE_TOKEN() → (address)
  • assetvault() → (address)
  • gatewayContract() → (address)
  • getRequestMetadata(uint64,uint64,uint64,uint64,uint128,uint8,bool,string) → (bytes)
  • getRoleAdmin(bytes32) → (bytes32)
  • hasRole(bytes32,address) → (bool)
  • requestMetadata() → (bytes)
  • requestPacket() → (bytes)
  • supportsInterface(bytes4) → (bool)

Write7

  • deposit(uint256,string,string)
  • grantRole(bytes32,address)
  • renounceRole(bytes32,address)
  • revokeRole(bytes32,address)
  • setDappMetadata(string)
  • update(uint8,address,bytes,string)
  • withdrawFee(address,address,uint256,uint256)

Events3

  • RoleAdminChanged(bytes32,bytes32,bytes32)
  • RoleGranted(bytes32,address,address)
  • RoleRevoked(bytes32,address,address)

ABI as JSON

[
  {
    "type": "constructor",
    "inputs": [
      {
        "name": "routeToken",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_gatewayContract",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_assetvault",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "feePayerAddress",
        "type": "string",
        "internalType": "string"
      }
    ],
    "stateMutability": "nonpayable"
  },
  {
    "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": "DEFAULT_ADMIN_ROLE",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "ROUTE_TOKEN",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract IERC20"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "assetvault",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "deposit",
    "type": "function",
    "inputs": [
      {
        "name": "_amount",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "destChainId",
        "type": "string",
        "internalType": "string"
      },
      {
        "name": "routeRecipient",
        "type": "string",
        "internalType": "string"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "name": "gatewayContract",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "contract IGateway"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "getRequestMetadata",
    "type": "function",
    "inputs": [
      {
        "name": "destGasLimit",
        "type": "uint64",
        "internalType": "uint64"
      },
      {
        "name": "destGasPrice",
        "type": "uint64",
        "internalType": "uint64"
      },
      {
        "name": "ackGasLimit",
        "type": "uint64",
        "internalType": "uint64"
      },
      {
        "name": "ackGasPrice",
        "type": "uint64",
        "internalType": "uint64"
      },
      {
        "name": "relayerFees",
        "type": "uint128",
        "internalType": "uint128"
      },
      {
        "name": "ackType",
        "type": "uint8",
        "internalType": "uint8"
      },
      {
        "name": "isReadCall",
        "type": "bool",
        "internalType": "bool"
      },
      {
        "name": "asmAddress",
        "type": "string",
        "internalType": "string"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "pure"
  },
  {
    "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": "renounceRole",
    "type": "function",
    "inputs": [
      {
        "name": "role",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "requestMetadata",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "requestPacket",
    "type": "function",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "bytes",
        "internalType": "bytes"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "revokeRole",
    "type": "function",
    "inputs": [
      {
        "name": "role",
        "type": "bytes32",
        "internalType": "bytes32"
      },
      {
        "name": "account",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "setDappMetadata",
    "type": "function",
    "inputs": [
      {
        "name": "feePayer",
        "type": "string",
        "internalType": "string"
      }
    ],
    "outputs": [],
    "stateMutability": "payable"
  },
  {
    "name": "supportsInterface",
    "type": "function",
    "inputs": [
      {
        "name": "interfaceId",
        "type": "bytes4",
        "internalType": "bytes4"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bool",
        "internalType": "bool"
      }
    ],
    "stateMutability": "view"
  },
  {
    "name": "update",
    "type": "function",
    "inputs": [
      {
        "name": "index",
        "type": "uint8",
        "internalType": "uint8"
      },
      {
        "name": "_address",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "_bytes",
        "type": "bytes",
        "internalType": "bytes"
      },
      {
        "name": "_string",
        "type": "string",
        "internalType": "string"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "name": "withdrawFee",
    "type": "function",
    "inputs": [
      {
        "name": "tokenAddress",
        "type": "address",
        "internalType": "address"
      },
      {
        "name": "recipient",
        "type": "address",
        "internalType": "address payable"
      },
      {
        "name": "gasLimit",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "amount",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  }
]

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.