Type alias ListLoansQuery
ListLoansQuery: {
__typename?: "Query";
loans: {
__typename?: "MultiSourceLoanConnection";
totalCount: number;
pageInfo: {
__typename?: "PageInfo";
endCursor?: string | null;
hasNextPage: boolean;
};
edges: {
__typename?: "MultiSourceLoanEdge";
node: {
__typename?: "MultiSourceLoan";
id: string;
address: Address;
loanId: number;
timestamp: Date;
txHash: Hash;
indexInBlock: number;
borrowerAddress: Address;
principalAddress: Address;
startTime: Date;
duration: bigint;
status: string;
principalAmount: bigint;
blendedAprBps: number;
totalOriginationFee: bigint;
protocolFee: bigint;
offer: {
__typename?: "CollectionOffer";
offerId: bigint;
signerAddress?: Address | null;
} | {
__typename?: "SingleNFTOffer";
offerId: bigint;
signerAddress?: Address | null;
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: Address;
};
repaidActivity?: {
__typename?: "LoanRepaid";
totalInterest: bigint;
timestamp: Date;
} | null;
nft: {
__typename?: "NFT";
id: string;
name?: string | null;
tokenId: bigint;
nftId: string;
owner?: Address | null;
image?: {
__typename?: "Asset";
data: string;
cacheUrl?: string | null;
contentTypeMime: string;
accessTypeName: string;
} | null;
collection?: {
__typename?: "Collection";
id: string;
slug: string;
name?: string | null;
nftsCount?: number | null;
contractData: {
__typename?: "ContractData";
contractAddress: Address;
};
} | null;
};
sources: {
__typename?: "Source";
id: string;
loanId: string;
originationFee: bigint;
principalAmount: bigint;
lenderAddress: string;
accruedInterest: bigint;
aprBps: bigint;
startTime: Date;
}[];
};
}[];
};
}
Type declaration
-
Optional
__typename?: "Query"
-
loans: {
__typename?: "MultiSourceLoanConnection";
totalCount: number;
pageInfo: {
__typename?: "PageInfo";
endCursor?: string | null;
hasNextPage: boolean;
};
edges: {
__typename?: "MultiSourceLoanEdge";
node: {
__typename?: "MultiSourceLoan";
id: string;
address: Address;
loanId: number;
timestamp: Date;
txHash: Hash;
indexInBlock: number;
borrowerAddress: Address;
principalAddress: Address;
startTime: Date;
duration: bigint;
status: string;
principalAmount: bigint;
blendedAprBps: number;
totalOriginationFee: bigint;
protocolFee: bigint;
offer: {
__typename?: "CollectionOffer";
offerId: bigint;
signerAddress?: Address | null;
} | {
__typename?: "SingleNFTOffer";
offerId: bigint;
signerAddress?: Address | null;
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: Address;
};
repaidActivity?: {
__typename?: "LoanRepaid";
totalInterest: bigint;
timestamp: Date;
} | null;
nft: {
__typename?: "NFT";
id: string;
name?: string | null;
tokenId: bigint;
nftId: string;
owner?: Address | null;
image?: {
__typename?: "Asset";
data: string;
cacheUrl?: string | null;
contentTypeMime: string;
accessTypeName: string;
} | null;
collection?: {
__typename?: "Collection";
id: string;
slug: string;
name?: string | null;
nftsCount?: number | null;
contractData: {
__typename?: "ContractData";
contractAddress: Address;
};
} | null;
};
sources: {
__typename?: "Source";
id: string;
loanId: string;
originationFee: bigint;
principalAmount: bigint;
lenderAddress: string;
accruedInterest: bigint;
aprBps: bigint;
startTime: Date;
}[];
};
}[];
}
-
Optional
__typename?: "MultiSourceLoanConnection"
-
totalCount: number
-
pageInfo: {
__typename?: "PageInfo";
endCursor?: string | null;
hasNextPage: boolean;
}
-
Optional
__typename?: "PageInfo"
-
Optional
endCursor?: string | null
-
hasNextPage: boolean
-
edges: {
__typename?: "MultiSourceLoanEdge";
node: {
__typename?: "MultiSourceLoan";
id: string;
address: Address;
loanId: number;
timestamp: Date;
txHash: Hash;
indexInBlock: number;
borrowerAddress: Address;
principalAddress: Address;
startTime: Date;
duration: bigint;
status: string;
principalAmount: bigint;
blendedAprBps: number;
totalOriginationFee: bigint;
protocolFee: bigint;
offer: {
__typename?: "CollectionOffer";
offerId: bigint;
signerAddress?: Address | null;
} | {
__typename?: "SingleNFTOffer";
offerId: bigint;
signerAddress?: Address | null;
};
currency: {
__typename?: "Currency";
symbol: string;
decimals: number;
address: Address;
};
repaidActivity?: {
__typename?: "LoanRepaid";
totalInterest: bigint;
timestamp: Date;
} | null;
nft: {
__typename?: "NFT";
id: string;
name?: string | null;
tokenId: bigint;
nftId: string;
owner?: Address | null;
image?: {
__typename?: "Asset";
data: string;
cacheUrl?: string | null;
contentTypeMime: string;
accessTypeName: string;
} | null;
collection?: {
__typename?: "Collection";
id: string;
slug: string;
name?: string | null;
nftsCount?: number | null;
contractData: {
__typename?: "ContractData";
contractAddress: Address;
};
} | null;
};
sources: {
__typename?: "Source";
id: string;
loanId: string;
originationFee: bigint;
principalAmount: bigint;
lenderAddress: string;
accruedInterest: bigint;
aprBps: bigint;
startTime: Date;
}[];
};
}[]