Skip to main content

Interface: CoinMachineClientV2

Hierarchy

  • AugmentedCoinMachine<CoinMachine>

    CoinMachineClientV2

Properties

_deployedPromise

_deployedPromise: Promise<Contract>

Inherited from

AugmentedCoinMachine._deployedPromise


_runningEvents

_runningEvents: Object

Index signature

[eventTag: string]: RunningEvent

Inherited from

AugmentedCoinMachine._runningEvents


_wrappedEmits

_wrappedEmits: Object

Index signature

[eventTag: string]: (...args: any[]) => void

Inherited from

AugmentedCoinMachine._wrappedEmits


address

Readonly address: string

Inherited from

AugmentedCoinMachine.address


callStatic

callStatic: Object

Type declaration

NameType
authority(overrides?: CallOverrides) => Promise<string>
authority()(overrides?: CallOverrides) => Promise<string>
buyTokens(_numTokens: BigNumberish, overrides?: CallOverrides) => Promise<void>
buyTokens(uint256)(_numTokens: BigNumberish, overrides?: CallOverrides) => Promise<void>
deprecate(_deprecated: boolean, overrides?: CallOverrides) => Promise<void>
deprecate(bool)(_deprecated: boolean, overrides?: CallOverrides) => Promise<void>
finishUpgrade(overrides?: CallOverrides) => Promise<void>
finishUpgrade()(overrides?: CallOverrides) => Promise<void>
getActiveIntake(overrides?: CallOverrides) => Promise<BigNumber>
getActiveIntake()(overrides?: CallOverrides) => Promise<BigNumber>
getActivePeriod(overrides?: CallOverrides) => Promise<BigNumber>
getActivePeriod()(overrides?: CallOverrides) => Promise<BigNumber>
getActiveSold(overrides?: CallOverrides) => Promise<BigNumber>
getActiveSold()(overrides?: CallOverrides) => Promise<BigNumber>
getCapabilityRoles(_sig: BytesLike, overrides?: CallOverrides) => Promise<string>
getCapabilityRoles(bytes4)(_sig: BytesLike, overrides?: CallOverrides) => Promise<string>
getColony(overrides?: CallOverrides) => Promise<string>
getColony()(overrides?: CallOverrides) => Promise<string>
getCurrentPrice(overrides?: CallOverrides) => Promise<BigNumber>
getCurrentPrice()(overrides?: CallOverrides) => Promise<BigNumber>
getDeprecated(overrides?: CallOverrides) => Promise<boolean>
getDeprecated()(overrides?: CallOverrides) => Promise<boolean>
getEMAIntake(overrides?: CallOverrides) => Promise<BigNumber>
getEMAIntake()(overrides?: CallOverrides) => Promise<BigNumber>
getEvolvePrice(overrides?: CallOverrides) => Promise<boolean>
getEvolvePrice()(overrides?: CallOverrides) => Promise<boolean>
getMaxPerPeriod(overrides?: CallOverrides) => Promise<BigNumber>
getMaxPerPeriod()(overrides?: CallOverrides) => Promise<BigNumber>
getMaxPurchase(_user: string, overrides?: CallOverrides) => Promise<BigNumber>
getMaxPurchase(address)(_user: string, overrides?: CallOverrides) => Promise<BigNumber>
getPeriodLength(overrides?: CallOverrides) => Promise<BigNumber>
getPeriodLength()(overrides?: CallOverrides) => Promise<BigNumber>
getPurchaseToken(overrides?: CallOverrides) => Promise<string>
getPurchaseToken()(overrides?: CallOverrides) => Promise<string>
getSellableTokens(overrides?: CallOverrides) => Promise<BigNumber>
getSellableTokens()(overrides?: CallOverrides) => Promise<BigNumber>
getTargetPerPeriod(overrides?: CallOverrides) => Promise<BigNumber>
getTargetPerPeriod()(overrides?: CallOverrides) => Promise<BigNumber>
getToken(overrides?: CallOverrides) => Promise<string>
getToken()(overrides?: CallOverrides) => Promise<string>
getTokenBalance(overrides?: CallOverrides) => Promise<BigNumber>
getTokenBalance()(overrides?: CallOverrides) => Promise<BigNumber>
getUserLimit(_user: string, overrides?: CallOverrides) => Promise<BigNumber>
getUserLimit(address)(_user: string, overrides?: CallOverrides) => Promise<BigNumber>
getWhitelist(overrides?: CallOverrides) => Promise<string>
getWhitelist()(overrides?: CallOverrides) => Promise<string>
getWindowSize(overrides?: CallOverrides) => Promise<BigNumber>
getWindowSize()(overrides?: CallOverrides) => Promise<BigNumber>
identifier(overrides?: CallOverrides) => Promise<string>
identifier()(overrides?: CallOverrides) => Promise<string>
initialise(_token: string, _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _userLimitFraction: BigNumberish, _startingPrice: BigNumberish, _whitelist: string, overrides?: CallOverrides) => Promise<void>
initialise(address,address,uint256,uint256,uint256,uint256,uint256,uint256,address)(_token: string, _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _userLimitFraction: BigNumberish, _startingPrice: BigNumberish, _whitelist: string, overrides?: CallOverrides) => Promise<void>
install(_colony: string, overrides?: CallOverrides) => Promise<void>
install(address)(_colony: string, overrides?: CallOverrides) => Promise<void>
owner(overrides?: CallOverrides) => Promise<string>
owner()(overrides?: CallOverrides) => Promise<string>
setAuthority(authority_: string, overrides?: CallOverrides) => Promise<void>
setAuthority(address)(authority_: string, overrides?: CallOverrides) => Promise<void>
setOwner(owner_: string, overrides?: CallOverrides) => Promise<void>
setOwner(address)(owner_: string, overrides?: CallOverrides) => Promise<void>
setWhitelist(_whitelist: string, overrides?: CallOverrides) => Promise<void>
setWhitelist(address)(_whitelist: string, overrides?: CallOverrides) => Promise<void>
uninstall(overrides?: CallOverrides) => Promise<void>
uninstall()(overrides?: CallOverrides) => Promise<void>
updatePeriod(overrides?: CallOverrides) => Promise<void>
updatePeriod()(overrides?: CallOverrides) => Promise<void>
version(overrides?: CallOverrides) => Promise<BigNumber>
version()(overrides?: CallOverrides) => Promise<BigNumber>

