UNPKG

@augmentedfinance/protocol-v1

Version:

Augmented Protocol smart contracts

100 lines 2.62 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.IExchangeAdapterFactory = void 0; const ethers_1 = require("ethers"); class IExchangeAdapterFactory { static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.IExchangeAdapterFactory = IExchangeAdapterFactory; const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "from", type: "address", }, { indexed: true, internalType: "address", name: "to", type: "address", }, { indexed: true, internalType: "address", name: "platform", type: "address", }, { indexed: false, internalType: "uint256", name: "fromAmount", type: "uint256", }, { indexed: false, internalType: "uint256", name: "toAmount", type: "uint256", }, ], name: "Exchange", type: "event", }, { inputs: [ { internalType: "contract IERC20[]", name: "tokens", type: "address[]", }, ], name: "approveExchange", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "from", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint256", name: "maxSlippage", type: "uint256", }, ], name: "exchange", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, ]; //# sourceMappingURL=IExchangeAdapterFactory.js.map