import { TypedEventFilter , TypedEvent , TypedListener , OnEvent } from "./common" ; import { FunctionFragment , Result , EventFragment } from "@ethersproject/abi" ; import { Listener , Provider } from "@ethersproject/providers" ; import { BaseContract , BigNumber , BytesLike , CallOverrides , ContractTransaction , PayableOverrides , PopulatedTransaction , Signer , utils , } from "ethers" ; export interface AllowanceCrowdsaleInterface extends utils . Interface { functions : { "buyTokens(address)" : FunctionFragment ; "rate()" : FunctionFragment ; "remainingTokens()" : FunctionFragment ; "token()" : FunctionFragment ; "tokenWallet()" : FunctionFragment ; "wallet()" : FunctionFragment ; "weiRaised()" : FunctionFragment ; } ; encodeFunctionData ( functionFragment , values ) : string ; encodeFunctionData ( functionFragment , values ? ) : string ; encodeFunctionData ( functionFragment , values ? ) : string ; encodeFunctionData ( functionFragment , values ? ) : string ; encodeFunctionData ( functionFragment , values ? ) : string ; encodeFunctionData ( functionFragment , values ? ) : string ; encodeFunctionData ( functionFragment , values ? ) : string ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; decodeFunctionResult ( functionFragment , data ) : Result ; events : { "TokensPurchased(address,address,uint256,uint256)" : EventFragment ; } ; getEvent ( nameOrSignatureOrTopic ) : EventFragment ; } export type TokensPurchasedEvent = TypedEvent < [ string , string , BigNumber , BigNumber ] , { purchaser : string ; beneficiary : string ; value : BigNumber ; amount : BigNumber ; } > ; export type TokensPurchasedEventFilter = TypedEventFilter < TokensPurchasedEvent > ; export interface AllowanceCrowdsale extends BaseContract { connect ( signerOrProvider ) : this ; attach ( addressOrName ) : this ; deployed ( ) : Promise < this > ; interface : AllowanceCrowdsaleInterface ; queryFilter < TEvent extends TypedEvent > ( event , fromBlockOrBlockhash ? , toBlock ? ) : Promise < Array < TEvent > > ; listeners < TEvent extends TypedEvent > ( eventFilter ? ) : Array < TypedListener < TEvent > > ; listeners ( eventName ? ) : Array < Listener > ; removeAllListeners < TEvent extends TypedEvent > ( eventFilter ) : this ; removeAllListeners ( eventName ? ) : this ; off : OnEvent < this > ; on : OnEvent < this > ; once : OnEvent < this > ; removeListener : OnEvent < this > ; functions : { buyTokens ( beneficiary , overrides ? ) : Promise < ContractTransaction > ; rate ( overrides ? ) : Promise < [ BigNumber ] > ; remainingTokens ( overrides ? ) : Promise < [ BigNumber ] > ; token ( overrides ? ) : Promise < [ string ] > ; tokenWallet ( overrides ? ) : Promise < [ string ] > ; wallet ( overrides ? ) : Promise < [ string ] > ; weiRaised ( overrides ? ) : Promise < [ BigNumber ] > ; } ; buyTokens ( beneficiary , overrides ? ) : Promise < ContractTransaction > ; rate ( overrides ? ) : Promise < BigNumber > ; remainingTokens ( overrides ? ) : Promise < BigNumber > ; token ( overrides ? ) : Promise < string > ; tokenWallet ( overrides ? ) : Promise < string > ; wallet ( overrides ? ) : Promise < string > ; weiRaised ( overrides ? ) : Promise < BigNumber > ; callStatic : { buyTokens ( beneficiary , overrides ? ) : Promise < void > ; rate ( overrides ? ) : Promise < BigNumber > ; remainingTokens ( overrides ? ) : Promise < BigNumber > ; token ( overrides ? ) : Promise < string > ; tokenWallet ( overrides ? ) : Promise < string > ; wallet ( overrides ? ) : Promise < string > ; weiRaised ( overrides ? ) : Promise < BigNumber > ; } ; filters : { "TokensPurchased(address,address,uint256,uint256)" ( purchaser ? , beneficiary ? , value ? , amount ? ) : TokensPurchasedEventFilter ; TokensPurchased ( purchaser ? , beneficiary ? , value ? , amount ? ) : TokensPurchasedEventFilter ; } ; estimateGas : { buyTokens ( beneficiary , overrides ? ) : Promise < BigNumber > ; rate ( overrides ? ) : Promise < BigNumber > ; remainingTokens ( overrides ? ) : Promise < BigNumber > ; token ( overrides ? ) : Promise < BigNumber > ; tokenWallet ( overrides ? ) : Promise < BigNumber > ; wallet ( overrides ? ) : Promise < BigNumber > ; weiRaised ( overrides ? ) : Promise < BigNumber > ; } ; populateTransaction : { buyTokens ( beneficiary , overrides ? ) : Promise < PopulatedTransaction > ; rate ( overrides ? ) : Promise < PopulatedTransaction > ; remainingTokens ( overrides ? ) : Promise < PopulatedTransaction > ; token ( overrides ? ) : Promise < PopulatedTransaction > ; tokenWallet ( overrides ? ) : Promise < PopulatedTransaction > ; wallet ( overrides ? ) : Promise < PopulatedTransaction > ; weiRaised ( overrides ? ) : Promise < PopulatedTransaction > ; } ; }