Skip to content

Instantly share code, notes, and snippets.

@alexroan
Created September 1, 2023 15:33
Show Gist options
  • Save alexroan/227aebb9116dbefd68a68ea162015994 to your computer and use it in GitHub Desktop.
Save alexroan/227aebb9116dbefd68a68ea162015994 to your computer and use it in GitHub Desktop.
MarketAutomation ABI
[
{
"inputs": [
{
"internalType": "contract DataStore",
"name": "dataStore",
"type": "address"
},
{
"internalType": "contract Reader",
"name": "reader",
"type": "address"
},
{
"internalType": "contract OrderHandler",
"name": "orderHandler",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "logSelector",
"type": "bytes32"
}
],
"name": "LibGMXEventLogDecoder_IncorrectLogSelector",
"type": "error"
},
{
"inputs": [
{
"internalType": "string",
"name": "eventName",
"type": "string"
},
{
"internalType": "string",
"name": "expectedEventName",
"type": "string"
}
],
"name": "MarketAutomation_IncorrectEventName",
"type": "error"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "orderType",
"type": "uint256"
}
],
"name": "MarketAutomation_IncorrectOrderType",
"type": "error"
},
{
"inputs": [
{
"internalType": "string",
"name": "feedParamKey",
"type": "string"
},
{
"internalType": "string[]",
"name": "feeds",
"type": "string[]"
},
{
"internalType": "string",
"name": "timeParamKey",
"type": "string"
},
{
"internalType": "uint256",
"name": "time",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "extraData",
"type": "bytes"
}
],
"name": "StreamsLookup",
"type": "error"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferStarted",
"type": "event"
},
{
"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": "EXPECTED_LOG_EVENTDATA_ORDERTYPE_0",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "EXPECTED_LOG_EVENTDATA_ORDERTYPE_2",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "EXPECTED_LOG_EVENTDATA_ORDERTYPE_4",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "EXPECTED_LOG_EVENTNAME",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "STRING_DATASTREAMS_FEEDLABEL",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "STRING_DATASTREAMS_QUERYLABEL",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes[]",
"name": "values",
"type": "bytes[]"
},
{
"internalType": "bytes",
"name": "extraData",
"type": "bytes"
}
],
"name": "checkCallback",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint256",
"name": "index",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "txIndex",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "txHash",
"type": "bytes32"
},
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "blockHash",
"type": "bytes32"
},
{
"internalType": "address",
"name": "source",
"type": "address"
},
{
"internalType": "bytes32[]",
"name": "topics",
"type": "bytes32[]"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"internalType": "struct Log",
"name": "log",
"type": "tuple"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "checkLog",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "i_dataStore",
"outputs": [
{
"internalType": "contract DataStore",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "i_orderHandler",
"outputs": [
{
"internalType": "contract OrderHandler",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "i_reader",
"outputs": [
{
"internalType": "contract Reader",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pendingOwner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes",
"name": "performData",
"type": "bytes"
}
],
"name": "performUpkeep",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "contract IERC20",
"name": "token",
"type": "address"
},
{
"internalType": "address",
"name": "to",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "withdraw",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment