@augmentedfinance/protocol-v1
Version:
Augmented Protocol smart contracts
142 lines • 3.75 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IUniswapV2Router02ForAdapterFactory = void 0;
const ethers_1 = require("ethers");
class IUniswapV2Router02ForAdapterFactory {
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.IUniswapV2Router02ForAdapterFactory = IUniswapV2Router02ForAdapterFactory;
const _abi = [
{
inputs: [
{
internalType: "uint256",
name: "amountOut",
type: "uint256",
},
{
internalType: "address[]",
name: "path",
type: "address[]",
},
],
name: "getAmountsIn",
outputs: [
{
internalType: "uint256[]",
name: "amounts",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "amountIn",
type: "uint256",
},
{
internalType: "address[]",
name: "path",
type: "address[]",
},
],
name: "getAmountsOut",
outputs: [
{
internalType: "uint256[]",
name: "amounts",
type: "uint256[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "amountIn",
type: "uint256",
},
{
internalType: "uint256",
name: "amountOutMin",
type: "uint256",
},
{
internalType: "address[]",
name: "path",
type: "address[]",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "deadline",
type: "uint256",
},
],
name: "swapExactTokensForTokens",
outputs: [
{
internalType: "uint256[]",
name: "amounts",
type: "uint256[]",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "amountOut",
type: "uint256",
},
{
internalType: "uint256",
name: "amountInMax",
type: "uint256",
},
{
internalType: "address[]",
name: "path",
type: "address[]",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "deadline",
type: "uint256",
},
],
name: "swapTokensForExactTokens",
outputs: [
{
internalType: "uint256[]",
name: "amounts",
type: "uint256[]",
},
],
stateMutability: "nonpayable",
type: "function",
},
];
//# sourceMappingURL=IUniswapV2Router02ForAdapterFactory.js.map