lotus-sdk
Version:
Central repository for several classes of tools for integrating with, and building for, the Lotusia ecosystem
75 lines • 1.79 kB
TypeScript
export type InstanceData = {
instanceId: string;
runtimeId: string;
startTime: string;
nonce: number;
};
export type AuthorizationData = {
instanceId: string;
scriptPayload: string;
blockhash: string;
blockheight: string;
};
export type PostMeta = {
hasWalletUpvoted: boolean;
hasWalletDownvoted: boolean;
txidsUpvoted: string[];
txidsDownvoted: string[];
};
export type TransactionAPI = {
txid: string;
outIdx: number;
sats: string;
firstSeen: string;
scriptPayload: string;
instanceId?: string;
height?: number;
timestamp?: string;
};
export type TransactionRANKAPI = TransactionAPI & {
sentiment: string;
platform: string;
profileId: string;
postId?: string;
};
export type TransactionRNKCAPI = TransactionAPI & {
data: string;
feeRate: number;
platform: string;
inReplyToProfileId?: string;
inReplyToPostId?: string;
repliedProfile?: ProfileAPI;
repliedPost?: PostAPI;
};
export type ParametersAPI = {
platform: string;
profileId: string;
};
export type ProfileAPI = ParametersAPI & {
ranking: string;
satsPositive: string;
satsNegative: string;
votesPositive: number;
votesNegative: number;
ranks?: TransactionRANKAPI[];
comments?: TransactionRNKCAPI[];
posts?: PostAPI[];
};
export type PostAPI = ParametersAPI & {
ranking: string;
satsPositive: string;
satsNegative: string;
votesPositive: number;
votesNegative: number;
profile: ProfileAPI;
postId: string;
ranks?: TransactionRANKAPI[];
comments?: TransactionRNKCAPI[];
data?: string;
postMeta?: PostMeta;
};
export declare const AuthenticateHeader: {
scheme: string;
param: string[];
};
//# sourceMappingURL=api.d.ts.map