@basementdev/sdk
Version:
Basement SDK
36 lines (35 loc) • 1.77 kB
TypeScript
import { Erc721TransfersQueryVariables, TokenQueryVariables } from "../sdk";
import { IncludeFullProfileOptions, IncludeOnlyReverseProfile, SalesFilterOptions, TokenQueryIncludeOptions, TransactionQueryIncludeOptions } from "../types";
declare type QueryType = "tokenSales" | "erc721TransferSale";
declare type SenderAndRecipientOpts = {
from: boolean | IncludeOnlyReverseProfile;
to: boolean | IncludeOnlyReverseProfile;
};
declare type AddressOpts = IncludeFullProfileOptions | boolean;
export declare function parseTransactionOpts(opts?: Partial<TransactionQueryIncludeOptions> | boolean): {
includeTransactionEvents?: undefined;
includeTransactionLogs?: undefined;
includeTransactionRecipient?: undefined;
includeTransactionSender?: undefined;
} | {
includeTransactionEvents: boolean;
includeTransactionLogs: boolean;
includeTransactionRecipient: boolean;
includeTransactionSender: boolean;
};
export declare function parseSaleOpts<T extends QueryType>(opts?: Partial<SalesFilterOptions> | boolean, queryType?: T): T extends "tokenSales" ? Partial<TokenQueryVariables> : Partial<Erc721TransfersQueryVariables>;
export declare function parseTokenOpts(opts?: Partial<TokenQueryIncludeOptions>): Partial<TokenQueryVariables>;
export declare function parseTransferSenderRecipientOpts(opts: SenderAndRecipientOpts): {
includeTransferSender: boolean;
includeTransferSenderReverseProfile: boolean;
includeTransferRecipient: boolean;
includeTransferRecipientReverseProfile: boolean;
};
export declare function parseOwnerOpts(opts: AddressOpts): {
includeOwnerProfile?: undefined;
includeOwnerReverseProfile?: undefined;
} | {
includeOwnerProfile: boolean;
includeOwnerReverseProfile: boolean;
};
export {};