@augumented-finance/protocol-v1
Version:
Augmented Protocol smart contracts
494 lines • 12.1 kB
JavaScript
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IBPoolFactory = void 0;
const ethers_1 = require("ethers");
class IBPoolFactory {
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.IBPoolFactory = IBPoolFactory;
const _abi = [
{
inputs: [],
name: "EXIT_FEE",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "balance",
type: "uint256",
},
{
internalType: "uint256",
name: "denorm",
type: "uint256",
},
],
name: "bind",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "tokenBalanceOut",
type: "uint256",
},
{
internalType: "uint256",
name: "tokenWeightOut",
type: "uint256",
},
{
internalType: "uint256",
name: "poolSupply",
type: "uint256",
},
{
internalType: "uint256",
name: "totalWeight",
type: "uint256",
},
{
internalType: "uint256",
name: "tokenAmountOut",
type: "uint256",
},
{
internalType: "uint256",
name: "swapFee",
type: "uint256",
},
],
name: "calcPoolInGivenSingleOut",
outputs: [
{
internalType: "uint256",
name: "poolAmountIn",
type: "uint256",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "tokenBalanceIn",
type: "uint256",
},
{
internalType: "uint256",
name: "tokenWeightIn",
type: "uint256",
},
{
internalType: "uint256",
name: "poolSupply",
type: "uint256",
},
{
internalType: "uint256",
name: "totalWeight",
type: "uint256",
},
{
internalType: "uint256",
name: "tokenAmountIn",
type: "uint256",
},
{
internalType: "uint256",
name: "swapFee",
type: "uint256",
},
],
name: "calcPoolOutGivenSingleIn",
outputs: [
{
internalType: "uint256",
name: "poolAmountOut",
type: "uint256",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "tokenBalanceIn",
type: "uint256",
},
{
internalType: "uint256",
name: "tokenWeightIn",
type: "uint256",
},
{
internalType: "uint256",
name: "poolSupply",
type: "uint256",
},
{
internalType: "uint256",
name: "totalWeight",
type: "uint256",
},
{
internalType: "uint256",
name: "poolAmountOut",
type: "uint256",
},
{
internalType: "uint256",
name: "swapFee",
type: "uint256",
},
],
name: "calcSingleInGivenPoolOut",
outputs: [
{
internalType: "uint256",
name: "tokenAmountIn",
type: "uint256",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "tokenBalanceOut",
type: "uint256",
},
{
internalType: "uint256",
name: "tokenWeightOut",
type: "uint256",
},
{
internalType: "uint256",
name: "poolSupply",
type: "uint256",
},
{
internalType: "uint256",
name: "totalWeight",
type: "uint256",
},
{
internalType: "uint256",
name: "poolAmountIn",
type: "uint256",
},
{
internalType: "uint256",
name: "swapFee",
type: "uint256",
},
],
name: "calcSingleOutGivenPoolIn",
outputs: [
{
internalType: "uint256",
name: "tokenAmountOut",
type: "uint256",
},
],
stateMutability: "pure",
type: "function",
},
{
inputs: [],
name: "finalize",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
],
name: "getBalance",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getCurrentTokens",
outputs: [
{
internalType: "address[]",
name: "tokens",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
],
name: "getDenormalizedWeight",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getSwapFee",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getTotalDenormalizedWeight",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
],
name: "gulp",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
],
name: "isBound",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "isPublicSwap",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
{
internalType: "uint256[]",
name: "",
type: "uint256[]",
},
],
name: "joinPool",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
{
internalType: "uint256",
name: "balance",
type: "uint256",
},
{
internalType: "uint256",
name: "denorm",
type: "uint256",
},
],
name: "rebind",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "bool",
name: "publicSwap",
type: "bool",
},
],
name: "setPublicSwap",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "swapFee",
type: "uint256",
},
],
name: "setSwapFee",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "tokenIn",
type: "address",
},
{
internalType: "uint256",
name: "tokenAmountIn",
type: "uint256",
},
{
internalType: "address",
name: "tokenOut",
type: "address",
},
{
internalType: "uint256",
name: "minAmountOut",
type: "uint256",
},
{
internalType: "uint256",
name: "maxPrice",
type: "uint256",
},
],
name: "swapExactAmountIn",
outputs: [
{
internalType: "uint256",
name: "tokenAmountOut",
type: "uint256",
},
{
internalType: "uint256",
name: "spotPriceAfter",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "totalSupply",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "token",
type: "address",
},
],
name: "unbind",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
//# sourceMappingURL=IBPoolFactory.js.map