Represents a redeemable claim in the Valorem Clear system, which can be redeemed for the underlying asset post option expiry.

Hierarchy (view full)

Constructors

Properties

exerciseAsset: SupportedAsset
optionInfo: OptionTypeInfo
optionTypeId: bigint
tokenId: bigint
tokenType: 0 | 2
typeExists: boolean
underlyingAsset: SupportedAsset

Accessors

Methods

  • Redeems the claim for the underlying asset using the provided trader.

    Parameters

    • trader: Trader

      The trader instance to execute the transaction.

    Returns Promise<undefined>

  • Retrieves the option type information from the clearinghouse contract.

    Parameters

    • tokenId: bigint

      The unique identifier of the option or claim.

    • clearinghouse: ClearinghouseContract

      The clearinghouse contract instance.

    Returns Promise<{
        exerciseAmount: bigint;
        exerciseAsset: `0x${string}`;
        exerciseTimestamp: number;
        expiryTimestamp: number;
        nextClaimKey: bigint;
        settlementSeed: bigint;
        underlyingAmount: bigint;
        underlyingAsset: `0x${string}`;
    }>

    The option type information.

  • Determines the token type for the given ID by querying the clearinghouse.

    Parameters

    • tokenId: bigint

      The unique identifier of the option or claim.

    • clearinghouse: ClearinghouseContract

      The clearinghouse contract instance.

    Returns Promise<0 | 2 | 1>

    The token type as a promise that resolves to 0, 1, or 2.

Generated using TypeDoc