Interface IPool

Hierarchy

  • BaseContract
    • IPool

Properties

[internal]: any
_takerFeeLowLevel: TypedContractMethod<[taker: AddressLike, size: BigNumberish, premium: BigNumberish, isPremiumNormalized: boolean, strike: BigNumberish, isCallPool: boolean], [bigint], "view">
accountsByToken: TypedContractMethod<[id: BigNumberish], [string[]], "view">
annihilate: TypedContractMethod<[size: BigNumberish], [void], "nonpayable">
annihilateFor: TypedContractMethod<[owner: AddressLike, size: BigNumberish], [void], "nonpayable">
balanceOf: TypedContractMethod<[account: AddressLike, id: BigNumberish], [bigint], "view">
balanceOfBatch: TypedContractMethod<[accounts: AddressLike[], ids: BigNumberish[]], [bigint[]], "view">
cancelQuotesOB: TypedContractMethod<[hashes: BytesLike[]], [void], "nonpayable">
claim: TypedContractMethod<[p: KeyStruct], [bigint], "nonpayable">
deposit((address,address,uint256,uint256,uint8),uint256,uint256,uint256,uint256,uint256): TypedContractMethod<[p: KeyStruct, belowLower: BigNumberish, belowUpper: BigNumberish, size: BigNumberish, minMarketPrice: BigNumberish, maxMarketPrice: BigNumberish], [DeltaStructOutput], "nonpayable">
deposit((address,address,uint256,uint256,uint8),uint256,uint256,uint256,uint256,uint256,bool): TypedContractMethod<[p: KeyStruct, belowLower: BigNumberish, belowUpper: BigNumberish, size: BigNumberish, minMarketPrice: BigNumberish, maxMarketPrice: BigNumberish, isBidIfStrandedMarketPrice: boolean], [DeltaStructOutput], "nonpayable">
exercise: TypedContractMethod<[], [[bigint, bigint] & {
    exerciseFee: bigint;
    exerciseValue: bigint;
}], "nonpayable">
exerciseFor: TypedContractMethod<[holders: AddressLike[], costPerHolder: BigNumberish], [[bigint[], bigint[]] & {
    exerciseFees: bigint[];
    exerciseValues: bigint[];
}], "nonpayable">
fallback: null | WrappedFallback
fillQuoteOB: TypedContractMethod<[quoteOB: QuoteOBStruct, size: BigNumberish, signature: SignatureStruct, referrer: AddressLike], [[bigint, DeltaStructOutput] & {
    delta: DeltaStructOutput;
    premiumTaker: bigint;
}], "nonpayable">
filters: {
    Annihilate: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Annihilate(address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    ApprovalForAll: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    ApprovalForAll(address,address,bool): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    CancelQuoteOB: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    CancelQuoteOB(address,bytes32): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    ClaimFees: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    ClaimFees(address,uint256,uint256,int256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    ClaimProtocolFees: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    ClaimProtocolFees(address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Deposit: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Deposit(address,uint256,uint256,uint256,uint256,int256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Exercise: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Exercise(address,address,uint256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    FillQuoteOB: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    FillQuoteOB(bytes32,address,address,uint256,tuple,tuple,uint256,uint256,uint256,bool): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    FlashLoan: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    FlashLoan(address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Settle: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Settle(address,address,uint256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SettlePosition: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    SettlePosition(address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Trade: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Trade(address,uint256,tuple,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    TransferBatch: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    TransferBatch(address,address,address,uint256[],uint256[]): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    TransferPosition: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    TransferPosition(address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    TransferSingle: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    TransferSingle(address,address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    UpdateTick: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    UpdateTick(uint256,uint256,uint256,int256,uint256,int256,int256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Withdrawal: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    Withdrawal(address,uint256,uint256,uint256,uint256,int256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    WriteFrom: TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
    WriteFrom(address,address,address,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
}

Type declaration

  • Annihilate: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Annihilate(address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • ApprovalForAll: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • ApprovalForAll(address,address,bool): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • CancelQuoteOB: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • CancelQuoteOB(address,bytes32): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • ClaimFees: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • ClaimFees(address,uint256,uint256,int256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • ClaimProtocolFees: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • ClaimProtocolFees(address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Deposit: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Deposit(address,uint256,uint256,uint256,uint256,int256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Exercise: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Exercise(address,address,uint256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • FillQuoteOB: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • FillQuoteOB(bytes32,address,address,uint256,tuple,tuple,uint256,uint256,uint256,bool): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • FlashLoan: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • FlashLoan(address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Settle: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Settle(address,address,uint256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • SettlePosition: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • SettlePosition(address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Trade: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Trade(address,uint256,tuple,uint256,uint256,uint256,uint256,uint256,uint256,uint256,bool): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • TransferBatch: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • TransferBatch(address,address,address,uint256[],uint256[]): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • TransferPosition: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • TransferPosition(address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • TransferSingle: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • TransferSingle(address,address,address,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • UpdateTick: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • UpdateTick(uint256,uint256,uint256,int256,uint256,int256,int256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Withdrawal: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • Withdrawal(address,uint256,uint256,uint256,uint256,int256,uint256,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • WriteFrom: TypedContractEvent<InputTuple, OutputTuple, OutputObject>
  • WriteFrom(address,address,address,uint256,uint256,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>
flashFee: TypedContractMethod<[token: AddressLike, amount: BigNumberish], [bigint], "view">
flashLoan: TypedContractMethod<[receiver: AddressLike, token: AddressLike, amount: BigNumberish, data: BytesLike], [boolean], "nonpayable">
getClaimableFees: TypedContractMethod<[p: KeyStruct], [bigint], "view">
getNearestTicksBelow: TypedContractMethod<[lower: BigNumberish, upper: BigNumberish], [[bigint, bigint] & {
    nearestBelowLower: bigint;
    nearestBelowUpper: bigint;
}], "view">
getPoolSettings: TypedContractMethod<[], [[string, string, string, bigint, bigint, boolean] & {
    base: string;
    isCallPool: boolean;
    maturity: bigint;
    oracleAdapter: string;
    quote: string;
    strike: bigint;
}], "view">
getQuoteAMM: TypedContractMethod<[taker: AddressLike, size: BigNumberish, isBuy: boolean], [[bigint, bigint] & {
    premiumNet: bigint;
    takerFee: bigint;
}], "view">
getQuoteOBFilledAmount: TypedContractMethod<[provider: AddressLike, quoteOBHash: BytesLike], [bigint], "view">
getSettlementPrice: TypedContractMethod<[], [bigint], "view">
getStrandedArea: TypedContractMethod<[], [[bigint, bigint] & {
    lower: bigint;
    upper: bigint;
}], "view">
getTokenIds: TypedContractMethod<[], [bigint[]], "view">
interface: IPoolInterface
isApprovedForAll: TypedContractMethod<[account: AddressLike, operator: AddressLike], [boolean], "view">
isQuoteOBValid: TypedContractMethod<[quoteOB: QuoteOBStruct, size: BigNumberish, sig: SignatureStruct], [[boolean, bigint]], "view">
marketPrice: TypedContractMethod<[], [bigint], "view">
maxFlashLoan: TypedContractMethod<[token: AddressLike], [bigint], "view">
multicall: TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">
name: TypedContractMethod<[], [string], "view">
runner: null | ContractRunner
safeBatchTransferFrom: TypedContractMethod<[from: AddressLike, to: AddressLike, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike], [void], "nonpayable">
safeTransferFrom: TypedContractMethod<[from: AddressLike, to: AddressLike, id: BigNumberish, amount: BigNumberish, data: BytesLike], [void], "nonpayable">
setApprovalForAll: TypedContractMethod<[operator: AddressLike, status: boolean], [void], "nonpayable">
settle: TypedContractMethod<[], [bigint], "nonpayable">
settleFor: TypedContractMethod<[holders: AddressLike[], costPerHolder: BigNumberish], [bigint[]], "nonpayable">
settlePosition: TypedContractMethod<[p: KeyStruct], [bigint], "nonpayable">
settlePositionFor: TypedContractMethod<[p: KeyStruct[], costPerHolder: BigNumberish], [bigint[]], "nonpayable">
supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">
takerFee: TypedContractMethod<[taker: AddressLike, size: BigNumberish, premium: BigNumberish, isPremiumNormalized: boolean], [bigint], "view">
target: string | Addressable
ticks: TypedContractMethod<[], [TickWithRatesStructOutput[]], "view">
tokensByAccount: TypedContractMethod<[account: AddressLike], [bigint[]], "view">
totalHolders: TypedContractMethod<[id: BigNumberish], [bigint], "view">
totalSupply: TypedContractMethod<[id: BigNumberish], [bigint], "view">
trade: TypedContractMethod<[size: BigNumberish, isBuy: boolean, premiumLimit: BigNumberish, referrer: AddressLike], [[bigint, DeltaStructOutput] & {
    delta: DeltaStructOutput;
    totalPremium: bigint;
}], "nonpayable">
transferPosition: TypedContractMethod<[srcP: KeyStruct, newOwner: AddressLike, newOperator: AddressLike, size: BigNumberish], [void], "nonpayable">
withdraw: TypedContractMethod<[p: KeyStruct, size: BigNumberish, minMarketPrice: BigNumberish, maxMarketPrice: BigNumberish], [DeltaStructOutput], "nonpayable">
writeFrom: TypedContractMethod<[underwriter: AddressLike, longReceiver: AddressLike, size: BigNumberish, referrer: AddressLike], [void], "nonpayable">

Methods

  • Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<IPool>

  • Parameters

    • addressOrName: AddressLike

    Returns IPool

  • Parameters

    • Optional runner: null | ContractRunner

    Returns BaseContract

  • Returns Promise<IPool>

  • Returns null | ContractTransactionResponse

  • Parameters

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

    Returns Promise<boolean>

  • Returns Promise<string>

  • Returns Promise<null | string>

  • Parameters

    • key: "Annihilate"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "ApprovalForAll"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "CancelQuoteOB"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "ClaimFees"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "ClaimProtocolFees"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "Deposit"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "Exercise"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "FillQuoteOB"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "FlashLoan"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "Settle"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "SettlePosition"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "Trade"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "TransferBatch"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "TransferPosition"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "TransferSingle"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "UpdateTick"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "Withdrawal"

    Returns TypedContractEvent<InputTuple, OutputTuple, OutputObject>

  • Parameters

    • key: "WriteFrom"

    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: "_takerFeeLowLevel"

    Returns TypedContractMethod<[taker: AddressLike, size: BigNumberish, premium: BigNumberish, isPremiumNormalized: boolean, strike: BigNumberish, isCallPool: boolean], [bigint], "view">

  • Parameters

    • nameOrSignature: "accountsByToken"

    Returns TypedContractMethod<[id: BigNumberish], [string[]], "view">

  • Parameters

    • nameOrSignature: "annihilate"

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

  • Parameters

    • nameOrSignature: "annihilateFor"

    Returns TypedContractMethod<[owner: AddressLike, size: BigNumberish], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "balanceOf"

    Returns TypedContractMethod<[account: AddressLike, id: BigNumberish], [bigint], "view">

  • Parameters

    • nameOrSignature: "balanceOfBatch"

    Returns TypedContractMethod<[accounts: AddressLike[], ids: BigNumberish[]], [bigint[]], "view">

  • Parameters

    • nameOrSignature: "cancelQuotesOB"

    Returns TypedContractMethod<[hashes: BytesLike[]], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "claim"

    Returns TypedContractMethod<[p: KeyStruct], [bigint], "nonpayable">

  • Parameters

    • nameOrSignature: "deposit((address,address,uint256,uint256,uint8),uint256,uint256,uint256,uint256,uint256)"

    Returns TypedContractMethod<[p: KeyStruct, belowLower: BigNumberish, belowUpper: BigNumberish, size: BigNumberish, minMarketPrice: BigNumberish, maxMarketPrice: BigNumberish], [DeltaStructOutput], "nonpayable">

  • Parameters

    • nameOrSignature: "deposit((address,address,uint256,uint256,uint8),uint256,uint256,uint256,uint256,uint256,bool)"

    Returns TypedContractMethod<[p: KeyStruct, belowLower: BigNumberish, belowUpper: BigNumberish, size: BigNumberish, minMarketPrice: BigNumberish, maxMarketPrice: BigNumberish, isBidIfStrandedMarketPrice: boolean], [DeltaStructOutput], "nonpayable">

  • Parameters

    • nameOrSignature: "exercise"

    Returns TypedContractMethod<[], [[bigint, bigint] & {
        exerciseFee: bigint;
        exerciseValue: bigint;
    }], "nonpayable">

  • Parameters

    • nameOrSignature: "exerciseFor"

    Returns TypedContractMethod<[holders: AddressLike[], costPerHolder: BigNumberish], [[bigint[], bigint[]] & {
        exerciseFees: bigint[];
        exerciseValues: bigint[];
    }], "nonpayable">

  • Parameters

    • nameOrSignature: "fillQuoteOB"

    Returns TypedContractMethod<[quoteOB: QuoteOBStruct, size: BigNumberish, signature: SignatureStruct, referrer: AddressLike], [[bigint, DeltaStructOutput] & {
        delta: DeltaStructOutput;
        premiumTaker: bigint;
    }], "nonpayable">

  • Parameters

    • nameOrSignature: "flashFee"

    Returns TypedContractMethod<[token: AddressLike, amount: BigNumberish], [bigint], "view">

  • Parameters

    • nameOrSignature: "flashLoan"

    Returns TypedContractMethod<[receiver: AddressLike, token: AddressLike, amount: BigNumberish, data: BytesLike], [boolean], "nonpayable">

  • Parameters

    • nameOrSignature: "getClaimableFees"

    Returns TypedContractMethod<[p: KeyStruct], [bigint], "view">

  • Parameters

    • nameOrSignature: "getNearestTicksBelow"

    Returns TypedContractMethod<[lower: BigNumberish, upper: BigNumberish], [[bigint, bigint] & {
        nearestBelowLower: bigint;
        nearestBelowUpper: bigint;
    }], "view">

  • Parameters

    • nameOrSignature: "getPoolSettings"

    Returns TypedContractMethod<[], [[string, string, string, bigint, bigint, boolean] & {
        base: string;
        isCallPool: boolean;
        maturity: bigint;
        oracleAdapter: string;
        quote: string;
        strike: bigint;
    }], "view">

  • Parameters

    • nameOrSignature: "getQuoteAMM"

    Returns TypedContractMethod<[taker: AddressLike, size: BigNumberish, isBuy: boolean], [[bigint, bigint] & {
        premiumNet: bigint;
        takerFee: bigint;
    }], "view">

  • Parameters

    • nameOrSignature: "getQuoteOBFilledAmount"

    Returns TypedContractMethod<[provider: AddressLike, quoteOBHash: BytesLike], [bigint], "view">

  • Parameters

    • nameOrSignature: "getSettlementPrice"

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

  • Parameters

    • nameOrSignature: "getStrandedArea"

    Returns TypedContractMethod<[], [[bigint, bigint] & {
        lower: bigint;
        upper: bigint;
    }], "view">

  • Parameters

    • nameOrSignature: "getTokenIds"

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

  • Parameters

    • nameOrSignature: "isApprovedForAll"

    Returns TypedContractMethod<[account: AddressLike, operator: AddressLike], [boolean], "view">

  • Parameters

    • nameOrSignature: "isQuoteOBValid"

    Returns TypedContractMethod<[quoteOB: QuoteOBStruct, size: BigNumberish, sig: SignatureStruct], [[boolean, bigint]], "view">

  • Parameters

    • nameOrSignature: "marketPrice"

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

  • Parameters

    • nameOrSignature: "maxFlashLoan"

    Returns TypedContractMethod<[token: AddressLike], [bigint], "view">

  • Parameters

    • nameOrSignature: "multicall"

    Returns TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">

  • Parameters

    • nameOrSignature: "name"

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

  • Parameters

    • nameOrSignature: "safeBatchTransferFrom"

    Returns TypedContractMethod<[from: AddressLike, to: AddressLike, ids: BigNumberish[], amounts: BigNumberish[], data: BytesLike], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "safeTransferFrom"

    Returns TypedContractMethod<[from: AddressLike, to: AddressLike, id: BigNumberish, amount: BigNumberish, data: BytesLike], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "setApprovalForAll"

    Returns TypedContractMethod<[operator: AddressLike, status: boolean], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "settle"

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

  • Parameters

    • nameOrSignature: "settleFor"

    Returns TypedContractMethod<[holders: AddressLike[], costPerHolder: BigNumberish], [bigint[]], "nonpayable">

  • Parameters

    • nameOrSignature: "settlePosition"

    Returns TypedContractMethod<[p: KeyStruct], [bigint], "nonpayable">

  • Parameters

    • nameOrSignature: "settlePositionFor"

    Returns TypedContractMethod<[p: KeyStruct[], costPerHolder: BigNumberish], [bigint[]], "nonpayable">

  • Parameters

    • nameOrSignature: "supportsInterface"

    Returns TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">

  • Parameters

    • nameOrSignature: "takerFee"

    Returns TypedContractMethod<[taker: AddressLike, size: BigNumberish, premium: BigNumberish, isPremiumNormalized: boolean], [bigint], "view">

  • Parameters

    • nameOrSignature: "ticks"

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

  • Parameters

    • nameOrSignature: "tokensByAccount"

    Returns TypedContractMethod<[account: AddressLike], [bigint[]], "view">

  • Parameters

    • nameOrSignature: "totalHolders"

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

  • Parameters

    • nameOrSignature: "totalSupply"

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

  • Parameters

    • nameOrSignature: "trade"

    Returns TypedContractMethod<[size: BigNumberish, isBuy: boolean, premiumLimit: BigNumberish, referrer: AddressLike], [[bigint, DeltaStructOutput] & {
        delta: DeltaStructOutput;
        totalPremium: bigint;
    }], "nonpayable">

  • Parameters

    • nameOrSignature: "transferPosition"

    Returns TypedContractMethod<[srcP: KeyStruct, newOwner: AddressLike, newOperator: AddressLike, size: BigNumberish], [void], "nonpayable">

  • Parameters

    • nameOrSignature: "withdraw"

    Returns TypedContractMethod<[p: KeyStruct, size: BigNumberish, minMarketPrice: BigNumberish, maxMarketPrice: BigNumberish], [DeltaStructOutput], "nonpayable">

  • Parameters

    • nameOrSignature: "writeFrom"

    Returns TypedContractMethod<[underwriter: AddressLike, longReceiver: AddressLike, size: BigNumberish, referrer: AddressLike], [void], "nonpayable">

  • 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[]>

  • Parameters

    • event: ContractEventName
    • Optional listener: Listener

    Returns Promise<IPool>

  • Type Parameters

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

    Parameters

    • event: TCEvent
    • listener: TypedListener<TCEvent>

    Returns Promise<IPool>

  • Type Parameters

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

    Parameters

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

    Returns Promise<IPool>

  • Type Parameters

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

    Parameters

    • event: TCEvent
    • listener: TypedListener<TCEvent>

    Returns Promise<IPool>

  • Type Parameters

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

    Parameters

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

    Returns Promise<IPool>

  • 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>[]>

  • Parameters

    • hash: string

    Returns Promise<EventLog[]>

  • Type Parameters

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

    Parameters

    • Optional event: TCEvent

    Returns Promise<IPool>

  • Parameters

    • event: ContractEventName
    • listener: Listener

    Returns Promise<IPool>

  • Returns Promise<IPool>

Generated using TypeDoc