IWETHNativeConverter: Interface for the WETH Native Converter (Converts between WETH and its bridged representation across networks, with additional gas backing functionality)
vb/converters/IWETHNativeConverter.sol
0x3aFbD158CF7B1E6BE4dAC88bC173FA65EBDf2EcD
0xa6B0DB1293144Ebe9478B6a84F75dd651E45914a
0x409834270b6F2591DD6c1e9f351E4194B112dA44
DEFAULT_ADMIN_ROLE()
MIGRATOR_ROLE()
PAUSER_ROLE()
backingOnLayerY()
convert(uint256,address)
convertWithPermit(uint256,address,bytes)
customToken()
deconvert(uint256,address)
deconvertAndBridge(uint256,address,uint32,bool)
getRoleAdmin(bytes32)
grantRole(bytes32,address)
hasRole(bytes32,address)
initialize(address,uint8,address,address,address,uint32,uint256,address,uint256)
layerXLxlyId()
lxlyBridge()
lxlyId()
maxDeconvert(address)
migratableBacking()
migratableGasBacking()
migrateBackingToLayerX(uint256)
migrateGasBackingToLayerX(uint256)
migrationManager()
nonMigratableBackingPercentage()
nonMigratableGasBackingPercentage()
pause()
paused()
renounceRole(bytes32,address)
revokeRole(bytes32,address)
setNonMigratableBackingPercentage(uint256)
setNonMigratableGasBackingPercentage(uint256)
supportsInterface(bytes4)
underlyingToken()
unpause()
version()
[
{
"inputs": [],
"name": "AccessControlBadConfirmation",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "bytes32",
"name": "neededRole",
"type": "bytes32"
}
],
"name": "AccessControlUnauthorizedAccount",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "availableAssets",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requestedAssets",
"type": "uint256"
}
],
"name": "AssetsTooLarge",
"type": "error"
},
{
"inputs": [],
"name": "EnforcedPause",
"type": "error"
},
{
"inputs": [],
"name": "ExpectedPause",
"type": "error"
},
{
"inputs": [],
"name": "FunctionNotSupportedOnThisNetwork",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "minimumAmount",
"type": "uint256"
}
],
"name": "InvalidAmountInERC20Permit",
"type": "error"
},
{
"inputs": [],
"name": "InvalidAssets",
"type": "error"
},
{
"inputs": [],
"name": "InvalidCustomToken",
"type": "error"
},
{
"inputs": [],
"name": "InvalidDestinationNetworkId",
"type": "error"
},
{
"inputs": [],
"name": "InvalidInitialization",
"type": "error"
},
{
"inputs": [],
"name": "InvalidLayerXLxlyId",
"type": "error"
},
{
"inputs": [],
"name": "InvalidLxLyBridge",
"type": "error"
},
{
"inputs": [],
"name": "InvalidMigrationManager",
"type": "error"
},
{
"inputs": [],
"name": "InvalidNonMigratableBackingPercentage",
"type": "error"
},
{
"inputs": [],
"name": "InvalidNonMigratableGasBackingPercentage",
"type": "error"
},
{
"inputs": [],
"name": "InvalidOwner",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "expectedOwner",
"type": "address"
}
],
"name": "InvalidOwnerInERC20Permit",
"type": "error"
},
{
"inputs": [],
"name": "InvalidPermitData",
"type": "error"
},
{
"inputs": [],
"name": "InvalidReceiver",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "selector",
"type": "bytes4"
}
],
"name": "InvalidSelectorInERC20Permit",
"type": "error"
},
{
"inputs": [],
"name": "InvalidShares",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "spender",
"type": "address"
},
{
"internalType": "address",
"name": "expectedSpender",
"type": "address"
}
],
"name": "InvalidSpenderInERC20Permit",
"type": "error"
},
{
"inputs": [],
"name": "InvalidUnderlyingToken",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "customTokenDecimals",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "originalUnderlyingTokenDecimals",
"type": "uint8"
}
],
"name": "NonMatchingCustomTokenDecimals",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "underlyingTokenDecimals",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "originalUnderlyingTokenDecimals",
"type": "uint8"
}
],
"name": "NonMatchingUnderlyingTokenDecimals",
"type": "error"
},
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
{
"inputs": [],
"name": "OnlyMigrator",
"type": "error"
},
{
"inputs": [],
"name": "ReentrancyGuardReentrantCall",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "SafeERC20FailedOperation",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "version",
"type": "uint64"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "mintedCustomToken",
"type": "uint256"
},
{
"indexed": true,
"internalType": "uint256",
"name": "migratedBacking",
"type": "uint256"
}
],
"name": "MigrationStarted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "nonMigratableBackingPercentage",
"type": "uint256"
}
],
"name": "NonMigratableBackingPercentageSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "nonMigratableGasBackingPercentage_",
"type": "uint256"
}
],
"name": "NonMigratableGasBackingPercentageSet",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Paused",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "previousAdminRole",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "newAdminRole",
"type": "bytes32"
}
],
"name": "RoleAdminChanged",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleGranted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "account",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
}
],
"name": "RoleRevoked",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Unpaused",
"type": "event"
},
{
"inputs": [],
"name": "DEFAULT_ADMIN_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MIGRATOR_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PAUSER_ROLE",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "backingOnLayerY",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "assets",
"type": "uint256"
},
{
"internalType": "address",
"name": "receiver",
"type": "address"
}
],
"name": "convert",
"outputs": [
{
"internalType": "uint256",
"name": "shares",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "assets",
"type": "uint256"
},
{
"internalType": "address",
"name": "receiver",
"type": "address"
},
{
"internalType": "bytes",
"name": "permitData",
"type": "bytes"
}
],
"name": "convertWithPermit",
"outputs": [
{
"internalType": "uint256",
"name": "shares",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "customToken",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shares",
"type": "uint256"
},
{
"internalType": "address",
"name": "receiver",
"type": "address"
}
],
"name": "deconvert",
"outputs": [
{
"internalType": "uint256",
"name": "assets",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "shares",
"type": "uint256"
},
{
"internalType": "address",
"name": "receiver",
"type": "address"
},
{
"internalType": "uint32",
"name": "destinationNetworkId",
"type": "uint32"
},
{
"internalType": "bool",
"name": "forceUpdateGlobalExitRoot",
"type": "bool"
}
],
"name": "deconvertAndBridge",
"outputs": [
{
"internalType": "uint256",
"name": "assets",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
}
],
"name": "getRoleAdmin",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "grantRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "hasRole",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner_",
"type": "address"
},
{
"internalType": "uint8",
"name": "originalUnderlyingTokenDecimals_",
"type": "uint8"
},
{
"internalType": "address",
"name": "customToken_",
"type": "address"
},
{
"internalType": "address",
"name": "underlyingToken_",
"type": "address"
},
{
"internalType": "address",
"name": "lxlyBridge_",
"type": "address"
},
{
"internalType": "uint32",
"name": "layerXNetworkId_",
"type": "uint32"
},
{
"internalType": "uint256",
"name": "nonMigratableBackingPercentage_",
"type": "uint256"
},
{
"internalType": "address",
"name": "migrationManager_",
"type": "address"
},
{
"internalType": "uint256",
"name": "nonMigratableGasBackingPercentage_",
"type": "uint256"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "layerXLxlyId",
"outputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "lxlyBridge",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "lxlyId",
"outputs": [
{
"internalType": "uint32",
"name": "",
"type": "uint32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "maxDeconvert",
"outputs": [
{
"internalType": "uint256",
"name": "maxShares",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "migratableBacking",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "migratableGasBacking",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "assets",
"type": "uint256"
}
],
"name": "migrateBackingToLayerX",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "migrateGasBackingToLayerX",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "migrationManager",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "nonMigratableBackingPercentage",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "nonMigratableGasBackingPercentage",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "paused",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "callerConfirmation",
"type": "address"
}
],
"name": "renounceRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "role",
"type": "bytes32"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "revokeRole",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nonMigratableBackingPercentage_",
"type": "uint256"
}
],
"name": "setNonMigratableBackingPercentage",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "nonMigratableGasBackingPercentage_",
"type": "uint256"
}
],
"name": "setNonMigratableGasBackingPercentage",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "underlyingToken",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "unpause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
]
Was this page helpful?