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

198 lines
19 KiB
JSON

{
"contractName": "InstaAccount",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "origin",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "LogCast",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "LogDisable",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "LogEnable",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "bool",
"name": "_shield",
"type": "bool"
}
],
"name": "LogSwitchShield",
"type": "event"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "_targets",
"type": "address[]"
},
{
"internalType": "bytes[]",
"name": "_datas",
"type": "bytes[]"
},
{
"internalType": "address",
"name": "_origin",
"type": "address"
}
],
"name": "cast",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "disable",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "enable",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "instaIndex",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "isAuth",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "shield",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "_shield",
"type": "bool"
}
],
"name": "switchShield",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "version",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"stateMutability": "payable",
"type": "receive"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50610ed5806100206000396000f3fe60806040526004361061007f5760003560e01c806370d39cff1161004e57806370d39cff14610125578063a41098bf1461013a578063e0e90acf1461015c578063e6c09edf1461016f57610086565b80632520e7ff1461008b578063501b9b67146100c157806354fd4d50146100e35780635bfa1b681461010557610086565b3661008657005b600080fd5b34801561009757600080fd5b506100ab6100a6366004610ae9565b61018f565b6040516100b89190610c43565b60405180910390f35b3480156100cd57600080fd5b506100e16100dc366004610ba9565b6101ad565b005b3480156100ef57600080fd5b506100f861025d565b6040516100b89190610e2b565b34801561011157600080fd5b506100e1610120366004610ae9565b610262565b34801561013157600080fd5b506100ab61040a565b34801561014657600080fd5b5061014f610413565b6040516100b89190610be1565b6100e161016a366004610b28565b610418565b34801561017b57600080fd5b506100e161018a366004610ae9565b6108b3565b6001600160a01b031660009081526020819052604090205460ff1690565b3360009081526020819052604090205460ff166101e55760405162461bcd60e51b81526004016101dc90610d69565b60405180910390fd5b60015460ff161515811515141561020e5760405162461bcd60e51b81526004016101dc90610e04565b6001805460ff191682151517908190556040517f38a4860f1db0d5ebd83e321dae638039485f74aca43265d0772f95ac9267830d916102529160ff90911690610c43565b60405180910390a150565b600181565b3330148061026e575033155b61028a5760405162461bcd60e51b81526004016101dc90610c9f565b6001600160a01b0381166102b05760405162461bcd60e51b81526004016101dc90610c4e565b6001600160a01b03811660009081526020819052604090205460ff16156102e95760405162461bcd60e51b81526004016101dc90610d40565b6001600160a01b038116600090815260208181526040808320805460ff191660011790558051630f560cd760e01b81529051630f560cd792600480840193919291829003018186803b15801561033e57600080fd5b505afa158015610352573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103769190610b0c565b6001600160a01b0316635422224e826040518263ffffffff1660e01b81526004016103a19190610be1565b600060405180830381600087803b1580156103bb57600080fd5b505af11580156103cf573d6000803e3d6000fd5b50506040516001600160a01b03841692507fdc949ee4159e00c6f6c0277af4718b4329c1e113164f629e30029915196c530f9150600090a250565b60015460ff1681565b600081565b6104213361018f565b8061042a575033155b6104465760405162461bcd60e51b81526004016101dc90610dd9565b8382146104655760405162461bcd60e51b81526004016101dc90610c71565b60015460009060ff168061058e576040516313ede1a160e01b81526001600160a01b038316906313ede1a1906104a090600190600401610e2b565b60206040518083038186803b1580156104b857600080fd5b505afa1580156104cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f09190610b0c565b6001600160a01b031663a829f16588886040518363ffffffff1660e01b815260040161051d929190610bf5565b60206040518083038186803b15801561053557600080fd5b505afa158015610549573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056d9190610bc5565b6105895760405162461bcd60e51b81526004016101dc90610cc7565b6106a4565b6040516313ede1a160e01b81526001600160a01b038316906313ede1a1906105bb90600190600401610e2b565b60206040518083038186803b1580156105d357600080fd5b505afa1580156105e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060b9190610b0c565b6001600160a01b031663144c61fe88886040518363ffffffff1660e01b8152600401610638929190610bf5565b60206040518083038186803b15801561065057600080fd5b505afa158015610664573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106889190610bc5565b6106a45760405162461bcd60e51b81526004016101dc90610dab565b60005b868110156107335761072b8888838181106106be57fe5b90506020020160208101906106d39190610ae9565b8787848181106106df57fe5b90506020028101906106f19190610e34565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610a4e92505050565b6001016106a7565b506040516305f72f4560e41b81526000906001600160a01b03841690635f72f4509061076490600190600401610e2b565b60206040518083038186803b15801561077c57600080fd5b505afa158015610790573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b49190610b0c565b90506001600160a01b038116158015906107cc575081155b1561085e57806001600160a01b031663d957dd3c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561080a57600080fd5b505afa15801561081e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108429190610bc5565b61085e5760405162461bcd60e51b81526004016101dc90610d8b565b336001600160a01b0316846001600160a01b03167f88c16fce368c171f39a2eb45acade4f8e2316d6c47b08e53f941ca3f90bc6ef2346040516108a19190610e2b565b60405180910390a35050505050505050565b3330146108d25760405162461bcd60e51b81526004016101dc90610d69565b6001600160a01b0381166108f85760405162461bcd60e51b81526004016101dc90610c4e565b6001600160a01b03811660009081526020819052604090205460ff166109305760405162461bcd60e51b81526004016101dc90610d16565b6001600160a01b038116600090815260208181526040808320805460ff191690558051630f560cd760e01b81529051630f560cd792600480840193919291829003018186803b15801561098257600080fd5b505afa158015610996573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ba9190610b0c565b6001600160a01b0316637f3fd918826040518263ffffffff1660e01b81526004016109e59190610be1565b600060405180830381600087803b1580156109ff57600080fd5b505af1158015610a13573d6000803e3d6000fd5b50506040516001600160a01b03841692507f388f3d05458eb2a997e29ad87ebff76b4482e8c12f760c04a84243c9907af6cc9150600090a250565b6001600160a01b038216610a745760405162461bcd60e51b81526004016101dc90610cee565b600080825160208401855af4801560018114610a8f57610a9a565b3d806000803e806000fd5b50505050565b60008083601f840112610ab1578182fd5b50813567ffffffffffffffff811115610ac8578182fd5b6020830191508360208083028501011115610ae257600080fd5b9250929050565b600060208284031215610afa578081fd5b8135610b0581610e79565b9392505050565b600060208284031215610b1d578081fd5b8151610b0581610e79565b600080600080600060608688031215610b3f578081fd5b853567ffffffffffffffff80821115610b56578283fd5b610b6289838a01610aa0565b90975095506020880135915080821115610b7a578283fd5b50610b8788828901610aa0565b9094509250506040860135610b9b81610e79565b809150509295509295909350565b600060208284031215610bba578081fd5b8135610b0581610e91565b600060208284031215610bd6578081fd5b8151610b0581610e91565b6001600160a01b0391909116815260200190565b60208082528181018390526000908460408401835b86811015610c38578235610c1d81610e79565b6001600160a01b031682529183019190830190600101610c0a565b509695505050505050565b901515815260200190565b6020808252600990820152681b9bdd0b5d985b1a5960ba1b604082015260600190565b602080825260149082015273185c9c985e4b5b195b99dd1a0b5a5b9d985b1a5960621b604082015260600190565b6020808252600e908201526d0dcdee85ae6cad8cc5ad2dcc8caf60931b604082015260600190565b6020808252600d908201526c3737ba16b1b7b73732b1ba37b960991b604082015260600190565b6020808252600e908201526d1d185c99d95d0b5a5b9d985b1a5960921b604082015260600190565b60208082526010908201526f185b1c9958591e4b591a5cd8589b195960821b604082015260600190565b6020808252600f908201526e185b1c9958591e4b595b98589b1959608a1b604082015260600190565b6020808252600890820152673737ba16b9b2b63360c11b604082015260600190565b6020808252600690820152656e6f742d6f6b60d01b604082015260600190565b6020808252601490820152733737ba16b9ba30ba34b196b1b7b73732b1ba37b960611b604082015260600190565b6020808252601190820152701c195c9b5a5cdcda5bdb8b59195b9a5959607a1b604082015260600190565b6020808252600d908201526c1cda1a595b19081a5cc81cd95d609a1b604082015260600190565b90815260200190565b6000808335601e19843603018112610e4a578283fd5b83018035915067ffffffffffffffff821115610e64578283fd5b602001915036819003821315610ae257600080fd5b6001600160a01b0381168114610e8e57600080fd5b50565b8015158114610e8e57600080fdfea2646970667358221220dab0d709c029d38b0ffd0ac8adc90e297884e43a5c5ece8a8cb7e5cbd0a8629f64736f6c634300060c0033",
"deployedBytecode": "0x60806040526004361061007f5760003560e01c806370d39cff1161004e57806370d39cff14610125578063a41098bf1461013a578063e0e90acf1461015c578063e6c09edf1461016f57610086565b80632520e7ff1461008b578063501b9b67146100c157806354fd4d50146100e35780635bfa1b681461010557610086565b3661008657005b600080fd5b34801561009757600080fd5b506100ab6100a6366004610ae9565b61018f565b6040516100b89190610c43565b60405180910390f35b3480156100cd57600080fd5b506100e16100dc366004610ba9565b6101ad565b005b3480156100ef57600080fd5b506100f861025d565b6040516100b89190610e2b565b34801561011157600080fd5b506100e1610120366004610ae9565b610262565b34801561013157600080fd5b506100ab61040a565b34801561014657600080fd5b5061014f610413565b6040516100b89190610be1565b6100e161016a366004610b28565b610418565b34801561017b57600080fd5b506100e161018a366004610ae9565b6108b3565b6001600160a01b031660009081526020819052604090205460ff1690565b3360009081526020819052604090205460ff166101e55760405162461bcd60e51b81526004016101dc90610d69565b60405180910390fd5b60015460ff161515811515141561020e5760405162461bcd60e51b81526004016101dc90610e04565b6001805460ff191682151517908190556040517f38a4860f1db0d5ebd83e321dae638039485f74aca43265d0772f95ac9267830d916102529160ff90911690610c43565b60405180910390a150565b600181565b3330148061026e575033155b61028a5760405162461bcd60e51b81526004016101dc90610c9f565b6001600160a01b0381166102b05760405162461bcd60e51b81526004016101dc90610c4e565b6001600160a01b03811660009081526020819052604090205460ff16156102e95760405162461bcd60e51b81526004016101dc90610d40565b6001600160a01b038116600090815260208181526040808320805460ff191660011790558051630f560cd760e01b81529051630f560cd792600480840193919291829003018186803b15801561033e57600080fd5b505afa158015610352573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103769190610b0c565b6001600160a01b0316635422224e826040518263ffffffff1660e01b81526004016103a19190610be1565b600060405180830381600087803b1580156103bb57600080fd5b505af11580156103cf573d6000803e3d6000fd5b50506040516001600160a01b03841692507fdc949ee4159e00c6f6c0277af4718b4329c1e113164f629e30029915196c530f9150600090a250565b60015460ff1681565b600081565b6104213361018f565b8061042a575033155b6104465760405162461bcd60e51b81526004016101dc90610dd9565b8382146104655760405162461bcd60e51b81526004016101dc90610c71565b60015460009060ff168061058e576040516313ede1a160e01b81526001600160a01b038316906313ede1a1906104a090600190600401610e2b565b60206040518083038186803b1580156104b857600080fd5b505afa1580156104cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f09190610b0c565b6001600160a01b031663a829f16588886040518363ffffffff1660e01b815260040161051d929190610bf5565b60206040518083038186803b15801561053557600080fd5b505afa158015610549573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056d9190610bc5565b6105895760405162461bcd60e51b81526004016101dc90610cc7565b6106a4565b6040516313ede1a160e01b81526001600160a01b038316906313ede1a1906105bb90600190600401610e2b565b60206040518083038186803b1580156105d357600080fd5b505afa1580156105e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060b9190610b0c565b6001600160a01b031663144c61fe88886040518363ffffffff1660e01b8152600401610638929190610bf5565b60206040518083038186803b15801561065057600080fd5b505afa158015610664573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106889190610bc5565b6106a45760405162461bcd60e51b81526004016101dc90610dab565b60005b868110156107335761072b8888838181106106be57fe5b90506020020160208101906106d39190610ae9565b8787848181106106df57fe5b90506020028101906106f19190610e34565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610a4e92505050565b6001016106a7565b506040516305f72f4560e41b81526000906001600160a01b03841690635f72f4509061076490600190600401610e2b565b60206040518083038186803b15801561077c57600080fd5b505afa158015610790573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b49190610b0c565b90506001600160a01b038116158015906107cc575081155b1561085e57806001600160a01b031663d957dd3c6040518163ffffffff1660e01b815260040160206040518083038186803b15801561080a57600080fd5b505afa15801561081e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108429190610bc5565b61085e5760405162461bcd60e51b81526004016101dc90610d8b565b336001600160a01b0316846001600160a01b03167f88c16fce368c171f39a2eb45acade4f8e2316d6c47b08e53f941ca3f90bc6ef2346040516108a19190610e2b565b60405180910390a35050505050505050565b3330146108d25760405162461bcd60e51b81526004016101dc90610d69565b6001600160a01b0381166108f85760405162461bcd60e51b81526004016101dc90610c4e565b6001600160a01b03811660009081526020819052604090205460ff166109305760405162461bcd60e51b81526004016101dc90610d16565b6001600160a01b038116600090815260208181526040808320805460ff191690558051630f560cd760e01b81529051630f560cd792600480840193919291829003018186803b15801561098257600080fd5b505afa158015610996573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109ba9190610b0c565b6001600160a01b0316637f3fd918826040518263ffffffff1660e01b81526004016109e59190610be1565b600060405180830381600087803b1580156109ff57600080fd5b505af1158015610a13573d6000803e3d6000fd5b50506040516001600160a01b03841692507f388f3d05458eb2a997e29ad87ebff76b4482e8c12f760c04a84243c9907af6cc9150600090a250565b6001600160a01b038216610a745760405162461bcd60e51b81526004016101dc90610cee565b600080825160208401855af4801560018114610a8f57610a9a565b3d806000803e806000fd5b50505050565b60008083601f840112610ab1578182fd5b50813567ffffffffffffffff811115610ac8578182fd5b6020830191508360208083028501011115610ae257600080fd5b9250929050565b600060208284031215610afa578081fd5b8135610b0581610e79565b9392505050565b600060208284031215610b1d578081fd5b8151610b0581610e79565b600080600080600060608688031215610b3f578081fd5b853567ffffffffffffffff80821115610b56578283fd5b610b6289838a01610aa0565b90975095506020880135915080821115610b7a578283fd5b50610b8788828901610aa0565b9094509250506040860135610b9b81610e79565b809150509295509295909350565b600060208284031215610bba578081fd5b8135610b0581610e91565b600060208284031215610bd6578081fd5b8151610b0581610e91565b6001600160a01b0391909116815260200190565b60208082528181018390526000908460408401835b86811015610c38578235610c1d81610e79565b6001600160a01b031682529183019190830190600101610c0a565b509695505050505050565b901515815260200190565b6020808252600990820152681b9bdd0b5d985b1a5960ba1b604082015260600190565b602080825260149082015273185c9c985e4b5b195b99dd1a0b5a5b9d985b1a5960621b604082015260600190565b6020808252600e908201526d0dcdee85ae6cad8cc5ad2dcc8caf60931b604082015260600190565b6020808252600d908201526c3737ba16b1b7b73732b1ba37b960991b604082015260600190565b6020808252600e908201526d1d185c99d95d0b5a5b9d985b1a5960921b604082015260600190565b60208082526010908201526f185b1c9958591e4b591a5cd8589b195960821b604082015260600190565b6020808252600f908201526e185b1c9958591e4b595b98589b1959608a1b604082015260600190565b6020808252600890820152673737ba16b9b2b63360c11b604082015260600190565b6020808252600690820152656e6f742d6f6b60d01b604082015260600190565b6020808252601490820152733737ba16b9ba30ba34b196b1b7b73732b1ba37b960611b604082015260600190565b6020808252601190820152701c195c9b5a5cdcda5bdb8b59195b9a5959607a1b604082015260600190565b6020808252600d908201526c1cda1a595b19081a5cc81cd95d609a1b604082015260600190565b90815260200190565b6000808335601e19843603018112610e4a578283fd5b83018035915067ffffffffffffffff821115610e64578283fd5b602001915036819003821315610ae257600080fd5b6001600160a01b0381168114610e8e57600080fd5b50565b8015158114610e8e57600080fdfea2646970667358221220dab0d709c029d38b0ffd0ac8adc90e297884e43a5c5ece8a8cb7e5cbd0a8629f64736f6c634300060c0033",
"linkReferences": {},
"deployedLinkReferences": {}
}