UNPKG

@sonicxchain/soxswap-periphery

Version:

Peripheral smart contracts for interacting with Soxswap

1,570 lines (1,569 loc) 112 kB
{ "contractName": "ISoxswapFactory", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "name": "token0", "type": "address" }, { "indexed": true, "name": "token1", "type": "address" }, { "indexed": false, "name": "pair", "type": "address" }, { "indexed": false, "name": "", "type": "uint256" } ], "name": "PairCreated", "type": "event" }, { "constant": true, "inputs": [], "name": "feeTo", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "feeToSetter", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "tokenA", "type": "address" }, { "name": "tokenB", "type": "address" } ], "name": "getPair", "outputs": [ { "name": "pair", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "", "type": "uint256" } ], "name": "allPairs", "outputs": [ { "name": "pair", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "allPairsLength", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "tokenA", "type": "address" }, { "name": "tokenB", "type": "address" } ], "name": "createPair", "outputs": [ { "name": "pair", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "getPairInitHash", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": false, "inputs": [ { "name": "", "type": "address" } ], "name": "setFeeTo", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "", "type": "address" } ], "name": "setFeeToSetter", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "name": "pair", "type": "address" } ], "name": "pairGetReserves", "outputs": [ { "name": "_reserve0", "type": "uint112" }, { "name": "_reserve1", "type": "uint112" }, { "name": "_blockTimestampLast", "type": "uint32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "pair", "type": "address" } ], "name": "pairName", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "name": "pair", "type": "address" } ], "name": "pairSymbol", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "name": "pair", "type": "address" } ], "name": "pairDecimals", "outputs": [ { "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "name": "pair", "type": "address" } ], "name": "pairTotalSupply", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "pair", "type": "address" }, { "name": "owner", "type": "address" } ], "name": "pairBalanceOf", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "pair", "type": "address" }, { "name": "owner", "type": "address" }, { "name": "spender", "type": "address" } ], "name": "pairAllowance", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "sourceMap": "", "deployedSourceMap": "", "source": "pragma solidity >=0.4.23 <0.6.0;\r\n\r\ninterface ISoxswapFactory {\r\n event PairCreated(address indexed token0, address indexed token1, address pair, uint);\r\n\r\n function feeTo() external view returns (address);\r\n function feeToSetter() external view returns (address);\r\n\r\n function getPair(address tokenA, address tokenB) external view returns (address pair);\r\n function allPairs(uint) external view returns (address pair);\r\n function allPairsLength() external view returns (uint);\r\n\r\n function createPair(address tokenA, address tokenB) external returns (address pair);\r\n function getPairInitHash() external pure returns(bytes32);\r\n\r\n function setFeeTo(address) external;\r\n function setFeeToSetter(address) external;\r\n\r\n function pairGetReserves(address pair) external view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast);\r\n function pairName(address pair) external pure returns (string memory);\r\n function pairSymbol(address pair) external pure returns (string memory);\r\n function pairDecimals(address pair) external pure returns (uint8);\r\n function pairTotalSupply(address pair) external view returns (uint);\r\n function pairBalanceOf(address pair, address owner) external view returns (uint);\r\n function pairAllowance(address pair, address owner, address spender) external view returns (uint);\r\n\r\n}\r\n", "sourcePath": "@sonicxchain/soxswap-core/contracts/interfaces/ISoxswapFactory.sol", "ast": { "absolutePath": "@sonicxchain/soxswap-core/contracts/interfaces/ISoxswapFactory.sol", "exportedSymbols": { "ISoxswapFactory": [ 3274 ] }, "id": 3275, "nodeType": "SourceUnit", "nodes": [ { "id": 3149, "literals": [ "solidity", ">=", "0.4", ".23", "<", "0.6", ".0" ], "nodeType": "PragmaDirective", "src": "0:32:7" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 3274, "linearizedBaseContracts": [ 3274 ], "name": "ISoxswapFactory", "nodeType": "ContractDefinition", "nodes": [ { "anonymous": false, "documentation": null, "id": 3159, "name": "PairCreated", "nodeType": "EventDefinition", "parameters": { "id": 3158, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3151, "indexed": true, "name": "token0", "nodeType": "VariableDeclaration", "scope": 3159, "src": "87:22:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3150, "name": "address", "nodeType": "ElementaryTypeName", "src": "87:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3153, "indexed": true, "name": "token1", "nodeType": "VariableDeclaration", "scope": 3159, "src": "111:22:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3152, "name": "address", "nodeType": "ElementaryTypeName", "src": "111:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3155, "indexed": false, "name": "pair", "nodeType": "VariableDeclaration", "scope": 3159, "src": "135:12:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3154, "name": "address", "nodeType": "ElementaryTypeName", "src": "135:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3157, "indexed": false, "name": "", "nodeType": "VariableDeclaration", "scope": 3159, "src": "149:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3156, "name": "uint", "nodeType": "ElementaryTypeName", "src": "149:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "86:68:7" }, "src": "69:86:7" }, { "body": null, "documentation": null, "id": 3164, "implemented": false, "kind": "function", "modifiers": [], "name": "feeTo", "nodeType": "FunctionDefinition", "parameters": { "id": 3160, "nodeType": "ParameterList", "parameters": [], "src": "177:2:7" }, "returnParameters": { "id": 3163, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3162, "name": "", "nodeType": "VariableDeclaration", "scope": 3164, "src": "203:7:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3161, "name": "address", "nodeType": "ElementaryTypeName", "src": "203:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "202:9:7" }, "scope": 3274, "src": "163:49:7", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3169, "implemented": false, "kind": "function", "modifiers": [], "name": "feeToSetter", "nodeType": "FunctionDefinition", "parameters": { "id": 3165, "nodeType": "ParameterList", "parameters": [], "src": "238:2:7" }, "returnParameters": { "id": 3168, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3167, "name": "", "nodeType": "VariableDeclaration", "scope": 3169, "src": "264:7:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3166, "name": "address", "nodeType": "ElementaryTypeName", "src": "264:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "263:9:7" }, "scope": 3274, "src": "218:55:7", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3178, "implemented": false, "kind": "function", "modifiers": [], "name": "getPair", "nodeType": "FunctionDefinition", "parameters": { "id": 3174, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3171, "name": "tokenA", "nodeType": "VariableDeclaration", "scope": 3178, "src": "298:14:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3170, "name": "address", "nodeType": "ElementaryTypeName", "src": "298:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3173, "name": "tokenB", "nodeType": "VariableDeclaration", "scope": 3178, "src": "314:14:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3172, "name": "address", "nodeType": "ElementaryTypeName", "src": "314:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "297:32:7" }, "returnParameters": { "id": 3177, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3176, "name": "pair", "nodeType": "VariableDeclaration", "scope": 3178, "src": "353:12:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3175, "name": "address", "nodeType": "ElementaryTypeName", "src": "353:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "352:14:7" }, "scope": 3274, "src": "281:86:7", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3185, "implemented": false, "kind": "function", "modifiers": [], "name": "allPairs", "nodeType": "FunctionDefinition", "parameters": { "id": 3181, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3180, "name": "", "nodeType": "VariableDeclaration", "scope": 3185, "src": "391:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3179, "name": "uint", "nodeType": "ElementaryTypeName", "src": "391:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "390:6:7" }, "returnParameters": { "id": 3184, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3183, "name": "pair", "nodeType": "VariableDeclaration", "scope": 3185, "src": "420:12:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3182, "name": "address", "nodeType": "ElementaryTypeName", "src": "420:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "419:14:7" }, "scope": 3274, "src": "373:61:7", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3190, "implemented": false, "kind": "function", "modifiers": [], "name": "allPairsLength", "nodeType": "FunctionDefinition", "parameters": { "id": 3186, "nodeType": "ParameterList", "parameters": [], "src": "463:2:7" }, "returnParameters": { "id": 3189, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3188, "name": "", "nodeType": "VariableDeclaration", "scope": 3190, "src": "489:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3187, "name": "uint", "nodeType": "ElementaryTypeName", "src": "489:4:7", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "488:6:7" }, "scope": 3274, "src": "440:55:7", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3199, "implemented": false, "kind": "function", "modifiers": [], "name": "createPair", "nodeType": "FunctionDefinition", "parameters": { "id": 3195, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3192, "name": "tokenA", "nodeType": "VariableDeclaration", "scope": 3199, "src": "523:14:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3191, "name": "address", "nodeType": "ElementaryTypeName", "src": "523:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3194, "name": "tokenB", "nodeType": "VariableDeclaration", "scope": 3199, "src": "539:14:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3193, "name": "address", "nodeType": "ElementaryTypeName", "src": "539:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "522:32:7" }, "returnParameters": { "id": 3198, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3197, "name": "pair", "nodeType": "VariableDeclaration", "scope": 3199, "src": "573:12:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3196, "name": "address", "nodeType": "ElementaryTypeName", "src": "573:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "572:14:7" }, "scope": 3274, "src": "503:84:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3204, "implemented": false, "kind": "function", "modifiers": [], "name": "getPairInitHash", "nodeType": "FunctionDefinition", "parameters": { "id": 3200, "nodeType": "ParameterList", "parameters": [], "src": "617:2:7" }, "returnParameters": { "id": 3203, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3202, "name": "", "nodeType": "VariableDeclaration", "scope": 3204, "src": "642:7:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" }, "typeName": { "id": 3201, "name": "bytes32", "nodeType": "ElementaryTypeName", "src": "642:7:7", "typeDescriptions": { "typeIdentifier": "t_bytes32", "typeString": "bytes32" } }, "value": null, "visibility": "internal" } ], "src": "641:9:7" }, "scope": 3274, "src": "593:58:7", "stateMutability": "pure", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3209, "implemented": false, "kind": "function", "modifiers": [], "name": "setFeeTo", "nodeType": "FunctionDefinition", "parameters": { "id": 3207, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3206, "name": "", "nodeType": "VariableDeclaration", "scope": 3209, "src": "677:7:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3205, "name": "address", "nodeType": "ElementaryTypeName", "src": "677:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "676:9:7" }, "returnParameters": { "id": 3208, "nodeType": "ParameterList", "parameters": [], "src": "694:0:7" }, "scope": 3274, "src": "659:36:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3214, "implemented": false, "kind": "function", "modifiers": [], "name": "setFeeToSetter", "nodeType": "FunctionDefinition", "parameters": { "id": 3212, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3211, "name": "", "nodeType": "VariableDeclaration", "scope": 3214, "src": "725:7:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3210, "name": "address", "nodeType": "ElementaryTypeName", "src": "725:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "724:9:7" }, "returnParameters": { "id": 3213, "nodeType": "ParameterList", "parameters": [], "src": "742:0:7" }, "scope": 3274, "src": "701:42:7", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3225, "implemented": false, "kind": "function", "modifiers": [], "name": "pairGetReserves", "nodeType": "FunctionDefinition", "parameters": { "id": 3217, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3216, "name": "pair", "nodeType": "VariableDeclaration", "scope": 3225, "src": "776:12:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3215, "name": "address", "nodeType": "ElementaryTypeName", "src": "776:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "775:14:7" }, "returnParameters": { "id": 3224, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3219, "name": "_reserve0", "nodeType": "VariableDeclaration", "scope": 3225, "src": "813:17:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint112", "typeString": "uint112" }, "typeName": { "id": 3218, "name": "uint112", "nodeType": "ElementaryTypeName", "src": "813:7:7", "typeDescriptions": { "typeIdentifier": "t_uint112", "typeString": "uint112" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3221, "name": "_reserve1", "nodeType": "VariableDeclaration", "scope": 3225, "src": "832:17:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint112", "typeString": "uint112" }, "typeName": { "id": 3220, "name": "uint112", "nodeType": "ElementaryTypeName", "src": "832:7:7", "typeDescriptions": { "typeIdentifier": "t_uint112", "typeString": "uint112" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3223, "name": "_blockTimestampLast", "nodeType": "VariableDeclaration", "scope": 3225, "src": "851:26:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" }, "typeName": { "id": 3222, "name": "uint32", "nodeType": "ElementaryTypeName", "src": "851:6:7", "typeDescriptions": { "typeIdentifier": "t_uint32", "typeString": "uint32" } }, "value": null, "visibility": "internal" } ], "src": "812:66:7" }, "scope": 3274, "src": "751:128:7", "stateMutability": "view", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3232, "implemented": false, "kind": "function", "modifiers": [], "name": "pairName", "nodeType": "FunctionDefinition", "parameters": { "id": 3228, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3227, "name": "pair", "nodeType": "VariableDeclaration", "scope": 3232, "src": "903:12:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3226, "name": "address", "nodeType": "ElementaryTypeName", "src": "903:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "902:14:7" }, "returnParameters": { "id": 3231, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3230, "name": "", "nodeType": "VariableDeclaration", "scope": 3232, "src": "940:13:7", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 3229, "name": "string", "nodeType": "ElementaryTypeName", "src": "940:6:7", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "939:15:7" }, "scope": 3274, "src": "885:70:7", "stateMutability": "pure", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3239, "implemented": false, "kind": "function", "modifiers": [], "name": "pairSymbol", "nodeType": "FunctionDefinition", "parameters": { "id": 3235, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3234, "name": "pair", "nodeType": "VariableDeclaration", "scope": 3239, "src": "981:12:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3233, "name": "address", "nodeType": "ElementaryTypeName", "src": "981:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "980:14:7" }, "returnParameters": { "id": 3238, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3237, "name": "", "nodeType": "VariableDeclaration", "scope": 3239, "src": "1018:13:7", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" }, "typeName": { "id": 3236, "name": "string", "nodeType": "ElementaryTypeName", "src": "1018:6:7", "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" } }, "value": null, "visibility": "internal" } ], "src": "1017:15:7" }, "scope": 3274, "src": "961:72:7", "stateMutability": "pure", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3246, "implemented": false, "kind": "function", "modifiers": [], "name": "pairDecimals", "nodeType": "FunctionDefinition", "parameters": { "id": 3242, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3241, "name": "pair", "nodeType": "VariableDeclaration", "scope": 3246, "src": "1061:12:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3240, "name": "address", "nodeType": "ElementaryTypeName", "src": "1061:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "1060:14:7" }, "returnParameters": { "id": 3245, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3244, "name": "", "nodeType": "VariableDeclaration", "scope": 3246, "src": "1098:5:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" }, "typeName": { "id": 3243, "name": "uint8", "nodeType": "ElementaryTypeName", "src": "1098:5:7", "typeDescriptions": { "typeIdentifier": "t_uint8", "typeString": "uint8" } }, "value": null, "visibility": "internal" } ], "src": "1097:7:7" }, "scope": 3274, "src": "1039:66:7", "stateMutability": "pure", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 3253, "implemented": false, "kind": "function", "modifiers": [], "name": "pairTotalSupply", "nodeType": "FunctionDefinition", "parameters": { "id": 3249, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3248, "name": "pair", "nodeType": "VariableDeclaration", "scope": 3253, "src": "1136:12:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 3247, "name": "address", "nodeType": "ElementaryTypeName", "src": "1136:7:7", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "1135:14:7" }, "returnParameters": { "id": 3252, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3251, "name": "", "nodeType": "VariableDeclaration", "scope": 3253, "src": "1173:4:7", "stateVariable": false, "storageLocation": "default", "typeDescriptions": {