mirror of
https://github.com/Instadapp/Gelato-automations.git
synced 2024-07-29 22:28:07 +00:00
198 lines
19 KiB
JSON
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": "0x608060405234801561001057600080fd5b50610ed5806100206000396000f3fe60806040526004361061007f5760003560e01c806370d39cff1161004e57806370d39cff14610125578063a41098bf1461013a578063e0e90acf1461015c578063e6c09edf1461016f57610086565b80632520e7ff1461008b578063501b9b67146100c157806354fd4d50146100e35780635bfa1b681461010557610086565b3661008657005b600080fd5b34801561009757600080fd5b506100ab6100a6366004610ae9565b61018f565b6040516100b89190610c43565b60405180910390f35b3480156100cd57600080fd5b506100e16100dc366004610ba9565b6101ad565b005b3480156100ef57600080fd5b506100f861025d565b6040516100b89190610e2b565b34801561011157600080fd5b506100e1610120366004610ae9565b610262565b34801561013157600080fd5b506100ab61040a565b34801561014657600080fd5b5061014f610413565b6040516100b89190610be1565b6100e161016a366004610b28565b610418565b34801561017b57600080fd5b506100e161018a366004610ae9565b6108b3565b6001600160a01b031660009081526020819052604090205460ff1690565b3360009081526020819052604090205460ff166101e55760405162461bcd60e51b81526004016101dc90610d69565b60405180910390fd5b60015460ff161515811515141561020e5760405162461bcd60e51b81526004016101dc90610e04565b6001805460ff191682151517908190556040517f38a4860f1db0d5ebd83e321dae638039485f74aca43265d0772f95ac9267830d916102529160ff90911690610c43565b60405180910390a150565b600181565b3330148061026e575033155b61028a5760405162461bcd60e51b81526004016101dc90610c9f565b6001600160a01b0381166102b05760405162461bcd60e51b81526004016101dc90610c4e565b6001600160a01b03811660009081526020819052604090205460ff16156102e95760405162461bcd60e51b81526004016101dc90610d40565b6001600160a01b038116600090815260208181526040808320805460ff191660011790558051630f560cd760e01b81529051630f560cd792600480840193919291829003018186803b15801561033e57600080fd5b505afa158015610352573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103769190610b0c565b6001600160a01b0316635422224e826040518263ffffffff1660e01b81526004016103a19190610be1565b600060405180830381600087803b1580156103bb57600080fd5b505af11580156103cf573d6000803e3d6000fd5b50506040516001600160a01b03841692507fdc949ee4159e00c6f6c0277af4718b4329c1e113164f629e30029915196c530f9150600090a250565b60015460ff1681565b600081565b6104213361018f565b8061042a575033155b6104465760405162461bcd60e51b81526004016101dc90610dd9565b8382146104655760405162461bcd60e51b81526004016101dc90610c71565b60015460009060ff168061058e576040516313ede1a160e01b81526001600160a01b038316906313ede1a1906104a090600190600401610e2b565b60206040518083038186803b1580156104b857600080fd5b505afa1580156104cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f09190610b0c565b6001600160a01b031663a829f16588886040518363ffffffff1660e01b815260040161051d929190610bf5565b60206040518083038186803b15801561053557600080fd5b505afa158015610549573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056d9190610bc5565b6105895760405162461bcd60e51b81526004016101dc90610cc7565b6106a4565b6040516313ede1a160e01b81526001600160a01b038316906313ede1a1906105bb90600190600401610e2b565b60206040518083038186803b1580156105d357600080fd5b505afa1580156105e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060b9190610b0c565b6001600160a01b031663144c61fe88886040518363ffffffff1660e01b8152600401610638929190610bf5565b60206040518083038186803b15801561065057600080fd5b505afa158015610664573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106889190610bc5565b6106a45760405162461bcd60e51b81526004016101dc90610dab565b60005b868110156107335761072b8888838181106106be57fe5b90506020020160208101906106d39190610ae9565b8787848181106106df57fe5b90506020028101906106f19190610e34565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610a4e92505050565b6001016106a7565b506040516305f72f4560e41b81526000906001600160a01b03841690635f72f4509061076490600190600401610e2b565b60206040518083038186803b15801561077c57600080fd5b505afa158015610790573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b49190610b0c565b90506001600160a01b038116158015906107cc575081155b1561085e578060016001
|
||
|
"deployedBytecode": "0x60806040526004361061007f5760003560e01c806370d39cff1161004e57806370d39cff14610125578063a41098bf1461013a578063e0e90acf1461015c578063e6c09edf1461016f57610086565b80632520e7ff1461008b578063501b9b67146100c157806354fd4d50146100e35780635bfa1b681461010557610086565b3661008657005b600080fd5b34801561009757600080fd5b506100ab6100a6366004610ae9565b61018f565b6040516100b89190610c43565b60405180910390f35b3480156100cd57600080fd5b506100e16100dc366004610ba9565b6101ad565b005b3480156100ef57600080fd5b506100f861025d565b6040516100b89190610e2b565b34801561011157600080fd5b506100e1610120366004610ae9565b610262565b34801561013157600080fd5b506100ab61040a565b34801561014657600080fd5b5061014f610413565b6040516100b89190610be1565b6100e161016a366004610b28565b610418565b34801561017b57600080fd5b506100e161018a366004610ae9565b6108b3565b6001600160a01b031660009081526020819052604090205460ff1690565b3360009081526020819052604090205460ff166101e55760405162461bcd60e51b81526004016101dc90610d69565b60405180910390fd5b60015460ff161515811515141561020e5760405162461bcd60e51b81526004016101dc90610e04565b6001805460ff191682151517908190556040517f38a4860f1db0d5ebd83e321dae638039485f74aca43265d0772f95ac9267830d916102529160ff90911690610c43565b60405180910390a150565b600181565b3330148061026e575033155b61028a5760405162461bcd60e51b81526004016101dc90610c9f565b6001600160a01b0381166102b05760405162461bcd60e51b81526004016101dc90610c4e565b6001600160a01b03811660009081526020819052604090205460ff16156102e95760405162461bcd60e51b81526004016101dc90610d40565b6001600160a01b038116600090815260208181526040808320805460ff191660011790558051630f560cd760e01b81529051630f560cd792600480840193919291829003018186803b15801561033e57600080fd5b505afa158015610352573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103769190610b0c565b6001600160a01b0316635422224e826040518263ffffffff1660e01b81526004016103a19190610be1565b600060405180830381600087803b1580156103bb57600080fd5b505af11580156103cf573d6000803e3d6000fd5b50506040516001600160a01b03841692507fdc949ee4159e00c6f6c0277af4718b4329c1e113164f629e30029915196c530f9150600090a250565b60015460ff1681565b600081565b6104213361018f565b8061042a575033155b6104465760405162461bcd60e51b81526004016101dc90610dd9565b8382146104655760405162461bcd60e51b81526004016101dc90610c71565b60015460009060ff168061058e576040516313ede1a160e01b81526001600160a01b038316906313ede1a1906104a090600190600401610e2b565b60206040518083038186803b1580156104b857600080fd5b505afa1580156104cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104f09190610b0c565b6001600160a01b031663a829f16588886040518363ffffffff1660e01b815260040161051d929190610bf5565b60206040518083038186803b15801561053557600080fd5b505afa158015610549573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056d9190610bc5565b6105895760405162461bcd60e51b81526004016101dc90610cc7565b6106a4565b6040516313ede1a160e01b81526001600160a01b038316906313ede1a1906105bb90600190600401610e2b565b60206040518083038186803b1580156105d357600080fd5b505afa1580156105e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060b9190610b0c565b6001600160a01b031663144c61fe88886040518363ffffffff1660e01b8152600401610638929190610bf5565b60206040518083038186803b15801561065057600080fd5b505afa158015610664573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106889190610bc5565b6106a45760405162461bcd60e51b81526004016101dc90610dab565b60005b868110156107335761072b8888838181106106be57fe5b90506020020160208101906106d39190610ae9565b8787848181106106df57fe5b90506020028101906106f19190610e34565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250610a4e92505050565b6001016106a7565b506040516305f72f4560e41b81526000906001600160a01b03841690635f72f4509061076490600190600401610e2b565b60206040518083038186803b15801561077c57600080fd5b505afa158015610790573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107b49190610b0c565b90506001600160a01b038116158015906107cc575081155b1561085e57806001600160a01b031663d957dd3c6040518163ffffffff1660e01b8152600401
|
||
|
"linkReferences": {},
|
||
|
"deployedLinkReferences": {}
|
||
|
}
|