Created
December 7, 2023 09:37
-
-
Save edwardstock/b56912c1a789ed7d2644e0c8fd3b0bba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"inputs": [ | |
{ | |
"internalType": "contract ICoWSwapSettlement", | |
"name": "_cowSwapSettlement", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract IWrappedNativeToken", | |
"name": "_wrappedNativeToken", | |
"type": "address" | |
} | |
], | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"inputs": [], | |
"name": "EthTransferFailed", | |
"type": "error" | |
}, | |
{ | |
"inputs": [], | |
"name": "IncorrectEthAmount", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "bytes32", | |
"name": "orderHash", | |
"type": "bytes32" | |
} | |
], | |
"name": "NotAllowedToInvalidateOrder", | |
"type": "error" | |
}, | |
{ | |
"inputs": [], | |
"name": "NotAllowedZeroSellAmount", | |
"type": "error" | |
}, | |
{ | |
"inputs": [], | |
"name": "OrderIsAlreadyExpired", | |
"type": "error" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "bytes32", | |
"name": "orderHash", | |
"type": "bytes32" | |
} | |
], | |
"name": "OrderIsAlreadyOwned", | |
"type": "error" | |
}, | |
{ | |
"inputs": [], | |
"name": "ReceiverMustBeSet", | |
"type": "error" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "bytes", | |
"name": "orderUid", | |
"type": "bytes" | |
} | |
], | |
"name": "OrderInvalidation", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "sender", | |
"type": "address" | |
}, | |
{ | |
"components": [ | |
{ | |
"internalType": "contract IERC20", | |
"name": "sellToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "contract IERC20", | |
"name": "buyToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "sellAmount", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "buyAmount", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint32", | |
"name": "validTo", | |
"type": "uint32" | |
}, | |
{ | |
"internalType": "bytes32", | |
"name": "appData", | |
"type": "bytes32" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "feeAmount", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "bytes32", | |
"name": "kind", | |
"type": "bytes32" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "partiallyFillable", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "bytes32", | |
"name": "sellTokenBalance", | |
"type": "bytes32" | |
}, | |
{ | |
"internalType": "bytes32", | |
"name": "buyTokenBalance", | |
"type": "bytes32" | |
} | |
], | |
"indexed": false, | |
"internalType": "struct GPv2Order.Data", | |
"name": "order", | |
"type": "tuple" | |
}, | |
{ | |
"components": [ | |
{ | |
"internalType": "enum ICoWSwapOnchainOrders.OnchainSigningScheme", | |
"name": "scheme", | |
"type": "uint8" | |
}, | |
{ | |
"internalType": "bytes", | |
"name": "data", | |
"type": "bytes" | |
} | |
], | |
"indexed": false, | |
"internalType": "struct ICoWSwapOnchainOrders.OnchainSignature", | |
"name": "signature", | |
"type": "tuple" | |
}, | |
{ | |
"indexed": false, | |
"internalType": "bytes", | |
"name": "data", | |
"type": "bytes" | |
} | |
], | |
"name": "OrderPlacement", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"internalType": "bytes", | |
"name": "orderUid", | |
"type": "bytes" | |
}, | |
{ | |
"indexed": true, | |
"internalType": "address", | |
"name": "refunder", | |
"type": "address" | |
} | |
], | |
"name": "OrderRefund", | |
"type": "event" | |
}, | |
{ | |
"inputs": [], | |
"name": "cowSwapSettlement", | |
"outputs": [ | |
{ | |
"internalType": "contract ICoWSwapSettlement", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "contract IERC20", | |
"name": "buyToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "sellAmount", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "buyAmount", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "bytes32", | |
"name": "appData", | |
"type": "bytes32" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "feeAmount", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint32", | |
"name": "validTo", | |
"type": "uint32" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "partiallyFillable", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "int64", | |
"name": "quoteId", | |
"type": "int64" | |
} | |
], | |
"internalType": "struct EthFlowOrder.Data", | |
"name": "order", | |
"type": "tuple" | |
} | |
], | |
"name": "createOrder", | |
"outputs": [ | |
{ | |
"internalType": "bytes32", | |
"name": "orderHash", | |
"type": "bytes32" | |
} | |
], | |
"stateMutability": "payable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "contract IERC20", | |
"name": "buyToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "sellAmount", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "buyAmount", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "bytes32", | |
"name": "appData", | |
"type": "bytes32" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "feeAmount", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint32", | |
"name": "validTo", | |
"type": "uint32" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "partiallyFillable", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "int64", | |
"name": "quoteId", | |
"type": "int64" | |
} | |
], | |
"internalType": "struct EthFlowOrder.Data", | |
"name": "order", | |
"type": "tuple" | |
} | |
], | |
"name": "invalidateOrder", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"components": [ | |
{ | |
"internalType": "contract IERC20", | |
"name": "buyToken", | |
"type": "address" | |
}, | |
{ | |
"internalType": "address", | |
"name": "receiver", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "sellAmount", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "buyAmount", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "bytes32", | |
"name": "appData", | |
"type": "bytes32" | |
}, | |
{ | |
"internalType": "uint256", | |
"name": "feeAmount", | |
"type": "uint256" | |
}, | |
{ | |
"internalType": "uint32", | |
"name": "validTo", | |
"type": "uint32" | |
}, | |
{ | |
"internalType": "bool", | |
"name": "partiallyFillable", | |
"type": "bool" | |
}, | |
{ | |
"internalType": "int64", | |
"name": "quoteId", | |
"type": "int64" | |
} | |
], | |
"internalType": "struct EthFlowOrder.Data[]", | |
"name": "orderArray", | |
"type": "tuple[]" | |
} | |
], | |
"name": "invalidateOrdersIgnoringNotAllowed", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "bytes32", | |
"name": "orderHash", | |
"type": "bytes32" | |
}, | |
{ | |
"internalType": "bytes", | |
"name": "", | |
"type": "bytes" | |
} | |
], | |
"name": "isValidSignature", | |
"outputs": [ | |
{ | |
"internalType": "bytes4", | |
"name": "", | |
"type": "bytes4" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "bytes32", | |
"name": "", | |
"type": "bytes32" | |
} | |
], | |
"name": "orders", | |
"outputs": [ | |
{ | |
"internalType": "address", | |
"name": "owner", | |
"type": "address" | |
}, | |
{ | |
"internalType": "uint32", | |
"name": "validTo", | |
"type": "uint32" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "unwrap", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"internalType": "uint256", | |
"name": "amount", | |
"type": "uint256" | |
} | |
], | |
"name": "wrap", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "wrapAll", | |
"outputs": [], | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"inputs": [], | |
"name": "wrappedNativeToken", | |
"outputs": [ | |
{ | |
"internalType": "contract IWrappedNativeToken", | |
"name": "", | |
"type": "address" | |
} | |
], | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"stateMutability": "payable", | |
"type": "receive" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment