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>

342 lines 9.8 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.TWAP__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { inputs: [ { internalType: "contract ComposableCoW", name: "_composableCow", type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { inputs: [], name: "InvalidFrequency", type: "error", }, { inputs: [], name: "InvalidMinPartLimit", type: "error", }, { inputs: [], name: "InvalidNumParts", type: "error", }, { inputs: [], name: "InvalidPartSellAmount", type: "error", }, { inputs: [], name: "InvalidSameToken", type: "error", }, { inputs: [], name: "InvalidSpan", type: "error", }, { inputs: [], name: "InvalidStartTime", type: "error", }, { inputs: [], name: "InvalidToken", type: "error", }, { inputs: [], name: "OrderNotValid", type: "error", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "owner", type: "address", }, { components: [ { internalType: "contract IConditionalOrder", name: "handler", type: "address", }, { internalType: "bytes32", name: "salt", type: "bytes32", }, { internalType: "bytes", name: "staticInput", type: "bytes", }, ], indexed: false, internalType: "struct IConditionalOrder.ConditionalOrderParams", name: "params", type: "tuple", }, ], name: "ConditionalOrderCreated", type: "event", }, { inputs: [ { internalType: "address", name: "owner", type: "address", }, { internalType: "address", name: "", type: "address", }, { internalType: "bytes32", name: "ctx", type: "bytes32", }, { internalType: "bytes", name: "staticInput", type: "bytes", }, { internalType: "bytes", name: "", type: "bytes", }, ], name: "getTradeableOrder", outputs: [ { 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", }, ], internalType: "struct GPv2Order.Data", name: "order", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes4", name: "interfaceId", type: "bytes4", }, ], name: "supportsInterface", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "owner", type: "address", }, { internalType: "address", name: "sender", type: "address", }, { internalType: "bytes32", name: "_hash", type: "bytes32", }, { internalType: "bytes32", name: "domainSeparator", type: "bytes32", }, { internalType: "bytes32", name: "ctx", type: "bytes32", }, { internalType: "bytes", name: "staticInput", type: "bytes", }, { internalType: "bytes", name: "offchainInput", type: "bytes", }, { 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", }, ], internalType: "struct GPv2Order.Data", name: "", type: "tuple", }, ], name: "verify", outputs: [], stateMutability: "view", type: "function", }, ]; class TWAP__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.TWAP__factory = TWAP__factory; //# sourceMappingURL=TWAP__factory.js.map