UNPKG

@f5i23q999d/cow-sdk

Version:

<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>

170 lines 5.22 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.EthFlow__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { 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: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], name: "orders", outputs: [ { internalType: "address", name: "owner", type: "address", }, { internalType: "uint32", name: "validTo", type: "uint32", }, ], stateMutability: "view", type: "function", }, ]; class EthFlow__factory { static abi = _abi; static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.EthFlow__factory = EthFlow__factory; //# sourceMappingURL=EthFlow__factory.js.map