Hierarchy (view full)

Constructors

Properties

_contract: WrappedContract

The wrapped contract that the entity is holding.

Remarks

This should not be used directly. Instead, the getter contract should be used to have the correct type of the wrapped contract.

address: Address

the inner contract address

chainId: ChainId
multicall?: Multicall

The Multicall instance used by this entity.

networkConnection: NetworkConnection

The networkConnection of this entity.

version: string

Accessors

  • get domain(): {
        chainId: ChainId;
        name: "Pendle Limit Order Protocol";
        verifyingContract: Address;
        version: string;
    }
  • Returns {
        chainId: ChainId;
        name: "Pendle Limit Order Protocol";
        verifyingContract: Address;
        version: string;
    }

    • Readonly chainId: ChainId
    • Readonly name: "Pendle Limit Order Protocol"
    • Readonly verifyingContract: Address
    • Readonly version: string

Methods

  • Sync function to generate sign data so that the user can pick it up and sign it elsewhere.

    Parameters

    • order: {
          YT: Address;
          expiry: BN;
          failSafeRate: FixedX18;
          lnImpliedRate: FixedX18;
          maker: Address;
          makingAmount: BN;
          nonce: BN;
          orderType: BN;
          permit: BytesLike;
          receiver: Address;
          salt: BN;
          token: Address;
      }

    Returns [TypedDataDomain, Record<string, TypedDataField[]>, OrderStruct]

    Example

    const data = PendleLimitRouter.generateTypedDataForSigning(order);
    const signature = await signer._signTypedData(...data);

Generated using TypeDoc