@sonicxchain/soxswap-periphery
Version:
Peripheral smart contracts for interacting with Soxswap
1,669 lines • 212 kB
JSON
{
"contractName": "ISoxswapPair",
"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"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "sender",
"type": "address"
},
{
"indexed": false,
"name": "amount0",
"type": "uint256"
},
{
"indexed": false,
"name": "amount1",
"type": "uint256"
}
],
"name": "Mint",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "sender",
"type": "address"
},
{
"indexed": false,
"name": "amount0",
"type": "uint256"
},
{
"indexed": false,
"name": "amount1",
"type": "uint256"
},
{
"indexed": true,
"name": "to",
"type": "address"
}
],
"name": "Burn",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "sender",
"type": "address"
},
{
"indexed": false,
"name": "amount0In",
"type": "uint256"
},
{
"indexed": false,
"name": "amount1In",
"type": "uint256"
},
{
"indexed": false,
"name": "amount0Out",
"type": "uint256"
},
{
"indexed": false,
"name": "amount1Out",
"type": "uint256"
},
{
"indexed": true,
"name": "to",
"type": "address"
}
],
"name": "Swap",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"name": "reserve0",
"type": "uint112"
},
{
"indexed": false,
"name": "reserve1",
"type": "uint112"
}
],
"name": "Sync",
"type": "event"
},
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "decimals",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "pure",
"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"
},
{
"constant": true,
"inputs": [],
"name": "DOMAIN_SEPARATOR",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "PERMIT_TYPEHASH",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "owner",
"type": "address"
}
],
"name": "nonces",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "owner",
"type": "address"
},
{
"name": "spender",
"type": "address"
},
{
"name": "value",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
},
{
"name": "v",
"type": "uint8"
},
{
"name": "r",
"type": "bytes32"
},
{
"name": "s",
"type": "bytes32"
}
],
"name": "permit",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "MINIMUM_LIQUIDITY",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "pure",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "factory",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "token0",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "token1",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "getReserves",
"outputs": [
{
"name": "reserve0",
"type": "uint112"
},
{
"name": "reserve1",
"type": "uint112"
},
{
"name": "blockTimestampLast",
"type": "uint32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "price0CumulativeLast",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "price1CumulativeLast",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [],
"name": "kLast",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "to",
"type": "address"
}
],
"name": "mint",
"outputs": [
{
"name": "liquidity",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "to",
"type": "address"
}
],
"name": "burn",
"outputs": [
{
"name": "amount0",
"type": "uint256"
},
{
"name": "amount1",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "amount0Out",
"type": "uint256"
},
{
"name": "amount1Out",
"type": "uint256"
},
{
"name": "to",
"type": "address"
},
{
"name": "data",
"type": "bytes"
}
],
"name": "swap",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "to",
"type": "address"
}
],
"name": "skim",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [],
"name": "sync",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "",
"type": "address"
},
{
"name": "",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"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 ISoxswapPair {\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 pure returns (string memory);\r\n function symbol() external pure returns (string memory);\r\n function decimals() external pure 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 function DOMAIN_SEPARATOR() external view returns (bytes32);\r\n function PERMIT_TYPEHASH() external pure returns (bytes32);\r\n function nonces(address owner) external view returns (uint);\r\n\r\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\r\n\r\n event Mint(address indexed sender, uint amount0, uint amount1);\r\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\r\n event Swap(\r\n address indexed sender,\r\n uint amount0In,\r\n uint amount1In,\r\n uint amount0Out,\r\n uint amount1Out,\r\n address indexed to\r\n );\r\n event Sync(uint112 reserve0, uint112 reserve1);\r\n\r\n function MINIMUM_LIQUIDITY() external pure returns (uint);\r\n function factory() external view returns (address);\r\n function token0() external view returns (address);\r\n function token1() external view returns (address);\r\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\r\n function price0CumulativeLast() external view returns (uint);\r\n function price1CumulativeLast() external view returns (uint);\r\n function kLast() external view returns (uint);\r\n\r\n function mint(address to) external returns (uint liquidity);\r\n function burn(address payable to) external returns (uint amount0, uint amount1);\r\n function swap(uint amount0Out, uint amount1Out, address payable to, bytes calldata data) external;\r\n function skim(address payable to) external;\r\n function sync() external;\r\n\r\n function initialize(address, address) external;\r\n}\r\n",
"sourcePath": "@sonicxchain/soxswap-core/contracts/interfaces/ISoxswapPair.sol",
"ast": {
"absolutePath": "@sonicxchain/soxswap-core/contracts/interfaces/ISoxswapPair.sol",
"exportedSymbols": {
"ISoxswapPair": [
3516
]
},
"id": 3517,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 3276,
"literals": [
"solidity",
">=",
"0.4",
".23",
"<",
"0.6",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:32:8"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"documentation": null,
"fullyImplemented": false,
"id": 3516,
"linearizedBaseContracts": [
3516
],
"name": "ISoxswapPair",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 3284,
"name": "Approval",
"nodeType": "EventDefinition",
"parameters": {
"id": 3283,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3278,
"indexed": true,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 3284,
"src": "81:21:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3277,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "81:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3280,
"indexed": true,
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 3284,
"src": "104:23:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3279,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "104:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3282,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 3284,
"src": "129:10:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3281,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "129:4:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "80:60:8"
},
"src": "66:75:8"
},
{
"anonymous": false,
"documentation": null,
"id": 3292,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
"id": 3291,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3286,
"indexed": true,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 3292,
"src": "162:20:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3285,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "162:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3288,
"indexed": true,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 3292,
"src": "184:18:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3287,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "184:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3290,
"indexed": false,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 3292,
"src": "204:10:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3289,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "204:4:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "161:54:8"
},
"src": "147:69:8"
},
{
"body": null,
"documentation": null,
"id": 3297,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "name",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3293,
"nodeType": "ParameterList",
"parameters": [],
"src": "237:2:8"
},
"returnParameters": {
"id": 3296,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3295,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3297,
"src": "263:13:8",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3294,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "263:6:8",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "262:15:8"
},
"scope": 3516,
"src": "224:54:8",
"stateMutability": "pure",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3302,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "symbol",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3298,
"nodeType": "ParameterList",
"parameters": [],
"src": "299:2:8"
},
"returnParameters": {
"id": 3301,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3300,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3302,
"src": "325:13:8",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 3299,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "325:6:8",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "324:15:8"
},
"scope": 3516,
"src": "284:56:8",
"stateMutability": "pure",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3307,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "decimals",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3303,
"nodeType": "ParameterList",
"parameters": [],
"src": "363:2:8"
},
"returnParameters": {
"id": 3306,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3305,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3307,
"src": "389:5:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 3304,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "389:5:8",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "388:7:8"
},
"scope": 3516,
"src": "346:50:8",
"stateMutability": "pure",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3312,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3308,
"nodeType": "ParameterList",
"parameters": [],
"src": "422:2:8"
},
"returnParameters": {
"id": 3311,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3310,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3312,
"src": "448:4:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3309,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "448:4:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "447:6:8"
},
"scope": 3516,
"src": "402:52:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3319,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3315,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3314,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 3319,
"src": "479:13:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3313,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "479:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "478:15:8"
},
"returnParameters": {
"id": 3318,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3317,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3319,
"src": "517:4:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3316,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "517:4:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "516:6:8"
},
"scope": 3516,
"src": "460:63:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3328,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allowance",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3324,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3321,
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 3328,
"src": "548:13:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3320,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "548:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3323,
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 3328,
"src": "563:15:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3322,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "563:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "547:32:8"
},
"returnParameters": {
"id": 3327,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3326,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3328,
"src": "603:4:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3325,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "603:4:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "602:6:8"
},
"scope": 3516,
"src": "529:80:8",
"stateMutability": "view",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3337,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "approve",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3333,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3330,
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 3337,
"src": "634:15:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3329,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "634:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3332,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 3337,
"src": "651:10:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3331,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "651:4:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "633:29:8"
},
"returnParameters": {
"id": 3336,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3335,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3337,
"src": "681:4:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 3334,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "681:4:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "680:6:8"
},
"scope": 3516,
"src": "617:70:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3346,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3342,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3339,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 3346,
"src": "711:10:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3338,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "711:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3341,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 3346,
"src": "723:10:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3340,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "723:4:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "710:24:8"
},
"returnParameters": {
"id": 3345,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3344,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3346,
"src": "753:4:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 3343,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "753:4:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "752:6:8"
},
"scope": 3516,
"src": "693:66:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3357,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferFrom",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3353,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3348,
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 3357,
"src": "787:12:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3347,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "787:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3350,
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 3357,
"src": "801:10:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 3349,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "801:7:8",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 3352,
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 3357,
"src": "813:10:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 3351,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "813:4:8",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "786:38:8"
},
"returnParameters": {
"id": 3356,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3355,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3357,
"src": "843:4:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 3354,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "843:4:8",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "842:6:8"
},
"scope": 3516,
"src": "765:84:8",
"stateMutability": "nonpayable",
"superFunction": null,
"visibility": "external"
},
{
"body": null,
"documentation": null,
"id": 3362,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "DOMAIN_SEPARATOR",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 3358,
"nodeType": "ParameterList",
"parameters": [],
"src": "882:2:8"
},
"returnParameters": {
"id": 3361,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3360,
"name": "",
"nodeType": "VariableDeclaration",
"scope": 3362,
"src": "908:7:8",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 3359,
"name": "bytes32",
"nodeTy