Gelato-automations/deployments/mainnet/ConditionBorrowAmountIsDust.json

167 lines
45 KiB
JSON
Raw Permalink Normal View History

2020-12-02 08:30:07 +00:00
{
"address": "0xe5E50CF4b85D6C3C08AD0C5932717C8118BBE6f4",
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_vaultId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_wDaiToBorrow",
"type": "uint256"
},
{
"internalType": "string",
"name": "_colType",
"type": "string"
}
],
"name": "borrowAmountIsDustExplicit",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_dsa",
"type": "address"
},
{
"internalType": "uint256",
"name": "_fromVaultId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_destVaultId",
"type": "uint256"
},
{
"internalType": "string",
"name": "_destColType",
"type": "string"
}
],
"name": "getConditionData",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_dsa",
"type": "address"
},
{
"internalType": "uint256",
"name": "_fromVaultId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_destVaultId",
"type": "uint256"
},
{
"internalType": "string",
"name": "_destColType",
"type": "string"
}
],
"name": "isBorrowAmountDust",
"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": "0x21be61bbe6347c8ccb1f1f3b16a631d736b738a47a344d53903db3f56c31ea6b",
"receipt": {
"to": null,
"from": "0xF953c3d475dc0a9877329F71e2CE3d2519a519A2",
"contractAddress": "0xe5E50CF4b85D6C3C08AD0C5932717C8118BBE6f4",
"transactionIndex": 98,
"gasUsed": "982020",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0x95179f20d356072763b4cd647a3a43c6f3c10ef63875e83c66fccf25904583d7",
"transactionHash": "0x21be61bbe6347c8ccb1f1f3b16a631d736b738a47a344d53903db3f56c31ea6b",
"logs": [],
"blockNumber": 11371546,
"cumulativeGasUsed": "4695080",
"status": 1,
"byzantium": true
},
"args": [],
"solcInputHash": "0c702ccad6439e7f34b6d311a794eaa1",
"metadata": "{\"compiler\":{\"version\":\"0.7.4+commit.3f05b770\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_vaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_wDaiToBorrow\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_colType\",\"type\":\"string\"}],\"name\":\"borrowAmountIsDustExplicit\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_dsa\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_fromVaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_destVaultId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_destColType\",\"type\":\"string\"}],\"name\":\"getConditionData\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_dsa\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_fromVaultId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_destVaultId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_destColType\",\"type\":\"string\"}],\"name\":\"isBorrowAmountDust\",\"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\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/contracts/gelato/conditions/ConditionBorrowAmountIsDust.sol\":\"ConditionBorrowAmountIsDust\"},\"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\\\" selector or _taskReceiptId, since those two things are handled by GelatoCore.\\n /// @param _taskReceiptId This is passed by GelatoCore so we can rely on it as a secure\\n /// source of Task identification.\\n /// @param _conditionData This is the Condition.data field developers must encode their\\n /// Condition's specific parameters in.\\n /// @param _cycleId For Tasks that are executed as part of a cycle.\\n function ok(uint256 _taskReceiptId, bytes calldata _conditionData, uint256 _cycleId)\\n external\\n view\\n returns(string memory);\\n}\",\"keccak256\":\"0xd07607af93227ec5f8c2f5401289937b98c298f0d2398c1ba7410f82a6253964\",\"license\":\"UNLICENSED\"},\"con
"bytecode": "0x608060405234801561001057600080fd5b506110cf806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80632effac911461005157806361d10bf01461007a578063a99891c51461008d578063dba43282146100a0575b600080fd5b61006461005f366004610d89565b6100c0565b6040516100719190610f93565b60405180910390f35b610064610088366004610dea565b610151565b61006461009b366004610e52565b6101b1565b6100b36100ae366004610ea3565b6101f3565b6040516100719190610f88565b60606100cc838661021c565b6100d75760006100d9565b825b925060006100e685610426565b90506100f38482856101f3565b61011757604051806040016040528060028152602001614f4b60f01b815250610147565b604051806040016040528060168152602001751119589d139bdd11dc99585d195c951a185b911d5cdd60521b8152505b9695505050505050565b6060632effac9160e01b8686868686604051602401610174959493929190610f3c565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905095945050505050565b606060008080836101c5876004818b610fad565b8101906101d29190610d89565b93509350935093506101e6848484846100c0565b9998505050505050505050565b6000831561020a57610205848461068b565b610214565b61021482846108e2565b949350505050565b60008261022b57506000610420565b735ef30b9986345249bc32d8928b7ee64de9435e396001600160a01b0316638161b120846040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561028357600080fd5b505afa9250505080156102a857506040513d60208110156102a357600080fd5b505160015b61040f576102b4610fdb565b806102bf57506103c2565b806040516020018080742326b0b5b2b9172fb4b9ab30bab63a27bbb732b91d60591b81525060150182805190602001908083835b602083106103125780518252601f1990920191602091820191016102f3565b51815160209384036101000a60001901801990921691161790526040805192909401828103601f190183529384905262461bcd60e51b84526004840181815282516024860152825192965094508493604401925085019080838360005b8381101561038757818101518382015260200161036f565b50505050905090810190601f1680156103b45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040805162461bcd60e51b815260206004820152601e60248201527f464d616b65722e5f69735661756c744f776e65723a756e646566696e65640000604482015290519081900360640190fd5b6001600160a01b0383811691161490505b92915050565b6000735ef30b9986345249bc32d8928b7ee64de9435e3981806104498386610a20565b915091506000836001600160a01b03166336569e776040518163ffffffff1660e01b815260040160206040518083038186803b15801561048857600080fd5b505afa15801561049c573d6000803e3d6000fd5b505050506040513d60208110156104b257600080fd5b505160408051636cb1c69b60e11b81526004810186905290519192506000916001600160a01b0384169163d9638d369160248083019260a0929190829003018186803b15801561050157600080fd5b505afa158015610515573d6000803e3d6000fd5b505050506040513d60a081101561052b57600080fd5b5060200151604080516309092f9760e21b8152600481018790526001600160a01b038681166024830152825193945060009390861692632424be5c9260448082019391829003018186803b15801561058257600080fd5b505afa158015610596573d6000803e3d6000fd5b505050506040513d60408110156105ac57600080fd5b5060209081015160408051633612d9a360e11b81526001600160a01b038881166004830152915192945060009391871692636c25b34692602480840193919291829003018186803b15801561060057600080fd5b505afa158015610614573d6000803e3d6000fd5b505050506040513d602081101561062a57600080fd5b50519050600061064361063d8486610b15565b83610b78565b90506b033b2e3c9fd0803ce8000000810498508061066d8a6b033b2e3c9fd0803ce8000000610b15565b10610678578861067d565b886001015b9a9950505050505050505050565b600080735ef30b9986345249bc32d8928b7ee64de9435e3990506000816001600160a01b03166336569e776040518163ffffffff1660e01b815260040160206040518083038186803b1580156106e057600080fd5b505afa1580156106f4573d6000803e3d6000fd5b505050506040513d602081101561070a57600080fd5b5051905060008061071b8488610a20565b915091506000836001600160a01b0316632424be5c84846040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050604080518083038186803b15801561077557600080fd5b505afa158015610789573d6000803e3d6000fd5b505050506040513d604081101561079f57600080fd5b506020015160408051636cb1c69b60e11b815260048101869052905191925060009182916001600160a01b0388169163d9638d36916024
"deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80632effac911461005157806361d10bf01461007a578063a99891c51461008d578063dba43282146100a0575b600080fd5b61006461005f366004610d89565b6100c0565b6040516100719190610f93565b60405180910390f35b610064610088366004610dea565b610151565b61006461009b366004610e52565b6101b1565b6100b36100ae366004610ea3565b6101f3565b6040516100719190610f88565b60606100cc838661021c565b6100d75760006100d9565b825b925060006100e685610426565b90506100f38482856101f3565b61011757604051806040016040528060028152602001614f4b60f01b815250610147565b604051806040016040528060168152602001751119589d139bdd11dc99585d195c951a185b911d5cdd60521b8152505b9695505050505050565b6060632effac9160e01b8686868686604051602401610174959493929190610f3c565b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152905095945050505050565b606060008080836101c5876004818b610fad565b8101906101d29190610d89565b93509350935093506101e6848484846100c0565b9998505050505050505050565b6000831561020a57610205848461068b565b610214565b61021482846108e2565b949350505050565b60008261022b57506000610420565b735ef30b9986345249bc32d8928b7ee64de9435e396001600160a01b0316638161b120846040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561028357600080fd5b505afa9250505080156102a857506040513d60208110156102a357600080fd5b505160015b61040f576102b4610fdb565b806102bf57506103c2565b806040516020018080742326b0b5b2b9172fb4b9ab30bab63a27bbb732b91d60591b81525060150182805190602001908083835b602083106103125780518252601f1990920191602091820191016102f3565b51815160209384036101000a60001901801990921691161790526040805192909401828103601f190183529384905262461bcd60e51b84526004840181815282516024860152825192965094508493604401925085019080838360005b8381101561038757818101518382015260200161036f565b50505050905090810190601f1680156103b45780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b6040805162461bcd60e51b815260206004820152601e60248201527f464d616b65722e5f69735661756c744f776e65723a756e646566696e65640000604482015290519081900360640190fd5b6001600160a01b0383811691161490505b92915050565b6000735ef30b9986345249bc32d8928b7ee64de9435e3981806104498386610a20565b915091506000836001600160a01b03166336569e776040518163ffffffff1660e01b815260040160206040518083038186803b15801561048857600080fd5b505afa15801561049c573d6000803e3d6000fd5b505050506040513d60208110156104b257600080fd5b505160408051636cb1c69b60e11b81526004810186905290519192506000916001600160a01b0384169163d9638d369160248083019260a0929190829003018186803b15801561050157600080fd5b505afa158015610515573d6000803e3d6000fd5b505050506040513d60a081101561052b57600080fd5b5060200151604080516309092f9760e21b8152600481018790526001600160a01b038681166024830152825193945060009390861692632424be5c9260448082019391829003018186803b15801561058257600080fd5b505afa158015610596573d6000803e3d6000fd5b505050506040513d60408110156105ac57600080fd5b5060209081015160408051633612d9a360e11b81526001600160a01b038881166004830152915192945060009391871692636c25b34692602480840193919291829003018186803b15801561060057600080fd5b505afa158015610614573d6000803e3d6000fd5b505050506040513d602081101561062a57600080fd5b50519050600061064361063d8486610b15565b83610b78565b90506b033b2e3c9fd0803ce8000000810498508061066d8a6b033b2e3c9fd0803ce8000000610b15565b10610678578861067d565b886001015b9a9950505050505050505050565b600080735ef30b9986345249bc32d8928b7ee64de9435e3990506000816001600160a01b03166336569e776040518163ffffffff1660e01b815260040160206040518083038186803b1580156106e057600080fd5b505afa1580156106f4573d6000803e3d6000fd5b505050506040513d602081101561070a57600080fd5b5051905060008061071b8488610a20565b915091506000836001600160a01b0316632424be5c84846040518363ffffffff1660e01b815260040180838152602001826001600160a01b0316815260200192505050604080518083038186803b15801561077557600080fd5b505afa158015610789573d6000803e3d6000fd5b505050506040513d604081101561079f57600080fd5b506020015160408051636cb1c69b60e11b815260048101869052905191925060009182916001600160a01b0388169163d9638d369160248082019260a092909190829003018186803b1580156107f457600080
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
},
"storageLayout": {
"storage": [],
"types": null
}
}