Gelato-automations/deployments/mainnet/ConnectGelatoProviderPayment.json

293 lines
83 KiB
JSON
Raw Normal View History

2020-11-16 16:55:04 +00:00
{
"address": "0xc65C7f3cb264b181810D3E86291639F0811Acf1E",
2020-11-16 16:55:04 +00:00
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "address",
"name": "_gelatoProvider",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"inputs": [],
"name": "GELATO_CORE",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "connectorID",
"outputs": [
{
"internalType": "uint256",
"name": "_type",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "gelatoProvider",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "isOwner",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_token",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amt",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_getId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_setId",
"type": "uint256"
}
],
"name": "payProvider",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_gelatoProvider",
"type": "address"
}
],
"name": "setProvider",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"transactionHash": "0x345b341fccf41a219daabaddec70fa7c93aaa027dcd6394ab9ca07d0b354c173",
2020-11-16 16:55:04 +00:00
"receipt": {
"to": null,
"from": "0xe1F076849B781b1395Fd332dC1758Dbc129be6EC",
"contractAddress": "0xc65C7f3cb264b181810D3E86291639F0811Acf1E",
"transactionIndex": 153,
2020-11-16 16:55:04 +00:00
"gasUsed": "908271",
"logsBloom": "0x00000000000000000000000000000000000000000000080000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000004000000000400000000002000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000010020000000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0xa2b8122453b3876cead45d05f9fd50cfe0804c9f662fcd055b35799254cfa7ec",
"transactionHash": "0x345b341fccf41a219daabaddec70fa7c93aaa027dcd6394ab9ca07d0b354c173",
2020-11-16 16:55:04 +00:00
"logs": [
{
"transactionIndex": 153,
"blockNumber": 11273867,
"transactionHash": "0x345b341fccf41a219daabaddec70fa7c93aaa027dcd6394ab9ca07d0b354c173",
"address": "0xc65C7f3cb264b181810D3E86291639F0811Acf1E",
2020-11-16 16:55:04 +00:00
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x000000000000000000000000e1f076849b781b1395fd332dc1758dbc129be6ec"
],
"data": "0x",
"logIndex": 244,
"blockHash": "0xa2b8122453b3876cead45d05f9fd50cfe0804c9f662fcd055b35799254cfa7ec"
2020-11-16 16:55:04 +00:00
}
],
"blockNumber": 11273867,
"cumulativeGasUsed": "11058664",
2020-11-16 16:55:04 +00:00
"status": 1,
"byzantium": true
},
"args": [52, "0xe1F076849B781b1395Fd332dC1758Dbc129be6EC"],
"solcInputHash": "d1d4184366927728b52537856ecb8f22",
"metadata": "{\"compiler\":{\"version\":\"0.7.4+commit.3f05b770\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_gelatoProvider\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"GELATO_CORE\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"connectorID\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_type\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gelatoProvider\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_amt\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_getId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_setId\",\"type\":\"uint256\"}],\"name\":\"payProvider\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_gelatoProvider\",\"type\":\"address\"}],\"name\":\"setProvider\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"author\":\"Gelato Team\",\"kind\":\"dev\",\"methods\":{\"connectorID()\":{\"details\":\"Connector Details\"},\"isOwner()\":{\"details\":\"Returns true if the caller is the current owner.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"payProvider(address,uint256,uint256,uint256)\":{\"details\":\"Gelato Provider risks: - _getId does not match actual InstaMemory gelatoProvider payment slot - _token balance not in DSA - worthless _token risk payable to be compatible in conjunction with DSA.cast payable target\",\"params\":{\"_amt\":\"The amount of _token to pay the Gelato Provider.\",\"_getId\":\"The InstaMemory slot at which the payment amount was stored.\",\"_setId\":\"The InstaMemory slot to save the gelatoProvider payout amound in.\",\"_token\":\"The token used to pay the Provider.\"}},\"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.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"}},\"title\":\"ConnectGelatoProviderPayment\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"payProvider(address,uint256,uint256,uint256)\":{\"notice\":\"Tr
"bytecode": "0x60c060405234801561001057600080fd5b50604051610fe1380380610fe18339818101604052604081101561003357600080fd5b508051602090910151600080546001600160a01b03191633178082556040516001600160a01b039190911691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3806001600160a01b0381166100cb5760405162461bcd60e51b8152600401808060200182810382526032815260200180610faf6032913960400191505060405180910390fd5b50608082905230606081901b60a052600180546001600160a01b0319166001600160a01b0390931692909217909155610e98610117600039806102bf5250806106285250610e986000f3fe6080604052600436106100915760003560e01c80638f32d59b116100595780638f32d59b146101b5578063bdde7cb7146101de578063cfd8d6c0146101f3578063eb15f78114610226578063f2fde38b1461025457610091565b806306fdde03146100965780631d8ca214146101205780636d7765e414610151578063715018a61461018b5780638da5cb5b146101a0575b600080fd5b3480156100a257600080fd5b506100ab610287565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561012c57600080fd5b506101356102a3565b604080516001600160a01b039092168252519081900360200190f35b6101896004803603608081101561016757600080fd5b506001600160a01b0381351690602081013590604081013590606001356102bb565b005b34801561019757600080fd5b5061018961048e565b3480156101ac57600080fd5b50610135610531565b3480156101c157600080fd5b506101ca610541565b604080519115158252519081900360200190f35b3480156101ea57600080fd5b50610135610552565b3480156101ff57600080fd5b506101896004803603602081101561021657600080fd5b50356001600160a01b0316610561565b34801561023257600080fd5b5061023b610623565b6040805192835260208301919091528051918290030190f35b34801561026057600080fd5b506101896004803603602081101561027757600080fd5b50356001600160a01b031661064a565b604051806060016040528060218152602001610de66021913981565b731d681d76ce96e4d70a88a00ebbcfc1e47808d0b881565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663bdde7cb76040518163ffffffff1660e01b815260040160206040518083038186803b15801561031657600080fd5b505afa15801561032a573d6000803e3d6000fd5b505050506040513d602081101561034057600080fd5b50519050600061035084866106af565b905061035c838261074b565b6001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561047257731d681d76ce96e4d70a88a00ebbcfc1e47808d0b86001600160a01b03166328d0cad782846040518363ffffffff1660e01b815260040180826001600160a01b031681526020019150506000604051808303818588803b1580156103e457600080fd5b505af1935050505080156103f6575060015b61046d57610402610c7f565b8061040d5750610436565b610430604051806060016040528060368152602001610d4b6036913982906107c3565b5061046d565b60405162461bcd60e51b815260040180806020018281038252603f815260200180610da7603f913960400191505060405180910390fd5b610486565b6104866001600160a01b03871683836108f2565b505050505050565b610496610541565b6104e7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03165b90565b6000546001600160a01b0316331490565b6001546001600160a01b031681565b610569610541565b6105ba576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b806001600160a01b0381166106005760405162461bcd60e51b8152600401808060200182810382526032815260200180610e316032913960400191505060405180910390fd5b50600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001907f000000000000000000000000000000000000000000000000000000000000000090565b610652610541565b6106a3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6106ac81610949565b50565b6000821561074257738a5419cfc711b2343c17a6abf4b2bafabb06957f6001600160a01b031663a9c70eaa8460405182
"deployedBytecode": "0x6080604052600436106100915760003560e01c80638f32d59b116100595780638f32d59b146101b5578063bdde7cb7146101de578063cfd8d6c0146101f3578063eb15f78114610226578063f2fde38b1461025457610091565b806306fdde03146100965780631d8ca214146101205780636d7765e414610151578063715018a61461018b5780638da5cb5b146101a0575b600080fd5b3480156100a257600080fd5b506100ab610287565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100e55781810151838201526020016100cd565b50505050905090810190601f1680156101125780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561012c57600080fd5b506101356102a3565b604080516001600160a01b039092168252519081900360200190f35b6101896004803603608081101561016757600080fd5b506001600160a01b0381351690602081013590604081013590606001356102bb565b005b34801561019757600080fd5b5061018961048e565b3480156101ac57600080fd5b50610135610531565b3480156101c157600080fd5b506101ca610541565b604080519115158252519081900360200190f35b3480156101ea57600080fd5b50610135610552565b3480156101ff57600080fd5b506101896004803603602081101561021657600080fd5b50356001600160a01b0316610561565b34801561023257600080fd5b5061023b610623565b6040805192835260208301919091528051918290030190f35b34801561026057600080fd5b506101896004803603602081101561027757600080fd5b50356001600160a01b031661064a565b604051806060016040528060218152602001610de66021913981565b731d681d76ce96e4d70a88a00ebbcfc1e47808d0b881565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663bdde7cb76040518163ffffffff1660e01b815260040160206040518083038186803b15801561031657600080fd5b505afa15801561032a573d6000803e3d6000fd5b505050506040513d602081101561034057600080fd5b50519050600061035084866106af565b905061035c838261074b565b6001600160a01b03861673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee141561047257731d681d76ce96e4d70a88a00ebbcfc1e47808d0b86001600160a01b03166328d0cad782846040518363ffffffff1660e01b815260040180826001600160a01b031681526020019150506000604051808303818588803b1580156103e457600080fd5b505af1935050505080156103f6575060015b61046d57610402610c7f565b8061040d5750610436565b610430604051806060016040528060368152602001610d4b6036913982906107c3565b5061046d565b60405162461bcd60e51b815260040180806020018281038252603f815260200180610da7603f913960400191505060405180910390fd5b610486565b6104866001600160a01b03871683836108f2565b505050505050565b610496610541565b6104e7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b03165b90565b6000546001600160a01b0316331490565b6001546001600160a01b031681565b610569610541565b6105ba576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b806001600160a01b0381166106005760405162461bcd60e51b8152600401808060200182810382526032815260200180610e316032913960400191505060405180910390fd5b50600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001907f000000000000000000000000000000000000000000000000000000000000000090565b610652610541565b6106a3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6106ac81610949565b50565b6000821561074257738a5419cfc711b2343c17a6abf4b2bafabb06957f6001600160a01b031663a9c70eaa846040518263ffffffff1660e01b815260040180828152602001915050602060405180830381600087803b15801561071157600080fd5b505af1158015610725573d6000803e3d6000fd5b505050506040513d602081101561073b57600080fd5b5051610744565b815b9392505050565b81156107bf5760408051631878f25160e21b815260048101849052602481018390529051738a5419cfc711b2343c17a6abf4b2bafabb06957f916361e3c94491604480830192600092919082900301818387803b1580156107ab57600080fd5b505af1158015610486573d6000803e3d6000fd5b5050565b80826040516020018083805190602001908083835b602083106107f75780518252601f199092019160209182019101
2020-11-16 16:55:04 +00:00
"devdoc": {
"author": "Gelato Team",
"kind": "dev",
"methods": {
"connectorID()": {
"details": "Connector Details"
},
"isOwner()": {
"details": "Returns true if the caller is the current owner."
},
"owner()": {
"details": "Returns the address of the current owner."
},
"payProvider(address,uint256,uint256,uint256)": {
"details": "Gelato Provider risks: - _getId does not match actual InstaMemory gelatoProvider payment slot - _token balance not in DSA - worthless _token risk payable to be compatible in conjunction with DSA.cast payable target",
"params": {
"_amt": "The amount of _token to pay the Gelato Provider.",
"_getId": "The InstaMemory slot at which the payment amount was stored.",
"_setId": "The InstaMemory slot to save the gelatoProvider payout amound in.",
"_token": "The token used to pay the Provider."
}
},
"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."
},
"transferOwnership(address)": {
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
}
},
"title": "ConnectGelatoProviderPayment",
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"payProvider(address,uint256,uint256,uint256)": {
"notice": "Transfers automation gas fees to Gelato Provider"
},
"setProvider(address)": {
"notice": "Set the gelatoProvider address that will be paid for executing a task"
}
},
"notice": "InstaDapp Connector to compensate Gelato automation-gas Providers.",
"version": 1
},
"storageLayout": {
"storage": [
{
"astId": 5577,
"contract": "contracts/contracts/connectors/ConnectGelatoProviderPayment.sol:ConnectGelatoProviderPayment",
"label": "_owner",
"offset": 0,
"slot": "0",
"type": "t_address"
},
{
"astId": 2610,
"contract": "contracts/contracts/connectors/ConnectGelatoProviderPayment.sol:ConnectGelatoProviderPayment",
"label": "gelatoProvider",
"offset": 0,
"slot": "1",
"type": "t_address"
}
],
"types": {
"t_address": {
"encoding": "inplace",
"label": "address",
"numberOfBytes": "20"
}
}
}
}