/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { AbiItem, Callback, CeloTxObject, Contract, EventLog, } from "@celo/connect"; import { EventEmitter } from "events"; import Web3 from "web3"; import { EventOptions } from "./types"; export interface RegistryHelperBalancer extends Contract { clone(): RegistryHelperBalancer; methods: { findPools( registry: string, fromTokens: string[], toTokens: string[] ): CeloTxObject< { pool: string; swapFee: string; tokenStates: { token: string; balance: string; denormalizedWeight: string; }[]; }[] >; refreshPools( pools: string[] ): CeloTxObject< { pool: string; swapFee: string; tokenStates: { token: string; balance: string; denormalizedWeight: string; }[]; }[] >; getPoolInfo( pool: string ): CeloTxObject<{ pool: string; swapFee: string; tokenStates: { token: string; balance: string; denormalizedWeight: string; }[]; }>; }; events: { allEvents: ( options?: EventOptions, cb?: Callback ) => EventEmitter; }; } export const ABI: AbiItem[] = [ { inputs: [ { internalType: "contract IBRegistry", name: "registry", type: "address", }, { internalType: "address[]", name: "fromTokens", type: "address[]" }, { internalType: "address[]", name: "toTokens", type: "address[]" }, ], name: "findPools", outputs: [ { components: [ { internalType: "contract IBPool", name: "pool", type: "address" }, { internalType: "uint256", name: "swapFee", type: "uint256" }, { components: [ { internalType: "address", name: "token", type: "address" }, { internalType: "uint256", name: "balance", type: "uint256" }, { internalType: "uint256", name: "denormalizedWeight", type: "uint256", }, ], internalType: "struct RegistryHelperBalancer.TokenState[]", name: "tokenStates", type: "tuple[]", }, ], internalType: "struct RegistryHelperBalancer.PoolInfo[]", name: "result", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "contract IBPool[]", name: "pools", type: "address[]" }, ], name: "refreshPools", outputs: [ { components: [ { internalType: "contract IBPool", name: "pool", type: "address" }, { internalType: "uint256", name: "swapFee", type: "uint256" }, { components: [ { internalType: "address", name: "token", type: "address" }, { internalType: "uint256", name: "balance", type: "uint256" }, { internalType: "uint256", name: "denormalizedWeight", type: "uint256", }, ], internalType: "struct RegistryHelperBalancer.TokenState[]", name: "tokenStates", type: "tuple[]", }, ], internalType: "struct RegistryHelperBalancer.PoolInfo[]", name: "result", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "contract IBPool", name: "pool", type: "address" }, ], name: "getPoolInfo", outputs: [ { components: [ { internalType: "contract IBPool", name: "pool", type: "address" }, { internalType: "uint256", name: "swapFee", type: "uint256" }, { components: [ { internalType: "address", name: "token", type: "address" }, { internalType: "uint256", name: "balance", type: "uint256" }, { internalType: "uint256", name: "denormalizedWeight", type: "uint256", }, ], internalType: "struct RegistryHelperBalancer.TokenState[]", name: "tokenStates", type: "tuple[]", }, ], internalType: "struct RegistryHelperBalancer.PoolInfo", name: "result", type: "tuple", }, ], stateMutability: "view", type: "function", }, ]; export function newRegistryHelperBalancer( web3: Web3, address: string ): RegistryHelperBalancer { return new web3.eth.Contract(ABI, address) as any; }