@ixily/activ
Version:
Alpha Capture Trade Idea Verification. Blockchain ownership proven trade ideas and strategies.
37 lines (36 loc) • 1.55 kB
TypeScript
import { ILitProvider } from '../..';
export declare const runJS: (ipfsId: string, publicKey: string, params?: any, nodes?: number) => Promise<any>;
export declare const LitModule: {
config: (_config: {
litProvider: ILitProvider;
mock?: boolean;
}) => Promise<void>;
setContract: (contractAddress: string) => void;
getAuthSig: () => Promise<any>;
storePublicIdeaKeyOnLitForNftId: (nftId: number, ideaString: string, isPublic?: boolean) => Promise<{
encryptedPublicKey: string;
encryptedIdea: string;
}>;
storeTemporaryPublicIdeaKeyOnLit: (ideaString: string, isPublic?: boolean) => Promise<{
encryptedPublicKey: string;
encryptedSymetricKeyRaw: string;
symmetricKey: string;
encryptedIdea: string;
authSig: any;
}>;
updateToDefinitiveAccessControlConditions: (encryptedSymmetricKey: string, symmetricKey: string, nftId: number, authSig: any, isPublic?: boolean) => Promise<void>;
recoverPublicIdeaKeyFromLitForNftId: (base64EncryptedString: string, encryptedSymmetricKey: string, tokenId: number, isPublic?: boolean) => Promise<string>;
runJS: (ipfsId: string, publicKey: string, params?: any, nodes?: number) => Promise<any>;
testJS: () => Promise<{
results: {
result: 'success' | 'failure';
nodes: number;
response?: any;
error?: any;
}[];
success: boolean;
minForSuccess: number;
maximumNodes: number;
workingNodes: number;
}>;
};