/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, ContractTransaction, EventFilter, Signer } from "ethers"; import { Listener, Provider } from "ethers/providers"; import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils"; import { TransactionOverrides, TypedEventDescription, TypedFunctionDescription, } from "."; interface CoinMachineInterface extends Interface { functions: { authority: TypedFunctionDescription<{ encode([]: []): string }>; getColony: TypedFunctionDescription<{ encode([]: []): string }>; getDeprecated: TypedFunctionDescription<{ encode([]: []): string }>; owner: TypedFunctionDescription<{ encode([]: []): string }>; setAuthority: TypedFunctionDescription<{ encode([authority_]: [string]): string; }>; setOwner: TypedFunctionDescription<{ encode([owner_]: [string]): string }>; identifier: TypedFunctionDescription<{ encode([]: []): string }>; version: TypedFunctionDescription<{ encode([]: []): string }>; install: TypedFunctionDescription<{ encode([_colony]: [string]): string }>; finishUpgrade: TypedFunctionDescription<{ encode([]: []): string }>; deprecate: TypedFunctionDescription<{ encode([_deprecated]: [boolean]): string; }>; uninstall: TypedFunctionDescription<{ encode([]: []): string }>; initialise: TypedFunctionDescription<{ encode([ _purchaseToken, _periodLength, _windowSize, _targetPerPeriod, _maxPerPeriod, _tokensToSell, _startingPrice, ]: [ string, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish ]): string; }>; buyTokens: TypedFunctionDescription<{ encode([_numTokens]: [BigNumberish]): string; }>; updatePeriod: TypedFunctionDescription<{ encode([]: []): string }>; getPeriodLength: TypedFunctionDescription<{ encode([]: []): string }>; getWindowSize: TypedFunctionDescription<{ encode([]: []): string }>; getTargetPerPeriod: TypedFunctionDescription<{ encode([]: []): string }>; getMaxPerPeriod: TypedFunctionDescription<{ encode([]: []): string }>; getTokensToSell: TypedFunctionDescription<{ encode([]: []): string }>; getCurrentPrice: TypedFunctionDescription<{ encode([]: []): string }>; getNumAvailable: TypedFunctionDescription<{ encode([]: []): string }>; }; events: { ExtensionInitialised: TypedEventDescription<{ encodeTopics([]: []): string[]; }>; LogSetAuthority: TypedEventDescription<{ encodeTopics([authority]: [string | null]): string[]; }>; LogSetOwner: TypedEventDescription<{ encodeTopics([owner]: [string | null]): string[]; }>; PeriodUpdated: TypedEventDescription<{ encodeTopics([activePeriod, currentPeriod]: [null, null]): string[]; }>; TokensBought: TypedEventDescription<{ encodeTopics([buyer, numTokens, totalCost]: [null, null, null]): string[]; }>; }; } export class CoinMachine extends Contract { connect(signerOrProvider: Signer | Provider | string): CoinMachine; attach(addressOrName: string): CoinMachine; deployed(): Promise; on(event: EventFilter | string, listener: Listener): CoinMachine; once(event: EventFilter | string, listener: Listener): CoinMachine; addListener(eventName: EventFilter | string, listener: Listener): CoinMachine; removeAllListeners(eventName: EventFilter | string): CoinMachine; removeListener(eventName: any, listener: Listener): CoinMachine; interface: CoinMachineInterface; functions: { authority(overrides?: TransactionOverrides): Promise; "authority()"(overrides?: TransactionOverrides): Promise; getColony(overrides?: TransactionOverrides): Promise; "getColony()"(overrides?: TransactionOverrides): Promise; getDeprecated(overrides?: TransactionOverrides): Promise; "getDeprecated()"(overrides?: TransactionOverrides): Promise; owner(overrides?: TransactionOverrides): Promise; "owner()"(overrides?: TransactionOverrides): Promise; setAuthority( authority_: string, overrides?: TransactionOverrides ): Promise; "setAuthority(address)"( authority_: string, overrides?: TransactionOverrides ): Promise; setOwner( owner_: string, overrides?: TransactionOverrides ): Promise; "setOwner(address)"( owner_: string, overrides?: TransactionOverrides ): Promise; /** * Returns the identifier of the extension */ identifier(overrides?: TransactionOverrides): Promise; /** * Returns the identifier of the extension */ "identifier()"(overrides?: TransactionOverrides): Promise; /** * Returns the version of the extension */ version(overrides?: TransactionOverrides): Promise; /** * Returns the version of the extension */ "version()"(overrides?: TransactionOverrides): Promise; /** * Configures the extension * @param _colony The colony in which the extension holds permissions */ install( _colony: string, overrides?: TransactionOverrides ): Promise; /** * Configures the extension * @param _colony The colony in which the extension holds permissions */ "install(address)"( _colony: string, overrides?: TransactionOverrides ): Promise; /** * Called when upgrading the extension */ finishUpgrade( overrides?: TransactionOverrides ): Promise; /** * Called when upgrading the extension */ "finishUpgrade()"( overrides?: TransactionOverrides ): Promise; /** * Called when deprecating (or undeprecating) the extension */ deprecate( _deprecated: boolean, overrides?: TransactionOverrides ): Promise; /** * Called when deprecating (or undeprecating) the extension */ "deprecate(bool)"( _deprecated: boolean, overrides?: TransactionOverrides ): Promise; /** * Called when uninstalling the extension */ uninstall(overrides?: TransactionOverrides): Promise; /** * Called when uninstalling the extension */ "uninstall()"( overrides?: TransactionOverrides ): Promise; /** * Must be called before any sales can be made * @param _maxPerPeriod The maximum number of tokens that can be sold per period * @param _periodLength How long in seconds each period of the sale should last * @param _purchaseToken The token to receive payments in. Use 0x0 for ether * @param _startingPrice The sale price to start at, expressed in units of _purchaseToken per token being sold, as a WAD * @param _targetPerPeriod The number of tokens to aim to sell per period * @param _windowSize Characteristic number of periods that should be used for the moving average. In the long-term, 86% of the weighting will be in this window size. The higher the number, the slower the price will be to adjust */ initialise( _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _tokensToSell: BigNumberish, _startingPrice: BigNumberish, overrides?: TransactionOverrides ): Promise; /** * Must be called before any sales can be made * @param _maxPerPeriod The maximum number of tokens that can be sold per period * @param _periodLength How long in seconds each period of the sale should last * @param _purchaseToken The token to receive payments in. Use 0x0 for ether * @param _startingPrice The sale price to start at, expressed in units of _purchaseToken per token being sold, as a WAD * @param _targetPerPeriod The number of tokens to aim to sell per period * @param _windowSize Characteristic number of periods that should be used for the moving average. In the long-term, 86% of the weighting will be in this window size. The higher the number, the slower the price will be to adjust */ "initialise(address,uint256,uint256,uint256,uint256,uint256,uint256)"( _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _tokensToSell: BigNumberish, _startingPrice: BigNumberish, overrides?: TransactionOverrides ): Promise; /** * Purchase tokens from Coin Machine. * @param _numTokens The number of tokens to purchase */ buyTokens( _numTokens: BigNumberish, overrides?: TransactionOverrides ): Promise; /** * Purchase tokens from Coin Machine. * @param _numTokens The number of tokens to purchase */ "buyTokens(uint256)"( _numTokens: BigNumberish, overrides?: TransactionOverrides ): Promise; /** * Bring the token accounting current */ updatePeriod( overrides?: TransactionOverrides ): Promise; /** * Bring the token accounting current */ "updatePeriod()"( overrides?: TransactionOverrides ): Promise; /** * Get the length of the sale period */ getPeriodLength(overrides?: TransactionOverrides): Promise; /** * Get the length of the sale period */ "getPeriodLength()"(overrides?: TransactionOverrides): Promise; /** * Get the size of the averaging window */ getWindowSize(overrides?: TransactionOverrides): Promise; /** * Get the size of the averaging window */ "getWindowSize()"(overrides?: TransactionOverrides): Promise; /** * Get the target number of tokens to sell per period */ getTargetPerPeriod(overrides?: TransactionOverrides): Promise; /** * Get the target number of tokens to sell per period */ "getTargetPerPeriod()"( overrides?: TransactionOverrides ): Promise; /** * Get the maximum number of tokens to sell per period */ getMaxPerPeriod(overrides?: TransactionOverrides): Promise; /** * Get the maximum number of tokens to sell per period */ "getMaxPerPeriod()"(overrides?: TransactionOverrides): Promise; /** * Get the total number of tokens remaining for sale */ getTokensToSell(overrides?: TransactionOverrides): Promise; /** * Get the total number of tokens remaining for sale */ "getTokensToSell()"(overrides?: TransactionOverrides): Promise; /** * Get the current price per token */ getCurrentPrice(overrides?: TransactionOverrides): Promise; /** * Get the current price per token */ "getCurrentPrice()"(overrides?: TransactionOverrides): Promise; /** * Get the number of remaining tokens for sale this period */ getNumAvailable(overrides?: TransactionOverrides): Promise; /** * Get the number of remaining tokens for sale this period */ "getNumAvailable()"(overrides?: TransactionOverrides): Promise; }; authority(overrides?: TransactionOverrides): Promise; "authority()"(overrides?: TransactionOverrides): Promise; getColony(overrides?: TransactionOverrides): Promise; "getColony()"(overrides?: TransactionOverrides): Promise; getDeprecated(overrides?: TransactionOverrides): Promise; "getDeprecated()"(overrides?: TransactionOverrides): Promise; owner(overrides?: TransactionOverrides): Promise; "owner()"(overrides?: TransactionOverrides): Promise; setAuthority( authority_: string, overrides?: TransactionOverrides ): Promise; "setAuthority(address)"( authority_: string, overrides?: TransactionOverrides ): Promise; setOwner( owner_: string, overrides?: TransactionOverrides ): Promise; "setOwner(address)"( owner_: string, overrides?: TransactionOverrides ): Promise; /** * Returns the identifier of the extension */ identifier(overrides?: TransactionOverrides): Promise; /** * Returns the identifier of the extension */ "identifier()"(overrides?: TransactionOverrides): Promise; /** * Returns the version of the extension */ version(overrides?: TransactionOverrides): Promise; /** * Returns the version of the extension */ "version()"(overrides?: TransactionOverrides): Promise; /** * Configures the extension * @param _colony The colony in which the extension holds permissions */ install( _colony: string, overrides?: TransactionOverrides ): Promise; /** * Configures the extension * @param _colony The colony in which the extension holds permissions */ "install(address)"( _colony: string, overrides?: TransactionOverrides ): Promise; /** * Called when upgrading the extension */ finishUpgrade(overrides?: TransactionOverrides): Promise; /** * Called when upgrading the extension */ "finishUpgrade()"( overrides?: TransactionOverrides ): Promise; /** * Called when deprecating (or undeprecating) the extension */ deprecate( _deprecated: boolean, overrides?: TransactionOverrides ): Promise; /** * Called when deprecating (or undeprecating) the extension */ "deprecate(bool)"( _deprecated: boolean, overrides?: TransactionOverrides ): Promise; /** * Called when uninstalling the extension */ uninstall(overrides?: TransactionOverrides): Promise; /** * Called when uninstalling the extension */ "uninstall()"(overrides?: TransactionOverrides): Promise; /** * Must be called before any sales can be made * @param _maxPerPeriod The maximum number of tokens that can be sold per period * @param _periodLength How long in seconds each period of the sale should last * @param _purchaseToken The token to receive payments in. Use 0x0 for ether * @param _startingPrice The sale price to start at, expressed in units of _purchaseToken per token being sold, as a WAD * @param _targetPerPeriod The number of tokens to aim to sell per period * @param _windowSize Characteristic number of periods that should be used for the moving average. In the long-term, 86% of the weighting will be in this window size. The higher the number, the slower the price will be to adjust */ initialise( _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _tokensToSell: BigNumberish, _startingPrice: BigNumberish, overrides?: TransactionOverrides ): Promise; /** * Must be called before any sales can be made * @param _maxPerPeriod The maximum number of tokens that can be sold per period * @param _periodLength How long in seconds each period of the sale should last * @param _purchaseToken The token to receive payments in. Use 0x0 for ether * @param _startingPrice The sale price to start at, expressed in units of _purchaseToken per token being sold, as a WAD * @param _targetPerPeriod The number of tokens to aim to sell per period * @param _windowSize Characteristic number of periods that should be used for the moving average. In the long-term, 86% of the weighting will be in this window size. The higher the number, the slower the price will be to adjust */ "initialise(address,uint256,uint256,uint256,uint256,uint256,uint256)"( _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _tokensToSell: BigNumberish, _startingPrice: BigNumberish, overrides?: TransactionOverrides ): Promise; /** * Purchase tokens from Coin Machine. * @param _numTokens The number of tokens to purchase */ buyTokens( _numTokens: BigNumberish, overrides?: TransactionOverrides ): Promise; /** * Purchase tokens from Coin Machine. * @param _numTokens The number of tokens to purchase */ "buyTokens(uint256)"( _numTokens: BigNumberish, overrides?: TransactionOverrides ): Promise; /** * Bring the token accounting current */ updatePeriod(overrides?: TransactionOverrides): Promise; /** * Bring the token accounting current */ "updatePeriod()"( overrides?: TransactionOverrides ): Promise; /** * Get the length of the sale period */ getPeriodLength(overrides?: TransactionOverrides): Promise; /** * Get the length of the sale period */ "getPeriodLength()"(overrides?: TransactionOverrides): Promise; /** * Get the size of the averaging window */ getWindowSize(overrides?: TransactionOverrides): Promise; /** * Get the size of the averaging window */ "getWindowSize()"(overrides?: TransactionOverrides): Promise; /** * Get the target number of tokens to sell per period */ getTargetPerPeriod(overrides?: TransactionOverrides): Promise; /** * Get the target number of tokens to sell per period */ "getTargetPerPeriod()"(overrides?: TransactionOverrides): Promise; /** * Get the maximum number of tokens to sell per period */ getMaxPerPeriod(overrides?: TransactionOverrides): Promise; /** * Get the maximum number of tokens to sell per period */ "getMaxPerPeriod()"(overrides?: TransactionOverrides): Promise; /** * Get the total number of tokens remaining for sale */ getTokensToSell(overrides?: TransactionOverrides): Promise; /** * Get the total number of tokens remaining for sale */ "getTokensToSell()"(overrides?: TransactionOverrides): Promise; /** * Get the current price per token */ getCurrentPrice(overrides?: TransactionOverrides): Promise; /** * Get the current price per token */ "getCurrentPrice()"(overrides?: TransactionOverrides): Promise; /** * Get the number of remaining tokens for sale this period */ getNumAvailable(overrides?: TransactionOverrides): Promise; /** * Get the number of remaining tokens for sale this period */ "getNumAvailable()"(overrides?: TransactionOverrides): Promise; filters: { ExtensionInitialised(): EventFilter; LogSetAuthority(authority: string | null): EventFilter; LogSetOwner(owner: string | null): EventFilter; PeriodUpdated(activePeriod: null, currentPeriod: null): EventFilter; TokensBought(buyer: null, numTokens: null, totalCost: null): EventFilter; }; estimate: { authority(overrides?: TransactionOverrides): Promise; "authority()"(overrides?: TransactionOverrides): Promise; getColony(overrides?: TransactionOverrides): Promise; "getColony()"(overrides?: TransactionOverrides): Promise; getDeprecated(overrides?: TransactionOverrides): Promise; "getDeprecated()"(overrides?: TransactionOverrides): Promise; owner(overrides?: TransactionOverrides): Promise; "owner()"(overrides?: TransactionOverrides): Promise; setAuthority( authority_: string, overrides?: TransactionOverrides ): Promise; "setAuthority(address)"( authority_: string, overrides?: TransactionOverrides ): Promise; setOwner( owner_: string, overrides?: TransactionOverrides ): Promise; "setOwner(address)"( owner_: string, overrides?: TransactionOverrides ): Promise; /** * Returns the identifier of the extension */ identifier(overrides?: TransactionOverrides): Promise; /** * Returns the identifier of the extension */ "identifier()"(overrides?: TransactionOverrides): Promise; /** * Returns the version of the extension */ version(overrides?: TransactionOverrides): Promise; /** * Returns the version of the extension */ "version()"(overrides?: TransactionOverrides): Promise; /** * Configures the extension * @param _colony The colony in which the extension holds permissions */ install( _colony: string, overrides?: TransactionOverrides ): Promise; /** * Configures the extension * @param _colony The colony in which the extension holds permissions */ "install(address)"( _colony: string, overrides?: TransactionOverrides ): Promise; /** * Called when upgrading the extension */ finishUpgrade(overrides?: TransactionOverrides): Promise; /** * Called when upgrading the extension */ "finishUpgrade()"(overrides?: TransactionOverrides): Promise; /** * Called when deprecating (or undeprecating) the extension */ deprecate( _deprecated: boolean, overrides?: TransactionOverrides ): Promise; /** * Called when deprecating (or undeprecating) the extension */ "deprecate(bool)"( _deprecated: boolean, overrides?: TransactionOverrides ): Promise; /** * Called when uninstalling the extension */ uninstall(overrides?: TransactionOverrides): Promise; /** * Called when uninstalling the extension */ "uninstall()"(overrides?: TransactionOverrides): Promise; /** * Must be called before any sales can be made * @param _maxPerPeriod The maximum number of tokens that can be sold per period * @param _periodLength How long in seconds each period of the sale should last * @param _purchaseToken The token to receive payments in. Use 0x0 for ether * @param _startingPrice The sale price to start at, expressed in units of _purchaseToken per token being sold, as a WAD * @param _targetPerPeriod The number of tokens to aim to sell per period * @param _windowSize Characteristic number of periods that should be used for the moving average. In the long-term, 86% of the weighting will be in this window size. The higher the number, the slower the price will be to adjust */ initialise( _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _tokensToSell: BigNumberish, _startingPrice: BigNumberish, overrides?: TransactionOverrides ): Promise; /** * Must be called before any sales can be made * @param _maxPerPeriod The maximum number of tokens that can be sold per period * @param _periodLength How long in seconds each period of the sale should last * @param _purchaseToken The token to receive payments in. Use 0x0 for ether * @param _startingPrice The sale price to start at, expressed in units of _purchaseToken per token being sold, as a WAD * @param _targetPerPeriod The number of tokens to aim to sell per period * @param _windowSize Characteristic number of periods that should be used for the moving average. In the long-term, 86% of the weighting will be in this window size. The higher the number, the slower the price will be to adjust */ "initialise(address,uint256,uint256,uint256,uint256,uint256,uint256)"( _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _tokensToSell: BigNumberish, _startingPrice: BigNumberish, overrides?: TransactionOverrides ): Promise; /** * Purchase tokens from Coin Machine. * @param _numTokens The number of tokens to purchase */ buyTokens( _numTokens: BigNumberish, overrides?: TransactionOverrides ): Promise; /** * Purchase tokens from Coin Machine. * @param _numTokens The number of tokens to purchase */ "buyTokens(uint256)"( _numTokens: BigNumberish, overrides?: TransactionOverrides ): Promise; /** * Bring the token accounting current */ updatePeriod(overrides?: TransactionOverrides): Promise; /** * Bring the token accounting current */ "updatePeriod()"(overrides?: TransactionOverrides): Promise; /** * Get the length of the sale period */ getPeriodLength(overrides?: TransactionOverrides): Promise; /** * Get the length of the sale period */ "getPeriodLength()"(overrides?: TransactionOverrides): Promise; /** * Get the size of the averaging window */ getWindowSize(overrides?: TransactionOverrides): Promise; /** * Get the size of the averaging window */ "getWindowSize()"(overrides?: TransactionOverrides): Promise; /** * Get the target number of tokens to sell per period */ getTargetPerPeriod(overrides?: TransactionOverrides): Promise; /** * Get the target number of tokens to sell per period */ "getTargetPerPeriod()"( overrides?: TransactionOverrides ): Promise; /** * Get the maximum number of tokens to sell per period */ getMaxPerPeriod(overrides?: TransactionOverrides): Promise; /** * Get the maximum number of tokens to sell per period */ "getMaxPerPeriod()"(overrides?: TransactionOverrides): Promise; /** * Get the total number of tokens remaining for sale */ getTokensToSell(overrides?: TransactionOverrides): Promise; /** * Get the total number of tokens remaining for sale */ "getTokensToSell()"(overrides?: TransactionOverrides): Promise; /** * Get the current price per token */ getCurrentPrice(overrides?: TransactionOverrides): Promise; /** * Get the current price per token */ "getCurrentPrice()"(overrides?: TransactionOverrides): Promise; /** * Get the number of remaining tokens for sale this period */ getNumAvailable(overrides?: TransactionOverrides): Promise; /** * Get the number of remaining tokens for sale this period */ "getNumAvailable()"(overrides?: TransactionOverrides): Promise; }; }