Inherited from

AugmentedCoinMachine.callStatic


clientType

clientType: CoinMachineClient

Inherited from

AugmentedCoinMachine.clientType


clientVersion

clientVersion: 2

Overrides

AugmentedCoinMachine.clientVersion


coinMachineEvents

coinMachineEvents: CoinMachineEvents

The coinMachineEvents contract supports all events across all versions. Isn't that amazing? It's an ethers contract with only events to filter

Inherited from

AugmentedCoinMachine.coinMachineEvents


colonyClient

colonyClient: AugmentedIColony

An instance of the corresponding ColonyClient

Inherited from

AugmentedCoinMachine.colonyClient


deployTransaction

Readonly deployTransaction: TransactionResponse

Inherited from

AugmentedCoinMachine.deployTransaction


estimateGas

estimateGas: Object

Type declaration

NameType
authority(overrides?: CallOverrides) => Promise<BigNumber>
authority()(overrides?: CallOverrides) => Promise<BigNumber>
buyTokens(_numTokens: BigNumberish, overrides?: PayableOverrides & { from?: string }) => Promise<BigNumber>
buyTokens(uint256)(_numTokens: BigNumberish, overrides?: PayableOverrides & { from?: string }) => Promise<BigNumber>
deprecate(_deprecated: boolean, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
deprecate(bool)(_deprecated: boolean, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
finishUpgrade(overrides?: Overrides & { from?: string }) => Promise<BigNumber>
finishUpgrade()(overrides?: Overrides & { from?: string }) => Promise<BigNumber>
getActiveIntake(overrides?: CallOverrides) => Promise<BigNumber>
getActiveIntake()(overrides?: CallOverrides) => Promise<BigNumber>
getActivePeriod(overrides?: CallOverrides) => Promise<BigNumber>
getActivePeriod()(overrides?: CallOverrides) => Promise<BigNumber>
getActiveSold(overrides?: CallOverrides) => Promise<BigNumber>
getActiveSold()(overrides?: CallOverrides) => Promise<BigNumber>
getCapabilityRoles(_sig: BytesLike, overrides?: CallOverrides) => Promise<BigNumber>
getCapabilityRoles(bytes4)(_sig: BytesLike, overrides?: CallOverrides) => Promise<BigNumber>
getColony(overrides?: CallOverrides) => Promise<BigNumber>
getColony()(overrides?: CallOverrides) => Promise<BigNumber>
getCurrentPrice(overrides?: CallOverrides) => Promise<BigNumber>
getCurrentPrice()(overrides?: CallOverrides) => Promise<BigNumber>
getDeprecated(overrides?: CallOverrides) => Promise<BigNumber>
getDeprecated()(overrides?: CallOverrides) => Promise<BigNumber>
getEMAIntake(overrides?: CallOverrides) => Promise<BigNumber>
getEMAIntake()(overrides?: CallOverrides) => Promise<BigNumber>
getEvolvePrice(overrides?: CallOverrides) => Promise<BigNumber>
getEvolvePrice()(overrides?: CallOverrides) => Promise<BigNumber>
getMaxPerPeriod(overrides?: CallOverrides) => Promise<BigNumber>
getMaxPerPeriod()(overrides?: CallOverrides) => Promise<BigNumber>
getMaxPurchase(_user: string, overrides?: CallOverrides) => Promise<BigNumber>
getMaxPurchase(address)(_user: string, overrides?: CallOverrides) => Promise<BigNumber>
getPeriodLength(overrides?: CallOverrides) => Promise<BigNumber>
getPeriodLength()(overrides?: CallOverrides) => Promise<BigNumber>
getPurchaseToken(overrides?: CallOverrides) => Promise<BigNumber>
getPurchaseToken()(overrides?: CallOverrides) => Promise<BigNumber>
getSellableTokens(overrides?: CallOverrides) => Promise<BigNumber>
getSellableTokens()(overrides?: CallOverrides) => Promise<BigNumber>
getTargetPerPeriod(overrides?: CallOverrides) => Promise<BigNumber>
getTargetPerPeriod()(overrides?: CallOverrides) => Promise<BigNumber>
getToken(overrides?: CallOverrides) => Promise<BigNumber>
getToken()(overrides?: CallOverrides) => Promise<BigNumber>
getTokenBalance(overrides?: CallOverrides) => Promise<BigNumber>
getTokenBalance()(overrides?: CallOverrides) => Promise<BigNumber>
getUserLimit(_user: string, overrides?: CallOverrides) => Promise<BigNumber>
getUserLimit(address)(_user: string, overrides?: CallOverrides) => Promise<BigNumber>
getWhitelist(overrides?: CallOverrides) => Promise<BigNumber>
getWhitelist()(overrides?: CallOverrides) => Promise<BigNumber>
getWindowSize(overrides?: CallOverrides) => Promise<BigNumber>
getWindowSize()(overrides?: CallOverrides) => Promise<BigNumber>
identifier(overrides?: CallOverrides) => Promise<BigNumber>
identifier()(overrides?: CallOverrides) => Promise<BigNumber>
initialise(_token: string, _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _userLimitFraction: BigNumberish, _startingPrice: BigNumberish, _whitelist: string, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
initialise(address,address,uint256,uint256,uint256,uint256,uint256,uint256,address)(_token: string, _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _userLimitFraction: BigNumberish, _startingPrice: BigNumberish, _whitelist: string, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
install(_colony: string, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
install(address)(_colony: string, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
owner(overrides?: CallOverrides) => Promise<BigNumber>
owner()(overrides?: CallOverrides) => Promise<BigNumber>
setAuthority(authority_: string, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
setAuthority(address)(authority_: string, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
setOwner(owner_: string, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
setOwner(address)(owner_: string, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
setWhitelist(_whitelist: string, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
setWhitelist(address)(_whitelist: string, overrides?: Overrides & { from?: string }) => Promise<BigNumber>
uninstall(overrides?: Overrides & { from?: string }) => Promise<BigNumber>
uninstall()(overrides?: Overrides & { from?: string }) => Promise<BigNumber>
updatePeriod(overrides?: Overrides & { from?: string }) => Promise<BigNumber>
updatePeriod()(overrides?: Overrides & { from?: string }) => Promise<BigNumber>
version(overrides?: CallOverrides) => Promise<BigNumber>
version()(overrides?: CallOverrides) => Promise<BigNumber>

Inherited from

AugmentedCoinMachine.estimateGas


filters

filters: Object

Type declaration

NameType
ExtensionInitialised() => ExtensionInitialisedEventFilter
ExtensionInitialised()() => ExtensionInitialisedEventFilter
LogSetAuthority(authority?: null | string) => LogSetAuthorityEventFilter
LogSetAuthority(address)(authority?: null | string) => LogSetAuthorityEventFilter
LogSetOwner(owner?: null | string) => LogSetOwnerEventFilter
LogSetOwner(address)(owner?: null | string) => LogSetOwnerEventFilter
PeriodUpdated(activePeriod?: null, currentPeriod?: null) => PeriodUpdatedEventFilter
PeriodUpdated(uint256,uint256)(activePeriod?: null, currentPeriod?: null) => PeriodUpdatedEventFilter
PriceEvolutionSet(evolvePrice?: null) => PriceEvolutionSetEventFilter
PriceEvolutionSet(bool)(evolvePrice?: null) => PriceEvolutionSetEventFilter
TokensBought(buyer?: null, numTokens?: null, totalCost?: null) => TokensBoughtEventFilter
TokensBought(address,uint256,uint256)(buyer?: null, numTokens?: null, totalCost?: null) => TokensBoughtEventFilter
WhitelistSet(whitelist?: null) => WhitelistSetEventFilter
WhitelistSet(address)(whitelist?: null) => WhitelistSetEventFilter

Inherited from

AugmentedCoinMachine.filters


functions

functions: Object

Type declaration

NameType
authority(overrides?: CallOverrides) => Promise<[string]>
authority()(overrides?: CallOverrides) => Promise<[string]>
buyTokens(_numTokens: BigNumberish, overrides?: PayableOverrides & { from?: string }) => Promise<ContractTransaction>
buyTokens(uint256)(_numTokens: BigNumberish, overrides?: PayableOverrides & { from?: string }) => Promise<ContractTransaction>
deprecate(_deprecated: boolean, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
deprecate(bool)(_deprecated: boolean, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
finishUpgrade(overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
finishUpgrade()(overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
getActiveIntake(overrides?: CallOverrides) => Promise<[BigNumber]>
getActiveIntake()(overrides?: CallOverrides) => Promise<[BigNumber]>
getActivePeriod(overrides?: CallOverrides) => Promise<[BigNumber]>
getActivePeriod()(overrides?: CallOverrides) => Promise<[BigNumber]>
getActiveSold(overrides?: CallOverrides) => Promise<[BigNumber]>
getActiveSold()(overrides?: CallOverrides) => Promise<[BigNumber]>
getCapabilityRoles(_sig: BytesLike, overrides?: CallOverrides) => Promise<[string]>
getCapabilityRoles(bytes4)(_sig: BytesLike, overrides?: CallOverrides) => Promise<[string]>
getColony(overrides?: CallOverrides) => Promise<[string]>
getColony()(overrides?: CallOverrides) => Promise<[string]>
getCurrentPrice(overrides?: CallOverrides) => Promise<[BigNumber]>
getCurrentPrice()(overrides?: CallOverrides) => Promise<[BigNumber]>
getDeprecated(overrides?: CallOverrides) => Promise<[boolean]>
getDeprecated()(overrides?: CallOverrides) => Promise<[boolean]>
getEMAIntake(overrides?: CallOverrides) => Promise<[BigNumber]>
getEMAIntake()(overrides?: CallOverrides) => Promise<[BigNumber]>
getEvolvePrice(overrides?: CallOverrides) => Promise<[boolean]>
getEvolvePrice()(overrides?: CallOverrides) => Promise<[boolean]>
getMaxPerPeriod(overrides?: CallOverrides) => Promise<[BigNumber]>
getMaxPerPeriod()(overrides?: CallOverrides) => Promise<[BigNumber]>
getMaxPurchase(_user: string, overrides?: CallOverrides) => Promise<[BigNumber]>
getMaxPurchase(address)(_user: string, overrides?: CallOverrides) => Promise<[BigNumber]>
getPeriodLength(overrides?: CallOverrides) => Promise<[BigNumber]>
getPeriodLength()(overrides?: CallOverrides) => Promise<[BigNumber]>
getPurchaseToken(overrides?: CallOverrides) => Promise<[string]>
getPurchaseToken()(overrides?: CallOverrides) => Promise<[string]>
getSellableTokens(overrides?: CallOverrides) => Promise<[BigNumber]>
getSellableTokens()(overrides?: CallOverrides) => Promise<[BigNumber]>
getTargetPerPeriod(overrides?: CallOverrides) => Promise<[BigNumber]>
getTargetPerPeriod()(overrides?: CallOverrides) => Promise<[BigNumber]>
getToken(overrides?: CallOverrides) => Promise<[string]>
getToken()(overrides?: CallOverrides) => Promise<[string]>
getTokenBalance(overrides?: CallOverrides) => Promise<[BigNumber]>
getTokenBalance()(overrides?: CallOverrides) => Promise<[BigNumber]>
getUserLimit(_user: string, overrides?: CallOverrides) => Promise<[BigNumber]>
getUserLimit(address)(_user: string, overrides?: CallOverrides) => Promise<[BigNumber]>
getWhitelist(overrides?: CallOverrides) => Promise<[string]>
getWhitelist()(overrides?: CallOverrides) => Promise<[string]>
getWindowSize(overrides?: CallOverrides) => Promise<[BigNumber]>
getWindowSize()(overrides?: CallOverrides) => Promise<[BigNumber]>
identifier(overrides?: CallOverrides) => Promise<[string]>
identifier()(overrides?: CallOverrides) => Promise<[string]>
initialise(_token: string, _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _userLimitFraction: BigNumberish, _startingPrice: BigNumberish, _whitelist: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
initialise(address,address,uint256,uint256,uint256,uint256,uint256,uint256,address)(_token: string, _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _userLimitFraction: BigNumberish, _startingPrice: BigNumberish, _whitelist: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
install(_colony: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
install(address)(_colony: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
owner(overrides?: CallOverrides) => Promise<[string]>
owner()(overrides?: CallOverrides) => Promise<[string]>
setAuthority(authority_: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setAuthority(address)(authority_: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setOwner(owner_: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setOwner(address)(owner_: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setWhitelist(_whitelist: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
setWhitelist(address)(_whitelist: string, overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
uninstall(overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
uninstall()(overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
updatePeriod(overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
updatePeriod()(overrides?: Overrides & { from?: string }) => Promise<ContractTransaction>
version(overrides?: CallOverrides) => Promise<[BigNumber]>
version()(overrides?: CallOverrides) => Promise<[BigNumber]>

Inherited from

AugmentedCoinMachine.functions


interface

interface: CoinMachineInterface

Inherited from

AugmentedCoinMachine.interface


off

off: OnEvent<CoinMachineClientV2>

Inherited from

AugmentedCoinMachine.off


on

on: OnEvent<CoinMachineClientV2>

Inherited from

AugmentedCoinMachine.on


once

once: OnEvent<CoinMachineClientV2>

Inherited from

AugmentedCoinMachine.once


populateTransaction

populateTransaction: Object

Type declaration

NameType
authority(overrides?: CallOverrides) => Promise<PopulatedTransaction>
authority()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
buyTokens(_numTokens: BigNumberish, overrides?: PayableOverrides & { from?: string }) => Promise<PopulatedTransaction>
buyTokens(uint256)(_numTokens: BigNumberish, overrides?: PayableOverrides & { from?: string }) => Promise<PopulatedTransaction>
deprecate(_deprecated: boolean, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
deprecate(bool)(_deprecated: boolean, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
finishUpgrade(overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
finishUpgrade()(overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
getActiveIntake(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getActiveIntake()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getActivePeriod(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getActivePeriod()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getActiveSold(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getActiveSold()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getCapabilityRoles(_sig: BytesLike, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getCapabilityRoles(bytes4)(_sig: BytesLike, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getColony(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getColony()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getCurrentPrice(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getCurrentPrice()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getDeprecated(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getDeprecated()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getEMAIntake(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getEMAIntake()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getEvolvePrice(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getEvolvePrice()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getMaxPerPeriod(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getMaxPerPeriod()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getMaxPurchase(_user: string, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getMaxPurchase(address)(_user: string, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getPeriodLength(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getPeriodLength()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getPurchaseToken(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getPurchaseToken()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getSellableTokens(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getSellableTokens()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getTargetPerPeriod(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getTargetPerPeriod()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getToken(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getToken()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getTokenBalance(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getTokenBalance()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getUserLimit(_user: string, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getUserLimit(address)(_user: string, overrides?: CallOverrides) => Promise<PopulatedTransaction>
getWhitelist(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getWhitelist()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getWindowSize(overrides?: CallOverrides) => Promise<PopulatedTransaction>
getWindowSize()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
identifier(overrides?: CallOverrides) => Promise<PopulatedTransaction>
identifier()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
initialise(_token: string, _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _userLimitFraction: BigNumberish, _startingPrice: BigNumberish, _whitelist: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
initialise(address,address,uint256,uint256,uint256,uint256,uint256,uint256,address)(_token: string, _purchaseToken: string, _periodLength: BigNumberish, _windowSize: BigNumberish, _targetPerPeriod: BigNumberish, _maxPerPeriod: BigNumberish, _userLimitFraction: BigNumberish, _startingPrice: BigNumberish, _whitelist: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
install(_colony: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
install(address)(_colony: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
owner(overrides?: CallOverrides) => Promise<PopulatedTransaction>
owner()(overrides?: CallOverrides) => Promise<PopulatedTransaction>
setAuthority(authority_: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setAuthority(address)(authority_: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setOwner(owner_: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setOwner(address)(owner_: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setWhitelist(_whitelist: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
setWhitelist(address)(_whitelist: string, overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
uninstall(overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
uninstall()(overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
updatePeriod(overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
updatePeriod()(overrides?: Overrides & { from?: string }) => Promise<PopulatedTransaction>
version(overrides?: CallOverrides) => Promise<PopulatedTransaction>
version()(overrides?: CallOverrides) => Promise<PopulatedTransaction>

Inherited from

AugmentedCoinMachine.populateTransaction


provider

Readonly provider: Provider

Inherited from

AugmentedCoinMachine.provider


removeListener

removeListener: OnEvent<CoinMachineClientV2>

Inherited from

AugmentedCoinMachine.removeListener


resolvedAddress

Readonly resolvedAddress: Promise<string>

Inherited from

AugmentedCoinMachine.resolvedAddress


signer

Readonly signer: Signer

Inherited from

AugmentedCoinMachine.signer

Methods

_checkRunningEvents

_checkRunningEvents(runningEvent): void

Parameters

NameType
runningEventRunningEvent

Returns

void

Inherited from

AugmentedCoinMachine._checkRunningEvents


_deployed

_deployed(blockTag?): Promise<Contract>

Parameters

NameType
blockTag?BlockTag

Returns

Promise<Contract>

Inherited from

AugmentedCoinMachine._deployed


_wrapEvent

_wrapEvent(runningEvent, log, listener): Event

Parameters

NameType
runningEventRunningEvent
logLog
listenerListener

Returns

Event

Inherited from

AugmentedCoinMachine._wrapEvent


attach

attach(addressOrName): CoinMachineClientV2

Parameters

NameType
addressOrNamestring

Returns

CoinMachineClientV2

Inherited from

AugmentedCoinMachine.attach


authority

authority(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.authority


authority()

authority()(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.authority()


buyTokens

buyTokens(_numTokens, overrides?): Promise<ContractTransaction>

Purchase tokens from Coin Machine.

Parameters

NameTypeDescription
_numTokensBigNumberishThe number of tokens to purchase
overrides?PayableOverrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.buyTokens


buyTokens(uint256)

buyTokens(uint256)(_numTokens, overrides?): Promise<ContractTransaction>

Purchase tokens from Coin Machine.

Parameters

NameTypeDescription
_numTokensBigNumberishThe number of tokens to purchase
overrides?PayableOverrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.buyTokens(uint256)


connect

connect(signerOrProvider): CoinMachineClientV2

Parameters

NameType
signerOrProviderstring | Signer | Provider

Returns

CoinMachineClientV2

Inherited from

AugmentedCoinMachine.connect


deployed

deployed(): Promise<CoinMachineClientV2>

Returns

Promise<CoinMachineClientV2>

Inherited from

AugmentedCoinMachine.deployed


deprecate

deprecate(_deprecated, overrides?): Promise<ContractTransaction>

Called when deprecating (or undeprecating) the extension

Parameters

NameType
_deprecatedboolean
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.deprecate


deprecate(bool)

deprecate(bool)(_deprecated, overrides?): Promise<ContractTransaction>

Called when deprecating (or undeprecating) the extension

Parameters

NameType
_deprecatedboolean
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.deprecate(bool)


emit

emit(eventName, ...args): boolean

Parameters

NameType
eventNamestring | EventFilter
...argsany[]

Returns

boolean

Inherited from

AugmentedCoinMachine.emit


fallback

fallback(overrides?): Promise<TransactionResponse>

Parameters

NameType
overrides?TransactionRequest

Returns

Promise<TransactionResponse>

Inherited from

AugmentedCoinMachine.fallback


finishUpgrade

finishUpgrade(overrides?): Promise<ContractTransaction>

Called when upgrading the extension

Parameters

NameType
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.finishUpgrade


finishUpgrade()

finishUpgrade()(overrides?): Promise<ContractTransaction>

Called when upgrading the extension

Parameters

NameType
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.finishUpgrade()


getActiveIntake

getActiveIntake(overrides?): Promise<BigNumber>

Get the number of tokens received in the period that the price was last updated for or a purchase was made

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getActiveIntake


getActiveIntake()

getActiveIntake()(overrides?): Promise<BigNumber>

Get the number of tokens received in the period that the price was last updated for or a purchase was made

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getActiveIntake()


getActivePeriod

getActivePeriod(overrides?): Promise<BigNumber>

Get the period that the price was last updated for or a purchase was made

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getActivePeriod


getActivePeriod()

getActivePeriod()(overrides?): Promise<BigNumber>

Get the period that the price was last updated for or a purchase was made

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getActivePeriod()


getActiveSold

getActiveSold(overrides?): Promise<BigNumber>

Get the number of tokens sold in the period that the price was last updated for or a purchase was made

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getActiveSold


getActiveSold()

getActiveSold()(overrides?): Promise<BigNumber>

Get the number of tokens sold in the period that the price was last updated for or a purchase was made

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getActiveSold()


getCapabilityRoles

getCapabilityRoles(_sig, overrides?): Promise<string>

Parameters

NameType
_sigBytesLike
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.getCapabilityRoles


getCapabilityRoles(bytes4)

getCapabilityRoles(bytes4)(_sig, overrides?): Promise<string>

Parameters

NameType
_sigBytesLike
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.getCapabilityRoles(bytes4)


getColony

getColony(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.getColony


getColony()

getColony()(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.getColony()


getCurrentPrice

getCurrentPrice(overrides?): Promise<BigNumber>

Get the current price per token

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getCurrentPrice


getCurrentPrice()

getCurrentPrice()(overrides?): Promise<BigNumber>

Get the current price per token

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getCurrentPrice()


getDeprecated

getDeprecated(overrides?): Promise<boolean>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<boolean>

Inherited from

AugmentedCoinMachine.getDeprecated


getDeprecated()

getDeprecated()(overrides?): Promise<boolean>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<boolean>

Inherited from

AugmentedCoinMachine.getDeprecated()


getEMAIntake

getEMAIntake(overrides?): Promise<BigNumber>

Get the EMA of the number of tokens received each period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getEMAIntake


getEMAIntake()

getEMAIntake()(overrides?): Promise<BigNumber>

Get the EMA of the number of tokens received each period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getEMAIntake()


getEvolvePrice

getEvolvePrice(overrides?): Promise<boolean>

Get the evolvePrice boolean

Parameters

NameType
overrides?CallOverrides

Returns

Promise<boolean>

Inherited from

AugmentedCoinMachine.getEvolvePrice


getEvolvePrice()

getEvolvePrice()(overrides?): Promise<boolean>

Get the evolvePrice boolean

Parameters

NameType
overrides?CallOverrides

Returns

Promise<boolean>

Inherited from

AugmentedCoinMachine.getEvolvePrice()


getMaxPerPeriod

getMaxPerPeriod(overrides?): Promise<BigNumber>

Get the maximum number of tokens to sell per period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getMaxPerPeriod


getMaxPerPeriod()

getMaxPerPeriod()(overrides?): Promise<BigNumber>

Get the maximum number of tokens to sell per period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getMaxPerPeriod()


getMaxPurchase

getMaxPurchase(_user, overrides?): Promise<BigNumber>

Get the maximum amount of tokens a user can purchase in a period

Parameters

NameType
_userstring
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getMaxPurchase


getMaxPurchase(address)

getMaxPurchase(address)(_user, overrides?): Promise<BigNumber>

Get the maximum amount of tokens a user can purchase in a period

Parameters

NameType
_userstring
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getMaxPurchase(address)


getPeriodLength

getPeriodLength(overrides?): Promise<BigNumber>

Get the length of the sale period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getPeriodLength


getPeriodLength()

getPeriodLength()(overrides?): Promise<BigNumber>

Get the length of the sale period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getPeriodLength()


getPurchaseToken

getPurchaseToken(overrides?): Promise<string>

Get the address of the token being used to make purchases

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.getPurchaseToken


getPurchaseToken()

getPurchaseToken()(overrides?): Promise<string>

Get the address of the token being used to make purchases

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.getPurchaseToken()


getSellableTokens

getSellableTokens(overrides?): Promise<BigNumber>

Get the number of remaining tokens for sale this period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getSellableTokens


getSellableTokens()

getSellableTokens()(overrides?): Promise<BigNumber>

Get the number of remaining tokens for sale this period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getSellableTokens()


getTargetPerPeriod

getTargetPerPeriod(overrides?): Promise<BigNumber>

Get the target number of tokens to sell per period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getTargetPerPeriod


getTargetPerPeriod()

getTargetPerPeriod()(overrides?): Promise<BigNumber>

Get the target number of tokens to sell per period

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getTargetPerPeriod()


getToken

getToken(overrides?): Promise<string>

Get the address of the token being sold

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.getToken


getToken()

getToken()(overrides?): Promise<string>

Get the address of the token being sold

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.getToken()


getTokenBalance

getTokenBalance(overrides?): Promise<BigNumber>

Get the remaining balance of tokens

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getTokenBalance


getTokenBalance()

getTokenBalance()(overrides?): Promise<BigNumber>

Get the remaining balance of tokens

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getTokenBalance()


getUserLimit

getUserLimit(_user, overrides?): Promise<BigNumber>

Get the maximum amount of tokens a user can purchase in total

Parameters

NameType
_userstring
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getUserLimit


getUserLimit(address)

getUserLimit(address)(_user, overrides?): Promise<BigNumber>

Get the maximum amount of tokens a user can purchase in total

Parameters

NameType
_userstring
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getUserLimit(address)


getWhitelist

getWhitelist(overrides?): Promise<string>

Get the address of the whitelist (if exists)

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.getWhitelist


getWhitelist()

getWhitelist()(overrides?): Promise<string>

Get the address of the whitelist (if exists)

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.getWhitelist()


getWindowSize

getWindowSize(overrides?): Promise<BigNumber>

Get the size of the averaging window

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getWindowSize


getWindowSize()

getWindowSize()(overrides?): Promise<BigNumber>

Get the size of the averaging window

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.getWindowSize()


identifier

identifier(overrides?): Promise<string>

Returns the identifier of the extension

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.identifier


identifier()

identifier()(overrides?): Promise<string>

Returns the identifier of the extension

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.identifier()


initialise

initialise(_token, _purchaseToken, _periodLength, _windowSize, _targetPerPeriod, _maxPerPeriod, _userLimitFraction, _startingPrice, _whitelist, overrides?): Promise<ContractTransaction>

Must be called before any sales can be made

Parameters

NameTypeDescription
_tokenstringThe token we are selling. Cannot be ether
_purchaseTokenstringThe token to receive payments in. Use 0x0 for ether
_periodLengthBigNumberishHow long in seconds each period of the sale should last
_windowSizeBigNumberishCharacteristic 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
_targetPerPeriodBigNumberishThe number of tokens to aim to sell per period
_maxPerPeriodBigNumberishThe maximum number of tokens that can be sold per period
_userLimitFractionBigNumberish-
_startingPriceBigNumberishThe sale price to start at, expressed in units of _purchaseToken per token being sold, as a WAD
_whiteliststringOptionally an address of a whitelist contract to use can be provided. Pass 0x0 if no whitelist being used
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.initialise


initialise(address,address,uint256,uint256,uint256,uint256,uint256,uint256,address)

initialise(address,address,uint256,uint256,uint256,uint256,uint256,uint256,address)(_token, _purchaseToken, _periodLength, _windowSize, _targetPerPeriod, _maxPerPeriod, _userLimitFraction, _startingPrice, _whitelist, overrides?): Promise<ContractTransaction>

Must be called before any sales can be made

Parameters

NameTypeDescription
_tokenstringThe token we are selling. Cannot be ether
_purchaseTokenstringThe token to receive payments in. Use 0x0 for ether
_periodLengthBigNumberishHow long in seconds each period of the sale should last
_windowSizeBigNumberishCharacteristic 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
_targetPerPeriodBigNumberishThe number of tokens to aim to sell per period
_maxPerPeriodBigNumberishThe maximum number of tokens that can be sold per period
_userLimitFractionBigNumberish-
_startingPriceBigNumberishThe sale price to start at, expressed in units of _purchaseToken per token being sold, as a WAD
_whiteliststringOptionally an address of a whitelist contract to use can be provided. Pass 0x0 if no whitelist being used
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.initialise(address,address,uint256,uint256,uint256,uint256,uint256,uint256,address)


install

install(_colony, overrides?): Promise<ContractTransaction>

Configures the extension

Parameters

NameTypeDescription
_colonystringThe colony in which the extension holds permissions
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.install


install(address)

install(address)(_colony, overrides?): Promise<ContractTransaction>

Configures the extension

Parameters

NameTypeDescription
_colonystringThe colony in which the extension holds permissions
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.install(address)


listenerCount

listenerCount(eventName?): number

Parameters

NameType
eventName?string | EventFilter

Returns

number

Inherited from

AugmentedCoinMachine.listenerCount


listeners

listeners<TEvent>(eventFilter?): TypedListener<TEvent>[]

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilter?TypedEventFilter<TEvent>

Returns

TypedListener<TEvent>[]

Inherited from

AugmentedCoinMachine.listeners

listeners(eventName?): Listener[]

Parameters

NameType
eventName?string

Returns

Listener[]

Inherited from

AugmentedCoinMachine.listeners


owner

owner(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.owner


owner()

owner()(overrides?): Promise<string>

Parameters

NameType
overrides?CallOverrides

Returns

Promise<string>

Inherited from

AugmentedCoinMachine.owner()


queryFilter

queryFilter<TEvent>(event, fromBlockOrBlockhash?, toBlock?): Promise<TEvent[]>

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventTypedEventFilter<TEvent>
fromBlockOrBlockhash?string | number
toBlock?string | number

Returns

Promise<TEvent[]>

Inherited from

AugmentedCoinMachine.queryFilter


removeAllListeners

removeAllListeners<TEvent>(eventFilter): CoinMachineClientV2

Type parameters

NameType
TEventextends TypedEvent<any, any, TEvent>

Parameters

NameType
eventFilterTypedEventFilter<TEvent>

Returns

CoinMachineClientV2

Inherited from

AugmentedCoinMachine.removeAllListeners

removeAllListeners(eventName?): CoinMachineClientV2

Parameters

NameType
eventName?string

Returns

CoinMachineClientV2

Inherited from

AugmentedCoinMachine.removeAllListeners


setAuthority

setAuthority(authority_, overrides?): Promise<ContractTransaction>

Parameters

NameType
authority_string
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.setAuthority


setAuthority(address)

setAuthority(address)(authority_, overrides?): Promise<ContractTransaction>

Parameters

NameType
authority_string
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.setAuthority(address)


setOwner

setOwner(owner_, overrides?): Promise<ContractTransaction>

Parameters

NameType
owner_string
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.setOwner


setOwner(address)

setOwner(address)(owner_, overrides?): Promise<ContractTransaction>

Parameters

NameType
owner_string
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.setOwner(address)


setWhitelist

setWhitelist(_whitelist, overrides?): Promise<ContractTransaction>

Set the address for an (optional) whitelist

Parameters

NameTypeDescription
_whiteliststringThe address of the whitelist
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.setWhitelist


setWhitelist(address)

setWhitelist(address)(_whitelist, overrides?): Promise<ContractTransaction>

Set the address for an (optional) whitelist

Parameters

NameTypeDescription
_whiteliststringThe address of the whitelist
overrides?Overrides & { from?: string }-

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.setWhitelist(address)


uninstall

uninstall(overrides?): Promise<ContractTransaction>

Called when uninstalling the extension

Parameters

NameType
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.uninstall


uninstall()

uninstall()(overrides?): Promise<ContractTransaction>

Called when uninstalling the extension

Parameters

NameType
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.uninstall()


updatePeriod

updatePeriod(overrides?): Promise<ContractTransaction>

Bring the token accounting current

Parameters

NameType
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.updatePeriod


updatePeriod()

updatePeriod()(overrides?): Promise<ContractTransaction>

Bring the token accounting current

Parameters

NameType
overrides?Overrides & { from?: string }

Returns

Promise<ContractTransaction>

Inherited from

AugmentedCoinMachine.updatePeriod()


version

version(overrides?): Promise<BigNumber>

Returns the version of the extension

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.version


version()

version()(overrides?): Promise<BigNumber>

Returns the version of the extension

Parameters

NameType
overrides?CallOverrides

Returns

Promise<BigNumber>

Inherited from

AugmentedCoinMachine.version()