2019-12-29 02:25:08 +00:00
{
2020-02-18 05:18:07 +00:00
"contractName" : "DECA" ,
2019-12-29 02:25:08 +00:00
"abi" : [
{
"anonymous" : false ,
"inputs" : [
{
"indexed" : true ,
"internalType" : "address" ,
"name" : "owner" ,
"type" : "address"
} ,
{
"indexed" : true ,
"internalType" : "address" ,
"name" : "spender" ,
"type" : "address"
} ,
{
"indexed" : false ,
"internalType" : "uint256" ,
"name" : "value" ,
"type" : "uint256"
}
] ,
"name" : "Approval" ,
"type" : "event"
} ,
{
"anonymous" : false ,
"inputs" : [
{
"indexed" : true ,
"internalType" : "address" ,
"name" : "previousOwner" ,
"type" : "address"
} ,
{
"indexed" : true ,
"internalType" : "address" ,
"name" : "newOwner" ,
"type" : "address"
}
] ,
"name" : "OwnershipTransferred" ,
"type" : "event"
} ,
{
"anonymous" : false ,
"inputs" : [
{
"indexed" : true ,
"internalType" : "address" ,
"name" : "from" ,
"type" : "address"
} ,
{
"indexed" : true ,
"internalType" : "address" ,
"name" : "to" ,
"type" : "address"
} ,
{
"indexed" : false ,
"internalType" : "uint256" ,
"name" : "value" ,
"type" : "uint256"
}
] ,
"name" : "Transfer" ,
"type" : "event"
} ,
{
"payable" : true ,
"stateMutability" : "payable" ,
"type" : "fallback"
} ,
{
"constant" : true ,
"inputs" : [
{
"internalType" : "address" ,
"name" : "owner" ,
"type" : "address"
} ,
{
"internalType" : "address" ,
"name" : "spender" ,
"type" : "address"
}
] ,
"name" : "allowance" ,
"outputs" : [
{
"internalType" : "uint256" ,
"name" : "" ,
"type" : "uint256"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : false ,
"inputs" : [
{
"internalType" : "address" ,
"name" : "spender" ,
"type" : "address"
} ,
{
"internalType" : "uint256" ,
"name" : "amount" ,
"type" : "uint256"
}
] ,
"name" : "approve" ,
"outputs" : [
{
"internalType" : "bool" ,
"name" : "" ,
"type" : "bool"
}
] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [
{
"internalType" : "address" ,
"name" : "account" ,
"type" : "address"
}
] ,
"name" : "balanceOf" ,
"outputs" : [
{
"internalType" : "uint256" ,
"name" : "" ,
"type" : "uint256"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "bonus1Ends" ,
"outputs" : [
{
"internalType" : "uint256" ,
"name" : "" ,
"type" : "uint256"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "bonus2Ends" ,
"outputs" : [
{
"internalType" : "uint256" ,
"name" : "" ,
"type" : "uint256"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "decimals" ,
"outputs" : [
{
"internalType" : "uint8" ,
"name" : "" ,
"type" : "uint8"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : false ,
"inputs" : [
{
"internalType" : "address" ,
"name" : "spender" ,
"type" : "address"
} ,
{
"internalType" : "uint256" ,
"name" : "subtractedValue" ,
"type" : "uint256"
}
] ,
"name" : "decreaseAllowance" ,
"outputs" : [
{
"internalType" : "bool" ,
"name" : "" ,
"type" : "bool"
}
] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "endDate" ,
"outputs" : [
{
"internalType" : "uint256" ,
"name" : "" ,
"type" : "uint256"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : false ,
"inputs" : [
{
"internalType" : "address" ,
"name" : "spender" ,
"type" : "address"
} ,
{
"internalType" : "uint256" ,
"name" : "addedValue" ,
"type" : "uint256"
}
] ,
"name" : "increaseAllowance" ,
"outputs" : [
{
"internalType" : "bool" ,
"name" : "" ,
"type" : "bool"
}
] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "isOwner" ,
"outputs" : [
{
"internalType" : "bool" ,
"name" : "" ,
"type" : "bool"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "name" ,
"outputs" : [
{
"internalType" : "string" ,
"name" : "" ,
"type" : "string"
}
] ,
"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" : true ,
"inputs" : [ ] ,
"name" : "preICOEnds" ,
"outputs" : [
{
"internalType" : "uint256" ,
"name" : "" ,
"type" : "uint256"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : false ,
"inputs" : [ ] ,
"name" : "renounceOwnership" ,
"outputs" : [ ] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "symbol" ,
"outputs" : [
{
"internalType" : "string" ,
"name" : "" ,
"type" : "string"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "totalSupply" ,
"outputs" : [
{
"internalType" : "uint256" ,
"name" : "" ,
"type" : "uint256"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : false ,
"inputs" : [
{
"internalType" : "address" ,
"name" : "recipient" ,
"type" : "address"
} ,
{
"internalType" : "uint256" ,
"name" : "amount" ,
"type" : "uint256"
}
] ,
"name" : "transfer" ,
"outputs" : [
{
"internalType" : "bool" ,
"name" : "" ,
"type" : "bool"
}
] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
} ,
{
"constant" : false ,
"inputs" : [
{
"internalType" : "address" ,
"name" : "sender" ,
"type" : "address"
} ,
{
"internalType" : "address" ,
"name" : "recipient" ,
"type" : "address"
} ,
{
"internalType" : "uint256" ,
"name" : "amount" ,
"type" : "uint256"
}
] ,
"name" : "transferFrom" ,
"outputs" : [
{
"internalType" : "bool" ,
"name" : "" ,
"type" : "bool"
}
] ,
"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
{
"constant" : true ,
"inputs" : [ ] ,
"name" : "getPause" ,
"outputs" : [
{
"internalType" : "bool" ,
"name" : "" ,
"type" : "bool"
}
] ,
"payable" : false ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"constant" : false ,
"inputs" : [
{
"internalType" : "bool" ,
"name" : "p" ,
"type" : "bool"
}
] ,
"name" : "setPause" ,
"outputs" : [ ] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
} ,
2019-12-29 02:25:08 +00:00
{
"constant" : false ,
"inputs" : [ ] ,
"name" : "getETH" ,
"outputs" : [ ] ,
"payable" : false ,
"stateMutability" : "nonpayable" ,
"type" : "function"
} ,
{
"constant" : false ,
"inputs" : [
{
"internalType" : "address payable" ,
"name" : "tokenAddress" ,
"type" : "address"
} ,
{
"internalType" : "uint256" ,
"name" : "tokens" ,
"type" : "uint256"
}
] ,
"name" : "transferAnyERC20Token" ,
"outputs" : [
{
"internalType" : "bool" ,
"name" : "success" ,
"type" : "bool"
}
] ,
"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\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"bonus1Ends\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"bonus2Ends\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"subtractedValue\",\"type\":\"uint256\"}],\"name\":\"decreaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"endDate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"getETH\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getPause\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"addedValue\",\"type\":\"uint256\"}],\"name\":\"increaseAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\" i n t e r n a l T y
"bytecode" : " 0 x 608060405262093 a 804201600455621 b a f 80420160055562375 f 0 0 42016006556265838042016007556000600860006101000 a 81548160 f f 0 2191690831515021790555061005161011360201 b 60201 c 565 b 600360006101000 a 81548173 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 0 21916908373 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 160217905550600360009054906101000 a 900473 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16600073 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 167 f 8 b e 0 0 79 c 531659141344 c d 1 f d 0 a 4 f 28419497 f 9722 a 3 d a a f e 3 b 4186 f 6 b 6457e060405160405180910390 a 361011 b 565 b 600033905090565 b 611e6 b 8061012 a 6000396000 f 3 f e 6080604052600436106101405760003560e01 c 80638 f 32 d 59 b 116100 b 6578063 d c 39 d 0 6 d 1161006 f 578063 d c 39 d 0 6 d 14610805578063 d d 62 e d 3e14610878578063 e 8294 a a d 146108 f d 578063 e f 0 b 44 d b 14610928578063 f 2 f d e 38 b 14610953578063 f c 5 f c 8 a e 146109 a 457610140565 b 80638 f 32 d 59 b 146105 f 857806395 d 89 b 4114610627578063 a 457 c 2 d 7146106 b 7578063 a 9059 c b b 1461072 a 578063 b e d b 86 f b 1461079 d 578063 c 24 a 0 f 8 b 146107 d a 57610140565 b 8063313 c e 56711610108578063313 c e 5671461045257806339509351146104835780633e3 c a 9 d 3146104 f 657806370 a 0 823114610525578063715018 a 61461058 a 5780638 d a 5 c b 5 b 146105 a 157610140565 b 806306 f d d e 0 31461027 a 578063095 e a 7 b 31461030 a 57806314 f 6 c 3 b e 1461037 d 57806318160 d d d 1461039457806323 b 872 d d 146103 b f 575 b 600860009054906101000 a 900460 f f 16156101 c 3576040517 f 0 8 c 379 a 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 81526004018080602001828103825260128152602001807 f 63726 f 776473616 c 65206 f 6e207061757365000000000000000000000000000081525060200191505060405180910390 f d 5 b 6007544211156101 d 257600080 f d 5 b 6000806000806028905060045442116101 f 15761012 c 34029350610241565 b 6004544211801561020457506005544211155 b 156102155761011334029350610240565 b 6005544211801561022857506006544211155 b 156102385760 f a 3402935061023 f 565 b 60e1340293505 b 5 b 5 b 61025481856109 c f 90919063 f f f f f f f f 16565 b 925083915061026 a 610264610 a 19565 b 84610 a 43565 b 6102743383610 a 43565 b 50505050005 b 34801561028657600080 f d 5 b 5061028 f 610 b f e 565 b 6040518080602001828103825283818151815260200191508051906020019080838360005 b 838110156102 c f 5780820151818401526020810190506102 b 4565 b 50505050905090810190601 f 1680156102 f c 5780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f 35 b 34801561031657600080 f d 5 b 506103636004803603604081101561032 d 57600080 f d 5 b 81019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919080359060200190929190505050610 c 37565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561038957600080 f d 5 b 50610392610 c 55565 b 0 0 5 b 3480156103 a 0 57600080 f d 5 b 506103 a 9610 d 45565 b 6040518082815260200191505060405180910390 f 35 b 3480156103 c b 57600080 f d 5 b 50610438600480360360608110156103e257600080 f d 5 b 81019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 169060200190929190803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919080359060200190929190505050610 d 4 f 565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561045e57600080 f d 5 b 50610467610e28565 b 604051808260 f f 1660 f f 16815260200191505060405180910390 f 35 b 34801561048 f 57600080 f d 5 b 506104 d c 600480360360408110156104 a 657600080 f d 5 b 81019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919080359060200190929190505050610e2 d 565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561050257600080 f d 5 b 5061050 b 610 e e 0 565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561053157600080 f d 5 b 506105746004803603602081101561054857600080 f d 5 b 81019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 169060200190929190505050610 e f 7565 b 6040518082815260200191505060405180910390 f 35 b 34801561059657600080 f d 5 b 5061059 f 610 f 3 f 565 b 0 0 5 b 3480156105 a d 57600080 f d 5 b 506105 b 6610 a 19565 b 604051808273 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16815260200191505060405180910390 f 35 b 34801561060457600080 f d 5 b 5061060 d 61107 a 565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561063357600080 f d 5 b 5061063 c 6110 d 9565 b 6040518080602001828103825283818151815260200191508051906020019080838360005 b 8381101561067 c 578082015181840152602081019050610661565 b 50505050905090810190601 f 1680156106 a 95780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f 35 b 3480156106 c 357600080 f d 5 b 506107106004803603
"deployedBytecode" : " 0 x 6080604052600436106101405760003560e01 c 80638 f 32 d 59 b 116100 b 6578063 d c 39 d 0 6 d 1161006 f 578063 d c 39 d 0 6 d 14610805578063 d d 62 e d 3e14610878578063 e 8294 a a d 146108 f d 578063 e f 0 b 44 d b 14610928578063 f 2 f d e 38 b 14610953578063 f c 5 f c 8 a e 146109 a 457610140565 b 80638 f 32 d 59 b 146105 f 857806395 d 89 b 4114610627578063 a 457 c 2 d 7146106 b 7578063 a 9059 c b b 1461072 a 578063 b e d b 86 f b 1461079 d 578063 c 24 a 0 f 8 b 146107 d a 57610140565 b 8063313 c e 56711610108578063313 c e 5671461045257806339509351146104835780633e3 c a 9 d 3146104 f 657806370 a 0 823114610525578063715018 a 61461058 a 5780638 d a 5 c b 5 b 146105 a 157610140565 b 806306 f d d e 0 31461027 a 578063095 e a 7 b 31461030 a 57806314 f 6 c 3 b e 1461037 d 57806318160 d d d 1461039457806323 b 872 d d 146103 b f 575 b 600860009054906101000 a 900460 f f 16156101 c 3576040517 f 0 8 c 379 a 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 81526004018080602001828103825260128152602001807 f 63726 f 776473616 c 65206 f 6e207061757365000000000000000000000000000081525060200191505060405180910390 f d 5 b 6007544211156101 d 257600080 f d 5 b 6000806000806028905060045442116101 f 15761012 c 34029350610241565 b 6004544211801561020457506005544211155 b 156102155761011334029350610240565 b 6005544211801561022857506006544211155 b 156102385760 f a 3402935061023 f 565 b 60e1340293505 b 5 b 5 b 61025481856109 c f 90919063 f f f f f f f f 16565 b 925083915061026 a 610264610 a 19565 b 84610 a 43565 b 6102743383610 a 43565 b 50505050005 b 34801561028657600080 f d 5 b 5061028 f 610 b f e 565 b 6040518080602001828103825283818151815260200191508051906020019080838360005 b 838110156102 c f 5780820151818401526020810190506102 b 4565 b 50505050905090810190601 f 1680156102 f c 5780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f 35 b 34801561031657600080 f d 5 b 506103636004803603604081101561032 d 57600080 f d 5 b 81019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919080359060200190929190505050610 c 37565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561038957600080 f d 5 b 50610392610 c 55565 b 0 0 5 b 3480156103 a 0 57600080 f d 5 b 506103 a 9610 d 45565 b 6040518082815260200191505060405180910390 f 35 b 3480156103 c b 57600080 f d 5 b 50610438600480360360608110156103e257600080 f d 5 b 81019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 169060200190929190803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919080359060200190929190505050610 d 4 f 565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561045e57600080 f d 5 b 50610467610e28565 b 604051808260 f f 1660 f f 16815260200191505060405180910390 f 35 b 34801561048 f 57600080 f d 5 b 506104 d c 600480360360408110156104 a 657600080 f d 5 b 81019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919080359060200190929190505050610e2 d 565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561050257600080 f d 5 b 5061050 b 610 e e 0 565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561053157600080 f d 5 b 506105746004803603602081101561054857600080 f d 5 b 81019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 169060200190929190505050610 e f 7565 b 6040518082815260200191505060405180910390 f 35 b 34801561059657600080 f d 5 b 5061059 f 610 f 3 f 565 b 0 0 5 b 3480156105 a d 57600080 f d 5 b 506105 b 6610 a 19565 b 604051808273 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 1673 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16815260200191505060405180910390 f 35 b 34801561060457600080 f d 5 b 5061060 d 61107 a 565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561063357600080 f d 5 b 5061063 c 6110 d 9565 b 6040518080602001828103825283818151815260200191508051906020019080838360005 b 8381101561067 c 578082015181840152602081019050610661565 b 50505050905090810190601 f 1680156106 a 95780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f 35 b 3480156106 c 357600080 f d 5 b 50610710600480360360408110156106 d a 57600080 f d 5 b 81019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 16906020019092919080359060200190929190505050611112565 b 604051808215151515815260200191505060405180910390 f 35 b 34801561073657600080 f d 5 b 506107836004803603604081101561074 d 57600080 f d 5 b 81019080803573 f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f 169060200190929190803590602001909291905050506111 d f 565 b 604051808215151515815260200191505060405180910390 f 35 b 3480156107 a 957600080 f d 5 b 506107 d 8600480360360208110156107 c 0 57600080 f d 5 b 810190808035151590602001909291905050506111 f d 565 b 0 0 5 b 3480156107e657600080 f d 5 b 506107 e f 611294565 b 604051
"sourceMap" : "3088:2427:0:-;;;3383:7;3377:3;:13;3352:38;;3427:7;3421:3;:13;3396:38;;3471:7;3465:3;:13;3440:38;;3512:8;3506:3;:14;3484:36;;3548:5;3526:27;;;;;;;;;;;;;;;;;;;;1151:12;:10;;;:12;;:::i;:::-;1142:6;;:21;;;;;;;;;;;;;;;;;;1211:6;;;;;;;;;;;1178:40;;1207:1;1178:40;;;;;;;;;;;;3088:2427;;788:96:2;833:15;867:10;860:17;;788:96;:::o;3088:2427:0:-;;;;;;;" ,
"deployedSourceMap" : " 3088 : 2427 : 0 : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3600 : 6 ; ; ; ; ; ; ; ; ; ; ; 3599 : 7 ; 3591 : 38 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 4067 : 7 ; ; 4060 : 3 ; : 14 ; ; 4052 : 23 ; ; ; ; ; ; 4085 : 11 ; 4106 : 12 ; 4128 : 13 ; 4151 : 10 ; 4180 : 2 ; 4172 : 10 ; ; 4280 ; ; 4273 : 3 ; : 17 ; 4269 : 323 ; ; 4327 : 3 ; 4315 : 9 ; : 15 ; 4306 : 24 ; ; 4269 : 323 ; ; ; 4357 : 10 ; ; 4351 : 3 ; : 16 ; : 37 ; ; ; ; ; 4378 : 10 ; ; 4371 : 3 ; : 17 ; ; 4351 : 37 ; 4347 : 245 ; ; ; 4425 : 3 ; 4413 : 9 ; : 15 ; 4404 : 24 ; ; 4347 : 245 ; ; ; 4455 : 10 ; ; 4449 : 3 ; : 16 ; : 37 ; ; ; ; ; 4476 : 10 ; ; 4469 : 3 ; : 17 ; ; 4449 : 37 ; 4445 : 147 ; ; ; 4523 : 3 ; 4511 : 9 ; : 15 ; 4502 : 24 ; ; 4445 : 147 ; ; ; 4578 : 3 ; 4566 : 9 ; : 15 ; 4557 : 24 ; ; 4445 : 147 ; 4347 : 245 ; 4269 : 323 ; 4612 : 17 ; 4623 : 5 ; 4612 : 6 ; : 10 ; ; : 17 ; ; ; ; : : : i ; : : : - ; 4602 : 27 ; ; 4732 : 6 ; 4721 : 17 ; ; 4790 : 23 ; 4796 : 7 ; : 5 ; : 7 : : i ; : : : - ; 4805 ; 4790 : 5 ; : 23 : : i ; : : : - ; 4823 : 27 ; 4829 : 10 ; 4841 : 8 ; 4823 : 5 ; : 27 : : i ; : : : - ; 3639 : 1 ; ; ; ; 3088 : 2427 ; 3202 : 59 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3202 : 59 : 0 ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 23 : 1 : -1 ; 8 : 100 ; 33 : 3 ; 30 : 1 ; 27 : 10 ; 8 : 100 ; ; ; 99 : 1 ; 94 : 3 ; 90 : 11 ; 84 : 18 ; 80 : 1 ; 75 : 3 ; 71 : 11 ; 64 : 39 ; 52 : 2 ; 49 : 1 ; 45 : 10 ; 40 : 15 ; ; 8 : 100 ; ; ; 12 : 14 ; 3202 : 59 : 0 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 2500 : 149 : 4 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 2500 : 149 : 4 ; ; ; ; ; ; 13 : 2 : -1 ; 8 : 3 ; 5 : 11 ; 2 : 2 ; ; ; 29 : 1 ; 26 ; 19 : 12 ; 2 : 2 ; 2500 : 149 : 4 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 4909 : 189 : 0 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 4909 : 189 : 0 ; ; ; : : : i ; : : : - ; ; 1559 : 89 : 4 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 1559 : 89 : 4 ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3107 : 300 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3107 : 300 : 4 ; ; ; ; ; ; 13 : 2 : -1 ; 8 : 3 ; 5 : 11 ; 2 : 2 ; ; ; 29 : 1 ; 26 ; 19 : 12 ; 2 : 2 ; 3107 : 300 : 4 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3267 : 35 : 0 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3267 : 35 : 0 ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3802 : 207 : 4 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3802 : 207 : 4 ; ; ; ; ; ; 13 : 2 : -1 ; 8 : 3 ; 5 : 11 ; 2 : 2 ; ; ; 29 : 1 ; 26 ; 19 : 12 ; 2 : 2 ; 3802 : 207 : 4 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3652 : 76 : 0 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3652 : 76 : 0 ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1706 : 108 : 4 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 1706 : 108 : 4 ; ; ; ; ; ; 13 : 2 : -1 ; 8 : 3 ; 5 : 11 ; 2 : 2 ; ; ; 29 : 1 ; 26 ; 19 : 12 ; 2 : 2 ; 1706 : 108 : 4 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 2094 : 137 : 0 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 2094 : 137 : 0 ; ; ; : : : i ; : : : - ; ; 1301 : 85 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 1301 : 85 : 0 ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1660 : 92 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 1660 : 92 : 0 ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3158 : 38 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3158 : 38 : 0 ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 23 : 1 : -1 ; 8 : 100 ; 33 : 3 ; 30 : 1 ; 27 : 10 ; 8 : 100 ; ; ; 99 : 1 ; 94 : 3 ; 90 : 11 ; 84 : 18 ; 80 : 1 ; 75 : 3 ; 71 : 11 ; 64 : 39 ; 52 : 2 ; 49 : 1 ; 45 : 10 ; 40 : 15 ; ; 8 : 100 ; ; ; 12 : 14 ; 3158 : 38 : 0 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 4496 : 258 : 4 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 4496 : 258 : 4 ; ; ; ; ; ; 13 : 2 : -1 ; 8 : 3 ; 5 : 11 ; 2 : 2 ; ; ; 29 : 1 ; 26 ; 19 : 12 ; 2 : 2 ; 4496 : 258 : 4 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 2017 : 155 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 2017 : 155 : 4 ; ; ; ; ; ; 13 : 2 : -1 ; 8 : 3 ; 5 : 11 ; 2 : 2 ; ; ; 29 : 1 ; 26 ; 19 : 12 ; 2 : 2 ; 2017 : 155 : 4 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3734 : 72 : 0 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3734 : 72 : 0 ; ; ; ; ; ; 13 : 2 : -1 ; 8 : 3 ; 5 : 11 ; 2 : 2 ; ; ; 29 : 1 ; 26 ; 19 : 12 ; 2 : 2 ; 3734 : 72 : 0 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : i ; : : : - ; ; 3484 : 36 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3484 : 36 : 0 ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 5329 : 184 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 5329 : 184 : 0 ; ; ; ; ; ; 13 : 2 : -1 ; 8 : 3 ; 5 : 11 ; 2 : 2 ; ; ; 29 : 1 ; 26 ; 19 : 12 ; 2 : 2 ; 5329 : 184 : 0 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 2230 : 132 : 4 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 2230 : 132 : 4 ; ; ; ; ; ; 13 : 2 : -1 ; 8 : 3 ; 5 : 11 ; 2 : 2 ; ; ; 29 : 1 ; 26 ; 19 : 12 ; 2 : 2 ; 2230 : 132 : 4 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3396 : 38 : 0 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3396 : 38 : 0 ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3440 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3440 : 38 : 0 ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 2380 : 115 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 2380 : 115 : 0 ; ; ; ; ; ; 13 : 2 : -1 ; 8 : 3 ; 5 : 11 ; 2 : 2 ; ; ; 29 : 1 ; 26 ; 19 : 12 ; 2 : 2 ; 2380 : 115 : 0 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : : : i ; : : : - ; ; 3352 : 38 ; ; 8 : 9 : -1 ; 5 : 2 ; ; ; 30 : 1 ; 27 ; 20 : 12 ; 5 : 2 ; 3352 : 38 : 0 ; ; ; : : : i ; : : : - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 3073 : 130 : 3 ; 3131 : 7 ; 3157 : 39 ; 3161 : 1 ; 3164 ; 3157 : 39 ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; : 3 ; : 39 : : i ; : : : - ; 3150 : 46 ; ; 3073 : 130 ; ; ; ; : : : o ; 1301 : 85 : 0 : - ; 1339 : 15 ; 1373 : 6 ; ; ; ; ; ; ; ; ; ; ; 1366 : 13 ; ; 1301 : 85 ; : : : o ; 5962 : 302 : 4 : - ; 6056 : 1 ; 6037 : 21 ; ; : 7 ; : 21 ; ; ; ; 6
"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 ,
"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"
}
] ,
"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"
}
2019-12-29 02:25:08 +00:00
} ,
"value" : null ,
"visibility" : "internal"
}
] ,
2020-02-18 05:18:07 +00:00
"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 ,
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 ,
"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 ,
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
} ,
"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" ,
"stateVariable" : true ,
"storageLocation" : "default" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"typeName" : {
"id" : 145 ,
"name" : "uint" ,
"nodeType" : "ElementaryTypeName" ,
"src" : "3440:4:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"value" : {
"argumentTypes" : null ,
"commonType" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
} ,
"id" : 148 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : false ,
"lValueRequested" : false ,
"leftExpression" : {
"argumentTypes" : null ,
"id" : 146 ,
"name" : "now" ,
"nodeType" : "Identifier" ,
"overloadedDeclarations" : [ ] ,
"referencedDeclaration" : 1095 ,
"src" : "3465:3:0" ,
"typeDescriptions" : {
"typeIdentifier" : "t_uint256" ,
"typeString" : "uint256"
}
} ,
"nodeType" : "BinaryOperation" ,
"operator" : "+" ,
"rightExpression" : {
"argumentTypes" : null ,
"hexValue" : "36" ,
"id" : 147 ,
"isConstant" : false ,
"isLValue" : false ,
"isPure" : true ,
"kind" : "number" ,
"lValueRequested" : false ,
"nodeType" : "Literal" ,
"src" : "3471:7:0" ,
"subdenomination" : "weeks" ,
"typeDescriptions" : {
"typeIdentifier" : "t_rational_3628800_by_1" ,
"typeString" : "int_const 3628800"
} ,
"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" ,
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"
}
2020-02-18 05:18:07 +00:00
} ,
"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"
}
]
} ,
"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" : [
{
"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"
}
]
} ,
"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" : [
{
"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"
}
] ,
"src" : "3692:6:0"
2019-12-29 02:25:08 +00:00
} ,
2020-02-18 05:18:07 +00:00
"scope" : 333 ,
"src" : "3652:76:0" ,
"stateMutability" : "view" ,
"superFunction" : null ,
2019-12-29 02:25:08 +00:00
"visibility" : "public"
} ,
{
2020-02-18 05:18:07 +00:00
"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"
2019-12-29 02:25:08 +00:00
}
2020-02-18 05:18:07 +00:00
]
} ,
"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"
} ,
2020-02-18 05:18:07 +00:00
"networks" : { } ,
2019-12-29 02:25:08 +00:00
"schemaVersion" : "3.0.19" ,
2020-02-18 05:18:07 +00:00
"updatedAt" : "2020-02-18T05:15:08.090Z" ,
2019-12-29 02:25:08 +00:00
"networkType" : "ethereum" ,
"devdoc" : {
"methods" : {
"allowance(address,address)" : {
"details" : "See {IERC20-allowance}."
} ,
"approve(address,uint256)" : {
"details" : "See {IERC20-approve}. * Requirements: * - `spender` cannot be the zero address."
} ,
"balanceOf(address)" : {
"details" : "See {IERC20-balanceOf}."
} ,
"decreaseAllowance(address,uint256)" : {
"details" : "Atomically decreases the allowance granted to `spender` by the caller. * This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. * Emits an {Approval} event indicating the updated allowance. * Requirements: * - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`."
} ,
"increaseAllowance(address,uint256)" : {
"details" : "Atomically increases the allowance granted to `spender` by the caller. * This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. * Emits an {Approval} event indicating the updated allowance. * Requirements: * - `spender` cannot be the zero address."
} ,
"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."
} ,
"totalSupply()" : {
"details" : "See {IERC20-totalSupply}."
} ,
"transfer(address,uint256)" : {
"details" : "See {IERC20-transfer}. * Requirements: * - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`."
} ,
"transferFrom(address,address,uint256)" : {
"details" : "See {IERC20-transferFrom}. * Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}; * Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for `sender`'s tokens of at least `amount`."
} ,
"transferOwnership(address)" : {
"details" : "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
}
}
} ,
"userdoc" : {
"methods" : { }
}
}