Gelato-automations/pre-compiles/InstaConnectors.json
2020-08-22 15:40:51 +02:00

325 lines
23 KiB
JSON

{
"contractName": "InstaConnectors",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "addr",
"type": "address"
}
],
"name": "LogAddController",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "connector",
"type": "address"
}
],
"name": "LogDisable",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "connector",
"type": "address"
}
],
"name": "LogEnable",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "connector",
"type": "address"
}
],
"name": "LogEnableStatic",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "addr",
"type": "address"
}
],
"name": "LogRemoveController",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "chief",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "connectorArray",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "connectorCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "connectorLength",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "connectors",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_connector",
"type": "address"
}
],
"name": "disable",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_userAddress",
"type": "address"
}
],
"name": "disableChief",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_connector",
"type": "address"
}
],
"name": "enable",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_userAddress",
"type": "address"
}
],
"name": "enableChief",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_connector",
"type": "address"
}
],
"name": "enableStatic",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "instaIndex",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "_connectors",
"type": "address[]"
}
],
"name": "isConnector",
"outputs": [
{
"internalType": "bool",
"name": "isOk",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "_connectors",
"type": "address[]"
}
],
"name": "isStaticConnector",
"outputs": [
{
"internalType": "bool",
"name": "isOk",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "staticConnectorArray",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "staticConnectorLength",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "staticConnectors",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b506110ee806100206000396000f3fe608060405234801561001057600080fd5b50600436106101005760003560e01c806378ba255811610097578063ae15e02c11610066578063ae15e02c1461033e578063cc712c2314610364578063e6c09edf1461036c578063f2e180491461039257610100565b806378ba25581461029a578063a41098bf146102a2578063a829f165146102aa578063ac3f83341461031857610100565b80632e1fbdce116100d35780632e1fbdce1461020e5780635bfa1b681461022857806361f827801461024e5780636b1056ae1461027457610100565b80630867fa45146101055780630e53aae91461013e5780630f70d4a714610178578063144c61fe146101a0575b600080fd5b6101226004803603602081101561011b57600080fd5b50356103af565b604080516001600160a01b039092168252519081900360200190f35b6101646004803603602081101561015457600080fd5b50356001600160a01b03166103d6565b604080519115158252519081900360200190f35b61019e6004803603602081101561018e57600080fd5b50356001600160a01b03166103eb565b005b610164600480360360208110156101b657600080fd5b810190602081018135600160201b8111156101d057600080fd5b8201836020820111156101e257600080fd5b803590602001918460208302840111600160201b8311171561020357600080fd5b509092509050610502565b610216610561565b60408051918252519081900360200190f35b61019e6004803603602081101561023e57600080fd5b50356001600160a01b0316610567565b61019e6004803603602081101561026457600080fd5b50356001600160a01b03166106f2565b6101646004803603602081101561028a57600080fd5b50356001600160a01b0316610806565b61021661081b565b610122610821565b610164600480360360208110156102c057600080fd5b810190602081018135600160201b8111156102da57600080fd5b8201836020820111156102ec57600080fd5b803590602001918460208302840111600160201b8311171561030d57600080fd5b509092509050610826565b6101646004803603602081101561032e57600080fd5b50356001600160a01b031661087e565b61019e6004803603602081101561035457600080fd5b50356001600160a01b0316610893565b610216610a13565b61019e6004803603602081101561038257600080fd5b50356001600160a01b0316610a19565b610122600480360360208110156103a857600080fd5b5035610b97565b600381815481106103bc57fe5b6000918252602090912001546001600160a01b0316905081565b60016020526000908152604090205460ff1681565b3360009081526020819052604090205460ff1680610476575060006001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b15801561043e57600080fd5b505afa158015610452573d6000803e3d6000fd5b505050506040513d602081101561046857600080fd5b50516001600160a01b031633145b6104b6576040805162461bcd60e51b815260206004820152600c60248201526b3737ba16b0b716b1b434b2b360a11b604482015290519081900360640190fd5b6001600160a01b038116600081815260208190526040808220805460ff19166001179055517f69483bb868dc7929bac7b0735c53b685aeb5438761d41d189fbcdde8011b27979190a250565b600160005b8281101561055a576002600085858481811061051f57fe5b602090810292909201356001600160a01b03168352508101919091526040016000205460ff16610552576000915061055a565b600101610507565b5092915050565b60055490565b3360009081526020819052604090205460ff16806105f2575060006001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b1580156105ba57600080fd5b505afa1580156105ce573d6000803e3d6000fd5b505050506040513d60208110156105e457600080fd5b50516001600160a01b031633145b610632576040805162461bcd60e51b815260206004820152600c60248201526b3737ba16b0b716b1b434b2b360a11b604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205460ff1615610692576040805162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4b595b98589b1959608a1b604482015290519081900360640190fd5b61069b81610ba4565b6001600160a01b0381166000818152600160208190526040808320805460ff19168317905560048054909201909155517fdc949ee4159e00c6f6c0277af4718b4329c1e113164f629e30029915196c530f9190a250565b3360009081526020819052604090205460ff168061077d575060006001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b15801561074557600080fd5b505afa158015610759573d6000803e3d6000fd5b505050506040513d602081101561076f57600080fd5b50516001600160a01b031633145b6107bd576040805162461bcd60e51b815260206004820152600c60248201526b3737ba16b0b716b1b434b2b360a11b604482015290519081900360640190fd5b6001600160a01b038116600081815260208190526040808220805460ff19169055517fb28f1bf5635ec9671f4b88cd6b50e297659dbdfbbe1dc45069e9844ec07a21a19190a250565b60006020819052908152604090205460ff1681565b60045481565b600081565b600160005b8281101561055a576001600085858481811061084357fe5b602090810292909201356001600160a01b03168352508101919091526040016000205460ff16610876576000915061055a565b60010161082b565b60026020526000908152604090205460ff1681565b3360009081526020819052604090205460ff168061091e575060006001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b1580156108e657600080fd5b505afa1580156108fa573d6000803e3d6000fd5b505050506040513d602081101561091057600080fd5b50516001600160a01b031633145b61095e576040805162461bcd60e51b815260206004820152600c60248201526b3737ba16b0b716b1b434b2b360a11b604482015290519081900360640190fd5b6001600160a01b03811660009081526002602052604090205460ff16156109be576040805162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4b595b98589b1959608a1b604482015290519081900360640190fd5b6109c781610e2e565b6001600160a01b038116600081815260026020526040808220805460ff19166001179055517fd1f70568663bd9b4f99ababac3441804970c24aacb20e350d5e0d7b14c5cdb249190a250565b60035490565b3360009081526020819052604090205460ff1680610aa4575060006001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b158015610a6c57600080fd5b505afa158015610a80573d6000803e3d6000fd5b505050506040513d6020811015610a9657600080fd5b50516001600160a01b031633145b610ae4576040805162461bcd60e51b815260206004820152600c60248201526b3737ba16b0b716b1b434b2b360a11b604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205460ff16610b44576040805162461bcd60e51b815260206004820152601060248201526f185b1c9958591e4b591a5cd8589b195960821b604482015290519081900360640190fd5b6001600160a01b038116600081815260016020526040808220805460ff1916905560048054600019019055517f388f3d05458eb2a997e29ad87ebff76b4482e8c12f760c04a84243c9907af6cc9190a250565b600581815481106103bc57fe5b6001600160a01b038116610bf5576040805162461bcd60e51b81526020600482015260136024820152722737ba16bb30b634b216b1b7b73732b1ba37b960691b604482015290519081900360640190fd5b6000816001600160a01b031663eb15f7816040518163ffffffff1660e01b8152600401604080518083038186803b158015610c2f57600080fd5b505afa158015610c43573d6000803e3d6000fd5b505050506040513d6040811015610c5957600080fd5b50602001516003549091506001018114610cb5576040805162461bcd60e51b8152602060048201526018602482015277086dedcdccac6e8dee492885ac8decae6dce85adac2e8c6d60431b604482015290519081900360640190fd5b816001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015610cee57600080fd5b505afa158015610d02573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610d2b57600080fd5b8101908080516040519392919084600160201b821115610d4a57600080fd5b908301906020820185811115610d5f57600080fd5b8251600160201b811182820188101715610d7857600080fd5b82525081516020918201929091019080838360005b83811015610da5578181015183820152602001610d8d565b50505050905090810190601f168015610dd25780820380516001836020036101000a031916815260200191505b506040525050600380546001810182556000919091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b039590951694909417909355505050565b6001600160a01b038116610e7f576040805162461bcd60e51b81526020600482015260136024820152722737ba16bb30b634b216b1b7b73732b1ba37b960691b604482015290519081900360640190fd5b6000816001600160a01b031663eb15f7816040518163ffffffff1660e01b8152600401604080518083038186803b158015610eb957600080fd5b505afa158015610ecd573d6000803e3d6000fd5b505050506040513d6040811015610ee357600080fd5b50602001516005549091506001018114610f3f576040805162461bcd60e51b8152602060048201526018602482015277086dedcdccac6e8dee492885ac8decae6dce85adac2e8c6d60431b604482015290519081900360640190fd5b816001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015610f7857600080fd5b505afa158015610f8c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610fb557600080fd5b8101908080516040519392919084600160201b821115610fd457600080fd5b908301906020820185811115610fe957600080fd5b8251600160201b81118282018810171561100257600080fd5b82525081516020918201929091019080838360005b8381101561102f578181015183820152602001611017565b50505050905090810190601f16801561105c5780820380516001836020036101000a031916815260200191505b506040525050600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b03959095169490941790935550505056fea2646970667358221220d5ce06ff3c9186f98250d3e9880beeb21fa7d4a099f494bda7c764be6cbfc1c564736f6c634300060c0033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106101005760003560e01c806378ba255811610097578063ae15e02c11610066578063ae15e02c1461033e578063cc712c2314610364578063e6c09edf1461036c578063f2e180491461039257610100565b806378ba25581461029a578063a41098bf146102a2578063a829f165146102aa578063ac3f83341461031857610100565b80632e1fbdce116100d35780632e1fbdce1461020e5780635bfa1b681461022857806361f827801461024e5780636b1056ae1461027457610100565b80630867fa45146101055780630e53aae91461013e5780630f70d4a714610178578063144c61fe146101a0575b600080fd5b6101226004803603602081101561011b57600080fd5b50356103af565b604080516001600160a01b039092168252519081900360200190f35b6101646004803603602081101561015457600080fd5b50356001600160a01b03166103d6565b604080519115158252519081900360200190f35b61019e6004803603602081101561018e57600080fd5b50356001600160a01b03166103eb565b005b610164600480360360208110156101b657600080fd5b810190602081018135600160201b8111156101d057600080fd5b8201836020820111156101e257600080fd5b803590602001918460208302840111600160201b8311171561020357600080fd5b509092509050610502565b610216610561565b60408051918252519081900360200190f35b61019e6004803603602081101561023e57600080fd5b50356001600160a01b0316610567565b61019e6004803603602081101561026457600080fd5b50356001600160a01b03166106f2565b6101646004803603602081101561028a57600080fd5b50356001600160a01b0316610806565b61021661081b565b610122610821565b610164600480360360208110156102c057600080fd5b810190602081018135600160201b8111156102da57600080fd5b8201836020820111156102ec57600080fd5b803590602001918460208302840111600160201b8311171561030d57600080fd5b509092509050610826565b6101646004803603602081101561032e57600080fd5b50356001600160a01b031661087e565b61019e6004803603602081101561035457600080fd5b50356001600160a01b0316610893565b610216610a13565b61019e6004803603602081101561038257600080fd5b50356001600160a01b0316610a19565b610122600480360360208110156103a857600080fd5b5035610b97565b600381815481106103bc57fe5b6000918252602090912001546001600160a01b0316905081565b60016020526000908152604090205460ff1681565b3360009081526020819052604090205460ff1680610476575060006001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b15801561043e57600080fd5b505afa158015610452573d6000803e3d6000fd5b505050506040513d602081101561046857600080fd5b50516001600160a01b031633145b6104b6576040805162461bcd60e51b815260206004820152600c60248201526b3737ba16b0b716b1b434b2b360a11b604482015290519081900360640190fd5b6001600160a01b038116600081815260208190526040808220805460ff19166001179055517f69483bb868dc7929bac7b0735c53b685aeb5438761d41d189fbcdde8011b27979190a250565b600160005b8281101561055a576002600085858481811061051f57fe5b602090810292909201356001600160a01b03168352508101919091526040016000205460ff16610552576000915061055a565b600101610507565b5092915050565b60055490565b3360009081526020819052604090205460ff16806105f2575060006001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b1580156105ba57600080fd5b505afa1580156105ce573d6000803e3d6000fd5b505050506040513d60208110156105e457600080fd5b50516001600160a01b031633145b610632576040805162461bcd60e51b815260206004820152600c60248201526b3737ba16b0b716b1b434b2b360a11b604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205460ff1615610692576040805162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4b595b98589b1959608a1b604482015290519081900360640190fd5b61069b81610ba4565b6001600160a01b0381166000818152600160208190526040808320805460ff19168317905560048054909201909155517fdc949ee4159e00c6f6c0277af4718b4329c1e113164f629e30029915196c530f9190a250565b3360009081526020819052604090205460ff168061077d575060006001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b15801561074557600080fd5b505afa158015610759573d6000803e3d6000fd5b505050506040513d602081101561076f57600080fd5b50516001600160a01b031633145b6107bd576040805162461bcd60e51b815260206004820152600c60248201526b3737ba16b0b716b1b434b2b360a11b604482015290519081900360640190fd5b6001600160a01b038116600081815260208190526040808220805460ff19169055517fb28f1bf5635ec9671f4b88cd6b50e297659dbdfbbe1dc45069e9844ec07a21a19190a250565b60006020819052908152604090205460ff1681565b60045481565b600081565b600160005b8281101561055a576001600085858481811061084357fe5b602090810292909201356001600160a01b03168352508101919091526040016000205460ff16610876576000915061055a565b60010161082b565b60026020526000908152604090205460ff1681565b3360009081526020819052604090205460ff168061091e575060006001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b1580156108e657600080fd5b505afa1580156108fa573d6000803e3d6000fd5b505050506040513d602081101561091057600080fd5b50516001600160a01b031633145b61095e576040805162461bcd60e51b815260206004820152600c60248201526b3737ba16b0b716b1b434b2b360a11b604482015290519081900360640190fd5b6001600160a01b03811660009081526002602052604090205460ff16156109be576040805162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e4b595b98589b1959608a1b604482015290519081900360640190fd5b6109c781610e2e565b6001600160a01b038116600081815260026020526040808220805460ff19166001179055517fd1f70568663bd9b4f99ababac3441804970c24aacb20e350d5e0d7b14c5cdb249190a250565b60035490565b3360009081526020819052604090205460ff1680610aa4575060006001600160a01b031663ee97f7f36040518163ffffffff1660e01b815260040160206040518083038186803b158015610a6c57600080fd5b505afa158015610a80573d6000803e3d6000fd5b505050506040513d6020811015610a9657600080fd5b50516001600160a01b031633145b610ae4576040805162461bcd60e51b815260206004820152600c60248201526b3737ba16b0b716b1b434b2b360a11b604482015290519081900360640190fd5b6001600160a01b03811660009081526001602052604090205460ff16610b44576040805162461bcd60e51b815260206004820152601060248201526f185b1c9958591e4b591a5cd8589b195960821b604482015290519081900360640190fd5b6001600160a01b038116600081815260016020526040808220805460ff1916905560048054600019019055517f388f3d05458eb2a997e29ad87ebff76b4482e8c12f760c04a84243c9907af6cc9190a250565b600581815481106103bc57fe5b6001600160a01b038116610bf5576040805162461bcd60e51b81526020600482015260136024820152722737ba16bb30b634b216b1b7b73732b1ba37b960691b604482015290519081900360640190fd5b6000816001600160a01b031663eb15f7816040518163ffffffff1660e01b8152600401604080518083038186803b158015610c2f57600080fd5b505afa158015610c43573d6000803e3d6000fd5b505050506040513d6040811015610c5957600080fd5b50602001516003549091506001018114610cb5576040805162461bcd60e51b8152602060048201526018602482015277086dedcdccac6e8dee492885ac8decae6dce85adac2e8c6d60431b604482015290519081900360640190fd5b816001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015610cee57600080fd5b505afa158015610d02573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610d2b57600080fd5b8101908080516040519392919084600160201b821115610d4a57600080fd5b908301906020820185811115610d5f57600080fd5b8251600160201b811182820188101715610d7857600080fd5b82525081516020918201929091019080838360005b83811015610da5578181015183820152602001610d8d565b50505050905090810190601f168015610dd25780820380516001836020036101000a031916815260200191505b506040525050600380546001810182556000919091527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180546001600160a01b0319166001600160a01b039590951694909417909355505050565b6001600160a01b038116610e7f576040805162461bcd60e51b81526020600482015260136024820152722737ba16bb30b634b216b1b7b73732b1ba37b960691b604482015290519081900360640190fd5b6000816001600160a01b031663eb15f7816040518163ffffffff1660e01b8152600401604080518083038186803b158015610eb957600080fd5b505afa158015610ecd573d6000803e3d6000fd5b505050506040513d6040811015610ee357600080fd5b50602001516005549091506001018114610f3f576040805162461bcd60e51b8152602060048201526018602482015277086dedcdccac6e8dee492885ac8decae6dce85adac2e8c6d60431b604482015290519081900360640190fd5b816001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b158015610f7857600080fd5b505afa158015610f8c573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526020811015610fb557600080fd5b8101908080516040519392919084600160201b821115610fd457600080fd5b908301906020820185811115610fe957600080fd5b8251600160201b81118282018810171561100257600080fd5b82525081516020918201929091019080838360005b8381101561102f578181015183820152602001611017565b50505050905090810190601f16801561105c5780820380516001836020036101000a031916815260200191505b506040525050600580546001810182556000919091527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db00180546001600160a01b0319166001600160a01b03959095169490941790935550505056fea2646970667358221220d5ce06ff3c9186f98250d3e9880beeb21fa7d4a099f494bda7c764be6cbfc1c564736f6c634300060c0033",
"linkReferences": {},
"deployedLinkReferences": {}
}