Interface IOptionReward

Hierarchy

  • BaseContract
    • IOptionReward

Properties

[internal]: any

@_ignore:

claimRewards: TypedContractMethod<[strike: BigNumberish, maturity: BigNumberish], [bigint], "nonpayable">
fallback: null | WrappedFallback

The fallback or receive function if any.

filters: {
    RewardsClaimed: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    RewardsClaimed(address,uint256,uint64,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    RewardsNotClaimedReleased: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    RewardsNotClaimedReleased(uint256,uint64,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Settled: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Settled(uint256,uint64,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Underwrite: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Underwrite(address,uint256,uint64,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
}

Type declaration

  • RewardsClaimed: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • RewardsClaimed(address,uint256,uint64,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • RewardsNotClaimedReleased: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • RewardsNotClaimedReleased(uint256,uint64,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Settled: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Settled(uint256,uint64,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Underwrite: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Underwrite(address,uint256,uint64,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
getRedeemableLongs: TypedContractMethod<[user: AddressLike, strike: BigNumberish, maturity: BigNumberish], [bigint], "view">
getRewardPerContract: TypedContractMethod<[strike: BigNumberish, maturity: BigNumberish], [bigint], "view">
getSettings: TypedContractMethod<[], [[string, string, string, bigint, bigint, bigint, bigint, bigint, bigint, string] & {
    claimDuration: bigint;
    fee: bigint;
    feeReceiver: string;
    lockupDuration: bigint;
    option: string;
    optionDuration: bigint;
    oracleAdapter: string;
    paymentSplitter: string;
    penalty: bigint;
    percentOfSpot: bigint;
}], "view">
getTotalBaseReserved: TypedContractMethod<[], [bigint], "view">
interface: IOptionRewardInterface
previewOptionParams: TypedContractMethod<[], [[bigint, bigint] & {
    maturity: bigint;
    strike: bigint;
}], "view">
releaseRewardsNotClaimed: TypedContractMethod<[strike: BigNumberish, maturity: BigNumberish], [void], "nonpayable">
runner: null | ContractRunner

The connected runner. This is generally a [[Provider]] or a [[Signer]], which dictates what operations are supported.

For example, a Contract connected to a [[Provider]] may only execute read-only operations.

settle: TypedContractMethod<[strike: BigNumberish, maturity: BigNumberish], [void], "nonpayable">
target: string | Addressable

The target to connect to.

This can be an address, ENS name or any [[Addressable]], such as another contract. To get the resovled address, use the getAddress method.

underwrite: TypedContractMethod<[longReceiver: AddressLike, contractSize: BigNumberish], [void], "nonpayable">

Methods

  • Alias for [on].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<IOptionReward>

  • Return a new Contract instance with the same ABI and runner, but a different %%target%%.

    Parameters

    • target: string | Addressable

    Returns BaseContract

  • Parameters

    • Optional runner: null | ContractRunner

    Returns IOptionReward

  • Return the transaction used to deploy this contract.

    This is only available if this instance was returned from a [[ContractFactory]].

    Returns null | ContractTransactionResponse

  • Emit an %%event%% calling all listeners with %%args%%.

    Resolves to true if any listeners were called.

    Parameters

    • event: ContractEventName
    • Rest ...args: any[]

    Returns Promise<boolean>

  • Return the resolved address of this Contract.

    Returns Promise<string>

  • Return the deployed bytecode or null if no bytecode is found.

    Returns Promise<null | string>

  • Parameters

    • key: "RewardsClaimed"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "RewardsNotClaimedReleased"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "Settled"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "Underwrite"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Type Parameters

    • T extends ContractMethod<any[], any, any, T> = ContractMethod<any[], any, any>

    Parameters

    • key: string | FunctionFragment

    Returns T

  • Parameters

    • nameOrSignature: "claimRewards"

    Returns TypedContractMethod<[strike: BigNumberish, maturity: BigNumberish], [bigint], "nonpayable">

  • Parameters

    • nameOrSignature: "getRedeemableLongs"

    Returns TypedContractMethod<[user: AddressLike, strike: BigNumberish, maturity: BigNumberish], [bigint], "view">

  • Parameters

    • nameOrSignature: "getRewardPerContract"

    Returns TypedContractMethod<[strike: BigNumberish, maturity: BigNumberish], [bigint], "view">

  • Parameters

    • nameOrSignature: "getSettings"

    Returns TypedContractMethod<[], [[string, string, string, bigint, bigint, bigint, bigint, bigint, bigint, string] & {
        claimDuration: bigint;
        fee: bigint;
        feeReceiver: string;
        lockupDuration: bigint;
        option: string;
        optionDuration: bigint;
        oracleAdapter: string;
        paymentSplitter: string;
        penalty: bigint;
        percentOfSpot: bigint;
    }], "view">

  • Parameters

    • nameOrSignature: "getTotalBaseReserved"

    Returns TypedContractMethod<[], [bigint], "view">

  • Parameters

    • nameOrSignature: "previewOptionParams"

    Returns TypedContractMethod<[], [[bigint, bigint] & {
        maturity: bigint;
        strike: bigint;
    }], "view">

  • Parameters

    • nameOrSignature: "releaseRewardsNotClaimed"

    Returns TypedContractMethod<[strike: BigNumberish, maturity: BigNumberish], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "settle"

    Returns TypedContractMethod<[strike: BigNumberish, maturity: BigNumberish], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "underwrite"

    Returns TypedContractMethod<[longReceiver: AddressLike, contractSize: BigNumberish], [void], "nonpayable">

  • Resolves to the number of listeners of %%event%% or the total number of listeners if unspecified.

    Parameters

    • Optional event: ContractEventName

    Returns Promise<number>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • event: TCEvent

    Returns Promise<TypedListener<TCEvent>[]>

  • Parameters

    • Optional eventName: string

    Returns Promise<Listener[]>

  • Remove the %%listener%% from the listeners for %%event%% or remove all listeners if unspecified.

    Parameters

    • event: ContractEventName
    • Optional listener: Listener

    Returns Promise<IOptionReward>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • event: TCEvent
    • listener: TypedListener<TCEvent>

    Returns Promise<IOptionReward>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • filter: TypedDeferredTopicFilter<TCEvent>
    • listener: TypedListener<TCEvent>

    Returns Promise<IOptionReward>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • event: TCEvent
    • listener: TypedListener<TCEvent>

    Returns Promise<IOptionReward>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • filter: TypedDeferredTopicFilter<TCEvent>
    • listener: TypedListener<TCEvent>

    Returns Promise<IOptionReward>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • event: TCEvent
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TypedEventLog<TCEvent>[]>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • filter: TypedDeferredTopicFilter<TCEvent>
    • Optional fromBlockOrBlockhash: string | number
    • Optional toBlock: string | number

    Returns Promise<TypedEventLog<TCEvent>[]>

  • @_ignore:

    Parameters

    • hash: string

    Returns Promise<EventLog[]>

  • Type Parameters

    • TCEvent extends TypedContractEvent<any, any, any, TCEvent>

    Parameters

    • Optional event: TCEvent

    Returns Promise<IOptionReward>

  • Alias for [off].

    Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<IOptionReward>

  • Returns Promise<IOptionReward>

Generated using TypeDoc