Cipher-Zero/contracts/bridges/artifacts/build-info/b66b8d85cf64560595eaf08199589156.json
2024-09-01 23:29:11 +03:00

3119 lines
99 KiB
JSON

{
"id": "b66b8d85cf64560595eaf08199589156",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/bridges/ITokenBridge.sol": {
"content": "// contracts/Bridge.sol\n// SPDX-License-Identifier: Apache 2\n\npragma solidity ^0.8.26;\n\n\nimport \"./BridgeGetters.sol\";\n\ninterface ITokenBridge is BridgeGetters {\n /*\n * @dev Produce a AssetMeta message for a given token\n */\n function attestToken(address tokenAddress, uint32 nonce) external payable returns (uint64 sequence);\n\n /*\n * @notice Send eth through portal by first wrapping it to WETH.\n */\n function wrapAndTransferETH(\n uint16 recipientChain,\n bytes32 recipient,\n uint256 arbiterFee,\n uint32 nonce\n ) external payable returns (uint64 sequence);\n\n /*\n * @notice Send eth through portal by first wrapping it.\n *\n * @dev This type of transfer is called a \"contract-controlled transfer\".\n * There are three differences from a regular token transfer:\n * 1) Additional arbitrary payload can be attached to the message\n * 2) Only the recipient (typically a contract) can redeem the transaction\n * 3) The sender's address (msg.sender) is also included in the transaction payload\n *\n * With these three additional components, xDapps can implement cross-chain\n * composable interactions.\n */\n function wrapAndTransferETHWithPayload(\n uint16 recipientChain,\n bytes32 recipient,\n uint32 nonce,\n bytes memory payload\n ) external payable returns (uint64 sequence);\n\n /*\n * @notice Send ERC20 token through portal.\n */\n function transferTokens(\n address token,\n uint256 amount,\n uint16 recipientChain,\n bytes32 recipient,\n uint256 arbiterFee,\n uint32 nonce\n ) external payable returns (uint64 sequence);\n\n /*\n * @notice Send ERC20 token through portal.\n *\n * @dev This type of transfer is called a \"contract-controlled transfer\".\n * There are three differences from a regular token transfer:\n * 1) Additional arbitrary payload can be attached to the message\n * 2) Only the recipient (typically a contract) can redeem the transaction\n * 3) The sender's address (msg.sender) is also included in the transaction payload\n *\n * With these three additional components, xDapps can implement cross-chain\n * composable interactions.\n */\n function transferTokensWithPayload(\n address token,\n uint256 amount,\n uint16 recipientChain,\n bytes32 recipient,\n uint32 nonce,\n bytes memory payload\n ) external payable returns (uint64 sequence); \n\n function updateWrapped(bytes memory encodedVm) external returns (address token);\n\n function createWrapped(bytes memory encodedVm) external returns (address token);\n\n /*\n * @notice Complete a contract-controlled transfer of an ERC20 token.\n *\n * @dev The transaction can only be redeemed by the recipient, typically a\n * contract.\n *\n * @param encodedVm A byte array containing a VAA signed by the guardians.\n *\n * @return The byte array representing a BridgeStructs.TransferWithPayload.\n */\n function completeTransferWithPayload(bytes memory encodedVm) external returns (bytes memory);\n\n /*\n * @notice Complete a contract-controlled transfer of WETH, and unwrap to ETH.\n *\n * @dev The transaction can only be redeemed by the recipient, typically a\n * contract.\n *\n * @param encodedVm A byte array containing a VAA signed by the guardians.\n *\n * @return The byte array representing a BridgeStructs.TransferWithPayload.\n */\n function completeTransferAndUnwrapETHWithPayload(bytes memory encodedVm) external returns (bytes memory);\n\n /*\n * @notice Complete a transfer of an ERC20 token.\n *\n * @dev The msg.sender gets paid the associated fee.\n *\n * @param encodedVm A byte array containing a VAA signed by the guardians.\n */\n function completeTransfer(bytes memory encodedVm) external ;\n\n /*\n * @notice Complete a transfer of WETH and unwrap to eth.\n *\n * @dev The msg.sender gets paid the associated fee.\n *\n * @param encodedVm A byte array containing a VAA signed by the guardians.\n */\n function completeTransferAndUnwrapETH(bytes memory encodedVm) external ;\n}"
},
"contracts/bridges/BridgeGetters.sol": {
"content": "// contracts/Getters.sol\n// SPDX-License-Identifier: Apache 2\n\npragma solidity ^0.8.26;\n\n\ninterface BridgeGetters {\n function governanceActionIsConsumed(bytes32 hash) external view returns (bool) ;\n function isInitialized(address impl) external view returns (bool) ;\n function isTransferCompleted(bytes32 hash) external view returns (bool) ;\n function chainId() external view returns (uint16);\n function governanceChainId() external view returns (uint16);\n function governanceContract() external view returns (bytes32);\n function wrappedAsset(uint16 tokenChainId, bytes32 tokenAddress) external view returns (address);\n function bridgeContracts(uint16 chainId_) external view returns (bytes32);\n function tokenImplementation() external view returns (address);\n function outstandingBridged(address token) external view returns (uint256);\n function isWrappedAsset(address token) external view returns (bool);\n}"
}
},
"settings": {
"optimizer": {
"enabled": false,
"runs": 200
},
"outputSelection": {
"*": {
"": [
"ast"
],
"*": [
"abi",
"metadata",
"devdoc",
"userdoc",
"storageLayout",
"evm.legacyAssembly",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"evm.gasEstimates",
"evm.assembly"
]
}
},
"remappings": []
}
},
"output": {
"contracts": {
"contracts/bridges/BridgeGetters.sol": {
"BridgeGetters": {
"abi": [
{
"inputs": [
{
"internalType": "uint16",
"name": "chainId_",
"type": "uint16"
}
],
"name": "bridgeContracts",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "chainId",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
}
],
"name": "governanceActionIsConsumed",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "governanceChainId",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "governanceContract",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "impl",
"type": "address"
}
],
"name": "isInitialized",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
}
],
"name": "isTransferCompleted",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "isWrappedAsset",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "outstandingBridged",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "tokenImplementation",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "tokenChainId",
"type": "uint16"
},
{
"internalType": "bytes32",
"name": "tokenAddress",
"type": "bytes32"
}
],
"name": "wrappedAsset",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"bridgeContracts(uint16)": "ad66a5f1",
"chainId()": "9a8a0592",
"governanceActionIsConsumed(bytes32)": "2c3c02a4",
"governanceChainId()": "fbe3c2cd",
"governanceContract()": "b172b222",
"isInitialized(address)": "d60b347f",
"isTransferCompleted(bytes32)": "aa4efa5b",
"isWrappedAsset(address)": "1a2be4da",
"outstandingBridged(address)": "b96c7e4d",
"tokenImplementation()": "2f3a3d5d",
"wrappedAsset(uint16,bytes32)": "1ff1e286"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"chainId_\",\"type\":\"uint16\"}],\"name\":\"bridgeContracts\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"chainId\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"governanceActionIsConsumed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"governanceChainId\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"governanceContract\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"isInitialized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"isTransferCompleted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"isWrappedAsset\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"outstandingBridged\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"tokenChainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"tokenAddress\",\"type\":\"bytes32\"}],\"name\":\"wrappedAsset\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/bridges/BridgeGetters.sol\":\"BridgeGetters\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/bridges/BridgeGetters.sol\":{\"keccak256\":\"0x9f0943f31319c6a794d5be62f4eeb6b8355337b66a8e41b7819c3a4e9d59bb7d\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://f34d674a311eebb5c40a5144a9998b7b1d33bd81a14131b2da76201fc1d95b87\",\"dweb:/ipfs/QmS7wmPF3uqkeJy4bwpgMiS3zetEUVn3E4jP8XCULR75uY\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
},
"contracts/bridges/ITokenBridge.sol": {
"ITokenBridge": {
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "tokenAddress",
"type": "address"
},
{
"internalType": "uint32",
"name": "nonce",
"type": "uint32"
}
],
"name": "attestToken",
"outputs": [
{
"internalType": "uint64",
"name": "sequence",
"type": "uint64"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "chainId_",
"type": "uint16"
}
],
"name": "bridgeContracts",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "chainId",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "encodedVm",
"type": "bytes"
}
],
"name": "completeTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "encodedVm",
"type": "bytes"
}
],
"name": "completeTransferAndUnwrapETH",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "encodedVm",
"type": "bytes"
}
],
"name": "completeTransferAndUnwrapETHWithPayload",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "encodedVm",
"type": "bytes"
}
],
"name": "completeTransferWithPayload",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "encodedVm",
"type": "bytes"
}
],
"name": "createWrapped",
"outputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
}
],
"name": "governanceActionIsConsumed",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "governanceChainId",
"outputs": [
{
"internalType": "uint16",
"name": "",
"type": "uint16"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "governanceContract",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "impl",
"type": "address"
}
],
"name": "isInitialized",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "hash",
"type": "bytes32"
}
],
"name": "isTransferCompleted",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "isWrappedAsset",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"name": "outstandingBridged",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "tokenImplementation",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "recipientChain",
"type": "uint16"
},
{
"internalType": "bytes32",
"name": "recipient",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "arbiterFee",
"type": "uint256"
},
{
"internalType": "uint32",
"name": "nonce",
"type": "uint32"
}
],
"name": "transferTokens",
"outputs": [
{
"internalType": "uint64",
"name": "sequence",
"type": "uint64"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint16",
"name": "recipientChain",
"type": "uint16"
},
{
"internalType": "bytes32",
"name": "recipient",
"type": "bytes32"
},
{
"internalType": "uint32",
"name": "nonce",
"type": "uint32"
},
{
"internalType": "bytes",
"name": "payload",
"type": "bytes"
}
],
"name": "transferTokensWithPayload",
"outputs": [
{
"internalType": "uint64",
"name": "sequence",
"type": "uint64"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "encodedVm",
"type": "bytes"
}
],
"name": "updateWrapped",
"outputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "recipientChain",
"type": "uint16"
},
{
"internalType": "bytes32",
"name": "recipient",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "arbiterFee",
"type": "uint256"
},
{
"internalType": "uint32",
"name": "nonce",
"type": "uint32"
}
],
"name": "wrapAndTransferETH",
"outputs": [
{
"internalType": "uint64",
"name": "sequence",
"type": "uint64"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "recipientChain",
"type": "uint16"
},
{
"internalType": "bytes32",
"name": "recipient",
"type": "bytes32"
},
{
"internalType": "uint32",
"name": "nonce",
"type": "uint32"
},
{
"internalType": "bytes",
"name": "payload",
"type": "bytes"
}
],
"name": "wrapAndTransferETHWithPayload",
"outputs": [
{
"internalType": "uint64",
"name": "sequence",
"type": "uint64"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint16",
"name": "tokenChainId",
"type": "uint16"
},
{
"internalType": "bytes32",
"name": "tokenAddress",
"type": "bytes32"
}
],
"name": "wrappedAsset",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"evm": {
"assembly": "",
"bytecode": {
"functionDebugData": {},
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"functionDebugData": {},
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"gasEstimates": null,
"legacyAssembly": null,
"methodIdentifiers": {
"attestToken(address,uint32)": "c48fa115",
"bridgeContracts(uint16)": "ad66a5f1",
"chainId()": "9a8a0592",
"completeTransfer(bytes)": "c6878519",
"completeTransferAndUnwrapETH(bytes)": "ff200cde",
"completeTransferAndUnwrapETHWithPayload(bytes)": "1c8475e4",
"completeTransferWithPayload(bytes)": "c3f511c1",
"createWrapped(bytes)": "e8059810",
"governanceActionIsConsumed(bytes32)": "2c3c02a4",
"governanceChainId()": "fbe3c2cd",
"governanceContract()": "b172b222",
"isInitialized(address)": "d60b347f",
"isTransferCompleted(bytes32)": "aa4efa5b",
"isWrappedAsset(address)": "1a2be4da",
"outstandingBridged(address)": "b96c7e4d",
"tokenImplementation()": "2f3a3d5d",
"transferTokens(address,uint256,uint16,bytes32,uint256,uint32)": "0f5287b0",
"transferTokensWithPayload(address,uint256,uint16,bytes32,uint32,bytes)": "c5a5ebda",
"updateWrapped(bytes)": "f768441f",
"wrapAndTransferETH(uint16,bytes32,uint256,uint32)": "9981509f",
"wrapAndTransferETHWithPayload(uint16,bytes32,uint32,bytes)": "bee9cdfc",
"wrappedAsset(uint16,bytes32)": "1ff1e286"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"}],\"name\":\"attestToken\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"chainId_\",\"type\":\"uint16\"}],\"name\":\"bridgeContracts\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"chainId\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedVm\",\"type\":\"bytes\"}],\"name\":\"completeTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedVm\",\"type\":\"bytes\"}],\"name\":\"completeTransferAndUnwrapETH\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedVm\",\"type\":\"bytes\"}],\"name\":\"completeTransferAndUnwrapETHWithPayload\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedVm\",\"type\":\"bytes\"}],\"name\":\"completeTransferWithPayload\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedVm\",\"type\":\"bytes\"}],\"name\":\"createWrapped\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"governanceActionIsConsumed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"governanceChainId\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"governanceContract\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"impl\",\"type\":\"address\"}],\"name\":\"isInitialized\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"}],\"name\":\"isTransferCompleted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"isWrappedAsset\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"outstandingBridged\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"tokenImplementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"recipientChain\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"arbiterFee\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"}],\"name\":\"transferTokens\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"recipientChain\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"}],\"name\":\"transferTokensWithPayload\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedVm\",\"type\":\"bytes\"}],\"name\":\"updateWrapped\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"recipientChain\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"arbiterFee\",\"type\":\"uint256\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"}],\"name\":\"wrapAndTransferETH\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"recipientChain\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"}],\"name\":\"wrapAndTransferETHWithPayload\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"tokenChainId\",\"type\":\"uint16\"},{\"internalType\":\"bytes32\",\"name\":\"tokenAddress\",\"type\":\"bytes32\"}],\"name\":\"wrappedAsset\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/bridges/ITokenBridge.sol\":\"ITokenBridge\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/bridges/BridgeGetters.sol\":{\"keccak256\":\"0x9f0943f31319c6a794d5be62f4eeb6b8355337b66a8e41b7819c3a4e9d59bb7d\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://f34d674a311eebb5c40a5144a9998b7b1d33bd81a14131b2da76201fc1d95b87\",\"dweb:/ipfs/QmS7wmPF3uqkeJy4bwpgMiS3zetEUVn3E4jP8XCULR75uY\"]},\"contracts/bridges/ITokenBridge.sol\":{\"keccak256\":\"0xf49845259dda9c4435acb12c8e13178211697437285ad299efc8cf611aa3abdc\",\"license\":\"Apache 2\",\"urls\":[\"bzz-raw://6b9d1147fb02ed8be8415ae94fd07f1f1d7408d62e9aade0ab3cf26df4c5756e\",\"dweb:/ipfs/QmUZNdd9dW7ye4Y9XDx4hkqyqQy3BRw8AcFJfihBJyXBzK\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/bridges/BridgeGetters.sol": {
"ast": {
"absolutePath": "contracts/bridges/BridgeGetters.sol",
"exportedSymbols": {
"BridgeGetters": [
73
]
},
"id": 74,
"license": "Apache 2",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.8",
".26"
],
"nodeType": "PragmaDirective",
"src": "63:24:0"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "BridgeGetters",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 73,
"linearizedBaseContracts": [
73
],
"name": "BridgeGetters",
"nameLocation": "100:13:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "2c3c02a4",
"id": 8,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "governanceActionIsConsumed",
"nameLocation": "129:26:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 4,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3,
"mutability": "mutable",
"name": "hash",
"nameLocation": "164:4:0",
"nodeType": "VariableDeclaration",
"scope": 8,
"src": "156:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 2,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "156:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "155:14:0"
},
"returnParameters": {
"id": 7,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 6,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 8,
"src": "193:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 5,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "193:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "192:6:0"
},
"scope": 73,
"src": "120:80:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d60b347f",
"id": 15,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "isInitialized",
"nameLocation": "214:13:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 11,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 10,
"mutability": "mutable",
"name": "impl",
"nameLocation": "236:4:0",
"nodeType": "VariableDeclaration",
"scope": 15,
"src": "228:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 9,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "228:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "227:14:0"
},
"returnParameters": {
"id": 14,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 13,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 15,
"src": "265:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 12,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "265:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "264:6:0"
},
"scope": 73,
"src": "205:67:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "aa4efa5b",
"id": 22,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "isTransferCompleted",
"nameLocation": "286:19:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 18,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 17,
"mutability": "mutable",
"name": "hash",
"nameLocation": "314:4:0",
"nodeType": "VariableDeclaration",
"scope": 22,
"src": "306:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 16,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "306:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "305:14:0"
},
"returnParameters": {
"id": 21,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 22,
"src": "343:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 19,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "343:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "342:6:0"
},
"scope": 73,
"src": "277:73:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "9a8a0592",
"id": 27,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "chainId",
"nameLocation": "364:7:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 23,
"nodeType": "ParameterList",
"parameters": [],
"src": "371:2:0"
},
"returnParameters": {
"id": 26,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 25,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 27,
"src": "397:6:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 24,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "397:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "396:8:0"
},
"scope": 73,
"src": "355:50:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "fbe3c2cd",
"id": 32,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "governanceChainId",
"nameLocation": "419:17:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28,
"nodeType": "ParameterList",
"parameters": [],
"src": "436:2:0"
},
"returnParameters": {
"id": 31,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 30,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 32,
"src": "462:6:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 29,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "462:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "461:8:0"
},
"scope": 73,
"src": "410:60:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "b172b222",
"id": 37,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "governanceContract",
"nameLocation": "484:18:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 33,
"nodeType": "ParameterList",
"parameters": [],
"src": "502:2:0"
},
"returnParameters": {
"id": 36,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 35,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 37,
"src": "528:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 34,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "528:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "527:9:0"
},
"scope": 73,
"src": "475:62:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "1ff1e286",
"id": 46,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "wrappedAsset",
"nameLocation": "551:12:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 42,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 39,
"mutability": "mutable",
"name": "tokenChainId",
"nameLocation": "571:12:0",
"nodeType": "VariableDeclaration",
"scope": 46,
"src": "564:19:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 38,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "564:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 41,
"mutability": "mutable",
"name": "tokenAddress",
"nameLocation": "593:12:0",
"nodeType": "VariableDeclaration",
"scope": 46,
"src": "585:20:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 40,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "585:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "563:43:0"
},
"returnParameters": {
"id": 45,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 44,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 46,
"src": "630:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 43,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "630:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "629:9:0"
},
"scope": 73,
"src": "542:97:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "ad66a5f1",
"id": 53,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "bridgeContracts",
"nameLocation": "653:15:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 49,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 48,
"mutability": "mutable",
"name": "chainId_",
"nameLocation": "676:8:0",
"nodeType": "VariableDeclaration",
"scope": 53,
"src": "669:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 47,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "669:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
}
],
"src": "668:17:0"
},
"returnParameters": {
"id": 52,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 51,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 53,
"src": "709:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 50,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "709:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "708:9:0"
},
"scope": 73,
"src": "644:74:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "2f3a3d5d",
"id": 58,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "tokenImplementation",
"nameLocation": "732:19:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 54,
"nodeType": "ParameterList",
"parameters": [],
"src": "751:2:0"
},
"returnParameters": {
"id": 57,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 56,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 58,
"src": "777:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 55,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "777:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "776:9:0"
},
"scope": 73,
"src": "723:63:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "b96c7e4d",
"id": 65,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "outstandingBridged",
"nameLocation": "800:18:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 61,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 60,
"mutability": "mutable",
"name": "token",
"nameLocation": "827:5:0",
"nodeType": "VariableDeclaration",
"scope": 65,
"src": "819:13:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 59,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "819:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "818:15:0"
},
"returnParameters": {
"id": 64,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 63,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 65,
"src": "857:7:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 62,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "857:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "856:9:0"
},
"scope": 73,
"src": "791:75:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "1a2be4da",
"id": 72,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "isWrappedAsset",
"nameLocation": "880:14:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 68,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 67,
"mutability": "mutable",
"name": "token",
"nameLocation": "903:5:0",
"nodeType": "VariableDeclaration",
"scope": 72,
"src": "895:13:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 66,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "895:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "894:15:0"
},
"returnParameters": {
"id": 71,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 70,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 72,
"src": "933:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 69,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "933:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "932:6:0"
},
"scope": 73,
"src": "871:68:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 74,
"src": "90:851:0",
"usedErrors": [],
"usedEvents": []
}
],
"src": "63:878:0"
},
"id": 0
},
"contracts/bridges/ITokenBridge.sol": {
"ast": {
"absolutePath": "contracts/bridges/ITokenBridge.sol",
"exportedSymbols": {
"BridgeGetters": [
73
],
"ITokenBridge": [
186
]
},
"id": 187,
"license": "Apache 2",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 75,
"literals": [
"solidity",
"^",
"0.8",
".26"
],
"nodeType": "PragmaDirective",
"src": "62:24:1"
},
{
"absolutePath": "contracts/bridges/BridgeGetters.sol",
"file": "./BridgeGetters.sol",
"id": 76,
"nameLocation": "-1:-1:-1",
"nodeType": "ImportDirective",
"scope": 187,
"sourceUnit": 74,
"src": "89:29:1",
"symbolAliases": [],
"unitAlias": ""
},
{
"abstract": false,
"baseContracts": [
{
"baseName": {
"id": 77,
"name": "BridgeGetters",
"nameLocations": [
"146:13:1"
],
"nodeType": "IdentifierPath",
"referencedDeclaration": 73,
"src": "146:13:1"
},
"id": 78,
"nodeType": "InheritanceSpecifier",
"src": "146:13:1"
}
],
"canonicalName": "ITokenBridge",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 186,
"linearizedBaseContracts": [
186,
73
],
"name": "ITokenBridge",
"nameLocation": "130:12:1",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "c48fa115",
"id": 87,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "attestToken",
"nameLocation": "249:11:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 83,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 80,
"mutability": "mutable",
"name": "tokenAddress",
"nameLocation": "269:12:1",
"nodeType": "VariableDeclaration",
"scope": 87,
"src": "261:20:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 79,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "261:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 82,
"mutability": "mutable",
"name": "nonce",
"nameLocation": "290:5:1",
"nodeType": "VariableDeclaration",
"scope": 87,
"src": "283:12:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 81,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "283:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"visibility": "internal"
}
],
"src": "260:36:1"
},
"returnParameters": {
"id": 86,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 85,
"mutability": "mutable",
"name": "sequence",
"nameLocation": "330:8:1",
"nodeType": "VariableDeclaration",
"scope": 87,
"src": "323:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"typeName": {
"id": 84,
"name": "uint64",
"nodeType": "ElementaryTypeName",
"src": "323:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"visibility": "internal"
}
],
"src": "322:17:1"
},
"scope": 186,
"src": "240:100:1",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "9981509f",
"id": 100,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "wrapAndTransferETH",
"nameLocation": "440:18:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 96,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 89,
"mutability": "mutable",
"name": "recipientChain",
"nameLocation": "475:14:1",
"nodeType": "VariableDeclaration",
"scope": 100,
"src": "468:21:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 88,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "468:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 91,
"mutability": "mutable",
"name": "recipient",
"nameLocation": "507:9:1",
"nodeType": "VariableDeclaration",
"scope": 100,
"src": "499:17:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 90,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "499:7:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 93,
"mutability": "mutable",
"name": "arbiterFee",
"nameLocation": "534:10:1",
"nodeType": "VariableDeclaration",
"scope": 100,
"src": "526:18:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 92,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "526:7:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 95,
"mutability": "mutable",
"name": "nonce",
"nameLocation": "561:5:1",
"nodeType": "VariableDeclaration",
"scope": 100,
"src": "554:12:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 94,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "554:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"visibility": "internal"
}
],
"src": "458:114:1"
},
"returnParameters": {
"id": 99,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 98,
"mutability": "mutable",
"name": "sequence",
"nameLocation": "606:8:1",
"nodeType": "VariableDeclaration",
"scope": 100,
"src": "599:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"typeName": {
"id": 97,
"name": "uint64",
"nodeType": "ElementaryTypeName",
"src": "599:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"visibility": "internal"
}
],
"src": "598:17:1"
},
"scope": 186,
"src": "431:185:1",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "bee9cdfc",
"id": 113,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "wrapAndTransferETHWithPayload",
"nameLocation": "1222:29:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 109,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 102,
"mutability": "mutable",
"name": "recipientChain",
"nameLocation": "1268:14:1",
"nodeType": "VariableDeclaration",
"scope": 113,
"src": "1261:21:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 101,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "1261:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 104,
"mutability": "mutable",
"name": "recipient",
"nameLocation": "1300:9:1",
"nodeType": "VariableDeclaration",
"scope": 113,
"src": "1292:17:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 103,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1292:7:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 106,
"mutability": "mutable",
"name": "nonce",
"nameLocation": "1326:5:1",
"nodeType": "VariableDeclaration",
"scope": 113,
"src": "1319:12:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 105,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1319:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 108,
"mutability": "mutable",
"name": "payload",
"nameLocation": "1354:7:1",
"nodeType": "VariableDeclaration",
"scope": 113,
"src": "1341:20:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 107,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "1341:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "1251:116:1"
},
"returnParameters": {
"id": 112,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 111,
"mutability": "mutable",
"name": "sequence",
"nameLocation": "1401:8:1",
"nodeType": "VariableDeclaration",
"scope": 113,
"src": "1394:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"typeName": {
"id": 110,
"name": "uint64",
"nodeType": "ElementaryTypeName",
"src": "1394:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"visibility": "internal"
}
],
"src": "1393:17:1"
},
"scope": 186,
"src": "1213:198:1",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "0f5287b0",
"id": 130,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferTokens",
"nameLocation": "1490:14:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 126,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 115,
"mutability": "mutable",
"name": "token",
"nameLocation": "1522:5:1",
"nodeType": "VariableDeclaration",
"scope": 130,
"src": "1514:13:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 114,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1514:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 117,
"mutability": "mutable",
"name": "amount",
"nameLocation": "1545:6:1",
"nodeType": "VariableDeclaration",
"scope": 130,
"src": "1537:14:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 116,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1537:7:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 119,
"mutability": "mutable",
"name": "recipientChain",
"nameLocation": "1568:14:1",
"nodeType": "VariableDeclaration",
"scope": 130,
"src": "1561:21:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 118,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "1561:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 121,
"mutability": "mutable",
"name": "recipient",
"nameLocation": "1600:9:1",
"nodeType": "VariableDeclaration",
"scope": 130,
"src": "1592:17:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 120,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1592:7:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 123,
"mutability": "mutable",
"name": "arbiterFee",
"nameLocation": "1627:10:1",
"nodeType": "VariableDeclaration",
"scope": 130,
"src": "1619:18:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 122,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "1619:7:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 125,
"mutability": "mutable",
"name": "nonce",
"nameLocation": "1654:5:1",
"nodeType": "VariableDeclaration",
"scope": 130,
"src": "1647:12:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 124,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1647:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"visibility": "internal"
}
],
"src": "1504:161:1"
},
"returnParameters": {
"id": 129,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 128,
"mutability": "mutable",
"name": "sequence",
"nameLocation": "1699:8:1",
"nodeType": "VariableDeclaration",
"scope": 130,
"src": "1692:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"typeName": {
"id": 127,
"name": "uint64",
"nodeType": "ElementaryTypeName",
"src": "1692:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"visibility": "internal"
}
],
"src": "1691:17:1"
},
"scope": 186,
"src": "1481:228:1",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "c5a5ebda",
"id": 147,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferTokensWithPayload",
"nameLocation": "2302:25:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 143,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 132,
"mutability": "mutable",
"name": "token",
"nameLocation": "2345:5:1",
"nodeType": "VariableDeclaration",
"scope": 147,
"src": "2337:13:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 131,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2337:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 134,
"mutability": "mutable",
"name": "amount",
"nameLocation": "2368:6:1",
"nodeType": "VariableDeclaration",
"scope": 147,
"src": "2360:14:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 133,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "2360:7:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 136,
"mutability": "mutable",
"name": "recipientChain",
"nameLocation": "2391:14:1",
"nodeType": "VariableDeclaration",
"scope": 147,
"src": "2384:21:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 135,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "2384:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 138,
"mutability": "mutable",
"name": "recipient",
"nameLocation": "2423:9:1",
"nodeType": "VariableDeclaration",
"scope": 147,
"src": "2415:17:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 137,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "2415:7:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 140,
"mutability": "mutable",
"name": "nonce",
"nameLocation": "2449:5:1",
"nodeType": "VariableDeclaration",
"scope": 147,
"src": "2442:12:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 139,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "2442:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 142,
"mutability": "mutable",
"name": "payload",
"nameLocation": "2477:7:1",
"nodeType": "VariableDeclaration",
"scope": 147,
"src": "2464:20:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 141,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "2464:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "2327:163:1"
},
"returnParameters": {
"id": 146,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 145,
"mutability": "mutable",
"name": "sequence",
"nameLocation": "2524:8:1",
"nodeType": "VariableDeclaration",
"scope": 147,
"src": "2517:15:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"typeName": {
"id": 144,
"name": "uint64",
"nodeType": "ElementaryTypeName",
"src": "2517:6:1",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"visibility": "internal"
}
],
"src": "2516:17:1"
},
"scope": 186,
"src": "2293:241:1",
"stateMutability": "payable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "f768441f",
"id": 154,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "updateWrapped",
"nameLocation": "2550:13:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 150,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 149,
"mutability": "mutable",
"name": "encodedVm",
"nameLocation": "2577:9:1",
"nodeType": "VariableDeclaration",
"scope": 154,
"src": "2564:22:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 148,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "2564:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "2563:24:1"
},
"returnParameters": {
"id": 153,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 152,
"mutability": "mutable",
"name": "token",
"nameLocation": "2614:5:1",
"nodeType": "VariableDeclaration",
"scope": 154,
"src": "2606:13:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 151,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2606:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2605:15:1"
},
"scope": 186,
"src": "2541:80:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "e8059810",
"id": 161,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "createWrapped",
"nameLocation": "2636:13:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 157,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 156,
"mutability": "mutable",
"name": "encodedVm",
"nameLocation": "2663:9:1",
"nodeType": "VariableDeclaration",
"scope": 161,
"src": "2650:22:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 155,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "2650:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "2649:24:1"
},
"returnParameters": {
"id": 160,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 159,
"mutability": "mutable",
"name": "token",
"nameLocation": "2700:5:1",
"nodeType": "VariableDeclaration",
"scope": 161,
"src": "2692:13:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 158,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2692:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2691:15:1"
},
"scope": 186,
"src": "2627:80:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "c3f511c1",
"id": 168,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "completeTransferWithPayload",
"nameLocation": "3090:27:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 164,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 163,
"mutability": "mutable",
"name": "encodedVm",
"nameLocation": "3131:9:1",
"nodeType": "VariableDeclaration",
"scope": 168,
"src": "3118:22:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 162,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "3118:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "3117:24:1"
},
"returnParameters": {
"id": 167,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 166,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 168,
"src": "3160:12:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 165,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "3160:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "3159:14:1"
},
"scope": 186,
"src": "3081:93:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "1c8475e4",
"id": 175,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "completeTransferAndUnwrapETHWithPayload",
"nameLocation": "3566:39:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 171,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 170,
"mutability": "mutable",
"name": "encodedVm",
"nameLocation": "3619:9:1",
"nodeType": "VariableDeclaration",
"scope": 175,
"src": "3606:22:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 169,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "3606:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "3605:24:1"
},
"returnParameters": {
"id": 174,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 173,
"mutability": "mutable",
"name": "",
"nameLocation": "-1:-1:-1",
"nodeType": "VariableDeclaration",
"scope": 175,
"src": "3648:12:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 172,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "3648:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "3647:14:1"
},
"scope": 186,
"src": "3557:105:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "c6878519",
"id": 180,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "completeTransfer",
"nameLocation": "3896:16:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 178,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 177,
"mutability": "mutable",
"name": "encodedVm",
"nameLocation": "3926:9:1",
"nodeType": "VariableDeclaration",
"scope": 180,
"src": "3913:22:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 176,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "3913:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "3912:24:1"
},
"returnParameters": {
"id": 179,
"nodeType": "ParameterList",
"parameters": [],
"src": "3946:0:1"
},
"scope": 186,
"src": "3887:60:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "ff200cde",
"id": 185,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "completeTransferAndUnwrapETH",
"nameLocation": "4189:28:1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 183,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 182,
"mutability": "mutable",
"name": "encodedVm",
"nameLocation": "4231:9:1",
"nodeType": "VariableDeclaration",
"scope": 185,
"src": "4218:22:1",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 181,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "4218:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "4217:24:1"
},
"returnParameters": {
"id": 184,
"nodeType": "ParameterList",
"parameters": [],
"src": "4251:0:1"
},
"scope": 186,
"src": "4180:72:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 187,
"src": "120:4134:1",
"usedErrors": [],
"usedEvents": []
}
],
"src": "62:4192:1"
},
"id": 1
}
}
}
}