Skip to content

Instantly share code, notes, and snippets.

@gitpusha
Created January 23, 2020 08:59
Show Gist options
  • Save gitpusha/bab23eb922dc740a2900ce79976b8c4e to your computer and use it in GitHub Desktop.
Save gitpusha/bab23eb922dc740a2900ce79976b8c4e to your computer and use it in GitHub Desktop.
GelatoCore at 0x8456FEcB4F2FbcB5992b3533428F82f98C40f55C
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "executor",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "executionClaimId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IGelatoTrigger",
"name": "trigger",
"type": "address"
},
{
"indexed": false,
"internalType": "enum GelatoCoreEnums.CanExecuteResults",
"name": "canExecuteResult",
"type": "uint8"
},
{
"indexed": false,
"internalType": "uint8",
"name": "reason",
"type": "uint8"
}
],
"name": "LogCanExecuteFailed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "executor",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "executionClaimId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IGelatoTrigger",
"name": "trigger",
"type": "address"
},
{
"indexed": false,
"internalType": "enum GelatoCoreEnums.CanExecuteResults",
"name": "canExecuteResult",
"type": "uint8"
},
{
"indexed": false,
"internalType": "uint8",
"name": "reason",
"type": "uint8"
}
],
"name": "LogCanExecuteSuccess",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "contract IGelatoUserProxy",
"name": "userProxy",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
}
],
"name": "LogCreateUserProxy",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address payable",
"name": "executor",
"type": "address"
}
],
"name": "LogDeregisterExecutor",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "executionClaimId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "cancelor",
"type": "address"
},
{
"indexed": false,
"internalType": "bool",
"name": "executionClaimExpired",
"type": "bool"
}
],
"name": "LogExecutionClaimCancelled",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "selectedExecutor",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "executionClaimId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IGelatoUserProxy",
"name": "userProxy",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IGelatoTrigger",
"name": "trigger",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "triggerPayloadWithSelector",
"type": "bytes"
},
{
"indexed": false,
"internalType": "contract IGelatoAction",
"name": "action",
"type": "address"
},
{
"indexed": false,
"internalType": "bytes",
"name": "actionPayloadWithSelector",
"type": "bytes"
},
{
"indexed": false,
"internalType": "uint256[3]",
"name": "triggerGasActionTotalGasMinExecutionGas",
"type": "uint256[3]"
},
{
"indexed": false,
"internalType": "uint256",
"name": "executionClaimExpiryDate",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "mintingDeposit",
"type": "uint256"
}
],
"name": "LogExecutionClaimMinted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "executor",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "executionClaimId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address payable",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IGelatoTrigger",
"name": "trigger",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IGelatoAction",
"name": "action",
"type": "address"
},
{
"indexed": false,
"internalType": "string",
"name": "executionFailureReason",
"type": "string"
}
],
"name": "LogExecutionFailure",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address payable",
"name": "executor",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "executorPrice",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "executorClaimLifespan",
"type": "uint256"
}
],
"name": "LogRegisterExecutor",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "executorClaimLifespan",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newExecutorClaimLifespan",
"type": "uint256"
}
],
"name": "LogSetExecutorClaimLifespan",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "executorPrice",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newExecutorPrice",
"type": "uint256"
}
],
"name": "LogSetExecutorPrice",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "gelatoCoreExecGasOverhead",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_newGasOverhead",
"type": "uint256"
}
],
"name": "LogSetGelatoCoreExecGasOverhead",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "minExecutionClaimLifespan",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "newMinExecutionClaimLifespan",
"type": "uint256"
}
],
"name": "LogSetMinExecutionClaimLifespan",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "userProxyExecGasOverhead",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "_newGasOverhead",
"type": "uint256"
}
],
"name": "LogSetUserProxyExecGasOverhead",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "executor",
"type": "address"
},
{
"indexed": true,
"internalType": "uint256",
"name": "executionClaimId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IGelatoTrigger",
"name": "trigger",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IGelatoAction",
"name": "action",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "gasPriceUsed",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "executionCostEstimate",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "executorReward",
"type": "uint256"
}
],
"name": "LogSuccessfulExecution",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "executor",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "withdrawAmount",
"type": "uint256"
}
],
"name": "LogWithdrawExecutorBalance",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_executionClaimId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_user",
"type": "address"
},
{
"internalType": "contract IGelatoUserProxy",
"name": "_userProxy",
"type": "address"
},
{
"internalType": "contract IGelatoTrigger",
"name": "_trigger",
"type": "address"
},
{
"internalType": "bytes",
"name": "_triggerPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "contract IGelatoAction",
"name": "_action",
"type": "address"
},
{
"internalType": "bytes",
"name": "_actionPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "uint256[3]",
"name": "_triggerGasActionGasMinExecutionGas",
"type": "uint256[3]"
},
{
"internalType": "uint256",
"name": "_executionClaimExpiryDate",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_mintingDeposit",
"type": "uint256"
}
],
"name": "canExecute",
"outputs": [
{
"internalType": "enum GelatoCoreEnums.CanExecuteResults",
"name": "",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "reason",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_selectedExecutor",
"type": "address"
},
{
"internalType": "uint256",
"name": "_executionClaimId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_user",
"type": "address"
},
{
"internalType": "contract IGelatoUserProxy",
"name": "_userProxy",
"type": "address"
},
{
"internalType": "contract IGelatoTrigger",
"name": "_trigger",
"type": "address"
},
{
"internalType": "bytes",
"name": "_triggerPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "contract IGelatoAction",
"name": "_action",
"type": "address"
},
{
"internalType": "bytes",
"name": "_actionPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "uint256[3]",
"name": "_triggerGasActionGasMinExecutionGas",
"type": "uint256[3]"
},
{
"internalType": "uint256",
"name": "_executionClaimExpiryDate",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_mintingDeposit",
"type": "uint256"
}
],
"name": "cancelExecutionClaim",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "createGasTestUserProxy",
"outputs": [
{
"internalType": "address",
"name": "gasTestUserProxy",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "createUserProxy",
"outputs": [
{
"internalType": "contract IGelatoUserProxy",
"name": "userProxy",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "deregisterExecutor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_executionClaimId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_user",
"type": "address"
},
{
"internalType": "contract IGelatoUserProxy",
"name": "_userProxy",
"type": "address"
},
{
"internalType": "contract IGelatoTrigger",
"name": "_trigger",
"type": "address"
},
{
"internalType": "bytes",
"name": "_triggerPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "contract IGelatoAction",
"name": "_action",
"type": "address"
},
{
"internalType": "bytes",
"name": "_actionPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "uint256[3]",
"name": "_triggerGasActionGasMinExecutionGas",
"type": "uint256[3]"
},
{
"internalType": "uint256",
"name": "_executionClaimExpiryDate",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_mintingDeposit",
"type": "uint256"
}
],
"name": "execute",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "executionClaimHash",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "executorBalance",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "executorClaimLifespan",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "executorPrice",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IGelatoUserProxy",
"name": "_gasTestUserProxy",
"type": "address"
},
{
"internalType": "contract IGelatoAction",
"name": "_action",
"type": "address"
},
{
"internalType": "bytes",
"name": "_actionPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "_actionGas",
"type": "uint256"
}
],
"name": "gasTestActionViaGasTestUserProxy",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_executionClaimId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_user",
"type": "address"
},
{
"internalType": "contract IGelatoUserProxy",
"name": "_userProxy",
"type": "address"
},
{
"internalType": "contract IGelatoTrigger",
"name": "_trigger",
"type": "address"
},
{
"internalType": "bytes",
"name": "_triggerPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "contract IGelatoAction",
"name": "_action",
"type": "address"
},
{
"internalType": "bytes",
"name": "_actionPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "uint256[3]",
"name": "_triggerGasActionGasMinExecutionGas",
"type": "uint256[3]"
},
{
"internalType": "uint256",
"name": "_executionClaimExpiryDate",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_mintingDeposit",
"type": "uint256"
}
],
"name": "gasTestCanExecute",
"outputs": [
{
"internalType": "enum GelatoCoreEnums.CanExecuteResults",
"name": "canExecuteResult",
"type": "uint8"
},
{
"internalType": "uint8",
"name": "reason",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_executionClaimId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_user",
"type": "address"
},
{
"internalType": "contract IGelatoUserProxy",
"name": "_userProxy",
"type": "address"
},
{
"internalType": "contract IGelatoTrigger",
"name": "_trigger",
"type": "address"
},
{
"internalType": "bytes",
"name": "_triggerPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "contract IGelatoAction",
"name": "_action",
"type": "address"
},
{
"internalType": "bytes",
"name": "_actionPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "uint256[3]",
"name": "_triggerGasActionGasMinExecutionGas",
"type": "uint256[3]"
},
{
"internalType": "uint256",
"name": "_executionClaimExpiryDate",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_mintingDeposit",
"type": "uint256"
}
],
"name": "gasTestExecute",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IGelatoUserProxy",
"name": "_userProxy",
"type": "address"
},
{
"internalType": "contract IGelatoAction",
"name": "_action",
"type": "address"
},
{
"internalType": "bytes",
"name": "_actionPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "_actionGas",
"type": "uint256"
}
],
"name": "gasTestGasTestUserProxyExecute",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "gasTestProxyByUser",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IGelatoTrigger",
"name": "_trigger",
"type": "address"
},
{
"internalType": "bytes",
"name": "_triggerPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "uint256",
"name": "_triggerGas",
"type": "uint256"
}
],
"name": "gasTestTriggerCheck",
"outputs": [
{
"internalType": "bool",
"name": "triggerFired",
"type": "bool"
},
{
"internalType": "uint8",
"name": "reason",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "gelatoCoreExecGasOverhead",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getCurrentExecutionClaimId",
"outputs": [
{
"internalType": "uint256",
"name": "currentId",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_triggerGas",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_actionGas",
"type": "uint256"
}
],
"name": "getMinExecutionGas",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_selectedExecutor",
"type": "address"
},
{
"internalType": "contract IGelatoTrigger",
"name": "_trigger",
"type": "address"
},
{
"internalType": "contract IGelatoAction",
"name": "_action",
"type": "address"
}
],
"name": "getMintingDepositPayable",
"outputs": [
{
"internalType": "uint256",
"name": "mintingDepositPayable",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_executionClaimId",
"type": "uint256"
}
],
"name": "getUserWithExecutionClaimId",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_user",
"type": "address"
}
],
"name": "isUser",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_userProxy",
"type": "address"
}
],
"name": "isUserProxy",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "minExecutionClaimLifespan",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_selectedExecutor",
"type": "address"
},
{
"internalType": "contract IGelatoTrigger",
"name": "_trigger",
"type": "address"
},
{
"internalType": "bytes",
"name": "_triggerPayloadWithSelector",
"type": "bytes"
},
{
"internalType": "contract IGelatoAction",
"name": "_action",
"type": "address"
},
{
"internalType": "bytes",
"name": "_actionPayloadWithSelector",
"type": "bytes"
}
],
"name": "mintExecutionClaim",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "proxyByUser",
"outputs": [
{
"internalType": "contract IGelatoUserProxy",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_executorPrice",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_executorClaimLifespan",
"type": "uint256"
}
],
"name": "registerExecutor",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_newExecutorClaimLifespan",
"type": "uint256"
}
],
"name": "setExecutorClaimLifespan",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_newExecutorGasPrice",
"type": "uint256"
}
],
"name": "setExecutorPrice",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "totalExecutionGasOverhead",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "userByGasTestProxy",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "userByProxy",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "userCount",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "userProxies",
"outputs": [
{
"internalType": "contract IGelatoUserProxy",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "userProxyExecGasOverhead",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "userProxyWithExecutionClaimId",
"outputs": [
{
"internalType": "contract IGelatoUserProxy",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "users",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "withdrawExecutorBalance",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment