Skip to content

Commit

Permalink
[cow protocol] update fetching eth flow order
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-diamond committed Mar 19, 2024
1 parent 10d546a commit acc895f
Showing 1 changed file with 273 additions and 0 deletions.
273 changes: 273 additions & 0 deletions src/contracts/abis/EthFlowAbi.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,217 @@
[
{
"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": [
{
Expand Down Expand Up @@ -65,6 +278,66 @@
"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": [],
"name": "wrappedNativeToken",
Expand Down

0 comments on commit acc895f

Please sign in to comment.