UNPKG

@sonicxchain/soxswap-periphery

Version:

Peripheral smart contracts for interacting with Soxswap

765 lines 24.3 kB
{ "contractName": "IMint", "abi": [ { "constant": false, "inputs": [ { "name": "to", "type": "address" }, { "name": "value", "type": "uint256" } ], "name": "mint", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "value", "type": "uint256" } ], "name": "burn", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "from", "type": "address" }, { "name": "value", "type": "uint256" } ], "name": "burnFrom", "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 IMint {\r\n\r\n function mint(address to, uint256 value) external returns (bool);\r\n function burn(uint256 value) external returns (bool);\r\n function burnFrom(address from, uint256 value) external returns (bool);\r\n\r\n}\r\n", "sourcePath": "@sonicxchain/src20/contracts/SRC20/IMint.sol", "ast": { "absolutePath": "@sonicxchain/src20/contracts/SRC20/IMint.sol", "exportedSymbols": { "IMint": [ 4559 ] }, "id": 4560, "nodeType": "SourceUnit", "nodes": [ { "id": 4533, "literals": [ "solidity", ">=", "0.4", ".23", "<", "0.6", ".0" ], "nodeType": "PragmaDirective", "src": "0:32:14" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 4559, "linearizedBaseContracts": [ 4559 ], "name": "IMint", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 4542, "implemented": false, "kind": "function", "modifiers": [], "name": "mint", "nodeType": "FunctionDefinition", "parameters": { "id": 4538, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4535, "name": "to", "nodeType": "VariableDeclaration", "scope": 4542, "src": "75:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4534, "name": "address", "nodeType": "ElementaryTypeName", "src": "75:7:14", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4537, "name": "value", "nodeType": "VariableDeclaration", "scope": 4542, "src": "87:13:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4536, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "87:7:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "74:27:14" }, "returnParameters": { "id": 4541, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4540, "name": "", "nodeType": "VariableDeclaration", "scope": 4542, "src": "120:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4539, "name": "bool", "nodeType": "ElementaryTypeName", "src": "120:4:14", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "119:6:14" }, "scope": 4559, "src": "61:65:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 4549, "implemented": false, "kind": "function", "modifiers": [], "name": "burn", "nodeType": "FunctionDefinition", "parameters": { "id": 4545, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4544, "name": "value", "nodeType": "VariableDeclaration", "scope": 4549, "src": "146:13:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4543, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "146:7:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "145:15:14" }, "returnParameters": { "id": 4548, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4547, "name": "", "nodeType": "VariableDeclaration", "scope": 4549, "src": "179:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4546, "name": "bool", "nodeType": "ElementaryTypeName", "src": "179:4:14", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "178:6:14" }, "scope": 4559, "src": "132:53:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 4558, "implemented": false, "kind": "function", "modifiers": [], "name": "burnFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 4554, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4551, "name": "from", "nodeType": "VariableDeclaration", "scope": 4558, "src": "209:12:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4550, "name": "address", "nodeType": "ElementaryTypeName", "src": "209:7:14", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4553, "name": "value", "nodeType": "VariableDeclaration", "scope": 4558, "src": "223:13:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4552, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "223:7:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "208:29:14" }, "returnParameters": { "id": 4557, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4556, "name": "", "nodeType": "VariableDeclaration", "scope": 4558, "src": "256:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4555, "name": "bool", "nodeType": "ElementaryTypeName", "src": "256:4:14", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "255:6:14" }, "scope": 4559, "src": "191:71:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 4560, "src": "36:231:14" } ], "src": "0:269:14" }, "legacyAST": { "absolutePath": "@sonicxchain/src20/contracts/SRC20/IMint.sol", "exportedSymbols": { "IMint": [ 4559 ] }, "id": 4560, "nodeType": "SourceUnit", "nodes": [ { "id": 4533, "literals": [ "solidity", ">=", "0.4", ".23", "<", "0.6", ".0" ], "nodeType": "PragmaDirective", "src": "0:32:14" }, { "baseContracts": [], "contractDependencies": [], "contractKind": "interface", "documentation": null, "fullyImplemented": false, "id": 4559, "linearizedBaseContracts": [ 4559 ], "name": "IMint", "nodeType": "ContractDefinition", "nodes": [ { "body": null, "documentation": null, "id": 4542, "implemented": false, "kind": "function", "modifiers": [], "name": "mint", "nodeType": "FunctionDefinition", "parameters": { "id": 4538, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4535, "name": "to", "nodeType": "VariableDeclaration", "scope": 4542, "src": "75:10:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4534, "name": "address", "nodeType": "ElementaryTypeName", "src": "75:7:14", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4537, "name": "value", "nodeType": "VariableDeclaration", "scope": 4542, "src": "87:13:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4536, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "87:7:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "74:27:14" }, "returnParameters": { "id": 4541, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4540, "name": "", "nodeType": "VariableDeclaration", "scope": 4542, "src": "120:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4539, "name": "bool", "nodeType": "ElementaryTypeName", "src": "120:4:14", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "119:6:14" }, "scope": 4559, "src": "61:65:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 4549, "implemented": false, "kind": "function", "modifiers": [], "name": "burn", "nodeType": "FunctionDefinition", "parameters": { "id": 4545, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4544, "name": "value", "nodeType": "VariableDeclaration", "scope": 4549, "src": "146:13:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4543, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "146:7:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "145:15:14" }, "returnParameters": { "id": 4548, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4547, "name": "", "nodeType": "VariableDeclaration", "scope": 4549, "src": "179:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4546, "name": "bool", "nodeType": "ElementaryTypeName", "src": "179:4:14", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "178:6:14" }, "scope": 4559, "src": "132:53:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" }, { "body": null, "documentation": null, "id": 4558, "implemented": false, "kind": "function", "modifiers": [], "name": "burnFrom", "nodeType": "FunctionDefinition", "parameters": { "id": 4554, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4551, "name": "from", "nodeType": "VariableDeclaration", "scope": 4558, "src": "209:12:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 4550, "name": "address", "nodeType": "ElementaryTypeName", "src": "209:7:14", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 4553, "name": "value", "nodeType": "VariableDeclaration", "scope": 4558, "src": "223:13:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 4552, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "223:7:14", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "208:29:14" }, "returnParameters": { "id": 4557, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 4556, "name": "", "nodeType": "VariableDeclaration", "scope": 4558, "src": "256:4:14", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 4555, "name": "bool", "nodeType": "ElementaryTypeName", "src": "256:4:14", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "255:6:14" }, "scope": 4559, "src": "191:71:14", "stateMutability": "nonpayable", "superFunction": null, "visibility": "external" } ], "scope": 4560, "src": "36:231:14" } ], "src": "0:269:14" }, "compiler": { "name": "solc", "version": "0.5.4+commit.7b0de266.mod.Emscripten.clang" }, "networks": {}, "schemaVersion": "2.0.1", "updatedAt": "2020-12-15T09:23:58.353Z" }