Type alias ListOffersQuery

ListOffersQuery: {
    __typename?: "Query";
    result: {
        __typename?: "OfferConnection";
        pageInfo: {
            __typename?: "PageInfo";
            endCursor?: string | null;
            hasNextPage: boolean;
        };
        edges: {
            __typename?: "OfferEdge";
            node: {
                __typename?: "CollectionOffer";
                id: string;
                offerId: bigint;
                lenderAddress?: Address | null;
                borrowerAddress?: Address | null;
                signerAddress?: Address | null;
                contractAddress: Address;
                requiresLiquidation?: boolean | null;
                principalAddress: Address;
                principalAmount: bigint;
                aprBps: bigint;
                fee: bigint;
                capacity: bigint;
                expirationTime: bigint;
                duration: bigint;
                status: string;
                offerHash?: Hash | null;
                signature?: Hex | null;
                createdDate?: Date | null;
                repayment: bigint;
                hidden?: boolean | null;
                maxSeniorRepayment: bigint;
                collection: {
                    __typename?: "Collection";
                    id: string;
                    slug: string;
                    contractData: {
                        __typename?: "ContractData";
                        contractAddress: Address;
                    };
                };
                currency: {
                    __typename?: "Currency";
                    symbol: string;
                    decimals: number;
                    address: Address;
                };
                validators: {
                    __typename?: "OfferValidator";
                    arguments: Hex;
                    validator: Address;
                }[];
            } | {
                __typename?: "SingleNFTOffer";
                id: string;
                offerId: bigint;
                lenderAddress?: Address | null;
                borrowerAddress?: Address | null;
                signerAddress?: Address | null;
                contractAddress: Address;
                requiresLiquidation?: boolean | null;
                principalAddress: Address;
                principalAmount: bigint;
                aprBps: bigint;
                fee: bigint;
                capacity: bigint;
                expirationTime: bigint;
                duration: bigint;
                status: string;
                offerHash?: Hash | null;
                signature?: Hex | null;
                createdDate?: Date | null;
                repayment: bigint;
                hidden?: boolean | null;
                maxSeniorRepayment: bigint;
                nft: {
                    __typename?: "NFT";
                    id: string;
                    tokenId: bigint;
                    collection?: {
                        __typename?: "Collection";
                        id: string;
                        slug: string;
                        contractData: {
                            __typename?: "ContractData";
                            contractAddress: Address;
                        };
                    } | null;
                };
                currency: {
                    __typename?: "Currency";
                    symbol: string;
                    decimals: number;
                    address: Address;
                };
                validators: {
                    __typename?: "OfferValidator";
                    arguments: Hex;
                    validator: Address;
                }[];
            };
        }[];
    };
}

