Gelato-automations/deployments/mainnet/ConditionMakerVaultUnsafe.json

179 lines
34 KiB
JSON
Raw Normal View History

2020-11-16 16:55:04 +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"
}
],
"transactionHash": "0xf3e7f9f39b6ca8a60cbfeaafb7fe65ddbb26e8ebd0d2b556ddac6aa1971098f4",
2020-11-16 16:55:04 +00:00
"receipt": {
"to": null,
"from": "0x5B753BF02a42bC73B5846dfd16a8F2e082b99a6a",
"contractAddress": "0x3b50336E3E1E618FE74DF351966ebaD2B12cD24a",
"transactionIndex": 185,
"gasUsed": "734696",
2020-11-16 16:55:04 +00:00
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0xe6699fa9b65f348b512dd910be5ff122294295879c1da3b607d51532cecceb4e",
"transactionHash": "0xf3e7f9f39b6ca8a60cbfeaafb7fe65ddbb26e8ebd0d2b556ddac6aa1971098f4",
2020-11-16 16:55:04 +00:00
"logs": [],
"blockNumber": 11348212,
"cumulativeGasUsed": "12063473",
2020-11-16 16:55:04 +00:00
"status": 1,
"byzantium": true
},
"args": [],
"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\\\"\\npra
"bytecode": "0x608060405234801561001057600080fd5b50610c54806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80635d392c301461004657806377301f811461006f578063a99891c514610082575b600080fd5b610059610054366004610a18565b610095565b6040516100669190610ac6565b60405180910390f35b61005961007d3660046109b6565b61024e565b610059610090366004610a2d565b6102ae565b606060006060856001600160a01b0316856040516100b39190610aaa565b600060405180830381855afa9150503d80600081146100ee576040519150601f19603f3d011682016040523d82523d6000602084013e6100f3565b606091505b509150915081610120576101206040518060600160405280602f8152602001610bf0602f913982906102f0565b600081806020019051810190610136919061093f565b90506101406106f0565b604051634a3843bb60e11b8152730a7008b38e7015f8c36a49eebc32513eca8801e590639470877690610177908c90600401610ae0565b60006040518083038186803b15801561018f57600080fd5b505afa1580156101a3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101cb9190810190610853565b905060006101ea6101e08360600151856105df565b8360a00151610618565b905086811061022457604051806040016040528060138152602001724d616b65725661756c744e6f74556e7361666560681b815250610240565b604051806040016040528060028152602001614f4b60f01b8152505b9a9950505050505050505050565b6060635d392c3060e01b8686868686604051602401610271959493929190610ae9565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905095945050505050565b606060008082816102c2876004818b610b7f565b8101906102cf9190610957565b93509350935093506102e384848484610095565b9998505050505050505050565b60208251816102fb57fe5b066004141561051857602082015162461bcd60e51b6001600160e01b0319821614156104565760448301925081836040516020018083805190602001908083835b6020831061035b5780518252601f19909201916020918201910161033c565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b602083106103a35780518252601f199092019160209182019101610384565b51815160209384036101000a60001901801990921691161790526040805192909401828103601f190183529384905262461bcd60e51b84526004840181815282516024860152825192975095508594506044909301928601915080838360005b8381101561041b578181015183820152602001610403565b50505050905090810190601f1680156104485780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b816040516020018082805190602001908083835b602083106104895780518252601f19909201916020918201910161046a565b51815160001960209485036101000a0190811690199091161790526e2737a2b93937b929b2b632b1ba37b960891b9390910192835260408051601019818603018152600f85019182905262461bcd60e51b90915260138401828152815160338601528151919650945084936053019250908501908083836000831561041b578181015183820152602001610403565b806040516020018082805190602001908083835b6020831061054b5780518252601f19909201916020918201910161052c565b51815160001960209485036101000a01908116901990911617905273556e657870656374656452657475726e6461746160601b9390910192835260408051600b19818603018152601485019182905262461bcd60e51b90915260188401828152815160388601528151919650945084936058019250908501908083836000831561041b578181015183820152602001610403565b6000670de0b6b3a76400006106096105f78585610638565b6002670de0b6b3a76400005b046106a1565b8161061057fe5b049392505050565b60008161060961063085670de0b6b3a7640000610638565b600285610603565b60008115806106535750508082028282828161065057fe5b04145b61069b576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b92915050565b8082018281101561069b576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6040518061016001604052806000815260200160006001600160a01b03168152602001606081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b805161076781610bd7565b919050565b60008083601f84011261077d578182fd5b50813567ffffffffffffffff811115610794578182fd5b6020830191508360208285010111156107ac57600080fd5b9250929050565b600082601f8301126107c3578081fd5b81356107d66107d182610b5d565b610b39565b
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c80635d392c301461004657806377301f811461006f578063a99891c514610082575b600080fd5b610059610054366004610a18565b610095565b6040516100669190610ac6565b60405180910390f35b61005961007d3660046109b6565b61024e565b610059610090366004610a2d565b6102ae565b606060006060856001600160a01b0316856040516100b39190610aaa565b600060405180830381855afa9150503d80600081146100ee576040519150601f19603f3d011682016040523d82523d6000602084013e6100f3565b606091505b509150915081610120576101206040518060600160405280602f8152602001610bf0602f913982906102f0565b600081806020019051810190610136919061093f565b90506101406106f0565b604051634a3843bb60e11b8152730a7008b38e7015f8c36a49eebc32513eca8801e590639470877690610177908c90600401610ae0565b60006040518083038186803b15801561018f57600080fd5b505afa1580156101a3573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526101cb9190810190610853565b905060006101ea6101e08360600151856105df565b8360a00151610618565b905086811061022457604051806040016040528060138152602001724d616b65725661756c744e6f74556e7361666560681b815250610240565b604051806040016040528060028152602001614f4b60f01b8152505b9a9950505050505050505050565b6060635d392c3060e01b8686868686604051602401610271959493929190610ae9565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905095945050505050565b606060008082816102c2876004818b610b7f565b8101906102cf9190610957565b93509350935093506102e384848484610095565b9998505050505050505050565b60208251816102fb57fe5b066004141561051857602082015162461bcd60e51b6001600160e01b0319821614156104565760448301925081836040516020018083805190602001908083835b6020831061035b5780518252601f19909201916020918201910161033c565b51815160209384036101000a600019018019909216911617905285519190930192850191508083835b602083106103a35780518252601f199092019160209182019101610384565b51815160209384036101000a60001901801990921691161790526040805192909401828103601f190183529384905262461bcd60e51b84526004840181815282516024860152825192975095508594506044909301928601915080838360005b8381101561041b578181015183820152602001610403565b50505050905090810190601f1680156104485780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b816040516020018082805190602001908083835b602083106104895780518252601f19909201916020918201910161046a565b51815160001960209485036101000a0190811690199091161790526e2737a2b93937b929b2b632b1ba37b960891b9390910192835260408051601019818603018152600f85019182905262461bcd60e51b90915260138401828152815160338601528151919650945084936053019250908501908083836000831561041b578181015183820152602001610403565b806040516020018082805190602001908083835b6020831061054b5780518252601f19909201916020918201910161052c565b51815160001960209485036101000a01908116901990911617905273556e657870656374656452657475726e6461746160601b9390910192835260408051600b19818603018152601485019182905262461bcd60e51b90915260188401828152815160388601528151919650945084936058019250908501908083836000831561041b578181015183820152602001610403565b6000670de0b6b3a76400006106096105f78585610638565b6002670de0b6b3a76400005b046106a1565b8161061057fe5b049392505050565b60008161060961063085670de0b6b3a7640000610638565b600285610603565b60008115806106535750508082028282828161065057fe5b04145b61069b576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6d756c2d6f766572666c6f7760601b604482015290519081900360640190fd5b92915050565b8082018281101561069b576040805162461bcd60e51b815260206004820152601460248201527364732d6d6174682d6164642d6f766572666c6f7760601b604482015290519081900360640190fd5b6040518061016001604052806000815260200160006001600160a01b03168152602001606081526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160006001600160a01b031681525090565b805161076781610bd7565b919050565b60008083601f84011261077d578182fd5b50813567ffffffffffffffff811115610794578182fd5b6020830191508360208285010111156107ac57600080fd5b9250929050565b600082601f8301126107c3578081fd5b81356107d66107d182610b5d565b610b39565b91508082528360208285010111156107ed57600080fd5b8060208401
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
}
}