@sonicswap/periphery
Version:
🎚 Peripheral smart contracts for interacting with the Sonicswap exchanges
330 lines • 10.8 kB
JSON
{
"contractName": "IUniswapV1Factory",
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "getExchange",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
],
"metadata": "{\"compiler\":{\"version\":\"0.6.12+commit.27d51765\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"getExchange\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"/var/www/Sonic/sonicswap-periphery/contracts/interfaces/V1/IUniswapV1Factory.sol\":\"IUniswapV1Factory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/var/www/Sonic/sonicswap-periphery/contracts/interfaces/V1/IUniswapV1Factory.sol\":{\"keccak256\":\"0xabc2e22fff9bf1003e24314114d9d0ae5e4e11012eee84ae9e140207122bf0f2\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://0f304a03f5ce776fd398c30a677518495bf10308d0157aeea95227afca3f0646\",\"dweb:/ipfs/QmQbMMCXxkB9PN6tpxA6VnrgDYr7pMvCcbVgVK2ggW5uuR\"]}},\"version\":1}",
"bytecode": "0x",
"deployedBytecode": "0x",
"immutableReferences": {},
"sourceMap": "",
"deployedSourceMap": "",
"source": "// SPDX-License-Identifier: GPL-3.0\npragma solidity >=0.5.0;\n\ninterface IUniswapV1Factory {\n function getExchange(address) external view returns (address);\n}\n",
"sourcePath": "/var/www/Sonic/sonicswap-periphery/contracts/interfaces/V1/IUniswapV1Factory.sol",
"ast": {
"absolutePath": "/var/www/Sonic/sonicswap-periphery/contracts/interfaces/V1/IUniswapV1Factory.sol",
"exportedSymbols": {
"IUniswapV1Factory": [
5533
]
},
"id": 5534,
"license": "GPL-3.0",
"nodeType": "SourceUnit",
"nodes": [
{
"id": 5525,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "36:24:14"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 5533,
"linearizedBaseContracts": [
5533
],
"name": "IUniswapV1Factory",
"nodeType": "ContractDefinition",
"nodes": [
{
"body": null,
"documentation": null,
"functionSelector": "06f2bf62",
"id": 5532,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getExchange",
"nodeType": "FunctionDefinition",
"overrides": null,
"parameters": {
"id": 5528,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5527,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 5532,
"src": "117:7:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5526,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "117:7:14",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "116:9:14"
},
"returnParameters": {
"id": 5531,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 5530,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"overrides": null,
"scope": 5532,
"src": "149:7:14",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 5529,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "149:7:14",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "148:9:14"
},
"scope": 5533,
"src": "96:62:14",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
}
],
"scope": 5534,
"src": "62:98:14"
}
],
"src": "36:125:14"
},
"legacyAST": {
"attributes": {
"absolutePath": "/var/www/Sonic/sonicswap-periphery/contracts/interfaces/V1/IUniswapV1Factory.sol",
"exportedSymbols": {
"IUniswapV1Factory": [
5533
]
},
"license": "GPL-3.0"
},
"children": [
{
"attributes": {
"literals": [
"solidity",
">=",
"0.5",
".0"
]
},
"id": 5525,
"name": "PragmaDirective",
"src": "36:24:14"
},
{
"attributes": {
"abstract": false,
"baseContracts": [
null
],
"contractDependencies": [
null
],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"linearizedBaseContracts": [
5533
],
"name": "IUniswapV1Factory",
"scope": 5534
},
"children": [
{
"attributes": {
"body": null,
"documentation": null,
"functionSelector": "06f2bf62",
"implemented": false,
"isConstructor": false,
"kind": "function",
"modifiers": [
null
],
"name": "getExchange",
"overrides": null,
"scope": 5533,
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
"children": [
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "",
"overrides": null,
"scope": 5532,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 5526,
"name": "ElementaryTypeName",
"src": "117:7:14"
}
],
"id": 5527,
"name": "VariableDeclaration",
"src": "117:7:14"
}
],
"id": 5528,
"name": "ParameterList",
"src": "116:9:14"
},
{
"children": [
{
"attributes": {
"constant": false,
"mutability": "mutable",
"name": "",
"overrides": null,
"scope": 5532,
"stateVariable": false,
"storageLocation": "default",
"type": "address",
"value": null,
"visibility": "internal"
},
"children": [
{
"attributes": {
"name": "address",
"stateMutability": "nonpayable",
"type": "address"
},
"id": 5529,
"name": "ElementaryTypeName",
"src": "149:7:14"
}
],
"id": 5530,
"name": "VariableDeclaration",
"src": "149:7:14"
}
],
"id": 5531,
"name": "ParameterList",
"src": "148:9:14"
}
],
"id": 5532,
"name": "FunctionDefinition",
"src": "96:62:14"
}
],
"id": 5533,
"name": "ContractDefinition",
"src": "62:98:14"
}
],
"id": 5534,
"name": "SourceUnit",
"src": "36:125:14"
},
"compiler": {
"name": "solc",
"version": "0.6.12+commit.27d51765.Emscripten.clang"
},
"networks": {},
"schemaVersion": "3.4.1",
"updatedAt": "2021-06-27T14:36:02.139Z",
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
}