Type declaration

  • Optional __typename?: "Query"
  • result: {
        __typename?: "OfferConnection";
        pageInfo: {
            __typename?: "PageInfo";
            endCursor?: string | null;
            hasNextPage: boolean;
        };
        edges: {
            __typename?: "OfferEdge";
            node: {
                __typename?: "CollectionOffer";
                id: string;
                offerId: bigint;
                lenderAddress?: Address | null;
                borrowerAddress?: Address | null;
                signerAddress?: Address | null;
                contractAddress: Address;
                requiresLiquidation?: boolean | null;
                principalAddress: Address;
                principalAmount: bigint;
                aprBps: bigint;
                fee: bigint;
                capacity: bigint;
                expirationTime: bigint;
                duration: bigint;
                status: string;
                offerHash?: Hash | null;
                signature?: Hex | null;
                createdDate?: Date | null;
                repayment: bigint;
                hidden?: boolean | null;
                maxSeniorRepayment: bigint;
                collection: {
                    __typename?: "Collection";
                    id: string;
                    slug: string;
                    contractData: {
                        __typename?: "ContractData";
                        contractAddress: Address;
                    };
                };
                currency: {
                    __typename?: "Currency";
                    symbol: string;
                    decimals: number;
                    address: Address;
                };
                validators: {
                    __typename?: "OfferValidator";
                    arguments: Hex;
                    validator: Address;
                }[];
            } | {
                __typename?: "SingleNFTOffer";
                id: string;
                offerId: bigint;
                lenderAddress?: Address | null;
                borrowerAddress?: Address | null;
                signerAddress?: Address | null;
                contractAddress: Address;
                requiresLiquidation?: boolean | null;
                principalAddress: Address;
                principalAmount: bigint;
                aprBps: bigint;
                fee: bigint;
                capacity: bigint;
                expirationTime: bigint;
                duration: bigint;
                status: string;
                offerHash?: Hash | null;
                signature?: Hex | null;
                createdDate?: Date | null;
                repayment: bigint;
                hidden?: boolean | null;
                maxSeniorRepayment: bigint;
                nft: {
                    __typename?: "NFT";
                    id: string;
                    tokenId: bigint;
                    collection?: {
                        __typename?: "Collection";
                        id: string;
                        slug: string;
                        contractData: {
                            __typename?: "ContractData";
                            contractAddress: Address;
                        };
                    } | null;
                };
                currency: {
                    __typename?: "Currency";
                    symbol: string;
                    decimals: number;
                    address: Address;
                };
                validators: {
                    __typename?: "OfferValidator";
                    arguments: Hex;
                    validator: Address;
                }[];
            };
        }[];
    }
    • Optional __typename?: "OfferConnection"
    • pageInfo: {
          __typename?: "PageInfo";
          endCursor?: string | null;
          hasNextPage: boolean;
      }
      • Optional __typename?: "PageInfo"
      • Optional endCursor?: string | null
      • hasNextPage: boolean
    • edges: {
          __typename?: "OfferEdge";
          node: {
              __typename?: "CollectionOffer";
              id: string;
              offerId: bigint;
              lenderAddress?: Address | null;
              borrowerAddress?: Address | null;
              signerAddress?: Address | null;
              contractAddress: Address;
              requiresLiquidation?: boolean | null;
              principalAddress: Address;
              principalAmount: bigint;
              aprBps: bigint;
              fee: bigint;
              capacity: bigint;
              expirationTime: bigint;
              duration: bigint;
              status: string;
              offerHash?: Hash | null;
              signature?: Hex | null;
              createdDate?: Date | null;
              repayment: bigint;
              hidden?: boolean | null;
              maxSeniorRepayment: bigint;
              collection: {
                  __typename?: "Collection";
                  id: string;
                  slug: string;
                  contractData: {
                      __typename?: "ContractData";
                      contractAddress: Address;
                  };
              };
              currency: {
                  __typename?: "Currency";
                  symbol: string;
                  decimals: number;
                  address: Address;
              };
              validators: {
                  __typename?: "OfferValidator";
                  arguments: Hex;
                  validator: Address;
              }[];
          } | {
              __typename?: "SingleNFTOffer";
              id: string;
              offerId: bigint;
              lenderAddress?: Address | null;
              borrowerAddress?: Address | null;
              signerAddress?: Address | null;
              contractAddress: Address;
              requiresLiquidation?: boolean | null;
              principalAddress: Address;
              principalAmount: bigint;
              aprBps: bigint;
              fee: bigint;
              capacity: bigint;
              expirationTime: bigint;
              duration: bigint;
              status: string;
              offerHash?: Hash | null;
              signature?: Hex | null;
              createdDate?: Date | null;
              repayment: bigint;
              hidden?: boolean | null;
              maxSeniorRepayment: bigint;
              nft: {
                  __typename?: "NFT";
                  id: string;
                  tokenId: bigint;
                  collection?: {
                      __typename?: "Collection";
                      id: string;
                      slug: string;
                      contractData: {
                          __typename?: "ContractData";
                          contractAddress: Address;
                      };
                  } | null;
              };
              currency: {
                  __typename?: "Currency";
                  symbol: string;
                  decimals: number;
                  address: Address;
              };
              validators: {
                  __typename?: "OfferValidator";
                  arguments: Hex;
                  validator: Address;
              }[];
          };
      }[]