@ixily/activ
Version:
Alpha Capture Trade Idea Verification. Blockchain ownership proven trade ideas and strategies.
29 lines (28 loc) • 1.85 kB
TypeScript
import { ITradeIdea } from 'contract/interfaces';
import { IBasicNFTInflatable, MyIdeaKeys } from '../../interfaces';
export declare const skipExpirationInSeconds: number;
export declare const randomNumberBetween: (minimum: number, limit: number) => number;
export declare const rest: (delay: number) => Promise<void>;
export declare const wait: (time?: number) => Promise<any>;
export declare const generateUUID: () => string;
export declare const isUrl: (url: string) => boolean;
export declare const isNullOrUndefined: (value: any) => boolean;
export declare const isNullOrWhiteSpace: (value: any) => boolean;
export declare const getBoolean: (value: any, defaultValue?: boolean) => boolean;
export declare const loop: (next: () => Promise<void>, validator: () => Promise<boolean>, settings?: {
loopTimeInMs: number;
limitTimeSecond: number;
}, errorCallback?: ((error: string) => Promise<void>) | undefined) => Promise<void>;
export declare const retryFunctionHelper: <T>(payload: {
maxRetries: number;
retryCallback: (retryIndex: number) => Promise<any>;
notificationCallback?: ((errMsg: string, retryCount: number) => Promise<any>) | undefined;
rejectOnMaxRetries?: boolean | undefined;
}) => Promise<T | null | undefined>;
export declare const placeholderError: <T>(errorMessage: string, placeholderReturned?: T | undefined) => T;
export declare const getBasicNFTInflatableByMyIdeaKeys: (idKeys: MyIdeaKeys) => IBasicNFTInflatable;
export declare const getBasicNFTsInflatableByMyIdeaKeys: (data: MyIdeaKeys[]) => IBasicNFTInflatable[];
export declare const serializeDataTool: (obj: any) => string;
export declare const deserializeDataTool: (serializedJavascript: string) => any;
export declare const isDecryptableIdea: (idea: ITradeIdea, myWallet: string) => boolean;
export declare const copyObj: <T>(obj: T) => T;