2020-11-16 16:55:04 +00:00
{
2020-11-28 18:32:43 +00:00
"address" : "0x19202579F1Aed3Fa00807Ac89EbD92901021A15f" ,
2020-11-16 16:55:04 +00:00
"abi" : [
{
"inputs" : [
{
"internalType" : "uint256" ,
"name" : "_vaultId" ,
"type" : "uint256"
} ,
{
"internalType" : "uint256" ,
"name" : "_ratioLimit" ,
"type" : "uint256"
}
] ,
"name" : "getConditionData" ,
"outputs" : [
{
"internalType" : "bytes" ,
"name" : "" ,
"type" : "bytes"
}
] ,
"stateMutability" : "pure" ,
"type" : "function"
} ,
{
"inputs" : [
{
"internalType" : "uint256" ,
"name" : "_vaultId" ,
"type" : "uint256"
} ,
{
"internalType" : "uint256" ,
"name" : "_ratioLimit" ,
"type" : "uint256"
}
] ,
"name" : "isAffordable" ,
"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" : "0x2af52ccf7dcf3e2f59f788d9beeab569c9fea6eb33b440992ac31e4c5356643c" ,
2020-11-16 16:55:04 +00:00
"receipt" : {
"to" : null ,
2020-11-28 18:32:43 +00:00
"from" : "0x5B753BF02a42bC73B5846dfd16a8F2e082b99a6a" ,
"contractAddress" : "0x19202579F1Aed3Fa00807Ac89EbD92901021A15f" ,
"transactionIndex" : 127 ,
"gasUsed" : "797549" ,
2020-11-16 16:55:04 +00:00
"logsBloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" ,
2020-11-28 18:32:43 +00:00
"blockHash" : "0x8153d07f3c6c291919b4b8c89c6a0c6da4d8aa6e7adbdf2e97b487717b028e75" ,
"transactionHash" : "0x2af52ccf7dcf3e2f59f788d9beeab569c9fea6eb33b440992ac31e4c5356643c" ,
2020-11-16 16:55:04 +00:00
"logs" : [ ] ,
2020-11-28 18:32:43 +00:00
"blockNumber" : 11348200 ,
"cumulativeGasUsed" : "9840264" ,
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\":\"uint256\",\"name\":\"_ratioLimit\",\"type\":\"uint256\"}],\"name\":\"getConditionData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_ratioLimit\",\"type\":\"uint256\"}],\"name\":\"isAffordable\",\"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,uint256)\":{\"details\":\"Use the return for your Task's Condition.data field off-chain.WARNING _ratioLimit should be in wad standard.\",\"returns\":{\"_0\":\"The encoded payload for your Task's Condition.data field.\"}},\"isAffordable(uint256,uint256)\":{\"details\":\"Check if the debt refinancing action is affordable.WARNING _ratioLimit should be in wad standard.\",\"params\":{\"_ratioLimit\":\"the maximum limit define by the user up on which the debt is too expensive for him\",\"_vaultId\":\"The id of the Maker vault\"},\"returns\":{\"_0\":\"OK if the Debt Bridge is affordable, 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\":\"ConditionDebtBridgeIsAffordable\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"getConditionData(uint256,uint256)\":{\"notice\":\"Convenience function for off-chain _conditionData encoding\"},\"isAffordable(uint256,uint256)\":{\"notice\":\"Specific implementation of this Condition's ok function\"},\"ok(uint256,bytes,uint256)\":{\"notice\":\"Standard GelatoCore system function\"}},\"notice\":\"Condition checking if Debt Refinance is affordable.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/contracts/gelato/conditions/ConditionDebtBridgeIsAffordable.sol\":\"ConditionDebtBridgeIsAffordable\"},\"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\\\"\\npragma solidity >=0.6.10;\\npragma experimental ABIEncoderV2;\\n\\n/// @title IGelatoCondition - solidity interface of GelatoConditionsStandard\\n/// @notice all the APIs of GelatoConditionsStandard\\n/// @dev all the APIs are implemented inside GelatoConditionsStandard\\ninterface IGelatoCondition {\\n\\n /// @notice GelatoCore calls this to verify securely the specified Condition securely\\n /// @dev Be careful only to encode a Task's condition.data as is and not with the\\n /// \\\"ok\\\" s e l e c t o r o r _ t a s k R e c e i p t I d , s i n c e t h o s e t w o t h i n g s a r e h a n d l e d b
"bytecode" : " 0 x 608060405234801561001057600080 f d 5 b 50610 d 79806100206000396000 f 3 f e 608060405234801561001057600080 f d 5 b 50600436106100415760003560e01 c 8063 a 99891 c 514610046578063 b e 9 e e a 981461006 f 578063 c 39 d b 98314610082575 b 600080 f d 5 b 610059610054366004610 b 52565 b 610095565 b 6040516100669190610 c 4 f 565 b 60405180910390 f 35 b 61005961007 d 366004610 b c f 565 b 6100 c d 565 b 610059610090366004610 b c f 565 b 610195565 b 60606000806100 a 78560048189610 d 1 b 565 b 8101906100 b 49190610 b c f 565 b 915091506100 c 282826100 c d 565 b 979650505050505050565 b 606060006100 d a 846101 e c 565 b 9050600061011e6101196000610114736 b 175474e89094 c 44 d a 98 b 954 e e d e a c 495271 d 0 f 61010 f 61010 a 8 b 61030 d 565 b 610572565 b 610586565 b 610692565 b 6106 f 2565 b 90508361012 b 8284610705565 b 1061016 f 576040518060400160405280601781526020017 f 446562744272696467654e6 f 744166666 f 726461626 c 650000000000000000008152509250505061018 f 565 b 604051806040016040528060028152602001614 f 4 b 60 f 0 1 b 815250925050505 b 92915050565 b 606063 b e 9 e e a 9860e01 b 83836040516024016101 b 2929190610 d 0 d 565 b 60408051601 f 198184030181529190526020810180516001600160e01 b 0 3166001600160e01 b 0 31990931692909217909152905092915050565 b 600080735 e f 30 b 9986345249 b c 32 d 8928 b 7 e e 64 d e 9435e3990506000816001600160 a 0 1 b 0 3166336569e776040518163 f f f f f f f f 1660e01 b 815260040160206040518083038186803 b 15801561024157600080 f d 5 b 505 a f a 158015610255573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 602081101561026 b 57600080 f d 5 b 5051905060008061027 c 8487610736565 b 915091506000836001600160 a 0 1 b 0 316632424 b e 5 c 84846040518363 f f f f f f f f 1660e01 b 815260040180838152602001826001600160 a 0 1 b 0 316815260200192505050604080518083038186803 b 1580156102 d 657600080 f d 5 b 505 a f a 1580156102 e a 573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 604081101561030057600080 f d 5 b 5051979650505050505050565 b 6000735 e f 30 b 9986345249 b c 32 d 8928 b 7 e e 64 d e 9435e3981806103308386610736565 b 915091506000836001600160 a 0 1 b 0 3166336569e776040518163 f f f f f f f f 1660e01 b 815260040160206040518083038186803 b 15801561036 f 57600080 f d 5 b 505 a f a 158015610383573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 602081101561039957600080 f d 5 b 505160408051636 c b 1 c 69 b 60e11 b 81526004810186905290519192506000916001600160 a 0 1 b 0 384169163 d 9638 d 369160248083019260 a 0 929190829003018186803 b 1580156103e857600080 f d 5 b 505 a f a 1580156103 f c 573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 60 a 0 81101561041257600080 f d 5 b 5060200151604080516309092 f 9760e21 b 8152600481018790526001600160 a 0 1 b 0 38681166024830152825193945060009390861692632424 b e 5 c 9260448082019391829003018186803 b 15801561046957600080 f d 5 b 505 a f a 15801561047 d 573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 604081101561049357600080 f d 5 b 5060209081015160408051633612 d 9 a 360e11 b 81526001600160 a 0 1 b 0 38881166004830152915192945060009391871692636 c 25 b 34692602480840193919291829003018186803 b 1580156104e757600080 f d 5 b 505 a f a 1580156104 f b 573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 602081101561051157600080 f d 5 b 50519050600061052 a 610524848661082 b 565 b 8361088e565 b 90506 b 0 33 b 2e3 c 9 f d 0 803 c e 800000081049850806105548 a 6 b 0 33 b 2e3 c 9 f d 0 803 c e 800000061082 b 565 b 1061055 f 5788610564565 b 886001015 b 9 a 9950505050505050505050565 b 600061018 f 82670 d f 27 a 2 c d f 4480006108 d e 565 b 6000610590610 a a d 565 b 604051635 a 860 c 8760e01 b 815273 a 0 0 4 a 5 a f b a 0 4 b 74037e9 e 52 b a 1 f 7 e b 0 2 b 5e6150990635 a 860 c 87906105 c 7908790600401610 c 3 b 565 b 60806040518083038186803 b 1580156105 d f 57600080 f d 5 b 505 a f a 1580156105 f 3573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 601 f 19601 f 820116820180604052508101906106179190610 a f 3565 b 9050828160000151111561062 f 57600091505061018 f 565 b 828160200151111561064557600191505061018 f 565 b 828160400151111561065 b 57600291505061018 f 565 b 828160600151111561067157600391505061018 f 565 b 60405162461 b c d 60e51 b 815260040161068990610 c b f 565 b 60405180910390 f d 5 b 600061069 d 82610906565 b 6106 e b 836106 c 2576106 a d 61092 a 565 b 83600481106106 b 857 f e 5 b 60200201516106e6565 b 6106e66106 c d 61092 a 565 b 84600481106106 d 857 f e 5 b 6020020151620249 f 0 610964565 b 6109 b 3565 b 9392505050565 b 600061018 f 826107006109 d 5565 b 61082 b 565 b 60008161072761071 d 85670 d e 0 b 6 b 3 a 764000061082 b 565 b 6002855 b 0 4610964565 b 8161072e57 f e 5 b 0 49392505050565 b 600080836001600160 a 0 1 b 0 316632 c 2 c b 9 f d 846040518263 f f f f f f f f 1660e01 b 81526004018082815260200191505060206040518083038186803 b 15801561077 d 57600080 f d 5 b 505 a f a 158015610791573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 60208110156107 a 757600080 f d 5 b 505160408051632726 b 0 7360e01 b 81526004810186905290519193506001600160 a 0 1 b 0 3861691632726 b 0 73916024
"deployedBytecode" : " 0 x 608060405234801561001057600080 f d 5 b 50600436106100415760003560e01 c 8063 a 99891 c 514610046578063 b e 9 e e a 981461006 f 578063 c 39 d b 98314610082575 b 600080 f d 5 b 610059610054366004610 b 52565 b 610095565 b 6040516100669190610 c 4 f 565 b 60405180910390 f 35 b 61005961007 d 366004610 b c f 565 b 6100 c d 565 b 610059610090366004610 b c f 565 b 610195565 b 60606000806100 a 78560048189610 d 1 b 565 b 8101906100 b 49190610 b c f 565 b 915091506100 c 282826100 c d 565 b 979650505050505050565 b 606060006100 d a 846101 e c 565 b 9050600061011e6101196000610114736 b 175474e89094 c 44 d a 98 b 954 e e d e a c 495271 d 0 f 61010 f 61010 a 8 b 61030 d 565 b 610572565 b 610586565 b 610692565 b 6106 f 2565 b 90508361012 b 8284610705565 b 1061016 f 576040518060400160405280601781526020017 f 446562744272696467654e6 f 744166666 f 726461626 c 650000000000000000008152509250505061018 f 565 b 604051806040016040528060028152602001614 f 4 b 60 f 0 1 b 815250925050505 b 92915050565 b 606063 b e 9 e e a 9860e01 b 83836040516024016101 b 2929190610 d 0 d 565 b 60408051601 f 198184030181529190526020810180516001600160e01 b 0 3166001600160e01 b 0 31990931692909217909152905092915050565 b 600080735 e f 30 b 9986345249 b c 32 d 8928 b 7 e e 64 d e 9435e3990506000816001600160 a 0 1 b 0 3166336569e776040518163 f f f f f f f f 1660e01 b 815260040160206040518083038186803 b 15801561024157600080 f d 5 b 505 a f a 158015610255573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 602081101561026 b 57600080 f d 5 b 5051905060008061027 c 8487610736565 b 915091506000836001600160 a 0 1 b 0 316632424 b e 5 c 84846040518363 f f f f f f f f 1660e01 b 815260040180838152602001826001600160 a 0 1 b 0 316815260200192505050604080518083038186803 b 1580156102 d 657600080 f d 5 b 505 a f a 1580156102 e a 573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 604081101561030057600080 f d 5 b 5051979650505050505050565 b 6000735 e f 30 b 9986345249 b c 32 d 8928 b 7 e e 64 d e 9435e3981806103308386610736565 b 915091506000836001600160 a 0 1 b 0 3166336569e776040518163 f f f f f f f f 1660e01 b 815260040160206040518083038186803 b 15801561036 f 57600080 f d 5 b 505 a f a 158015610383573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 602081101561039957600080 f d 5 b 505160408051636 c b 1 c 69 b 60e11 b 81526004810186905290519192506000916001600160 a 0 1 b 0 384169163 d 9638 d 369160248083019260 a 0 929190829003018186803 b 1580156103e857600080 f d 5 b 505 a f a 1580156103 f c 573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 60 a 0 81101561041257600080 f d 5 b 5060200151604080516309092 f 9760e21 b 8152600481018790526001600160 a 0 1 b 0 38681166024830152825193945060009390861692632424 b e 5 c 9260448082019391829003018186803 b 15801561046957600080 f d 5 b 505 a f a 15801561047 d 573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 604081101561049357600080 f d 5 b 5060209081015160408051633612 d 9 a 360e11 b 81526001600160 a 0 1 b 0 38881166004830152915192945060009391871692636 c 25 b 34692602480840193919291829003018186803 b 1580156104e757600080 f d 5 b 505 a f a 1580156104 f b 573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 602081101561051157600080 f d 5 b 50519050600061052 a 610524848661082 b 565 b 8361088e565 b 90506 b 0 33 b 2e3 c 9 f d 0 803 c e 800000081049850806105548 a 6 b 0 33 b 2e3 c 9 f d 0 803 c e 800000061082 b 565 b 1061055 f 5788610564565 b 886001015 b 9 a 9950505050505050505050565 b 600061018 f 82670 d f 27 a 2 c d f 4480006108 d e 565 b 6000610590610 a a d 565 b 604051635 a 860 c 8760e01 b 815273 a 0 0 4 a 5 a f b a 0 4 b 74037e9 e 52 b a 1 f 7 e b 0 2 b 5e6150990635 a 860 c 87906105 c 7908790600401610 c 3 b 565 b 60806040518083038186803 b 1580156105 d f 57600080 f d 5 b 505 a f a 1580156105 f 3573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 601 f 19601 f 820116820180604052508101906106179190610 a f 3565 b 9050828160000151111561062 f 57600091505061018 f 565 b 828160200151111561064557600191505061018 f 565 b 828160400151111561065 b 57600291505061018 f 565 b 828160600151111561067157600391505061018 f 565 b 60405162461 b c d 60e51 b 815260040161068990610 c b f 565 b 60405180910390 f d 5 b 600061069 d 82610906565 b 6106 e b 836106 c 2576106 a d 61092 a 565 b 83600481106106 b 857 f e 5 b 60200201516106e6565 b 6106e66106 c d 61092 a 565 b 84600481106106 d 857 f e 5 b 6020020151620249 f 0 610964565 b 6109 b 3565 b 9392505050565 b 600061018 f 826107006109 d 5565 b 61082 b 565 b 60008161072761071 d 85670 d e 0 b 6 b 3 a 764000061082 b 565 b 6002855 b 0 4610964565 b 8161072e57 f e 5 b 0 49392505050565 b 600080836001600160 a 0 1 b 0 316632 c 2 c b 9 f d 846040518263 f f f f f f f f 1660e01 b 81526004018082815260200191505060206040518083038186803 b 15801561077 d 57600080 f d 5 b 505 a f a 158015610791573 d 6000803e3 d 6000 f d 5 b 505050506040513 d 60208110156107 a 757600080 f d 5 b 505160408051632726 b 0 7360e01 b 81526004810186905290519193506001600160 a 0 1 b 0 3861691632726 b 0 7391602480820192602092909190829003018186803 b 1580156107 f 457600080
2020-11-16 16:55:04 +00:00
"devdoc" : {
"author" : "Gelato Team" ,
"kind" : "dev" ,
"methods" : {
"getConditionData(uint256,uint256)" : {
"details" : "Use the return for your Task's Condition.data field off-chain.WARNING _ratioLimit should be in wad standard." ,
"returns" : {
"_0" : "The encoded payload for your Task's Condition.data field."
}
} ,
"isAffordable(uint256,uint256)" : {
"details" : "Check if the debt refinancing action is affordable.WARNING _ratioLimit should be in wad standard." ,
"params" : {
"_ratioLimit" : "the maximum limit define by the user up on which the debt is too expensive for him" ,
"_vaultId" : "The id of the Maker vault"
} ,
"returns" : {
"_0" : "OK if the Debt Bridge is affordable, 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" : "ConditionDebtBridgeIsAffordable" ,
"version" : 1
} ,
"userdoc" : {
"kind" : "user" ,
"methods" : {
"getConditionData(uint256,uint256)" : {
"notice" : "Convenience function for off-chain _conditionData encoding"
} ,
"isAffordable(uint256,uint256)" : {
"notice" : "Specific implementation of this Condition's ok function"
} ,
"ok(uint256,bytes,uint256)" : {
"notice" : "Standard GelatoCore system function"
}
} ,
"notice" : "Condition checking if Debt Refinance is affordable." ,
"version" : 1
} ,
"storageLayout" : {
"storage" : [ ] ,
"types" : null
}
}