/* 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 IReserve extends Contract { clone(): IReserve; methods: { setTobinTaxStalenessThreshold(arg0: number | string): CeloTxObject; addToken(arg0: string): CeloTxObject; removeToken(arg0: string, arg1: number | string): CeloTxObject; transferGold(arg0: string, arg1: number | string): CeloTxObject; transferExchangeGold( arg0: string, arg1: number | string ): CeloTxObject; transferCollateralAsset( collateralAsset: string, to: string, value: number | string ): CeloTxObject; getReserveGoldBalance(): CeloTxObject; getUnfrozenReserveGoldBalance(): CeloTxObject; getOrComputeTobinTax(): CeloTxObject<{ 0: string; 1: string; }>; getTokens(): CeloTxObject; getReserveRatio(): CeloTxObject; addExchangeSpender(arg0: string): CeloTxObject; removeExchangeSpender( arg0: string, arg1: number | string ): CeloTxObject; addSpender(arg0: string): CeloTxObject; removeSpender(arg0: string): CeloTxObject; isStableAsset(arg0: string): CeloTxObject; isCollateralAsset(arg0: string): CeloTxObject; getDailySpendingRatioForCollateralAsset( collateralAsset: string ): CeloTxObject; isExchangeSpender(exchange: string): CeloTxObject; addCollateralAsset(asset: string): CeloTxObject; transferExchangeCollateralAsset( collateralAsset: string, to: string, value: number | string ): CeloTxObject; }; events: { allEvents: ( options?: EventOptions, cb?: Callback ) => EventEmitter; }; } export const ABI: AbiItem[] = [ { inputs: [{ internalType: "uint256", name: "", type: "uint256" }], name: "setTobinTaxStalenessThreshold", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "addToken", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address" }, { internalType: "uint256", name: "", type: "uint256" }, ], name: "removeToken", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address payable", name: "", type: "address" }, { internalType: "uint256", name: "", type: "uint256" }, ], name: "transferGold", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address payable", name: "", type: "address" }, { internalType: "uint256", name: "", type: "uint256" }, ], name: "transferExchangeGold", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "collateralAsset", type: "address" }, { internalType: "address payable", name: "to", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }, ], name: "transferCollateralAsset", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "getReserveGoldBalance", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function", }, { inputs: [], name: "getUnfrozenReserveGoldBalance", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function", }, { inputs: [], name: "getOrComputeTobinTax", outputs: [ { internalType: "uint256", name: "", type: "uint256" }, { internalType: "uint256", name: "", type: "uint256" }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "getTokens", outputs: [{ internalType: "address[]", name: "", type: "address[]" }], stateMutability: "view", type: "function", }, { inputs: [], name: "getReserveRatio", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function", }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "addExchangeSpender", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address" }, { internalType: "uint256", name: "", type: "uint256" }, ], name: "removeExchangeSpender", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "addSpender", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "removeSpender", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "isStableAsset", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function", }, { inputs: [{ internalType: "address", name: "", type: "address" }], name: "isCollateralAsset", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "collateralAsset", type: "address" }, ], name: "getDailySpendingRatioForCollateralAsset", outputs: [{ internalType: "uint256", name: "", type: "uint256" }], stateMutability: "view", type: "function", }, { inputs: [{ internalType: "address", name: "exchange", type: "address" }], name: "isExchangeSpender", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "view", type: "function", }, { inputs: [{ internalType: "address", name: "asset", type: "address" }], name: "addCollateralAsset", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "collateralAsset", type: "address" }, { internalType: "address payable", name: "to", type: "address" }, { internalType: "uint256", name: "value", type: "uint256" }, ], name: "transferExchangeCollateralAsset", outputs: [{ internalType: "bool", name: "", type: "bool" }], stateMutability: "nonpayable", type: "function", }, ]; export function newIReserve(web3: Web3, address: string): IReserve { return new web3.eth.Contract(ABI, address) as any; }