Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Contract
    • APWineMathsMock

Index

Constructors

  • new APWineMathsMock(addressOrName: string, contractInterface: ContractInterface, signerOrProvider?: Signer | Provider): APWineMathsMock
  • Parameters

    • addressOrName: string
    • contractInterface: ContractInterface
    • Optional signerOrProvider: Signer | Provider

    Returns APWineMathsMock

Properties

_deployedPromise: Promise<Contract>
_runningEvents: {}

Type declaration

  • [eventTag: string]: RunningEvent
_wrappedEmits: {}

Type declaration

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

        • Rest ...args: any[]

        Returns void

address: string
callStatic: { getActualOutput: any; getActualOutput(uint256,uint256,uint256): any; getScaledInput: any; getScaledInput(uint256,uint256,uint256): any }

Type declaration

  • getActualOutput:function
    • getActualOutput(_scaledOutput: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _scaledOutput: BigNumberish
      • _initialSum: BigNumberish
      • _actualSum: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getActualOutput(uint256,uint256,uint256):function
    • getActualOutput(uint256,uint256,uint256)(_scaledOutput: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _scaledOutput: BigNumberish
      • _initialSum: BigNumberish
      • _actualSum: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getScaledInput:function
    • getScaledInput(_actualValue: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _actualValue: BigNumberish
      • _initialSum: BigNumberish
      • _actualSum: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getScaledInput(uint256,uint256,uint256):function
    • getScaledInput(uint256,uint256,uint256)(_actualValue: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _actualValue: BigNumberish
      • _initialSum: BigNumberish
      • _actualSum: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

deployTransaction: TransactionResponse
estimateGas: { getActualOutput: any; getActualOutput(uint256,uint256,uint256): any; getScaledInput: any; getScaledInput(uint256,uint256,uint256): any }

Type declaration

  • getActualOutput:function
    • getActualOutput(_scaledOutput: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _scaledOutput: BigNumberish
      • _initialSum: BigNumberish
      • _actualSum: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getActualOutput(uint256,uint256,uint256):function
    • getActualOutput(uint256,uint256,uint256)(_scaledOutput: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _scaledOutput: BigNumberish
      • _initialSum: BigNumberish
      • _actualSum: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getScaledInput:function
    • getScaledInput(_actualValue: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _actualValue: BigNumberish
      • _initialSum: BigNumberish
      • _actualSum: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

  • getScaledInput(uint256,uint256,uint256):function
    • getScaledInput(uint256,uint256,uint256)(_actualValue: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _actualValue: BigNumberish
      • _initialSum: BigNumberish
      • _actualSum: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

filters: {}

Type declaration

    functions: { getActualOutput: any; getActualOutput(uint256,uint256,uint256): any; getScaledInput: any; getScaledInput(uint256,uint256,uint256): any }

    Type declaration

    • getActualOutput:function
      • getActualOutput(_scaledOutput: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>
      • Parameters

        • _scaledOutput: BigNumberish
        • _initialSum: BigNumberish
        • _actualSum: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber]>

    • getActualOutput(uint256,uint256,uint256):function
      • getActualOutput(uint256,uint256,uint256)(_scaledOutput: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>
      • Parameters

        • _scaledOutput: BigNumberish
        • _initialSum: BigNumberish
        • _actualSum: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber]>

    • getScaledInput:function
      • getScaledInput(_actualValue: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>
      • Parameters

        • _actualValue: BigNumberish
        • _initialSum: BigNumberish
        • _actualSum: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber]>

    • getScaledInput(uint256,uint256,uint256):function
      • getScaledInput(uint256,uint256,uint256)(_actualValue: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<[BigNumber]>
      • Parameters

        • _actualValue: BigNumberish
        • _initialSum: BigNumberish
        • _actualSum: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<[BigNumber]>

    interface: APWineMathsMockInterface
    populateTransaction: { getActualOutput: any; getActualOutput(uint256,uint256,uint256): any; getScaledInput: any; getScaledInput(uint256,uint256,uint256): any }

    Type declaration

    • getActualOutput:function
      • getActualOutput(_scaledOutput: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _scaledOutput: BigNumberish
        • _initialSum: BigNumberish
        • _actualSum: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getActualOutput(uint256,uint256,uint256):function
      • getActualOutput(uint256,uint256,uint256)(_scaledOutput: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _scaledOutput: BigNumberish
        • _initialSum: BigNumberish
        • _actualSum: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getScaledInput:function
      • getScaledInput(_actualValue: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _actualValue: BigNumberish
        • _initialSum: BigNumberish
        • _actualSum: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    • getScaledInput(uint256,uint256,uint256):function
      • getScaledInput(uint256,uint256,uint256)(_actualValue: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<PopulatedTransaction>
      • Parameters

        • _actualValue: BigNumberish
        • _initialSum: BigNumberish
        • _actualSum: BigNumberish
        • Optional overrides: CallOverrides

        Returns Promise<PopulatedTransaction>

    provider: Provider
    resolvedAddress: Promise<string>
    signer: Signer

    Methods

    • _checkRunningEvents(runningEvent: RunningEvent): void
    • Parameters

      • runningEvent: RunningEvent

      Returns void

    • _deployed(blockTag?: BlockTag): Promise<Contract>
    • Parameters

      • Optional blockTag: BlockTag

      Returns Promise<Contract>

    • _wrapEvent(runningEvent: RunningEvent, log: Log, listener: Listener): Event
    • Parameters

      • runningEvent: RunningEvent
      • log: Log
      • listener: Listener

      Returns Event

    • Parameters

      • addressOrName: string

      Returns APWineMathsMock

    • Parameters

      • signerOrProvider: string | Signer | Provider

      Returns APWineMathsMock

    • Returns Promise<APWineMathsMock>

    • emit(eventName: string | EventFilter, ...args: any[]): boolean
    • Parameters

      • eventName: string | EventFilter
      • Rest ...args: any[]

      Returns boolean

    • fallback(overrides?: TransactionRequest): Promise<TransactionResponse>
    • Parameters

      • Optional overrides: TransactionRequest

      Returns Promise<TransactionResponse>

    • getActualOutput(_scaledOutput: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _scaledOutput: BigNumberish
      • _initialSum: BigNumberish
      • _actualSum: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

    • getActualOutput(uint256,uint256,uint256)(_scaledOutput: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _scaledOutput: BigNumberish
      • _initialSum: BigNumberish
      • _actualSum: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

    • getScaledInput(_actualValue: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _actualValue: BigNumberish
      • _initialSum: BigNumberish
      • _actualSum: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

    • getScaledInput(uint256,uint256,uint256)(_actualValue: BigNumberish, _initialSum: BigNumberish, _actualSum: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>
    • Parameters

      • _actualValue: BigNumberish
      • _initialSum: BigNumberish
      • _actualSum: BigNumberish
      • Optional overrides: CallOverrides

      Returns Promise<BigNumber>

    • listenerCount(eventName?: string | EventFilter): number
    • Parameters

      • Optional eventName: string | EventFilter

      Returns number

    • listeners<EventArgsArray, EventArgsObject>(eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>): TypedListener<EventArgsArray, EventArgsObject>[]
    • listeners(eventName?: string): Listener[]
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • Optional eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

      Returns TypedListener<EventArgsArray, EventArgsObject>[]

    • Parameters

      • Optional eventName: string

      Returns Listener[]

    • off<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): APWineMathsMock
    • off(eventName: string, listener: Listener): APWineMathsMock
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns APWineMathsMock

    • Parameters

      • eventName: string
      • listener: Listener

      Returns APWineMathsMock

    • on<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): APWineMathsMock
    • on(eventName: string, listener: Listener): APWineMathsMock
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns APWineMathsMock

    • Parameters

      • eventName: string
      • listener: Listener

      Returns APWineMathsMock

    • once<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): APWineMathsMock
    • once(eventName: string, listener: Listener): APWineMathsMock
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns APWineMathsMock

    • Parameters

      • eventName: string
      • listener: Listener

      Returns APWineMathsMock

    • queryFilter<EventArgsArray, EventArgsObject>(event: TypedEventFilter<EventArgsArray, EventArgsObject>, fromBlockOrBlockhash?: string | number, toBlock?: string | number): Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • event: TypedEventFilter<EventArgsArray, EventArgsObject>
      • Optional fromBlockOrBlockhash: string | number
      • Optional toBlock: string | number

      Returns Promise<TypedEvent<EventArgsArray & EventArgsObject>[]>

    • removeAllListeners<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>): APWineMathsMock
    • removeAllListeners(eventName?: string): APWineMathsMock
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>

      Returns APWineMathsMock

    • Parameters

      • Optional eventName: string

      Returns APWineMathsMock

    • removeListener<EventArgsArray, EventArgsObject>(eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>, listener: TypedListener<EventArgsArray, EventArgsObject>): APWineMathsMock
    • removeListener(eventName: string, listener: Listener): APWineMathsMock
    • Type parameters

      • EventArgsArray: any[]

      • EventArgsObject

      Parameters

      • eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
      • listener: TypedListener<EventArgsArray, EventArgsObject>

      Returns APWineMathsMock

    • Parameters

      • eventName: string
      • listener: Listener

      Returns APWineMathsMock

    • getContractAddress(transaction: { from: string; nonce: BigNumberish }): string
    • Parameters

      • transaction: { from: string; nonce: BigNumberish }
        • from: string
        • nonce: BigNumberish

      Returns string

    • getInterface(contractInterface: ContractInterface): Interface
    • Parameters

      • contractInterface: ContractInterface

      Returns Interface

    • isIndexed(value: any): value is Indexed
    • Parameters

      • value: any

      Returns value is Indexed

    Generated using TypeDoc, the 4/22/2022