@openzeppelin/contracts-upgradeable
Version:
Secure Smart Contract library for Solidity
276 lines (275 loc) • 5.78 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "BridgeERC20Upgradeable",
"sourceName": "contracts/crosschain/bridges/BridgeERC20Upgradeable.sol",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "gateway",
"type": "address"
},
{
"internalType": "bytes",
"name": "sender",
"type": "bytes"
}
],
"name": "ERC7786RecipientUnauthorizedGateway",
"type": "error"
},
{
"inputs": [],
"name": "InteroperableAddressEmptyReferenceAndAddress",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "InteroperableAddressParsingError",
"type": "error"
},
{
"inputs": [],
"name": "InvalidInitialization",
"type": "error"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "chain",
"type": "bytes"
}
],
"name": "LinkAlreadyRegistered",
"type": "error"
},
{
"inputs": [],
"name": "NotInitializing",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "bits",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "SafeCastOverflowedUintDowncast",
"type": "error"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "SafeERC20FailedOperation",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "receiveId",
"type": "bytes32"
},
{
"indexed": false,
"internalType": "bytes",
"name": "from",
"type": "bytes"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "CrosschainFungibleTransferReceived",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "bytes32",
"name": "sendId",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "to",
"type": "bytes"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "CrosschainFungibleTransferSent",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint64",
"name": "version",
"type": "uint64"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "gateway",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "counterpart",
"type": "bytes"
}
],
"name": "LinkRegistered",
"type": "event"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "to",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "crosschainTransfer",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "chain",
"type": "bytes"
}
],
"name": "getLink",
"outputs": [
{
"internalType": "address",
"name": "gateway",
"type": "address"
},
{
"internalType": "bytes",
"name": "counterpart",
"type": "bytes"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "receiveId",
"type": "bytes32"
},
{
"internalType": "bytes",
"name": "sender",
"type": "bytes"
},
{
"internalType": "bytes",
"name": "payload",
"type": "bytes"
}
],
"name": "receiveMessage",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "token",
"outputs": [
{
"internalType": "contract IERC20",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}