@sonicxchain/soxswap-periphery
Version:
Peripheral smart contracts for interacting with Soxswap
1,546 lines • 73.4 kB
JSON
{
"contractName": "ISRC20",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "owner",
"type": "address"
},
{
"indexed": true,
"name": "spender",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "from",
"type": "address"
},
{
"indexed": true,
"name": "to",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "decimals",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "owner",
"type": "address"
},
{
"name": "spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "spender",
"type": "address"
},
{
"name": "value",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "from",
"type": "address"
},
{
"name": "to",
"type": "address"
},
{
"name": "value",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity >=0.4.23 <0.6.0;\r\n\r\ninterface ISRC20 {\r\n event Approval(address indexed owner, address indexed spender, uint value);\r\n event Transfer(address indexed from, address indexed to, uint value);\r\n\r\n function name() external view returns (string memory);\r\n function symbol() external view returns (string memory);\r\n function decimals() external view returns (uint8);\r\n function totalSupply() external view returns (uint);\r\n function balanceOf(address owner) external view returns (uint);\r\n function allowance(address owner, address spender) external view returns (uint);\r\n\r\n function approve(address spender, uint value) external returns (bool);\r\n function transfer(address to, uint value) external returns (bool);\r\n function transferFrom(address from, address to, uint value) external returns (bool);\r\n}\r\n",
"sourcePath": "D:\\40_SonicX_DEX\\soxswap-periphery\\contracts\\interfaces\\ISRC20.sol",
"ast": {
"absolutePath": "/D/40_SonicX_DEX/soxswap-periphery/contracts/interfaces/ISRC20.sol",
"exportedSymbols": {
"ISRC20": [
2114
]
},
"id": 2115,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2032,
"literals": [
"solidity",
">=",
"0.4",
".23",
"<",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:32:2"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 2114,
"linearizedBaseContracts": [
2114
],
"name": "ISRC20",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 2040,
"name": "Approval",
"nodeType": "EventDefinition",
"parameters": {
"id": 2039,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2034,
"indexed": true,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 2040,
"src": "75:21:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2033,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "75:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2036,
"indexed": true,
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 2040,
"src": "98:23:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2035,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "98:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2038,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2040,
"src": "123:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2037,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "123:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "74:60:2"
},
"src": "60:75:2"
},
{
"anonymous": false,
"documentation": null,
"id": 2048,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
"id": 2047,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2042,
"indexed": true,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "156:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2041,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "156:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2044,
"indexed": true,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "178:18:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2043,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "178:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2046,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "198:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2045,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "198:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "155:54:2"
},
"src": "141:69:2"
},
{
"body": null,
"documentation": null,
"id": 2053,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "name",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2049,
"nodeType": "ParameterList",
"parameters": [],
"src": "231:2:2"
},
"returnParameters": {
"id": 2052,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2051,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2053,
"src": "257:13:2",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 2050,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "257:6:2",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "256:15:2"
},
"scope": 2114,
"src": "218:54:2",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 2058,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "symbol",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2054,
"nodeType": "ParameterList",
"parameters": [],
"src": "293:2:2"
},
"returnParameters": {
"id": 2057,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2056,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2058,
"src": "319:13:2",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 2055,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "319:6:2",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "318:15:2"
},
"scope": 2114,
"src": "278:56:2",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 2063,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "decimals",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2059,
"nodeType": "ParameterList",
"parameters": [],
"src": "357:2:2"
},
"returnParameters": {
"id": 2062,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2061,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2063,
"src": "383:5:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 2060,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "383:5:2",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "382:7:2"
},
"scope": 2114,
"src": "340:50:2",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 2068,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2064,
"nodeType": "ParameterList",
"parameters": [],
"src": "416:2:2"
},
"returnParameters": {
"id": 2067,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2066,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2068,
"src": "442:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2065,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "442:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "441:6:2"
},
"scope": 2114,
"src": "396:52:2",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 2075,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2071,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2070,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 2075,
"src": "473:13:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2069,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "473:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "472:15:2"
},
"returnParameters": {
"id": 2074,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2073,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2075,
"src": "511:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2072,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "511:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "510:6:2"
},
"scope": 2114,
"src": "454:63:2",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 2084,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allowance",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2080,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2077,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 2084,
"src": "542:13:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2076,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "542:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2079,
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 2084,
"src": "557:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2078,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "557:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "541:32:2"
},
"returnParameters": {
"id": 2083,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2082,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2084,
"src": "597:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2081,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "597:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "596:6:2"
},
"scope": 2114,
"src": "523:80:2",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 2093,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "approve",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2089,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2086,
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 2093,
"src": "628:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2085,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "628:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2088,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2093,
"src": "645:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2087,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "645:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "627:29:2"
},
"returnParameters": {
"id": 2092,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2091,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2093,
"src": "675:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2090,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "675:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "674:6:2"
},
"scope": 2114,
"src": "611:70:2",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 2102,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2098,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2095,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 2102,
"src": "705:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2094,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "705:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2097,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2102,
"src": "717:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2096,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "717:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "704:24:2"
},
"returnParameters": {
"id": 2101,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2100,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2102,
"src": "747:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2099,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "747:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "746:6:2"
},
"scope": 2114,
"src": "687:66:2",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 2113,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferFrom",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2109,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2104,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 2113,
"src": "781:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2103,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "781:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2106,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 2113,
"src": "795:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2105,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "795:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2108,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2113,
"src": "807:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2107,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "807:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "780:38:2"
},
"returnParameters": {
"id": 2112,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2111,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2113,
"src": "837:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 2110,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "837:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "836:6:2"
},
"scope": 2114,
"src": "759:84:2",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
}
],
"scope": 2115,
"src": "36:810:2"
}
],
"src": "0:848:2"
},
"legacyAST": {
"absolutePath": "/D/40_SonicX_DEX/soxswap-periphery/contracts/interfaces/ISRC20.sol",
"exportedSymbols": {
"ISRC20": [
2114
]
},
"id": 2115,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 2032,
"literals": [
"solidity",
">=",
"0.4",
".23",
"<",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:32:2"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 2114,
"linearizedBaseContracts": [
2114
],
"name": "ISRC20",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 2040,
"name": "Approval",
"nodeType": "EventDefinition",
"parameters": {
"id": 2039,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2034,
"indexed": true,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 2040,
"src": "75:21:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2033,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "75:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2036,
"indexed": true,
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 2040,
"src": "98:23:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2035,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "98:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2038,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2040,
"src": "123:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2037,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "123:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "74:60:2"
},
"src": "60:75:2"
},
{
"anonymous": false,
"documentation": null,
"id": 2048,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
"id": 2047,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2042,
"indexed": true,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "156:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2041,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "156:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2044,
"indexed": true,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "178:18:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2043,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "178:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 2046,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 2048,
"src": "198:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 2045,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "198:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "155:54:2"
},
"src": "141:69:2"
},
{
"body": null,
"documentation": null,
"id": 2053,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "name",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2049,
"nodeType": "ParameterList",
"parameters": [],
"src": "231:2:2"
},
"returnParameters": {
"id": 2052,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2051,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2053,
"src": "257:13:2",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 2050,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "257:6:2",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "256:15:2"
},
"scope": 2114,
"src": "218:54:2",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 2058,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "symbol",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 2054,
"nodeType": "ParameterList",
"parameters": [],
"src": "293:2:2"
},
"returnParameters": {
"id": 2057,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 2056,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 2058,
"src": "319:13:2",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 2055,
"name": "string",
"nodeType": "Elementary