2020-11-16 16:55:04 +00:00
{
2020-11-28 18:32:43 +00:00
"address" : "0x3b50336E3E1E618FE74DF351966ebaD2B12cD24a" ,
2020-11-16 16:55:04 +00:00
"abi" : [
{
"inputs" : [
{
"internalType" : "uint256" ,
"name" : "_vaultId" ,
"type" : "uint256"
} ,
{
"internalType" : "address" ,
"name" : "_priceOracle" ,
"type" : "address"
} ,
{
"internalType" : "bytes" ,
"name" : "_oraclePayload" ,
"type" : "bytes"
} ,
{
"internalType" : "uint256" ,
"name" : "_minColRatio" ,
"type" : "uint256"
}
] ,
"name" : "getConditionData" ,
"outputs" : [
{
"internalType" : "bytes" ,
"name" : "" ,
"type" : "bytes"
}
] ,
"stateMutability" : "pure" ,
"type" : "function"
} ,
{
"inputs" : [
{
"internalType" : "uint256" ,
"name" : "_vaultId" ,
"type" : "uint256"
} ,
{
"internalType" : "address" ,
"name" : "_priceOracle" ,
"type" : "address"
} ,
{
"internalType" : "bytes" ,
"name" : "_oraclePayload" ,
"type" : "bytes"
} ,
{
"internalType" : "uint256" ,
"name" : "_minColRatio" ,
"type" : "uint256"
}
] ,
"name" : "isVaultUnsafe" ,
"outputs" : [
{
"internalType" : "string" ,
"name" : "" ,
"type" : "string"
}
] ,
"stateMutability" : "view" ,
"type" : "function"
} ,
{
"inputs" : [
{
"internalType" : "uint256" ,
"name" : "" ,
"type" : "uint256"
} ,
{
"internalType" : "bytes" ,
"name" : "_conditionData" ,
"type" : "bytes"
} ,
{
"internalType" : "uint256" ,
"name" : "" ,
"type" : "uint256"
}
] ,
"name" : "ok" ,
"outputs" : [
{
"internalType" : "string" ,
"name" : "" ,
"type" : "string"
}
] ,
"stateMutability" : "view" ,
"type" : "function"
}
] ,
2020-11-28 18:32:43 +00:00
"transactionHash" : "0xf3e7f9f39b6ca8a60cbfeaafb7fe65ddbb26e8ebd0d2b556ddac6aa1971098f4" ,
2020-11-16 16:55:04 +00:00
"receipt" : {
"to" : null ,
2020-11-28 18:32:43 +00:00
"from" : "0x5B753BF02a42bC73B5846dfd16a8F2e082b99a6a" ,
"contractAddress" : "0x3b50336E3E1E618FE74DF351966ebaD2B12cD24a" ,
"transactionIndex" : 185 ,
"gasUsed" : "734696" ,
2020-11-16 16:55:04 +00:00
"logsBloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ,
2020-11-28 18:32:43 +00:00
"blockHash" : "0xe6699fa9b65f348b512dd910be5ff122294295879c1da3b607d51532cecceb4e" ,
"transactionHash" : "0xf3e7f9f39b6ca8a60cbfeaafb7fe65ddbb26e8ebd0d2b556ddac6aa1971098f4" ,
2020-11-16 16:55:04 +00:00
"logs" : [ ] ,
2020-11-28 18:32:43 +00:00
"blockNumber" : 11348212 ,
"cumulativeGasUsed" : "12063473" ,
2020-11-16 16:55:04 +00:00
"status" : 1 ,
"byzantium" : true
} ,
"args" : [ ] ,
2020-11-28 18:32:43 +00:00
"solcInputHash" : "bf7cd3f181208953a3fd533c358cf962" ,
"metadata" : "{\"compiler\":{\"version\":\"0.7.4+commit.3f05b770\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_priceOracle\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_oraclePayload\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_minColRatio\",\"type\":\"uint256\"}],\"name\":\"getConditionData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_priceOracle\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_oraclePayload\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"_minColRatio\",\"type\":\"uint256\"}],\"name\":\"isVaultUnsafe\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_conditionData\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"ok\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Gelato Team\",\"kind\":\"dev\",\"methods\":{\"getConditionData(uint256,address,bytes,uint256)\":{\"details\":\"Use the return for your Task's Condition.data field off-chain.\",\"returns\":{\"_0\":\"The encoded payload for your Task's Condition.data field.\"}},\"isVaultUnsafe(uint256,address,bytes,uint256)\":{\"details\":\"The price oracle must return a uint256 WAD (10**18) value.\",\"params\":{\"_minColRatio\":\"The minimum collateral ratio measured in the price of the collateral as specified by the _priceOracle.\",\"_oraclePayload\":\"The data for making the staticcall to the oracle's read method e.g. the selector for MakerOracle's read fn.\",\"_priceOracle\":\"The price oracle contract to supply the collateral price e.g. Maker's ETH/USD oracle for ETH collateral pricing.\",\"_vaultId\":\"The id of the Maker vault\"},\"returns\":{\"_0\":\"OK if the Maker Vault is unsafe, otherwise some error message.\"}},\"ok(uint256,bytes,uint256)\":{\"details\":\"A standard interface for GelatoCore to read Conditions\",\"params\":{\"_conditionData\":\"The data you get from `getConditionData()`\"},\"returns\":{\"_0\":\"OK if the Condition is there, else some error message.\"}}},\"title\":\"ConditionMakerVaultUnsafe\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getConditionData(uint256,address,bytes,uint256)\":{\"notice\":\"Convenience function for off-chain _conditionData encoding\"},\"isVaultUnsafe(uint256,address,bytes,uint256)\":{\"notice\":\"Specific implementation of this Condition's ok function\"},\"ok(uint256,bytes,uint256)\":{\"notice\":\"Standard GelatoCore system function\"}},\"notice\":\"Condition tracking Maker vault collateralization safety requirements.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/contracts/gelato/conditions/ConditionMakerVaultUnsafe.sol\":\"ConditionMakerVaultUnsafe\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@gelatonetwork/core/contracts/conditions/GelatoConditionsStandard.sol\":{\"content\":\"// \\\"SPDX-License-Identifier: UNLICENSED\\\"\\npragma solidity >=0.6.10;\\n\\nimport \\\"./IGelatoCondition.sol\\\";\\n\\nabstract contract GelatoConditionsStandard is IGelatoCondition {\\n string internal constant OK = \\\"OK\\\";\\n}\\n\",\"keccak256\":\"0xa3d9ee5c4398914bbc0fe75fe54e57b73b8a4367caf9a40d9e5fd1ba9d4adb89\",\"license\":\"UNLICENSED\"},\"@gelatonetwork/core/contracts/conditions/IGelatoCondition.sol\":{\"content\":\"// \\\"SPDX-License-Identifier: UNLICENSED\\\" \ \ n p r a
"bytecode" : " 0 x 608060405234801561001057600080 f d 5 b 50610 c 54806100206000396000 f 3 f e 608060405234801561001057600080 f d 5 b 50600436106100415760003560e01 c 80635 d 392 c 301461004657806377301 f 811461006 f 578063 a 99891 c 514610082575 b 600080 f d 5 b 610059610054366004610 a 18565 b 610095565 b 6040516100669190610 a c 6565 b 60405180910390 f 35 b 61005961007 d 3660046109 b 6565 b 61024e565 b 610059610090366004610 a 2 d 565 b 6102 a e 565 b 606060006060856001600160 a 0 1 b 0 316856040516100 b 39190610 a a a 565 b 600060405180830381855 a f a 9150503 d 80600081146100 e e 576040519150601 f 19603 f 3 d 0 11682016040523 d 82523 d 6000602084013e6100 f 3565 b 606091505 b 509150915081610120576101206040518060600160405280602 f 8152602001610 b f 0 602 f 913982906102 f 0 565 b 600081806020019051810190610136919061093 f 565 b 90506101406106 f 0 565 b 604051634 a 3843 b b 60e11 b 8152730 a 7008 b 38e7015 f 8 c 36 a 49 e e b c 32513 e c a 8801e590639470877690610177908 c 90600401610 a e 0 565 b 60006040518083038186803 b 15801561018 f 57600080 f d 5 b 505 a f a 1580156101 a 3573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 6000823e601 f 3 d 908101601 f 191682016040526101 c b 9190810190610853565 b 905060006101 e a 6101e08360600151856105 d f 565 b 8360 a 0 0 151610618565 b 905086811061022457604051806040016040528060138152602001724 d 616 b 65725661756 c 744e6 f 74556e7361666560681 b 815250610240565 b 604051806040016040528060028152602001614 f 4 b 60 f 0 1 b 8152505 b 9 a 9950505050505050505050565 b 6060635 d 392 c 3060e01 b 8686868686604051602401610271959493929190610 a e 9565 b 60408051601 f 198184030181529190526020810180516001600160e01 b 0 3166001600160e01 b 0 31990931692909217909152905095945050505050565 b 606060008082816102 c 2876004818 b 610 b 7 f 565 b 8101906102 c f 9190610957565 b 93509350935093506102e384848484610095565 b 9998505050505050505050565 b 60208251816102 f b 57 f e 5 b 0 66004141561051857602082015162461 b c d 60e51 b 6001600160e01 b 0 319821614156104565760448301925081836040516020018083805190602001908083835 b 6020831061035 b 5780518252601 f 19909201916020918201910161033 c 565 b 51815160209384036101000 a 600019018019909216911617905285519190930192850191508083835 b 602083106103 a 35780518252601 f 199092019160209182019101610384565 b 51815160209384036101000 a 60001901801990921691161790526040805192909401828103601 f 190183529384905262461 b c d 60e51 b 84526004840181815282516024860152825192975095508594506044909301928601915080838360005 b 8381101561041 b 578181015183820152602001610403565 b 50505050905090810190601 f 1680156104485780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f d 5 b 816040516020018082805190602001908083835 b 602083106104895780518252601 f 19909201916020918201910161046 a 565 b 51815160001960209485036101000 a 0 190811690199091161790526e2737 a 2 b 93937 b 929 b 2 b 632 b 1 b a 37 b 960891 b 9390910192835260408051601019818603018152600 f 85019182905262461 b c d 60e51 b 90915260138401828152815160338601528151919650945084936053019250908501908083836000831561041 b 578181015183820152602001610403565 b 806040516020018082805190602001908083835 b 6020831061054 b 5780518252601 f 19909201916020918201910161052 c 565 b 51815160001960209485036101000 a 0 1908116901990911617905273556e657870656374656452657475726 e 6461746160601 b 9390910192835260408051600 b 19818603018152601485019182905262461 b c d 60e51 b 90915260188401828152815160388601528151919650945084936058019250908501908083836000831561041 b 578181015183820152602001610403565 b 6000670 d e 0 b 6 b 3 a 76400006106096105 f 78585610638565 b 6002670 d e 0 b 6 b 3 a 76400005 b 0 46106 a 1565 b 8161061057 f e 5 b 0 49392505050565 b 60008161060961063085670 d e 0 b 6 b 3 a 7640000610638565 b 600285610603565 b 60008115806106535750508082028282828161065057 f e 5 b 0 4145 b 61069 b 576040805162461 b c d 60e51 b 815260206004820152601460248201527364732 d 6 d 6174682 d 6 d 756 c 2 d 6 f 766572666 c 6 f 7760601 b 604482015290519081900360640190 f d 5 b 92915050565 b 8082018281101561069 b 576040805162461 b c d 60e51 b 815260206004820152601460248201527364732 d 6 d 6174682 d 6164642 d 6 f 766572666 c 6 f 7760601 b 604482015290519081900360640190 f d 5 b 6040518061016001604052806000815260200160006001600160 a 0 1 b 0 3168152602001606081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160006001600160 a 0 1 b 0 31681525090565 b 805161076781610 b d 7565 b 919050565 b 60008083601 f 84011261077 d 578182 f d 5 b 50813567 f f f f f f f f f f f f f f f f 811115610794578182 f d 5 b 6020830191508360208285010111156107 a c 57600080 f d 5 b 9250929050565 b 600082601 f 8301126107 c 3578081 f d 5 b 81356107 d 66107 d 182610 b 5 d 565 b 610 b 39565 b
"deployedBytecode" : " 0 x 608060405234801561001057600080 f d 5 b 50600436106100415760003560e01 c 80635 d 392 c 301461004657806377301 f 811461006 f 578063 a 99891 c 514610082575 b 600080 f d 5 b 610059610054366004610 a 18565 b 610095565 b 6040516100669190610 a c 6565 b 60405180910390 f 35 b 61005961007 d 3660046109 b 6565 b 61024e565 b 610059610090366004610 a 2 d 565 b 6102 a e 565 b 606060006060856001600160 a 0 1 b 0 316856040516100 b 39190610 a a a 565 b 600060405180830381855 a f a 9150503 d 80600081146100 e e 576040519150601 f 19603 f 3 d 0 11682016040523 d 82523 d 6000602084013e6100 f 3565 b 606091505 b 509150915081610120576101206040518060600160405280602 f 8152602001610 b f 0 602 f 913982906102 f 0 565 b 600081806020019051810190610136919061093 f 565 b 90506101406106 f 0 565 b 604051634 a 3843 b b 60e11 b 8152730 a 7008 b 38e7015 f 8 c 36 a 49 e e b c 32513 e c a 8801e590639470877690610177908 c 90600401610 a e 0 565 b 60006040518083038186803 b 15801561018 f 57600080 f d 5 b 505 a f a 1580156101 a 3573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 6000823e601 f 3 d 908101601 f 191682016040526101 c b 9190810190610853565 b 905060006101 e a 6101e08360600151856105 d f 565 b 8360 a 0 0 151610618565 b 905086811061022457604051806040016040528060138152602001724 d 616 b 65725661756 c 744e6 f 74556e7361666560681 b 815250610240565 b 604051806040016040528060028152602001614 f 4 b 60 f 0 1 b 8152505 b 9 a 9950505050505050505050565 b 6060635 d 392 c 3060e01 b 8686868686604051602401610271959493929190610 a e 9565 b 60408051601 f 198184030181529190526020810180516001600160e01 b 0 3166001600160e01 b 0 31990931692909217909152905095945050505050565 b 606060008082816102 c 2876004818 b 610 b 7 f 565 b 8101906102 c f 9190610957565 b 93509350935093506102e384848484610095565 b 9998505050505050505050565 b 60208251816102 f b 57 f e 5 b 0 66004141561051857602082015162461 b c d 60e51 b 6001600160e01 b 0 319821614156104565760448301925081836040516020018083805190602001908083835 b 6020831061035 b 5780518252601 f 19909201916020918201910161033 c 565 b 51815160209384036101000 a 600019018019909216911617905285519190930192850191508083835 b 602083106103 a 35780518252601 f 199092019160209182019101610384565 b 51815160209384036101000 a 60001901801990921691161790526040805192909401828103601 f 190183529384905262461 b c d 60e51 b 84526004840181815282516024860152825192975095508594506044909301928601915080838360005 b 8381101561041 b 578181015183820152602001610403565 b 50505050905090810190601 f 1680156104485780820380516001836020036101000 a 0 31916815260200191505 b 509250505060405180910390 f d 5 b 816040516020018082805190602001908083835 b 602083106104895780518252601 f 19909201916020918201910161046 a 565 b 51815160001960209485036101000 a 0 190811690199091161790526e2737 a 2 b 93937 b 929 b 2 b 632 b 1 b a 37 b 960891 b 9390910192835260408051601019818603018152600 f 85019182905262461 b c d 60e51 b 90915260138401828152815160338601528151919650945084936053019250908501908083836000831561041 b 578181015183820152602001610403565 b 806040516020018082805190602001908083835 b 6020831061054 b 5780518252601 f 19909201916020918201910161052 c 565 b 51815160001960209485036101000 a 0 1908116901990911617905273556e657870656374656452657475726 e 6461746160601 b 9390910192835260408051600 b 19818603018152601485019182905262461 b c d 60e51 b 90915260188401828152815160388601528151919650945084936058019250908501908083836000831561041 b 578181015183820152602001610403565 b 6000670 d e 0 b 6 b 3 a 76400006106096105 f 78585610638565 b 6002670 d e 0 b 6 b 3 a 76400005 b 0 46106 a 1565 b 8161061057 f e 5 b 0 49392505050565 b 60008161060961063085670 d e 0 b 6 b 3 a 7640000610638565 b 600285610603565 b 60008115806106535750508082028282828161065057 f e 5 b 0 4145 b 61069 b 576040805162461 b c d 60e51 b 815260206004820152601460248201527364732 d 6 d 6174682 d 6 d 756 c 2 d 6 f 766572666 c 6 f 7760601 b 604482015290519081900360640190 f d 5 b 92915050565 b 8082018281101561069 b 576040805162461 b c d 60e51 b 815260206004820152601460248201527364732 d 6 d 6174682 d 6164642 d 6 f 766572666 c 6 f 7760601 b 604482015290519081900360640190 f d 5 b 6040518061016001604052806000815260200160006001600160 a 0 1 b 0 3168152602001606081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160006001600160 a 0 1 b 0 31681525090565 b 805161076781610 b d 7565 b 919050565 b 60008083601 f 84011261077 d 578182 f d 5 b 50813567 f f f f f f f f f f f f f f f f 811115610794578182 f d 5 b 6020830191508360208285010111156107 a c 57600080 f d 5 b 9250929050565 b 600082601 f 8301126107 c 3578081 f d 5 b 81356107 d 66107 d 182610 b 5 d 565 b 610 b 39565 b 91508082528360208285010111156107 e d 57600080 f d 5 b 8060208401
2020-11-16 16:55:04 +00:00
"devdoc" : {
"author" : "Gelato Team" ,
"kind" : "dev" ,
"methods" : {
"getConditionData(uint256,address,bytes,uint256)" : {
"details" : "Use the return for your Task's Condition.data field off-chain." ,
"returns" : {
"_0" : "The encoded payload for your Task's Condition.data field."
}
} ,
"isVaultUnsafe(uint256,address,bytes,uint256)" : {
"details" : "The price oracle must return a uint256 WAD (10**18) value." ,
"params" : {
"_minColRatio" : "The minimum collateral ratio measured in the price of the collateral as specified by the _priceOracle." ,
"_oraclePayload" : "The data for making the staticcall to the oracle's read method e.g. the selector for MakerOracle's read fn." ,
"_priceOracle" : "The price oracle contract to supply the collateral price e.g. Maker's ETH/USD oracle for ETH collateral pricing." ,
"_vaultId" : "The id of the Maker vault"
} ,
"returns" : {
"_0" : "OK if the Maker Vault is unsafe, otherwise some error message."
}
} ,
"ok(uint256,bytes,uint256)" : {
"details" : "A standard interface for GelatoCore to read Conditions" ,
"params" : {
"_conditionData" : "The data you get from `getConditionData()`"
} ,
"returns" : {
"_0" : "OK if the Condition is there, else some error message."
}
}
} ,
"title" : "ConditionMakerVaultUnsafe" ,
"version" : 1
} ,
"userdoc" : {
"kind" : "user" ,
"methods" : {
"getConditionData(uint256,address,bytes,uint256)" : {
"notice" : "Convenience function for off-chain _conditionData encoding"
} ,
"isVaultUnsafe(uint256,address,bytes,uint256)" : {
"notice" : "Specific implementation of this Condition's ok function"
} ,
"ok(uint256,bytes,uint256)" : {
"notice" : "Standard GelatoCore system function"
}
} ,
"notice" : "Condition tracking Maker vault collateralization safety requirements." ,
"version" : 1
} ,
"storageLayout" : {
"storage" : [ ] ,
"types" : null
}
}