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

442 lines
13 KiB
JSON

{
"id": "58995803c6807c9d669ecde4fb801d0e",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.26",
"solcLongVersion": "0.8.26+commit.8a97fa7a",
"input": {
"language": "Solidity",
"sources": {
"contracts/bridges/IWormhole.sol": {
"content": "// SPDX-License-Identifier: MIT\npragma solidity ^0.8.26;\n\n\ninterface IWormhole {\n function transferTokens(address token, uint256 amount, uint16 recipientChain, bytes32 recipient, uint32 nonce) external returns (uint64 sequence);\n function completeTransfer(bytes memory encodedVm) external;\n}\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/IWormhole.sol": {
"IWormhole": {
"abi": [
{
"inputs": [
{
"internalType": "bytes",
"name": "encodedVm",
"type": "bytes"
}
],
"name": "completeTransfer",
"outputs": [],
"stateMutability": "nonpayable",
"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"
}
],
"name": "transferTokens",
"outputs": [
{
"internalType": "uint64",
"name": "sequence",
"type": "uint64"
}
],
"stateMutability": "nonpayable",
"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": {
"completeTransfer(bytes)": "c6878519",
"transferTokens(address,uint256,uint16,bytes32,uint32)": "a0841753"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.26+commit.8a97fa7a\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"encodedVm\",\"type\":\"bytes\"}],\"name\":\"completeTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"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\"}],\"name\":\"transferTokens\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/bridges/IWormhole.sol\":\"IWormhole\"},\"evmVersion\":\"cancun\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"contracts/bridges/IWormhole.sol\":{\"keccak256\":\"0x7274c1763a17c718eaf034bb2ed26d71e5adf1d4bf98a80901a79b7c59e11552\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://ad1cd73a39811724c9a35583f89d4f21548165badb3dc211c08e2a7c4871f1c2\",\"dweb:/ipfs/QmdmVqV1n1XndN3UTjynyC9bnvuUkobsnJSxshnHZeH1ze\"]}},\"version\":1}",
"storageLayout": {
"storage": [],
"types": null
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}
}
},
"sources": {
"contracts/bridges/IWormhole.sol": {
"ast": {
"absolutePath": "contracts/bridges/IWormhole.sol",
"exportedSymbols": {
"IWormhole": [
22
]
},
"id": 23,
"license": "MIT",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
"^",
"0.8",
".26"
],
"nodeType": "PragmaDirective",
"src": "32:24:0"
},
{
"abstract": false,
"baseContracts": [],
"canonicalName": "IWormhole",
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 22,
"linearizedBaseContracts": [
22
],
"name": "IWormhole",
"nameLocation": "69:9:0",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "a0841753",
"id": 16,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferTokens",
"nameLocation": "94:14:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 12,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3,
"mutability": "mutable",
"name": "token",
"nameLocation": "117:5:0",
"nodeType": "VariableDeclaration",
"scope": 16,
"src": "109:13:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "109:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5,
"mutability": "mutable",
"name": "amount",
"nameLocation": "132:6:0",
"nodeType": "VariableDeclaration",
"scope": 16,
"src": "124:14:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 4,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "124:7:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 7,
"mutability": "mutable",
"name": "recipientChain",
"nameLocation": "147:14:0",
"nodeType": "VariableDeclaration",
"scope": 16,
"src": "140:21:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
},
"typeName": {
"id": 6,
"name": "uint16",
"nodeType": "ElementaryTypeName",
"src": "140:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint16",
"typeString": "uint16"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 9,
"mutability": "mutable",
"name": "recipient",
"nameLocation": "171:9:0",
"nodeType": "VariableDeclaration",
"scope": 16,
"src": "163:17:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 8,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "163:7:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 11,
"mutability": "mutable",
"name": "nonce",
"nameLocation": "189:5:0",
"nodeType": "VariableDeclaration",
"scope": 16,
"src": "182:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 10,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "182:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"visibility": "internal"
}
],
"src": "108:87:0"
},
"returnParameters": {
"id": 15,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 14,
"mutability": "mutable",
"name": "sequence",
"nameLocation": "221:8:0",
"nodeType": "VariableDeclaration",
"scope": 16,
"src": "214:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
},
"typeName": {
"id": 13,
"name": "uint64",
"nodeType": "ElementaryTypeName",
"src": "214:6:0",
"typeDescriptions": {
"typeIdentifier": "t_uint64",
"typeString": "uint64"
}
},
"visibility": "internal"
}
],
"src": "213:17:0"
},
"scope": 22,
"src": "85:146:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "c6878519",
"id": 21,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "completeTransfer",
"nameLocation": "245:16:0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 19,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 18,
"mutability": "mutable",
"name": "encodedVm",
"nameLocation": "275:9:0",
"nodeType": "VariableDeclaration",
"scope": 21,
"src": "262:22:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 17,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "262:5:0",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "261:24:0"
},
"returnParameters": {
"id": 20,
"nodeType": "ParameterList",
"parameters": [],
"src": "294:0:0"
},
"scope": 22,
"src": "236:59:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 23,
"src": "59:238:0",
"usedErrors": [],
"usedEvents": []
}
],
"src": "32:266:0"
},
"id": 0
}
}
}
}