2019-12-29 02:25:08 +00:00
{
"contractName" : "Ownable" ,
"abi" : [
{
"inputs" : [ ] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "constructor"
} ,
{
"anonymous" : false ,
"inputs" : [
{
"indexed" : true ,
"internalType" : "address" ,
"name" : "previousOwner" ,
"type" : "address"
} ,
{
"indexed" : true ,
"internalType" : "address" ,
"name" : "newOwner" ,
"type" : "address"
}
] ,
"name" : "OwnershipTransferred" ,
"type" : "event"
} ,
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "owner" ,
"outputs" : [
{
"internalType" : "address payable" ,
"name" : "" ,
"type" : "address"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "isOwner" ,
"outputs" : [
{
"internalType" : "bool" ,
"name" : "" ,
"type" : "bool"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : false ,
"inputs" : [ ] ,
"name" : "renounceOwnership" ,
"outputs" : [ ] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
} ,
{
"constant" : false ,
"inputs" : [
{
"internalType" : "address payable" ,
"name" : "newOwner" ,
"type" : "address"
}
] ,
"name" : "transferOwnership" ,
"outputs" : [ ] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
}
] ,
2020-02-18 05:18:07 +00:00
"metadata" : "{\"compiler\":{\"version\":\"0.5.12+commit.7709ece9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address payable\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"The reason using this instead of openzeppelin, because owner are not 'payable'\",\"methods\":{\"constructor\":{\"details\":\"Initializes the contract setting the deployer as the initial owner.\"},\"isOwner()\":{\"details\":\"Returns true if the caller is the current owner.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. * NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/p1r0/Dev/git/neetsec/dcc/contracts/DECA.sol\":\"Ownable\"},\"evmVersion\":\"petersburg\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/p1r0/Dev/git/neetsec/dcc/contracts/DECA.sol\":{\"keccak256\":\"0x49b90fcbd2f4b8522a8b24d6be34dde3655572f608c159bc45ee28a51e19282b\",\"urls\":[\"bzz-raw://e745ab72fc640a805878dacfa54226034d8c6b8c8cbe05b11a3c24347c86a404\",\"dweb:/ipfs/QmYbZi78rZHiV5kGUEQJB7C8AALSyBeGpiPhKu4HRPuojz\"]},\"@openzeppelin/contracts/GSN/Context.sol\":{\"keccak256\":\"0x90a3995645af7562d84b9d69363ffa5ae7217714ab61e951bf7bc450f40e4061\",\"urls\":[\"bzz-raw://216ef9d6b614db4eb46970b4e84903f2534a45572dd30a79f0041f1a5830f436\",\"dweb:/ipfs/QmNPrJ4MWKUAWzKXpUqeyKRUfosaoANZAqXgvepdrCwZAG\"]},\"@openzeppelin/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x640b6dee7a4b830bdfd52b5031a07fc2b12209f5b2e29e5d364a7d37f69d8076\",\"urls\":[\"bzz-raw://31113152e1ddb78fe7a4197f247591ca894e93f916867beb708d8e747b6cc74f\",\"dweb:/ipfs/QmbZaJyXdpsYGykVhHH9qpVGQg9DGCxE2QufbCUy3daTgq\"]},\"@openzeppelin/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0x65a4078c03875c25413a068ce9cfdd7e68a90f8786612d1189c89341e6e3b802\",\"urls\":[\"bzz-raw://45c0d95495b944fbb1aa09d900b0ab530903a432125ab8fddfa05064a7988991\",\"dweb:/ipfs/Qma2VeknkKA1THeubGzshWFk44BktXkXP1UKp9Un2uDSsu\"]},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0xe5bb0f57cff3e299f360052ba50f1ea0fff046df2be070b6943e0e3c3fdad8a9\",\"urls\":[\"bzz-raw://59fd025151435da35faa8093a5c7a17de02de9d08ad27275c5cdf05050820d91\",\"dweb:/ipfs/QmQMvwEcPhoRXzbXyrdoeRtvLoifUW9Qh7Luho7bmUPRkc\"]}},\"version\":1}" ,
2019-12-29 02:25:08 +00:00
"bytecode" : "0x" ,
"deployedBytecode" : "0x" ,
"sourceMap" : "" ,
"deployedSourceMap" : "" ,
2020-02-18 05:18:07 +00:00
"source" : "pragma solidity 0.5.12;\n\nimport \"@openzeppelin/contracts/token/ERC20/ERC20.sol\";\nimport \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport \"@openzeppelin/contracts/math/SafeMath.sol\";\n// ----------------------------------------------------------------------------\n// 'DECA' DEcentralized CArbon tokens - ITDE (initial token distribution event)\n//\n// Deployed to : ------\n// Network : Ropsten\n// Symbol : DECA\n// Name : DEcentralized CArbon tokens\n// Total supply: Gazillion\n// Decimals : 18\n// \n// Designed and wrote by D. Perez Negron <david@neetsec.com> A.K.A p1r0\n// Test and Migrations to truffle by vitaliykuzmich\n// ----------------------------------------------------------------------------\n/**\n * @dev The reason using this instead of openzeppelin, because owner are not 'payable'\n */\ncontract Ownable is Context {\n address payable private _owner;\n using SafeMath for uint256;\n\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev Initializes the contract setting the deployer as the initial owner.\n */\n constructor () internal {\n _owner = _msgSender();\n emit OwnershipTransferred(address(0), _owner);\n }\n\n /**\n * @dev Returns the address of the current owner.\n */\n function owner() public view returns (address payable) {\n return _owner;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(isOwner(), \"Ownable: caller is not the owner\");\n _;\n }\n\n /**\n * @dev Returns true if the caller is the current owner.\n */\n function isOwner() public view returns (bool) {\n return _msgSender() == _owner;\n }\n\n /**\n * @dev Leaves the contract without owner. It will not be possible to call\n * `onlyOwner` functions anymore. Can only be called by the current owner.\n *\n * NOTE: Renouncing ownership will leave the contract without an owner,\n * thereby removing any functionality that is only available to the owner.\n */\n function renounceOwnership() public onlyOwner {\n emit OwnershipTransferred(_owner, address(0));\n _owner = address(0);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n * Can only be called by the current owner.\n */\n function transferOwnership(address payable newOwner) public onlyOwner {\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\n */\n function _transferOwnership(address payable newOwner) internal {\n require(newOwner != address(0), \"Ownable: new owner is the zero address\");\n emit OwnershipTransferred(_owner, newOwner);\n _owner = newOwner;\n }\n}\n\n// ----------------------------------------------------------------------------\n// ERC20 Token, with the addition of symbol, name and decimals and assisted\n// token transfers\n// ----------------------------------------------------------------------------\ncontract DECA is ERC20, Ownable {\n using SafeMath for uint256;\n string constant public symbol = \"DECA\";\n string constant public name = \"DEcentralized CArbon tokens\";\n uint8 constant public decimals = 18;\n //for testing change weeks for hours...\n uint public preICOEnds = now + 1 weeks;\n uint public bonus1Ends = now + 3 weeks;\n uint public bonus2Ends = now + 6 weeks;\n uint public endDate = now + 11 weeks;\n bool private _pause = false;\n\n modifier notPaused() {\n require(!_pause, \"crowdsale on pause\" ) ; \ n _ ; \ n } \ n f u n c t i o n g e t P a u s e ( ) v i e w p u b l i c r e t u r n s ( b o o l ) { \ n r e t u r n _ p a u s e ; \ n } \ n \ n f u n c t i o n s e t P a u s e ( b o o l p ) e x t e r n a l o n l y O w n e r { \ n _ p a u s e = p ; \ n } \ n // ------------------------------------------------------------------------\n // 100 DECA Tokens per 1 ETH\n // -----------------------
"sourcePath" : "/home/p1r0/Dev/git/neetsec/dcc/contracts/DECA.sol" ,
2019-12-29 02:25:08 +00:00
"ast" : {
2020-02-18 05:18:07 +00:00
"absolutePath" : "/home/p1r0/Dev/git/neetsec/dcc/contracts/DECA.sol" ,
2019-12-29 02:25:08 +00:00
"exportedSymbols" : {
2020-02-18 05:18:07 +00:00
"DECA" : [
333
2019-12-29 02:25:08 +00:00
] ,
"Ownable" : [
2020-02-18 05:18:07 +00:00
118
2019-12-29 02:25:08 +00:00
]
} ,
2020-02-18 05:18:07 +00:00
"id" : 334 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
"id" : 1 ,
"literals" : [
"solidity" ,
"0.5" ,
".12"
] ,
"nodeType" : "PragmaDirective" ,
"src" : "0:23:0"
} ,
{
"absolutePath" : "@openzeppelin/contracts/token/ERC20/ERC20.sol" ,
"file" : "@openzeppelin/contracts/token/ERC20/ERC20.sol" ,
"id" : 2 ,
"nodeType" : "ImportDirective" ,
2020-02-18 05:18:07 +00:00
"scope" : 334 ,
"sourceUnit" : 1010 ,
2019-12-29 02:25:08 +00:00
"src" : "25:55:0" ,
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
2020-02-18 05:18:07 +00:00
{
"absolutePath" : "@openzeppelin/contracts/token/ERC20/IERC20.sol" ,
"file" : "@openzeppelin/contracts/token/ERC20/IERC20.sol" ,
"id" : 3 ,
"nodeType" : "ImportDirective" ,
"scope" : 334 ,
"sourceUnit" : 1079 ,
"src" : "81:56:0" ,
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
2019-12-29 02:25:08 +00:00
{
"absolutePath" : "@openzeppelin/contracts/math/SafeMath.sol" ,
"file" : "@openzeppelin/contracts/math/SafeMath.sol" ,
2020-02-18 05:18:07 +00:00
"id" : 4 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ImportDirective" ,
2020-02-18 05:18:07 +00:00
"scope" : 334 ,
"sourceUnit" : 605 ,
"src" : "138:51:0" ,
2019-12-29 02:25:08 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"baseContracts" : [
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2020-02-18 05:18:07 +00:00
"id" : 5 ,
2019-12-29 02:25:08 +00:00
"name" : "Context" ,
"nodeType" : "UserDefinedTypeName" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 417 ,
"src" : "839:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_Context_$417" ,
2019-12-29 02:25:08 +00:00
"typeString" : "contract Context"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 6 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "InheritanceSpecifier" ,
2020-02-18 05:18:07 +00:00
"src" : "839:7:0"
2019-12-29 02:25:08 +00:00
}
] ,
"contractDependencies" : [
2020-02-18 05:18:07 +00:00
417
2019-12-29 02:25:08 +00:00
] ,
"contractKind" : "contract" ,
"documentation" : "@dev The reason using this instead of openzeppelin, because owner are not 'payable'" ,
"fullyImplemented" : true ,
2020-02-18 05:18:07 +00:00
"id" : 118 ,
2019-12-29 02:25:08 +00:00
"linearizedBaseContracts" : [
2020-02-18 05:18:07 +00:00
118 ,
417
2019-12-29 02:25:08 +00:00
] ,
"name" : "Ownable" ,
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 8 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "853:30:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 7 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "853:15:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "payable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"value" : null ,
"visibility" : "private"
} ,
{
2020-02-18 05:18:07 +00:00
"id" : 11 ,
2019-12-29 02:25:08 +00:00
"libraryName" : {
"contractScope" : null ,
2020-02-18 05:18:07 +00:00
"id" : 9 ,
2019-12-29 02:25:08 +00:00
"name" : "SafeMath" ,
"nodeType" : "UserDefinedTypeName" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 604 ,
"src" : "895:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_SafeMath_$604" ,
2019-12-29 02:25:08 +00:00
"typeString" : "library SafeMath"
}
} ,
"nodeType" : "UsingForDirective" ,
2020-02-18 05:18:07 +00:00
"src" : "889:27:0" ,
2019-12-29 02:25:08 +00:00
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 10 ,
2019-12-29 02:25:08 +00:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "908:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
} ,
{
"anonymous" : false ,
"documentation" : null ,
2020-02-18 05:18:07 +00:00
"id" : 17 ,
2019-12-29 02:25:08 +00:00
"name" : "OwnershipTransferred" ,
"nodeType" : "EventDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 16 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 13 ,
2019-12-29 02:25:08 +00:00
"indexed" : true ,
"name" : "previousOwner" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 17 ,
"src" : "949:29:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 12 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "949:7:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 15 ,
2019-12-29 02:25:08 +00:00
"indexed" : true ,
"name" : "newOwner" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 17 ,
"src" : "980:24:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 14 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "980:7:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "948:57:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"src" : "922:84:0"
2019-12-29 02:25:08 +00:00
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 32 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "1132:93:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 23 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 20 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "1142:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2020-02-18 05:18:07 +00:00
"id" : 21 ,
2019-12-29 02:25:08 +00:00
"name" : "_msgSender" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 405 ,
"src" : "1151:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$__$returns$_t_address_payable_$" ,
"typeString" : "function () view returns (address payable)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 22 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "1151:12:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "1142:21:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 24 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "1142:21:0"
2019-12-29 02:25:08 +00:00
} ,
{
"eventCall" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"hexValue" : "30" ,
2020-02-18 05:18:07 +00:00
"id" : 27 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "1207:1:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 26 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2020-02-18 05:18:07 +00:00
"src" : "1199:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2020-02-18 05:18:07 +00:00
"id" : 28 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "1199:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 29 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "1211:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 25 ,
2019-12-29 02:25:08 +00:00
"name" : "OwnershipTransferred" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 17 ,
"src" : "1178:20:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$" ,
"typeString" : "function (address,address)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 30 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "1178:40:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 31 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "EmitStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "1173:45:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Initializes the contract setting the deployer as the initial owner." ,
2020-02-18 05:18:07 +00:00
"id" : 33 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "constructor" ,
"modifiers" : [ ] ,
"name" : "" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 18 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "1120:2:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 19 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "1132:0:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "1108:117:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "internal"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 40 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "1356:30:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 38 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "1373:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"functionReturnParameters" : 37 ,
"id" : 39 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Return" ,
2020-02-18 05:18:07 +00:00
"src" : "1366:13:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Returns the address of the current owner." ,
2020-02-18 05:18:07 +00:00
"id" : 41 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [ ] ,
"name" : "owner" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 34 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "1315:2:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 37 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 36 ,
2019-12-29 02:25:08 +00:00
"name" : "" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 41 ,
"src" : "1339:15:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 35 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "1339:15:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "payable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "1338:17:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "1301:85:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "view" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 50 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "1495:82:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2020-02-18 05:18:07 +00:00
"id" : 44 ,
2019-12-29 02:25:08 +00:00
"name" : "isOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 62 ,
"src" : "1513:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$__$returns$_t_bool_$" ,
"typeString" : "function () view returns (bool)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 45 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "1513:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572" ,
2020-02-18 05:18:07 +00:00
"id" : 46 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "1524:34:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe" ,
"typeString" : "literal_string \"Ownable: caller is not the owner\""
} ,
"value" : "Ownable: caller is not the owner"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe" ,
"typeString" : "literal_string \"Ownable: caller is not the owner\""
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 43 ,
2019-12-29 02:25:08 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2020-02-18 05:18:07 +00:00
1096 ,
1097
2019-12-29 02:25:08 +00:00
] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1097 ,
"src" : "1505:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 47 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "1505:54:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 48 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "1505:54:0"
2019-12-29 02:25:08 +00:00
} ,
{
2020-02-18 05:18:07 +00:00
"id" : 49 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "PlaceholderStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "1569:1:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Throws if called by any account other than the owner." ,
2020-02-18 05:18:07 +00:00
"id" : 51 ,
2019-12-29 02:25:08 +00:00
"name" : "onlyOwner" ,
"nodeType" : "ModifierDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 42 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "1492:2:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"src" : "1474:103:0" ,
2019-12-29 02:25:08 +00:00
"visibility" : "internal"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 61 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "1706:46:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
2020-02-18 05:18:07 +00:00
"id" : 59 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2020-02-18 05:18:07 +00:00
"id" : 56 ,
2019-12-29 02:25:08 +00:00
"name" : "_msgSender" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 405 ,
"src" : "1723:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$__$returns$_t_address_payable_$" ,
"typeString" : "function () view returns (address payable)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 57 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "1723:12:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "==" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 58 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "1739:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "1723:22:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2020-02-18 05:18:07 +00:00
"functionReturnParameters" : 55 ,
"id" : 60 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Return" ,
2020-02-18 05:18:07 +00:00
"src" : "1716:29:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Returns true if the caller is the current owner." ,
2020-02-18 05:18:07 +00:00
"id" : 62 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [ ] ,
"name" : "isOwner" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 52 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "1676:2:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 55 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 54 ,
2019-12-29 02:25:08 +00:00
"name" : "" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 62 ,
"src" : "1700:4:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 53 ,
2019-12-29 02:25:08 +00:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "1700:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "1699:6:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "1660:92:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "view" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 80 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "2140:91:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"eventCall" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 68 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "2176:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
{
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"hexValue" : "30" ,
2020-02-18 05:18:07 +00:00
"id" : 70 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "2192:1:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 69 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2020-02-18 05:18:07 +00:00
"src" : "2184:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2020-02-18 05:18:07 +00:00
"id" : 71 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2184:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 67 ,
2019-12-29 02:25:08 +00:00
"name" : "OwnershipTransferred" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 17 ,
"src" : "2155:20:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$" ,
"typeString" : "function (address,address)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 72 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2155:40:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 73 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "EmitStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "2150:45:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 78 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 74 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "2205:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"hexValue" : "30" ,
2020-02-18 05:18:07 +00:00
"id" : 76 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "2222:1:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 75 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2020-02-18 05:18:07 +00:00
"src" : "2214:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2020-02-18 05:18:07 +00:00
"id" : 77 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2214:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "2205:19:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 79 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "2205:19:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Leaves the contract without owner. It will not be possible to call\n`onlyOwner` functions anymore. Can only be called by the current owner.\n * NOTE: Renouncing ownership will leave the contract without an owner,\nthereby removing any functionality that is only available to the owner." ,
2020-02-18 05:18:07 +00:00
"id" : 81 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [
{
"arguments" : null ,
2020-02-18 05:18:07 +00:00
"id" : 65 ,
2019-12-29 02:25:08 +00:00
"modifierName" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 64 ,
2019-12-29 02:25:08 +00:00
"name" : "onlyOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 51 ,
"src" : "2130:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2020-02-18 05:18:07 +00:00
"src" : "2130:9:0"
2019-12-29 02:25:08 +00:00
}
] ,
"name" : "renounceOwnership" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 63 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "2120:2:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 66 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "2140:0:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "2094:137:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 92 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "2450:45:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 89 ,
2019-12-29 02:25:08 +00:00
"name" : "newOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 83 ,
"src" : "2479:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 88 ,
2019-12-29 02:25:08 +00:00
"name" : "_transferOwnership" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 117 ,
"src" : "2460:18:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_nonpayable$_t_address_payable_$returns$__$" ,
"typeString" : "function (address payable)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 90 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2460:28:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 91 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "2460:28:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Transfers ownership of the contract to a new account (`newOwner`).\nCan only be called by the current owner." ,
2020-02-18 05:18:07 +00:00
"id" : 93 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [
{
"arguments" : null ,
2020-02-18 05:18:07 +00:00
"id" : 86 ,
2019-12-29 02:25:08 +00:00
"modifierName" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 85 ,
2019-12-29 02:25:08 +00:00
"name" : "onlyOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 51 ,
"src" : "2440:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2020-02-18 05:18:07 +00:00
"src" : "2440:9:0"
2019-12-29 02:25:08 +00:00
}
] ,
"name" : "transferOwnership" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 84 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 83 ,
2019-12-29 02:25:08 +00:00
"name" : "newOwner" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 93 ,
"src" : "2407:24:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 82 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "2407:15:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "payable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "2406:26:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 87 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "2450:0:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "2380:115:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 116 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "2659:170:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
2020-02-18 05:18:07 +00:00
"id" : 103 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 99 ,
2019-12-29 02:25:08 +00:00
"name" : "newOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 95 ,
"src" : "2677:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "!=" ,
"rightExpression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"hexValue" : "30" ,
2020-02-18 05:18:07 +00:00
"id" : 101 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "2697:1:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 100 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2020-02-18 05:18:07 +00:00
"src" : "2689:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2020-02-18 05:18:07 +00:00
"id" : 102 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2689:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "2677:22:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373" ,
2020-02-18 05:18:07 +00:00
"id" : 104 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "2701:40:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe" ,
"typeString" : "literal_string \"Ownable: new owner is the zero address\""
} ,
"value" : "Ownable: new owner is the zero address"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe" ,
"typeString" : "literal_string \"Ownable: new owner is the zero address\""
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 98 ,
2019-12-29 02:25:08 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2020-02-18 05:18:07 +00:00
1096 ,
1097
2019-12-29 02:25:08 +00:00
] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1097 ,
"src" : "2669:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 105 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2669:73:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 106 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "2669:73:0"
2019-12-29 02:25:08 +00:00
} ,
{
"eventCall" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 108 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "2778:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 109 ,
2019-12-29 02:25:08 +00:00
"name" : "newOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 95 ,
"src" : "2786:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 107 ,
2019-12-29 02:25:08 +00:00
"name" : "OwnershipTransferred" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 17 ,
"src" : "2757:20:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$" ,
"typeString" : "function (address,address)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 110 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2757:38:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 111 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "EmitStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "2752:43:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 114 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 112 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "2805:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 113 ,
2019-12-29 02:25:08 +00:00
"name" : "newOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 95 ,
"src" : "2814:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "2805:17:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 115 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "2805:17:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Transfers ownership of the contract to a new account (`newOwner`)." ,
2020-02-18 05:18:07 +00:00
"id" : 117 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [ ] ,
"name" : "_transferOwnership" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 96 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 95 ,
2019-12-29 02:25:08 +00:00
"name" : "newOwner" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 117 ,
"src" : "2624:24:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 94 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "2624:15:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "payable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "2623:26:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 97 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "2659:0:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "2596:233:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"scope" : 334 ,
"src" : "819:2012:0"
2019-12-29 02:25:08 +00:00
} ,
{
"baseContracts" : [
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2020-02-18 05:18:07 +00:00
"id" : 119 ,
2019-12-29 02:25:08 +00:00
"name" : "ERC20" ,
"nodeType" : "UserDefinedTypeName" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1009 ,
"src" : "3105:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_ERC20_$1009" ,
2019-12-29 02:25:08 +00:00
"typeString" : "contract ERC20"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 120 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "InheritanceSpecifier" ,
2020-02-18 05:18:07 +00:00
"src" : "3105:5:0"
2019-12-29 02:25:08 +00:00
} ,
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2020-02-18 05:18:07 +00:00
"id" : 121 ,
2019-12-29 02:25:08 +00:00
"name" : "Ownable" ,
"nodeType" : "UserDefinedTypeName" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 118 ,
"src" : "3112:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_Ownable_$118" ,
2019-12-29 02:25:08 +00:00
"typeString" : "contract Ownable"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 122 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "InheritanceSpecifier" ,
2020-02-18 05:18:07 +00:00
"src" : "3112:7:0"
2019-12-29 02:25:08 +00:00
}
] ,
"contractDependencies" : [
2020-02-18 05:18:07 +00:00
118 ,
417 ,
1009 ,
1078
2019-12-29 02:25:08 +00:00
] ,
"contractKind" : "contract" ,
"documentation" : null ,
"fullyImplemented" : true ,
2020-02-18 05:18:07 +00:00
"id" : 333 ,
2019-12-29 02:25:08 +00:00
"linearizedBaseContracts" : [
2020-02-18 05:18:07 +00:00
333 ,
118 ,
1009 ,
1078 ,
417
2019-12-29 02:25:08 +00:00
] ,
2020-02-18 05:18:07 +00:00
"name" : "DECA" ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
2020-02-18 05:18:07 +00:00
"id" : 125 ,
2019-12-29 02:25:08 +00:00
"libraryName" : {
"contractScope" : null ,
2020-02-18 05:18:07 +00:00
"id" : 123 ,
2019-12-29 02:25:08 +00:00
"name" : "SafeMath" ,
"nodeType" : "UserDefinedTypeName" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 604 ,
"src" : "3132:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_SafeMath_$604" ,
2019-12-29 02:25:08 +00:00
"typeString" : "library SafeMath"
}
} ,
"nodeType" : "UsingForDirective" ,
2020-02-18 05:18:07 +00:00
"src" : "3126:27:0" ,
2019-12-29 02:25:08 +00:00
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 124 ,
2019-12-29 02:25:08 +00:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3145:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
} ,
{
"constant" : true ,
2020-02-18 05:18:07 +00:00
"id" : 128 ,
2019-12-29 02:25:08 +00:00
"name" : "symbol" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3158:38:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_string_memory" ,
"typeString" : "string"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 126 ,
2019-12-29 02:25:08 +00:00
"name" : "string" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3158:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_string_storage_ptr" ,
"typeString" : "string"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "44454341" ,
2020-02-18 05:18:07 +00:00
"id" : 127 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3190:6:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_a49565813a43765a9dfdf315aaa77336d9844a752bb9a788d2dad0f019de1858" ,
"typeString" : "literal_string \"DECA\""
} ,
"value" : "DECA"
} ,
"visibility" : "public"
} ,
{
"constant" : true ,
2020-02-18 05:18:07 +00:00
"id" : 131 ,
2019-12-29 02:25:08 +00:00
"name" : "name" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3202:59:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_string_memory" ,
"typeString" : "string"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 129 ,
2019-12-29 02:25:08 +00:00
"name" : "string" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3202:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_string_storage_ptr" ,
"typeString" : "string"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "444563656e7472616c697a656420434172626f6e20746f6b656e73" ,
2020-02-18 05:18:07 +00:00
"id" : 130 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3232:29:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_a71fc6dd39cdb20c976c32b6365d2e473e0bcd38ac1af23f856facc675f989cb" ,
"typeString" : "literal_string \"DEcentralized CArbon tokens\""
} ,
"value" : "DEcentralized CArbon tokens"
} ,
"visibility" : "public"
} ,
{
"constant" : true ,
2020-02-18 05:18:07 +00:00
"id" : 134 ,
2019-12-29 02:25:08 +00:00
"name" : "decimals" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3267:35:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 132 ,
2019-12-29 02:25:08 +00:00
"name" : "uint8" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3267:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "3138" ,
2020-02-18 05:18:07 +00:00
"id" : 133 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3300:2:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_18_by_1" ,
"typeString" : "int_const 18"
} ,
"value" : "18"
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 139 ,
2019-12-29 02:25:08 +00:00
"name" : "preICOEnds" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3352:38:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 135 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3352:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 138 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 136 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "3377:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "+" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "31" ,
2020-02-18 05:18:07 +00:00
"id" : 137 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3383:7:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : "weeks" ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_604800_by_1" ,
"typeString" : "int_const 604800"
} ,
"value" : "1"
} ,
2020-02-18 05:18:07 +00:00
"src" : "3377:13:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 144 ,
2019-12-29 02:25:08 +00:00
"name" : "bonus1Ends" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3396:38:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 140 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3396:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 143 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 141 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "3421:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "+" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "33" ,
2020-02-18 05:18:07 +00:00
"id" : 142 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3427:7:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : "weeks" ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_1814400_by_1" ,
"typeString" : "int_const 1814400"
} ,
"value" : "3"
} ,
2020-02-18 05:18:07 +00:00
"src" : "3421:13:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 149 ,
2019-12-29 02:25:08 +00:00
"name" : "bonus2Ends" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3440:38:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 145 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3440:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 148 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 146 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "3465:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "+" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "36" ,
2020-02-18 05:18:07 +00:00
"id" : 147 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3471:7:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : "weeks" ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_3628800_by_1" ,
"typeString" : "int_const 3628800"
} ,
"value" : "6"
} ,
2020-02-18 05:18:07 +00:00
"src" : "3465:13:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 154 ,
2019-12-29 02:25:08 +00:00
"name" : "endDate" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3484:36:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 150 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3484:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 153 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 151 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "3506:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "+" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "3131" ,
2020-02-18 05:18:07 +00:00
"id" : 152 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3512:8:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : "weeks" ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_6652800_by_1" ,
"typeString" : "int_const 6652800"
} ,
"value" : "11"
} ,
2020-02-18 05:18:07 +00:00
"src" : "3506:14:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"visibility" : "public"
} ,
2020-02-18 05:18:07 +00:00
{
"constant" : false ,
"id" : 157 ,
"name" : "_pause" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 333 ,
"src" : "3526:27:0" ,
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
"id" : 155 ,
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "3526:4:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "66616c7365" ,
"id" : 156 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
"src" : "3548:5:0" ,
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "false"
} ,
"visibility" : "private"
} ,
2019-12-29 02:25:08 +00:00
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 166 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "3581:66:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 161 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
2020-02-18 05:18:07 +00:00
"nodeType" : "UnaryOperation" ,
"operator" : "!" ,
"prefix" : true ,
"src" : "3599:7:0" ,
"subExpression" : {
2019-12-29 02:25:08 +00:00
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 160 ,
"name" : "_pause" ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 157 ,
"src" : "3600:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2019-12-29 02:25:08 +00:00
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
2020-02-18 05:18:07 +00:00
} ,
{
"argumentTypes" : null ,
"hexValue" : "63726f776473616c65206f6e207061757365" ,
"id" : 162 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
"src" : "3608:20:0" ,
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_cc2a660c6a64b030651f27b71bc8d6deb86294e2010eb3292c6f116ef89c98fd" ,
"typeString" : "literal_string \"crowdsale on pause\""
} ,
"value" : "crowdsale on pause"
2019-12-29 02:25:08 +00:00
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2020-02-18 05:18:07 +00:00
} ,
{
"typeIdentifier" : "t_stringliteral_cc2a660c6a64b030651f27b71bc8d6deb86294e2010eb3292c6f116ef89c98fd" ,
"typeString" : "literal_string \"crowdsale on pause\""
2019-12-29 02:25:08 +00:00
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 159 ,
2019-12-29 02:25:08 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2020-02-18 05:18:07 +00:00
1096 ,
1097
2019-12-29 02:25:08 +00:00
] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1097 ,
"src" : "3591:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
2019-12-29 02:25:08 +00:00
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 163 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "3591:38:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 164 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "3591:38:0"
2019-12-29 02:25:08 +00:00
} ,
{
2020-02-18 05:18:07 +00:00
"id" : 165 ,
"nodeType" : "PlaceholderStatement" ,
"src" : "3639:1:0"
}
]
} ,
"documentation" : null ,
"id" : 167 ,
"name" : "notPaused" ,
"nodeType" : "ModifierDefinition" ,
"parameters" : {
"id" : 158 ,
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
"src" : "3578:2:0"
} ,
"src" : "3560:87:0" ,
"visibility" : "internal"
} ,
{
"body" : {
"id" : 174 ,
"nodeType" : "Block" ,
"src" : "3698:30:0" ,
"statements" : [
2019-12-29 02:25:08 +00:00
{
2020-02-18 05:18:07 +00:00
"expression" : {
"argumentTypes" : null ,
"id" : 172 ,
"name" : "_pause" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 157 ,
"src" : "3715:6:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
2019-12-29 02:25:08 +00:00
}
2020-02-18 05:18:07 +00:00
} ,
"functionReturnParameters" : 171 ,
"id" : 173 ,
"nodeType" : "Return" ,
"src" : "3708:13:0"
}
]
} ,
"documentation" : null ,
"id" : 175 ,
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [ ] ,
"name" : "getPause" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
"id" : 168 ,
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
"src" : "3669:2:0"
} ,
"returnParameters" : {
"id" : 171 ,
"nodeType" : "ParameterList" ,
"parameters" : [
2019-12-29 02:25:08 +00:00
{
2020-02-18 05:18:07 +00:00
"constant" : false ,
2019-12-29 02:25:08 +00:00
"id" : 170 ,
2020-02-18 05:18:07 +00:00
"name" : "" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 175 ,
"src" : "3693:4:0" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
"id" : 169 ,
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "3693:4:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
"src" : "3692:6:0"
} ,
"scope" : 333 ,
"src" : "3652:76:0" ,
"stateMutability" : "view" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
"id" : 186 ,
"nodeType" : "Block" ,
"src" : "3779:27:0" ,
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"id" : 184 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"id" : 182 ,
"name" : "_pause" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 157 ,
"src" : "3789:6:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"id" : 183 ,
"name" : "p" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 177 ,
"src" : "3798:1:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"src" : "3789:10:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"id" : 185 ,
"nodeType" : "ExpressionStatement" ,
"src" : "3789:10:0"
}
]
} ,
"documentation" : null ,
"id" : 187 ,
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [
{
"arguments" : null ,
"id" : 180 ,
"modifierName" : {
"argumentTypes" : null ,
"id" : 179 ,
"name" : "onlyOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 51 ,
"src" : "3769:9:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
"src" : "3769:9:0"
}
] ,
"name" : "setPause" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
"id" : 178 ,
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
"id" : 177 ,
"name" : "p" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 187 ,
"src" : "3752:6:0" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
"id" : 176 ,
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "3752:4:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
"src" : "3751:8:0"
} ,
"returnParameters" : {
"id" : 181 ,
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
"src" : "3779:0:0"
} ,
"scope" : 333 ,
"src" : "3734:72:0" ,
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "external"
} ,
{
"body" : {
"id" : 289 ,
"nodeType" : "Block" ,
"src" : "4042:815:0" ,
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"id" : 195 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"id" : 193 ,
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 1095 ,
"src" : "4060:3:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<=" ,
"rightExpression" : {
"argumentTypes" : null ,
"id" : 194 ,
"name" : "endDate" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 154 ,
"src" : "4067:7:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"src" : "4060:14:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
"id" : 192 ,
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
1096 ,
1097
] ,
"referencedDeclaration" : 1096 ,
"src" : "4052:7:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
"id" : 196 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
"src" : "4052:23:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
"id" : 197 ,
"nodeType" : "ExpressionStatement" ,
"src" : "4052:23:0"
} ,
{
"assignments" : [
199
] ,
"declarations" : [
{
"constant" : false ,
"id" : 199 ,
"name" : "tokens" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 289 ,
"src" : "4085:11:0" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
"id" : 198 ,
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "4085:4:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
"id" : 200 ,
"initialValue" : null ,
"nodeType" : "VariableDeclarationStatement" ,
"src" : "4085:11:0"
} ,
{
"assignments" : [
202
] ,
"declarations" : [
{
"constant" : false ,
"id" : 202 ,
"name" : "toOwner" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 289 ,
"src" : "4106:12:0" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
"id" : 201 ,
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "4106:4:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
"id" : 203 ,
"initialValue" : null ,
"nodeType" : "VariableDeclarationStatement" ,
"src" : "4106:12:0"
} ,
{
"assignments" : [
205
] ,
"declarations" : [
{
"constant" : false ,
"id" : 205 ,
"name" : "toSender" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 289 ,
"src" : "4128:13:0" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
"id" : 204 ,
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "4128:4:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
"id" : 206 ,
"initialValue" : null ,
"nodeType" : "VariableDeclarationStatement" ,
"src" : "4128:13:0"
} ,
{
"assignments" : [
208
] ,
"declarations" : [
{
"constant" : false ,
"id" : 208 ,
"name" : "divBy" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 289 ,
"src" : "4151:10:0" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
"id" : 207 ,
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "4151:4:0" ,
"typeDescriptions" : {
2019-12-29 02:25:08 +00:00
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 209 ,
2019-12-29 02:25:08 +00:00
"initialValue" : null ,
"nodeType" : "VariableDeclarationStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4151:10:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 212 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 210 ,
2019-12-29 02:25:08 +00:00
"name" : "divBy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 208 ,
"src" : "4172:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "3430" ,
2020-02-18 05:18:07 +00:00
"id" : 211 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "4180:2:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_40_by_1" ,
"typeString" : "int_const 40"
} ,
"value" : "40"
} ,
2020-02-18 05:18:07 +00:00
"src" : "4172:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 213 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4172:10:0"
2019-12-29 02:25:08 +00:00
} ,
{
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 216 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 214 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4273:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<=" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 215 ,
2019-12-29 02:25:08 +00:00
"name" : "preICOEnds" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 139 ,
"src" : "4280:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4273:17:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : {
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
2020-02-18 05:18:07 +00:00
"id" : 231 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 227 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 225 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4351:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : ">" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 226 ,
2019-12-29 02:25:08 +00:00
"name" : "preICOEnds" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 139 ,
"src" : "4357:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4351:16:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "&&" ,
"rightExpression" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 230 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 228 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4371:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<=" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 229 ,
2019-12-29 02:25:08 +00:00
"name" : "bonus1Ends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 144 ,
"src" : "4378:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4371:17:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4351:37:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : {
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
2020-02-18 05:18:07 +00:00
"id" : 246 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 242 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 240 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4449:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : ">" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 241 ,
2019-12-29 02:25:08 +00:00
"name" : "bonus1Ends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 144 ,
"src" : "4455:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4449:16:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "&&" ,
"rightExpression" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 245 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 243 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4469:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<=" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 244 ,
2019-12-29 02:25:08 +00:00
"name" : "bonus2Ends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 149 ,
"src" : "4476:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4469:17:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4449:37:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : {
2020-02-18 05:18:07 +00:00
"id" : 262 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "4543:49:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 260 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 255 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 199 ,
"src" : "4557:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 259 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 256 ,
2019-12-29 02:25:08 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1093 ,
"src" : "4566:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 257 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "value" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "4566:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "*" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"hexValue" : "323235" ,
"id" : 258 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "4578:3:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_rational_225_by_1" ,
"typeString" : "int_const 225"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"value" : "225"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"src" : "4566:15:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4557:24:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 261 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4557:24:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
2020-02-18 05:18:07 +00:00
"id" : 263 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "IfStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4445:147:0" ,
2019-12-29 02:25:08 +00:00
"trueBody" : {
2020-02-18 05:18:07 +00:00
"id" : 254 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "4488:49:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 252 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 247 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 199 ,
"src" : "4502:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 251 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 248 ,
2019-12-29 02:25:08 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1093 ,
"src" : "4511:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 249 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "value" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "4511:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "*" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"hexValue" : "323530" ,
"id" : 250 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "4523:3:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_rational_250_by_1" ,
"typeString" : "int_const 250"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"value" : "250"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"src" : "4511:15:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4502:24:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 253 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4502:24:0"
2019-12-29 02:25:08 +00:00
}
]
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 264 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "IfStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4347:245:0" ,
2019-12-29 02:25:08 +00:00
"trueBody" : {
2020-02-18 05:18:07 +00:00
"id" : 239 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "4390:49:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 237 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 232 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 199 ,
"src" : "4404:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 236 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 233 ,
2019-12-29 02:25:08 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1093 ,
"src" : "4413:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 234 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "value" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "4413:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "*" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"hexValue" : "323735" ,
"id" : 235 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "4425:3:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_rational_275_by_1" ,
"typeString" : "int_const 275"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"value" : "275"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"src" : "4413:15:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4404:24:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 238 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4404:24:0"
2019-12-29 02:25:08 +00:00
}
]
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 265 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "IfStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4269:323:0" ,
2019-12-29 02:25:08 +00:00
"trueBody" : {
2020-02-18 05:18:07 +00:00
"id" : 224 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "4292:49:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 222 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 217 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 199 ,
"src" : "4306:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 221 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 218 ,
2019-12-29 02:25:08 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1093 ,
"src" : "4315:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 219 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "value" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "4315:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "*" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"hexValue" : "333030" ,
"id" : 220 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "4327:3:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_rational_300_by_1" ,
"typeString" : "int_const 300"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"value" : "300"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"src" : "4315:15:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4306:24:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 223 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4306:24:0"
2019-12-29 02:25:08 +00:00
}
]
}
} ,
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 271 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 266 ,
2019-12-29 02:25:08 +00:00
"name" : "toOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 202 ,
"src" : "4602:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 269 ,
2019-12-29 02:25:08 +00:00
"name" : "divBy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 208 ,
"src" : "4623:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 267 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 199 ,
"src" : "4612:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 268 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "div" ,
"nodeType" : "MemberAccess" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 537 ,
"src" : "4612:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$" ,
"typeString" : "function (uint256,uint256) pure returns (uint256)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 270 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "4612:17:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4602:27:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 272 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4602:27:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 275 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 273 ,
2019-12-29 02:25:08 +00:00
"name" : "toSender" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 205 ,
"src" : "4721:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 274 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 199 ,
"src" : "4732:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4721:17:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 276 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4721:17:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2020-02-18 05:18:07 +00:00
"id" : 278 ,
2019-12-29 02:25:08 +00:00
"name" : "owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 41 ,
"src" : "4796:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$__$returns$_t_address_payable_$" ,
"typeString" : "function () view returns (address payable)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 279 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "4796:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 280 ,
2019-12-29 02:25:08 +00:00
"name" : "toOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 202 ,
"src" : "4805:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 277 ,
2019-12-29 02:25:08 +00:00
"name" : "_mint" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 893 ,
"src" : "4790:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$" ,
"typeString" : "function (address,uint256)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 281 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "4790:23:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 282 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4790:23:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 284 ,
2019-12-29 02:25:08 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1093 ,
"src" : "4829:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 285 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "sender" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "4829:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 286 ,
2019-12-29 02:25:08 +00:00
"name" : "toSender" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 205 ,
"src" : "4841:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 283 ,
2019-12-29 02:25:08 +00:00
"name" : "_mint" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 893 ,
"src" : "4823:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$" ,
"typeString" : "function (address,uint256)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 287 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "4823:27:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 288 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4823:27:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : null ,
2020-02-18 05:18:07 +00:00
"id" : 290 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "fallback" ,
2020-02-18 05:18:07 +00:00
"modifiers" : [
{
"arguments" : null ,
"id" : 190 ,
"modifierName" : {
"argumentTypes" : null ,
"id" : 189 ,
"name" : "notPaused" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 167 ,
"src" : "4015:9:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
"src" : "4015:9:0"
}
] ,
2019-12-29 02:25:08 +00:00
"name" : "" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 188 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "4012:2:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 191 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "4042:0:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "4004:853:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "payable" ,
"superFunction" : null ,
"visibility" : "external"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 310 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "4944:154:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 298 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 296 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4962:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : ">=" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 297 ,
2019-12-29 02:25:08 +00:00
"name" : "endDate" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 154 ,
"src" : "4969:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4962:14:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 295 ,
2019-12-29 02:25:08 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2020-02-18 05:18:07 +00:00
1096 ,
1097
2019-12-29 02:25:08 +00:00
] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1096 ,
"src" : "4954:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 299 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "4954:23:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 300 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4954:23:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 305 ,
2019-12-29 02:25:08 +00:00
"name" : "this" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1117 ,
"src" : "5077:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_DECA_$333" ,
"typeString" : "contract DECA"
2019-12-29 02:25:08 +00:00
}
}
] ,
"expression" : {
"argumentTypes" : [
{
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_DECA_$333" ,
"typeString" : "contract DECA"
2019-12-29 02:25:08 +00:00
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 304 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2020-02-18 05:18:07 +00:00
"src" : "5069:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2020-02-18 05:18:07 +00:00
"id" : 306 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "5069:13:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 307 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "balance" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "5069:21:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
"expression" : {
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2020-02-18 05:18:07 +00:00
"id" : 301 ,
2019-12-29 02:25:08 +00:00
"name" : "owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 41 ,
"src" : "5052:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$__$returns$_t_address_payable_$" ,
"typeString" : "function () view returns (address payable)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 302 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "5052:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 303 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "transfer" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "5052:16:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_transfer_nonpayable$_t_uint256_$returns$__$" ,
"typeString" : "function (uint256)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 308 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "5052:39:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 309 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "5052:39:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : null ,
2020-02-18 05:18:07 +00:00
"id" : 311 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [
{
"arguments" : null ,
2020-02-18 05:18:07 +00:00
"id" : 293 ,
2019-12-29 02:25:08 +00:00
"modifierName" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 292 ,
2019-12-29 02:25:08 +00:00
"name" : "onlyOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 51 ,
"src" : "4934:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2020-02-18 05:18:07 +00:00
"src" : "4934:9:0"
2019-12-29 02:25:08 +00:00
}
] ,
"name" : "getETH" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 291 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "4924:2:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 294 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "4944:0:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "4909:189:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 331 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "5443:70:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2020-02-18 05:18:07 +00:00
"id" : 326 ,
2019-12-29 02:25:08 +00:00
"name" : "owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 41 ,
"src" : "5490:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$__$returns$_t_address_payable_$" ,
"typeString" : "function () view returns (address payable)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 327 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "5490:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 328 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 315 ,
"src" : "5499:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 323 ,
2019-12-29 02:25:08 +00:00
"name" : "tokenAddress" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 313 ,
"src" : "5467:12:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 322 ,
2019-12-29 02:25:08 +00:00
"name" : "IERC20" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1078 ,
"src" : "5460:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_type$_t_contract$_IERC20_$1078_$" ,
2019-12-29 02:25:08 +00:00
"typeString" : "type(contract IERC20)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 324 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "5460:20:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_IERC20_$1078" ,
2019-12-29 02:25:08 +00:00
"typeString" : "contract IERC20"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 325 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "transfer" ,
"nodeType" : "MemberAccess" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1032 ,
"src" : "5460:29:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$" ,
"typeString" : "function (address,uint256) external returns (bool)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 329 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "5460:46:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2020-02-18 05:18:07 +00:00
"functionReturnParameters" : 321 ,
"id" : 330 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Return" ,
2020-02-18 05:18:07 +00:00
"src" : "5453:53:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : null ,
2020-02-18 05:18:07 +00:00
"id" : 332 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [
{
"arguments" : null ,
2020-02-18 05:18:07 +00:00
"id" : 318 ,
2019-12-29 02:25:08 +00:00
"modifierName" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 317 ,
2019-12-29 02:25:08 +00:00
"name" : "onlyOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 51 ,
"src" : "5410:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2020-02-18 05:18:07 +00:00
"src" : "5410:9:0"
2019-12-29 02:25:08 +00:00
}
] ,
"name" : "transferAnyERC20Token" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 316 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 313 ,
2019-12-29 02:25:08 +00:00
"name" : "tokenAddress" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 332 ,
"src" : "5360:28:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 312 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "5360:15:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "payable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 315 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 332 ,
"src" : "5390:11:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 314 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "5390:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "5359:43:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 321 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 320 ,
2019-12-29 02:25:08 +00:00
"name" : "success" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 332 ,
"src" : "5429:12:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 319 ,
2019-12-29 02:25:08 +00:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "5429:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "5428:14:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "5329:184:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
}
] ,
2020-02-18 05:18:07 +00:00
"scope" : 334 ,
"src" : "3088:2427:0"
2019-12-29 02:25:08 +00:00
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "0:5516:0"
2019-12-29 02:25:08 +00:00
} ,
"legacyAST" : {
2020-02-18 05:18:07 +00:00
"absolutePath" : "/home/p1r0/Dev/git/neetsec/dcc/contracts/DECA.sol" ,
2019-12-29 02:25:08 +00:00
"exportedSymbols" : {
2020-02-18 05:18:07 +00:00
"DECA" : [
333
2019-12-29 02:25:08 +00:00
] ,
"Ownable" : [
2020-02-18 05:18:07 +00:00
118
2019-12-29 02:25:08 +00:00
]
} ,
2020-02-18 05:18:07 +00:00
"id" : 334 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "SourceUnit" ,
"nodes" : [
{
"id" : 1 ,
"literals" : [
"solidity" ,
"0.5" ,
".12"
] ,
"nodeType" : "PragmaDirective" ,
"src" : "0:23:0"
} ,
{
"absolutePath" : "@openzeppelin/contracts/token/ERC20/ERC20.sol" ,
"file" : "@openzeppelin/contracts/token/ERC20/ERC20.sol" ,
"id" : 2 ,
"nodeType" : "ImportDirective" ,
2020-02-18 05:18:07 +00:00
"scope" : 334 ,
"sourceUnit" : 1010 ,
2019-12-29 02:25:08 +00:00
"src" : "25:55:0" ,
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
2020-02-18 05:18:07 +00:00
{
"absolutePath" : "@openzeppelin/contracts/token/ERC20/IERC20.sol" ,
"file" : "@openzeppelin/contracts/token/ERC20/IERC20.sol" ,
"id" : 3 ,
"nodeType" : "ImportDirective" ,
"scope" : 334 ,
"sourceUnit" : 1079 ,
"src" : "81:56:0" ,
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
2019-12-29 02:25:08 +00:00
{
"absolutePath" : "@openzeppelin/contracts/math/SafeMath.sol" ,
"file" : "@openzeppelin/contracts/math/SafeMath.sol" ,
2020-02-18 05:18:07 +00:00
"id" : 4 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ImportDirective" ,
2020-02-18 05:18:07 +00:00
"scope" : 334 ,
"sourceUnit" : 605 ,
"src" : "138:51:0" ,
2019-12-29 02:25:08 +00:00
"symbolAliases" : [ ] ,
"unitAlias" : ""
} ,
{
"baseContracts" : [
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2020-02-18 05:18:07 +00:00
"id" : 5 ,
2019-12-29 02:25:08 +00:00
"name" : "Context" ,
"nodeType" : "UserDefinedTypeName" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 417 ,
"src" : "839:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_Context_$417" ,
2019-12-29 02:25:08 +00:00
"typeString" : "contract Context"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 6 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "InheritanceSpecifier" ,
2020-02-18 05:18:07 +00:00
"src" : "839:7:0"
2019-12-29 02:25:08 +00:00
}
] ,
"contractDependencies" : [
2020-02-18 05:18:07 +00:00
417
2019-12-29 02:25:08 +00:00
] ,
"contractKind" : "contract" ,
"documentation" : "@dev The reason using this instead of openzeppelin, because owner are not 'payable'" ,
"fullyImplemented" : true ,
2020-02-18 05:18:07 +00:00
"id" : 118 ,
2019-12-29 02:25:08 +00:00
"linearizedBaseContracts" : [
2020-02-18 05:18:07 +00:00
118 ,
417
2019-12-29 02:25:08 +00:00
] ,
"name" : "Ownable" ,
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 8 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "853:30:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 7 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "853:15:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "payable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"value" : null ,
"visibility" : "private"
} ,
{
2020-02-18 05:18:07 +00:00
"id" : 11 ,
2019-12-29 02:25:08 +00:00
"libraryName" : {
"contractScope" : null ,
2020-02-18 05:18:07 +00:00
"id" : 9 ,
2019-12-29 02:25:08 +00:00
"name" : "SafeMath" ,
"nodeType" : "UserDefinedTypeName" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 604 ,
"src" : "895:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_SafeMath_$604" ,
2019-12-29 02:25:08 +00:00
"typeString" : "library SafeMath"
}
} ,
"nodeType" : "UsingForDirective" ,
2020-02-18 05:18:07 +00:00
"src" : "889:27:0" ,
2019-12-29 02:25:08 +00:00
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 10 ,
2019-12-29 02:25:08 +00:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "908:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
} ,
{
"anonymous" : false ,
"documentation" : null ,
2020-02-18 05:18:07 +00:00
"id" : 17 ,
2019-12-29 02:25:08 +00:00
"name" : "OwnershipTransferred" ,
"nodeType" : "EventDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 16 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 13 ,
2019-12-29 02:25:08 +00:00
"indexed" : true ,
"name" : "previousOwner" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 17 ,
"src" : "949:29:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 12 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "949:7:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 15 ,
2019-12-29 02:25:08 +00:00
"indexed" : true ,
"name" : "newOwner" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 17 ,
"src" : "980:24:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 14 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "980:7:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address" ,
"typeString" : "address"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "948:57:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"src" : "922:84:0"
2019-12-29 02:25:08 +00:00
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 32 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "1132:93:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 23 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 20 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "1142:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2020-02-18 05:18:07 +00:00
"id" : 21 ,
2019-12-29 02:25:08 +00:00
"name" : "_msgSender" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 405 ,
"src" : "1151:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$__$returns$_t_address_payable_$" ,
"typeString" : "function () view returns (address payable)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 22 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "1151:12:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "1142:21:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 24 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "1142:21:0"
2019-12-29 02:25:08 +00:00
} ,
{
"eventCall" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"hexValue" : "30" ,
2020-02-18 05:18:07 +00:00
"id" : 27 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "1207:1:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 26 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2020-02-18 05:18:07 +00:00
"src" : "1199:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2020-02-18 05:18:07 +00:00
"id" : 28 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "1199:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 29 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "1211:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 25 ,
2019-12-29 02:25:08 +00:00
"name" : "OwnershipTransferred" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 17 ,
"src" : "1178:20:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$" ,
"typeString" : "function (address,address)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 30 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "1178:40:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 31 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "EmitStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "1173:45:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Initializes the contract setting the deployer as the initial owner." ,
2020-02-18 05:18:07 +00:00
"id" : 33 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "constructor" ,
"modifiers" : [ ] ,
"name" : "" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 18 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "1120:2:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 19 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "1132:0:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "1108:117:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "internal"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 40 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "1356:30:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 38 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "1373:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"functionReturnParameters" : 37 ,
"id" : 39 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Return" ,
2020-02-18 05:18:07 +00:00
"src" : "1366:13:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Returns the address of the current owner." ,
2020-02-18 05:18:07 +00:00
"id" : 41 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [ ] ,
"name" : "owner" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 34 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "1315:2:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 37 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 36 ,
2019-12-29 02:25:08 +00:00
"name" : "" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 41 ,
"src" : "1339:15:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 35 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "1339:15:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "payable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "1338:17:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "1301:85:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "view" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 50 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "1495:82:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2020-02-18 05:18:07 +00:00
"id" : 44 ,
2019-12-29 02:25:08 +00:00
"name" : "isOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 62 ,
"src" : "1513:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$__$returns$_t_bool_$" ,
"typeString" : "function () view returns (bool)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 45 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "1513:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572" ,
2020-02-18 05:18:07 +00:00
"id" : 46 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "1524:34:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe" ,
"typeString" : "literal_string \"Ownable: caller is not the owner\""
} ,
"value" : "Ownable: caller is not the owner"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_9924ebdf1add33d25d4ef888e16131f0a5687b0580a36c21b5c301a6c462effe" ,
"typeString" : "literal_string \"Ownable: caller is not the owner\""
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 43 ,
2019-12-29 02:25:08 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2020-02-18 05:18:07 +00:00
1096 ,
1097
2019-12-29 02:25:08 +00:00
] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1097 ,
"src" : "1505:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 47 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "1505:54:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 48 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "1505:54:0"
2019-12-29 02:25:08 +00:00
} ,
{
2020-02-18 05:18:07 +00:00
"id" : 49 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "PlaceholderStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "1569:1:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Throws if called by any account other than the owner." ,
2020-02-18 05:18:07 +00:00
"id" : 51 ,
2019-12-29 02:25:08 +00:00
"name" : "onlyOwner" ,
"nodeType" : "ModifierDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 42 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "1492:2:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"src" : "1474:103:0" ,
2019-12-29 02:25:08 +00:00
"visibility" : "internal"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 61 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "1706:46:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
2020-02-18 05:18:07 +00:00
"id" : 59 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2020-02-18 05:18:07 +00:00
"id" : 56 ,
2019-12-29 02:25:08 +00:00
"name" : "_msgSender" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 405 ,
"src" : "1723:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$__$returns$_t_address_payable_$" ,
"typeString" : "function () view returns (address payable)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 57 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "1723:12:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "==" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 58 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "1739:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "1723:22:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2020-02-18 05:18:07 +00:00
"functionReturnParameters" : 55 ,
"id" : 60 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Return" ,
2020-02-18 05:18:07 +00:00
"src" : "1716:29:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Returns true if the caller is the current owner." ,
2020-02-18 05:18:07 +00:00
"id" : 62 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [ ] ,
"name" : "isOwner" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 52 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "1676:2:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 55 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 54 ,
2019-12-29 02:25:08 +00:00
"name" : "" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 62 ,
"src" : "1700:4:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 53 ,
2019-12-29 02:25:08 +00:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "1700:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "1699:6:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "1660:92:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "view" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 80 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "2140:91:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"eventCall" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 68 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "2176:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
{
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"hexValue" : "30" ,
2020-02-18 05:18:07 +00:00
"id" : 70 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "2192:1:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 69 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2020-02-18 05:18:07 +00:00
"src" : "2184:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2020-02-18 05:18:07 +00:00
"id" : 71 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2184:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 67 ,
2019-12-29 02:25:08 +00:00
"name" : "OwnershipTransferred" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 17 ,
"src" : "2155:20:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$" ,
"typeString" : "function (address,address)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 72 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2155:40:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 73 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "EmitStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "2150:45:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 78 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 74 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "2205:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"hexValue" : "30" ,
2020-02-18 05:18:07 +00:00
"id" : 76 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "2222:1:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 75 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2020-02-18 05:18:07 +00:00
"src" : "2214:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2020-02-18 05:18:07 +00:00
"id" : 77 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2214:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "2205:19:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 79 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "2205:19:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Leaves the contract without owner. It will not be possible to call\n`onlyOwner` functions anymore. Can only be called by the current owner.\n * NOTE: Renouncing ownership will leave the contract without an owner,\nthereby removing any functionality that is only available to the owner." ,
2020-02-18 05:18:07 +00:00
"id" : 81 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [
{
"arguments" : null ,
2020-02-18 05:18:07 +00:00
"id" : 65 ,
2019-12-29 02:25:08 +00:00
"modifierName" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 64 ,
2019-12-29 02:25:08 +00:00
"name" : "onlyOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 51 ,
"src" : "2130:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2020-02-18 05:18:07 +00:00
"src" : "2130:9:0"
2019-12-29 02:25:08 +00:00
}
] ,
"name" : "renounceOwnership" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 63 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "2120:2:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 66 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "2140:0:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "2094:137:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 92 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "2450:45:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 89 ,
2019-12-29 02:25:08 +00:00
"name" : "newOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 83 ,
"src" : "2479:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 88 ,
2019-12-29 02:25:08 +00:00
"name" : "_transferOwnership" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 117 ,
"src" : "2460:18:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_nonpayable$_t_address_payable_$returns$__$" ,
"typeString" : "function (address payable)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 90 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2460:28:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 91 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "2460:28:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Transfers ownership of the contract to a new account (`newOwner`).\nCan only be called by the current owner." ,
2020-02-18 05:18:07 +00:00
"id" : 93 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [
{
"arguments" : null ,
2020-02-18 05:18:07 +00:00
"id" : 86 ,
2019-12-29 02:25:08 +00:00
"modifierName" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 85 ,
2019-12-29 02:25:08 +00:00
"name" : "onlyOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 51 ,
"src" : "2440:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2020-02-18 05:18:07 +00:00
"src" : "2440:9:0"
2019-12-29 02:25:08 +00:00
}
] ,
"name" : "transferOwnership" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 84 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 83 ,
2019-12-29 02:25:08 +00:00
"name" : "newOwner" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 93 ,
"src" : "2407:24:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 82 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "2407:15:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "payable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "2406:26:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 87 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "2450:0:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "2380:115:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 116 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "2659:170:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
2020-02-18 05:18:07 +00:00
"id" : 103 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 99 ,
2019-12-29 02:25:08 +00:00
"name" : "newOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 95 ,
"src" : "2677:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "!=" ,
"rightExpression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"hexValue" : "30" ,
2020-02-18 05:18:07 +00:00
"id" : 101 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "2697:1:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
} ,
"value" : "0"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_rational_0_by_1" ,
"typeString" : "int_const 0"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 100 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2020-02-18 05:18:07 +00:00
"src" : "2689:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2020-02-18 05:18:07 +00:00
"id" : 102 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2689:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "2677:22:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373" ,
2020-02-18 05:18:07 +00:00
"id" : 104 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "2701:40:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe" ,
"typeString" : "literal_string \"Ownable: new owner is the zero address\""
} ,
"value" : "Ownable: new owner is the zero address"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_245f15ff17f551913a7a18385165551503906a406f905ac1c2437281a7cd0cfe" ,
"typeString" : "literal_string \"Ownable: new owner is the zero address\""
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 98 ,
2019-12-29 02:25:08 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2020-02-18 05:18:07 +00:00
1096 ,
1097
2019-12-29 02:25:08 +00:00
] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1097 ,
"src" : "2669:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 105 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2669:73:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 106 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "2669:73:0"
2019-12-29 02:25:08 +00:00
} ,
{
"eventCall" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 108 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "2778:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 109 ,
2019-12-29 02:25:08 +00:00
"name" : "newOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 95 ,
"src" : "2786:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 107 ,
2019-12-29 02:25:08 +00:00
"name" : "OwnershipTransferred" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 17 ,
"src" : "2757:20:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_event_nonpayable$_t_address_$_t_address_$returns$__$" ,
"typeString" : "function (address,address)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 110 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "2757:38:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 111 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "EmitStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "2752:43:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 114 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 112 ,
2019-12-29 02:25:08 +00:00
"name" : "_owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 8 ,
"src" : "2805:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 113 ,
2019-12-29 02:25:08 +00:00
"name" : "newOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 95 ,
"src" : "2814:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "2805:17:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 115 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "2805:17:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : "@dev Transfers ownership of the contract to a new account (`newOwner`)." ,
2020-02-18 05:18:07 +00:00
"id" : 117 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [ ] ,
"name" : "_transferOwnership" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 96 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 95 ,
2019-12-29 02:25:08 +00:00
"name" : "newOwner" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 117 ,
"src" : "2624:24:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 94 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "2624:15:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "payable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "2623:26:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 97 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "2659:0:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 118 ,
"src" : "2596:233:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"scope" : 334 ,
"src" : "819:2012:0"
2019-12-29 02:25:08 +00:00
} ,
{
"baseContracts" : [
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2020-02-18 05:18:07 +00:00
"id" : 119 ,
2019-12-29 02:25:08 +00:00
"name" : "ERC20" ,
"nodeType" : "UserDefinedTypeName" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1009 ,
"src" : "3105:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_ERC20_$1009" ,
2019-12-29 02:25:08 +00:00
"typeString" : "contract ERC20"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 120 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "InheritanceSpecifier" ,
2020-02-18 05:18:07 +00:00
"src" : "3105:5:0"
2019-12-29 02:25:08 +00:00
} ,
{
"arguments" : null ,
"baseName" : {
"contractScope" : null ,
2020-02-18 05:18:07 +00:00
"id" : 121 ,
2019-12-29 02:25:08 +00:00
"name" : "Ownable" ,
"nodeType" : "UserDefinedTypeName" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 118 ,
"src" : "3112:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_Ownable_$118" ,
2019-12-29 02:25:08 +00:00
"typeString" : "contract Ownable"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 122 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "InheritanceSpecifier" ,
2020-02-18 05:18:07 +00:00
"src" : "3112:7:0"
2019-12-29 02:25:08 +00:00
}
] ,
"contractDependencies" : [
2020-02-18 05:18:07 +00:00
118 ,
417 ,
1009 ,
1078
2019-12-29 02:25:08 +00:00
] ,
"contractKind" : "contract" ,
"documentation" : null ,
"fullyImplemented" : true ,
2020-02-18 05:18:07 +00:00
"id" : 333 ,
2019-12-29 02:25:08 +00:00
"linearizedBaseContracts" : [
2020-02-18 05:18:07 +00:00
333 ,
118 ,
1009 ,
1078 ,
417
2019-12-29 02:25:08 +00:00
] ,
2020-02-18 05:18:07 +00:00
"name" : "DECA" ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ContractDefinition" ,
"nodes" : [
{
2020-02-18 05:18:07 +00:00
"id" : 125 ,
2019-12-29 02:25:08 +00:00
"libraryName" : {
"contractScope" : null ,
2020-02-18 05:18:07 +00:00
"id" : 123 ,
2019-12-29 02:25:08 +00:00
"name" : "SafeMath" ,
"nodeType" : "UserDefinedTypeName" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 604 ,
"src" : "3132:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_SafeMath_$604" ,
2019-12-29 02:25:08 +00:00
"typeString" : "library SafeMath"
}
} ,
"nodeType" : "UsingForDirective" ,
2020-02-18 05:18:07 +00:00
"src" : "3126:27:0" ,
2019-12-29 02:25:08 +00:00
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 124 ,
2019-12-29 02:25:08 +00:00
"name" : "uint256" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3145:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
} ,
{
"constant" : true ,
2020-02-18 05:18:07 +00:00
"id" : 128 ,
2019-12-29 02:25:08 +00:00
"name" : "symbol" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3158:38:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_string_memory" ,
"typeString" : "string"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 126 ,
2019-12-29 02:25:08 +00:00
"name" : "string" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3158:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_string_storage_ptr" ,
"typeString" : "string"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "44454341" ,
2020-02-18 05:18:07 +00:00
"id" : 127 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3190:6:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_a49565813a43765a9dfdf315aaa77336d9844a752bb9a788d2dad0f019de1858" ,
"typeString" : "literal_string \"DECA\""
} ,
"value" : "DECA"
} ,
"visibility" : "public"
} ,
{
"constant" : true ,
2020-02-18 05:18:07 +00:00
"id" : 131 ,
2019-12-29 02:25:08 +00:00
"name" : "name" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3202:59:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_string_memory" ,
"typeString" : "string"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 129 ,
2019-12-29 02:25:08 +00:00
"name" : "string" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3202:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_string_storage_ptr" ,
"typeString" : "string"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "444563656e7472616c697a656420434172626f6e20746f6b656e73" ,
2020-02-18 05:18:07 +00:00
"id" : 130 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3232:29:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_a71fc6dd39cdb20c976c32b6365d2e473e0bcd38ac1af23f856facc675f989cb" ,
"typeString" : "literal_string \"DEcentralized CArbon tokens\""
} ,
"value" : "DEcentralized CArbon tokens"
} ,
"visibility" : "public"
} ,
{
"constant" : true ,
2020-02-18 05:18:07 +00:00
"id" : 134 ,
2019-12-29 02:25:08 +00:00
"name" : "decimals" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3267:35:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 132 ,
2019-12-29 02:25:08 +00:00
"name" : "uint8" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3267:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint8" ,
"typeString" : "uint8"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "3138" ,
2020-02-18 05:18:07 +00:00
"id" : 133 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3300:2:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_18_by_1" ,
"typeString" : "int_const 18"
} ,
"value" : "18"
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 139 ,
2019-12-29 02:25:08 +00:00
"name" : "preICOEnds" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3352:38:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 135 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3352:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 138 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 136 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "3377:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "+" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "31" ,
2020-02-18 05:18:07 +00:00
"id" : 137 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3383:7:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : "weeks" ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_604800_by_1" ,
"typeString" : "int_const 604800"
} ,
"value" : "1"
} ,
2020-02-18 05:18:07 +00:00
"src" : "3377:13:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 144 ,
2019-12-29 02:25:08 +00:00
"name" : "bonus1Ends" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3396:38:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 140 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3396:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 143 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 141 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "3421:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "+" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "33" ,
2020-02-18 05:18:07 +00:00
"id" : 142 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3427:7:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : "weeks" ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_1814400_by_1" ,
"typeString" : "int_const 1814400"
} ,
"value" : "3"
} ,
2020-02-18 05:18:07 +00:00
"src" : "3421:13:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 149 ,
2019-12-29 02:25:08 +00:00
"name" : "bonus2Ends" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3440:38:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 145 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "3440:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 148 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 146 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "3465:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "+" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "36" ,
2020-02-18 05:18:07 +00:00
"id" : 147 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "3471:7:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : "weeks" ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_3628800_by_1" ,
"typeString" : "int_const 3628800"
} ,
2020-02-18 05:18:07 +00:00
"value" : "6"
} ,
"src" : "3465:13:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
"id" : 154 ,
"name" : "endDate" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 333 ,
"src" : "3484:36:0" ,
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
"id" : 150 ,
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "3484:4:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"id" : 153 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"id" : 151 ,
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 1095 ,
"src" : "3506:3:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "+" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "3131" ,
"id" : 152 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
"src" : "3512:8:0" ,
"subdenomination" : "weeks" ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_6652800_by_1" ,
"typeString" : "int_const 6652800"
} ,
"value" : "11"
} ,
"src" : "3506:14:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"visibility" : "public"
} ,
{
"constant" : false ,
"id" : 157 ,
"name" : "_pause" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 333 ,
"src" : "3526:27:0" ,
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
"id" : 155 ,
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "3526:4:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : {
"argumentTypes" : null ,
"hexValue" : "66616c7365" ,
"id" : 156 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "bool" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
"src" : "3548:5:0" ,
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"value" : "false"
} ,
"visibility" : "private"
} ,
{
"body" : {
"id" : 166 ,
"nodeType" : "Block" ,
"src" : "3581:66:0" ,
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"id" : 161 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"nodeType" : "UnaryOperation" ,
"operator" : "!" ,
"prefix" : true ,
"src" : "3599:7:0" ,
"subExpression" : {
"argumentTypes" : null ,
"id" : 160 ,
"name" : "_pause" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 157 ,
"src" : "3600:6:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
{
"argumentTypes" : null ,
"hexValue" : "63726f776473616c65206f6e207061757365" ,
"id" : 162 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "string" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
"src" : "3608:20:0" ,
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_stringliteral_cc2a660c6a64b030651f27b71bc8d6deb86294e2010eb3292c6f116ef89c98fd" ,
"typeString" : "literal_string \"crowdsale on pause\""
} ,
"value" : "crowdsale on pause"
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
{
"typeIdentifier" : "t_stringliteral_cc2a660c6a64b030651f27b71bc8d6deb86294e2010eb3292c6f116ef89c98fd" ,
"typeString" : "literal_string \"crowdsale on pause\""
}
] ,
"id" : 159 ,
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
1096 ,
1097
] ,
"referencedDeclaration" : 1097 ,
"src" : "3591:7:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$_t_string_memory_ptr_$returns$__$" ,
"typeString" : "function (bool,string memory) pure"
}
} ,
"id" : 163 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
"src" : "3591:38:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
"id" : 164 ,
"nodeType" : "ExpressionStatement" ,
"src" : "3591:38:0"
} ,
{
"id" : 165 ,
"nodeType" : "PlaceholderStatement" ,
"src" : "3639:1:0"
}
]
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"documentation" : null ,
"id" : 167 ,
"name" : "notPaused" ,
"nodeType" : "ModifierDefinition" ,
"parameters" : {
"id" : 158 ,
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
"src" : "3578:2:0"
} ,
"src" : "3560:87:0" ,
"visibility" : "internal"
2019-12-29 02:25:08 +00:00
} ,
{
2020-02-18 05:18:07 +00:00
"body" : {
"id" : 174 ,
"nodeType" : "Block" ,
"src" : "3698:30:0" ,
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"id" : 172 ,
"name" : "_pause" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 157 ,
"src" : "3715:6:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"functionReturnParameters" : 171 ,
"id" : 173 ,
"nodeType" : "Return" ,
"src" : "3708:13:0"
}
]
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"documentation" : null ,
"id" : 175 ,
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [ ] ,
"name" : "getPause" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
"id" : 168 ,
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
"src" : "3669:2:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"returnParameters" : {
"id" : 171 ,
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
"id" : 170 ,
"name" : "" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 175 ,
"src" : "3693:4:0" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
"id" : 169 ,
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "3693:4:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : null ,
"visibility" : "internal"
2019-12-29 02:25:08 +00:00
}
2020-02-18 05:18:07 +00:00
] ,
"src" : "3692:6:0"
} ,
"scope" : 333 ,
"src" : "3652:76:0" ,
"stateMutability" : "view" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
"id" : 186 ,
"nodeType" : "Block" ,
"src" : "3779:27:0" ,
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"id" : 184 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
"id" : 182 ,
"name" : "_pause" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 157 ,
"src" : "3789:6:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"id" : 183 ,
"name" : "p" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 177 ,
"src" : "3798:1:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"src" : "3789:10:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"id" : 185 ,
"nodeType" : "ExpressionStatement" ,
"src" : "3789:10:0"
}
]
} ,
"documentation" : null ,
"id" : 187 ,
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [
{
"arguments" : null ,
"id" : 180 ,
"modifierName" : {
"argumentTypes" : null ,
"id" : 179 ,
"name" : "onlyOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 51 ,
"src" : "3769:9:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"nodeType" : "ModifierInvocation" ,
"src" : "3769:9:0"
2019-12-29 02:25:08 +00:00
}
2020-02-18 05:18:07 +00:00
] ,
"name" : "setPause" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
"id" : 178 ,
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
"id" : 177 ,
"name" : "p" ,
"nodeType" : "VariableDeclaration" ,
"scope" : 187 ,
"src" : "3752:6:0" ,
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
"id" : 176 ,
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "3752:4:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
"src" : "3751:8:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"returnParameters" : {
"id" : 181 ,
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
"src" : "3779:0:0"
} ,
"scope" : 333 ,
"src" : "3734:72:0" ,
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "external"
2019-12-29 02:25:08 +00:00
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 289 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "4042:815:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 195 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 193 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4060:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<=" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 194 ,
2019-12-29 02:25:08 +00:00
"name" : "endDate" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 154 ,
"src" : "4067:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4060:14:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 192 ,
2019-12-29 02:25:08 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2020-02-18 05:18:07 +00:00
1096 ,
1097
2019-12-29 02:25:08 +00:00
] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1096 ,
"src" : "4052:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 196 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "4052:23:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 197 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4052:23:0"
2019-12-29 02:25:08 +00:00
} ,
{
"assignments" : [
2020-02-18 05:18:07 +00:00
199
2019-12-29 02:25:08 +00:00
] ,
"declarations" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 199 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 289 ,
"src" : "4085:11:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 198 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "4085:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 200 ,
2019-12-29 02:25:08 +00:00
"initialValue" : null ,
"nodeType" : "VariableDeclarationStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4085:11:0"
2019-12-29 02:25:08 +00:00
} ,
{
"assignments" : [
2020-02-18 05:18:07 +00:00
202
2019-12-29 02:25:08 +00:00
] ,
"declarations" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 202 ,
2019-12-29 02:25:08 +00:00
"name" : "toOwner" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 289 ,
"src" : "4106:12:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 201 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "4106:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 203 ,
2019-12-29 02:25:08 +00:00
"initialValue" : null ,
"nodeType" : "VariableDeclarationStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4106:12:0"
2019-12-29 02:25:08 +00:00
} ,
{
"assignments" : [
2020-02-18 05:18:07 +00:00
205
2019-12-29 02:25:08 +00:00
] ,
"declarations" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 205 ,
2019-12-29 02:25:08 +00:00
"name" : "toSender" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 289 ,
"src" : "4128:13:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 204 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "4128:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 206 ,
2019-12-29 02:25:08 +00:00
"initialValue" : null ,
"nodeType" : "VariableDeclarationStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4128:13:0"
2019-12-29 02:25:08 +00:00
} ,
{
"assignments" : [
2020-02-18 05:18:07 +00:00
208
2019-12-29 02:25:08 +00:00
] ,
"declarations" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 208 ,
2019-12-29 02:25:08 +00:00
"name" : "divBy" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 289 ,
"src" : "4151:10:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 207 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "4151:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 209 ,
2019-12-29 02:25:08 +00:00
"initialValue" : null ,
"nodeType" : "VariableDeclarationStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4151:10:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 212 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 210 ,
2019-12-29 02:25:08 +00:00
"name" : "divBy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 208 ,
"src" : "4172:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"hexValue" : "3430" ,
2020-02-18 05:18:07 +00:00
"id" : 211 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "4180:2:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_40_by_1" ,
"typeString" : "int_const 40"
} ,
"value" : "40"
} ,
2020-02-18 05:18:07 +00:00
"src" : "4172:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 213 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4172:10:0"
2019-12-29 02:25:08 +00:00
} ,
{
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 216 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 214 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4273:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<=" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 215 ,
2019-12-29 02:25:08 +00:00
"name" : "preICOEnds" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 139 ,
"src" : "4280:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4273:17:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : {
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
2020-02-18 05:18:07 +00:00
"id" : 231 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 227 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 225 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4351:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : ">" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 226 ,
2019-12-29 02:25:08 +00:00
"name" : "preICOEnds" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 139 ,
"src" : "4357:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4351:16:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "&&" ,
"rightExpression" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 230 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 228 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4371:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<=" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 229 ,
2019-12-29 02:25:08 +00:00
"name" : "bonus1Ends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 144 ,
"src" : "4378:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4371:17:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4351:37:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : {
"condition" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
2020-02-18 05:18:07 +00:00
"id" : 246 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 242 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 240 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4449:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : ">" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 241 ,
2019-12-29 02:25:08 +00:00
"name" : "bonus1Ends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 144 ,
"src" : "4455:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4449:16:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "&&" ,
"rightExpression" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 245 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 243 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4469:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "<=" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 244 ,
2019-12-29 02:25:08 +00:00
"name" : "bonus2Ends" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 149 ,
"src" : "4476:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4469:17:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4449:37:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"falseBody" : {
2020-02-18 05:18:07 +00:00
"id" : 262 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "4543:49:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 260 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 255 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 199 ,
"src" : "4557:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 259 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 256 ,
2019-12-29 02:25:08 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1093 ,
"src" : "4566:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 257 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "value" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "4566:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "*" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"hexValue" : "323235" ,
"id" : 258 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "4578:3:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_rational_225_by_1" ,
"typeString" : "int_const 225"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"value" : "225"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"src" : "4566:15:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4557:24:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 261 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4557:24:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
2020-02-18 05:18:07 +00:00
"id" : 263 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "IfStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4445:147:0" ,
2019-12-29 02:25:08 +00:00
"trueBody" : {
2020-02-18 05:18:07 +00:00
"id" : 254 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "4488:49:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 252 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 247 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 199 ,
"src" : "4502:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 251 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 248 ,
2019-12-29 02:25:08 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1093 ,
"src" : "4511:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 249 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "value" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "4511:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "*" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"hexValue" : "323530" ,
"id" : 250 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "4523:3:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_rational_250_by_1" ,
"typeString" : "int_const 250"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"value" : "250"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"src" : "4511:15:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4502:24:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 253 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4502:24:0"
2019-12-29 02:25:08 +00:00
}
]
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 264 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "IfStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4347:245:0" ,
2019-12-29 02:25:08 +00:00
"trueBody" : {
2020-02-18 05:18:07 +00:00
"id" : 239 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "4390:49:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 237 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 232 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 199 ,
"src" : "4404:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 236 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 233 ,
2019-12-29 02:25:08 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1093 ,
"src" : "4413:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 234 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "value" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "4413:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "*" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"hexValue" : "323735" ,
"id" : 235 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "4425:3:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_rational_275_by_1" ,
"typeString" : "int_const 275"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"value" : "275"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"src" : "4413:15:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4404:24:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 238 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4404:24:0"
2019-12-29 02:25:08 +00:00
}
]
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 265 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "IfStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4269:323:0" ,
2019-12-29 02:25:08 +00:00
"trueBody" : {
2020-02-18 05:18:07 +00:00
"id" : 224 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "4292:49:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 222 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 217 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 199 ,
"src" : "4306:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 221 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 218 ,
2019-12-29 02:25:08 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1093 ,
"src" : "4315:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 219 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "value" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "4315:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "*" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"hexValue" : "333030" ,
"id" : 220 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
2020-02-18 05:18:07 +00:00
"src" : "4327:3:0" ,
2019-12-29 02:25:08 +00:00
"subdenomination" : null ,
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_rational_300_by_1" ,
"typeString" : "int_const 300"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"value" : "300"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"src" : "4315:15:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4306:24:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 223 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4306:24:0"
2019-12-29 02:25:08 +00:00
}
]
}
} ,
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 271 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 266 ,
2019-12-29 02:25:08 +00:00
"name" : "toOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 202 ,
"src" : "4602:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 269 ,
2019-12-29 02:25:08 +00:00
"name" : "divBy" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 208 ,
"src" : "4623:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 267 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 199 ,
"src" : "4612:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 268 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "div" ,
"nodeType" : "MemberAccess" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 537 ,
"src" : "4612:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_pure$_t_uint256_$_t_uint256_$returns$_t_uint256_$bound_to$_t_uint256_$" ,
"typeString" : "function (uint256,uint256) pure returns (uint256)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 270 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "4612:17:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4602:27:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 272 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4602:27:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 275 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 273 ,
2019-12-29 02:25:08 +00:00
"name" : "toSender" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 205 ,
"src" : "4721:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "Assignment" ,
"operator" : "=" ,
"rightHandSide" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 274 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 199 ,
"src" : "4732:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4721:17:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 276 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4721:17:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2020-02-18 05:18:07 +00:00
"id" : 278 ,
2019-12-29 02:25:08 +00:00
"name" : "owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 41 ,
"src" : "4796:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$__$returns$_t_address_payable_$" ,
"typeString" : "function () view returns (address payable)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 279 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "4796:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 280 ,
2019-12-29 02:25:08 +00:00
"name" : "toOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 202 ,
"src" : "4805:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 277 ,
2019-12-29 02:25:08 +00:00
"name" : "_mint" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 893 ,
"src" : "4790:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$" ,
"typeString" : "function (address,uint256)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 281 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "4790:23:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 282 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4790:23:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 284 ,
2019-12-29 02:25:08 +00:00
"name" : "msg" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1093 ,
"src" : "4829:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_magic_message" ,
"typeString" : "msg"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 285 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "sender" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "4829:10:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 286 ,
2019-12-29 02:25:08 +00:00
"name" : "toSender" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 205 ,
"src" : "4841:8:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 283 ,
2019-12-29 02:25:08 +00:00
"name" : "_mint" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 893 ,
"src" : "4823:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_nonpayable$_t_address_$_t_uint256_$returns$__$" ,
"typeString" : "function (address,uint256)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 287 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "4823:27:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 288 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4823:27:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : null ,
2020-02-18 05:18:07 +00:00
"id" : 290 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "fallback" ,
2020-02-18 05:18:07 +00:00
"modifiers" : [
{
"arguments" : null ,
"id" : 190 ,
"modifierName" : {
"argumentTypes" : null ,
"id" : 189 ,
"name" : "notPaused" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 167 ,
"src" : "4015:9:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
"src" : "4015:9:0"
}
] ,
2019-12-29 02:25:08 +00:00
"name" : "" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 188 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "4012:2:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 191 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "4042:0:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "4004:853:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "payable" ,
"superFunction" : null ,
"visibility" : "external"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 310 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "4944:154:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
2020-02-18 05:18:07 +00:00
"id" : 298 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 296 ,
2019-12-29 02:25:08 +00:00
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1095 ,
"src" : "4962:3:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : ">=" ,
"rightExpression" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 297 ,
2019-12-29 02:25:08 +00:00
"name" : "endDate" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 154 ,
"src" : "4969:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
2020-02-18 05:18:07 +00:00
"src" : "4962:14:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 295 ,
2019-12-29 02:25:08 +00:00
"name" : "require" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [
2020-02-18 05:18:07 +00:00
1096 ,
1097
2019-12-29 02:25:08 +00:00
] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1096 ,
"src" : "4954:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_require_pure$_t_bool_$returns$__$" ,
"typeString" : "function (bool) pure"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 299 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "4954:23:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 300 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "4954:23:0"
2019-12-29 02:25:08 +00:00
} ,
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 305 ,
2019-12-29 02:25:08 +00:00
"name" : "this" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1117 ,
"src" : "5077:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_DECA_$333" ,
"typeString" : "contract DECA"
2019-12-29 02:25:08 +00:00
}
}
] ,
"expression" : {
"argumentTypes" : [
{
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_DECA_$333" ,
"typeString" : "contract DECA"
2019-12-29 02:25:08 +00:00
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 304 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"lValueRequested" : false ,
"nodeType" : "ElementaryTypeNameExpression" ,
2020-02-18 05:18:07 +00:00
"src" : "5069:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_type$_t_address_$" ,
"typeString" : "type(address)"
} ,
"typeName" : "address"
} ,
2020-02-18 05:18:07 +00:00
"id" : 306 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "5069:13:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 307 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "balance" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "5069:21:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
"expression" : {
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2020-02-18 05:18:07 +00:00
"id" : 301 ,
2019-12-29 02:25:08 +00:00
"name" : "owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 41 ,
"src" : "5052:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$__$returns$_t_address_payable_$" ,
"typeString" : "function () view returns (address payable)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 302 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "5052:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 303 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "transfer" ,
"nodeType" : "MemberAccess" ,
"referencedDeclaration" : null ,
2020-02-18 05:18:07 +00:00
"src" : "5052:16:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_transfer_nonpayable$_t_uint256_$returns$__$" ,
"typeString" : "function (uint256)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 308 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "5052:39:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_tuple$__$" ,
"typeString" : "tuple()"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 309 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ExpressionStatement" ,
2020-02-18 05:18:07 +00:00
"src" : "5052:39:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : null ,
2020-02-18 05:18:07 +00:00
"id" : 311 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [
{
"arguments" : null ,
2020-02-18 05:18:07 +00:00
"id" : 293 ,
2019-12-29 02:25:08 +00:00
"modifierName" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 292 ,
2019-12-29 02:25:08 +00:00
"name" : "onlyOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 51 ,
"src" : "4934:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2020-02-18 05:18:07 +00:00
"src" : "4934:9:0"
2019-12-29 02:25:08 +00:00
}
] ,
"name" : "getETH" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 291 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "4924:2:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 294 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [ ] ,
2020-02-18 05:18:07 +00:00
"src" : "4944:0:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "4909:189:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
} ,
{
"body" : {
2020-02-18 05:18:07 +00:00
"id" : 331 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Block" ,
2020-02-18 05:18:07 +00:00
"src" : "5443:70:0" ,
2019-12-29 02:25:08 +00:00
"statements" : [
{
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
"arguments" : [ ] ,
"expression" : {
"argumentTypes" : [ ] ,
2020-02-18 05:18:07 +00:00
"id" : 326 ,
2019-12-29 02:25:08 +00:00
"name" : "owner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 41 ,
"src" : "5490:5:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_internal_view$__$returns$_t_address_payable_$" ,
"typeString" : "function () view returns (address payable)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 327 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "5490:7:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 328 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 315 ,
"src" : "5499:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
{
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
] ,
"expression" : {
"argumentTypes" : null ,
"arguments" : [
{
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 323 ,
2019-12-29 02:25:08 +00:00
"name" : "tokenAddress" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 313 ,
"src" : "5467:12:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
}
] ,
"expression" : {
"argumentTypes" : [
{
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
] ,
2020-02-18 05:18:07 +00:00
"id" : 322 ,
2019-12-29 02:25:08 +00:00
"name" : "IERC20" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1078 ,
"src" : "5460:6:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_type$_t_contract$_IERC20_$1078_$" ,
2019-12-29 02:25:08 +00:00
"typeString" : "type(contract IERC20)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 324 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "typeConversion" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "5460:20:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
2020-02-18 05:18:07 +00:00
"typeIdentifier" : "t_contract$_IERC20_$1078" ,
2019-12-29 02:25:08 +00:00
"typeString" : "contract IERC20"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 325 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"memberName" : "transfer" ,
"nodeType" : "MemberAccess" ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 1032 ,
"src" : "5460:29:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_function_external_nonpayable$_t_address_$_t_uint256_$returns$_t_bool_$" ,
"typeString" : "function (address,uint256) external returns (bool)"
}
} ,
2020-02-18 05:18:07 +00:00
"id" : 329 ,
2019-12-29 02:25:08 +00:00
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"kind" : "functionCall" ,
"lValueRequested" : false ,
"names" : [ ] ,
"nodeType" : "FunctionCall" ,
2020-02-18 05:18:07 +00:00
"src" : "5460:46:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
2020-02-18 05:18:07 +00:00
"functionReturnParameters" : 321 ,
"id" : 330 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "Return" ,
2020-02-18 05:18:07 +00:00
"src" : "5453:53:0"
2019-12-29 02:25:08 +00:00
}
]
} ,
"documentation" : null ,
2020-02-18 05:18:07 +00:00
"id" : 332 ,
2019-12-29 02:25:08 +00:00
"implemented" : true ,
"kind" : "function" ,
"modifiers" : [
{
"arguments" : null ,
2020-02-18 05:18:07 +00:00
"id" : 318 ,
2019-12-29 02:25:08 +00:00
"modifierName" : {
"argumentTypes" : null ,
2020-02-18 05:18:07 +00:00
"id" : 317 ,
2019-12-29 02:25:08 +00:00
"name" : "onlyOwner" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
2020-02-18 05:18:07 +00:00
"referencedDeclaration" : 51 ,
"src" : "5410:9:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_modifier$__$" ,
"typeString" : "modifier ()"
}
} ,
"nodeType" : "ModifierInvocation" ,
2020-02-18 05:18:07 +00:00
"src" : "5410:9:0"
2019-12-29 02:25:08 +00:00
}
] ,
"name" : "transferAnyERC20Token" ,
"nodeType" : "FunctionDefinition" ,
"parameters" : {
2020-02-18 05:18:07 +00:00
"id" : 316 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 313 ,
2019-12-29 02:25:08 +00:00
"name" : "tokenAddress" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 332 ,
"src" : "5360:28:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 312 ,
2019-12-29 02:25:08 +00:00
"name" : "address" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "5360:15:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "payable" ,
"typeDescriptions" : {
"typeIdentifier" : "t_address_payable" ,
"typeString" : "address payable"
}
} ,
"value" : null ,
"visibility" : "internal"
} ,
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 315 ,
2019-12-29 02:25:08 +00:00
"name" : "tokens" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 332 ,
"src" : "5390:11:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 314 ,
2019-12-29 02:25:08 +00:00
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "5390:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "5359:43:0"
2019-12-29 02:25:08 +00:00
} ,
"returnParameters" : {
2020-02-18 05:18:07 +00:00
"id" : 321 ,
2019-12-29 02:25:08 +00:00
"nodeType" : "ParameterList" ,
"parameters" : [
{
"constant" : false ,
2020-02-18 05:18:07 +00:00
"id" : 320 ,
2019-12-29 02:25:08 +00:00
"name" : "success" ,
"nodeType" : "VariableDeclaration" ,
2020-02-18 05:18:07 +00:00
"scope" : 332 ,
"src" : "5429:12:0" ,
2019-12-29 02:25:08 +00:00
"stateVariable" : false ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
} ,
"typeName" : {
2020-02-18 05:18:07 +00:00
"id" : 319 ,
2019-12-29 02:25:08 +00:00
"name" : "bool" ,
"nodeType" : "ElementaryTypeName" ,
2020-02-18 05:18:07 +00:00
"src" : "5429:4:0" ,
2019-12-29 02:25:08 +00:00
"typeDescriptions" : {
"typeIdentifier" : "t_bool" ,
"typeString" : "bool"
}
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "5428:14:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "5329:184:0" ,
2019-12-29 02:25:08 +00:00
"stateMutability" : "nonpayable" ,
"superFunction" : null ,
"visibility" : "public"
}
] ,
2020-02-18 05:18:07 +00:00
"scope" : 334 ,
"src" : "3088:2427:0"
2019-12-29 02:25:08 +00:00
}
] ,
2020-02-18 05:18:07 +00:00
"src" : "0:5516:0"
2019-12-29 02:25:08 +00:00
} ,
"compiler" : {
"name" : "solc" ,
"version" : "0.5.12+commit.7709ece9.Emscripten.clang"
} ,
"networks" : { } ,
"schemaVersion" : "3.0.19" ,
2020-02-18 05:18:07 +00:00
"updatedAt" : "2020-02-18T05:14:13.969Z" ,
2019-12-29 02:25:08 +00:00
"devdoc" : {
"details" : "The reason using this instead of openzeppelin, because owner are not 'payable'" ,
"methods" : {
"constructor" : {
"details" : "Initializes the contract setting the deployer as the initial owner."
} ,
"isOwner()" : {
"details" : "Returns true if the caller is the current owner."
} ,
"owner()" : {
"details" : "Returns the address of the current owner."
} ,
"renounceOwnership()" : {
"details" : "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. * NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
} ,
"transferOwnership(address)" : {
"details" : "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
}
}
} ,
"userdoc" : {
"methods" : { }
}
}