23 lines
439 B
TypeScript
23 lines
439 B
TypeScript
import type { AlbyInvoice } from '@/types/alby'
|
|
|
|
export interface ReviewRewardRequest {
|
|
reviewId: string
|
|
articleId: string
|
|
reviewerPubkey: string
|
|
reviewerLightningAddress?: string
|
|
authorPubkey: string
|
|
authorPrivateKey: string
|
|
}
|
|
|
|
export interface ReviewRewardResult {
|
|
success: boolean
|
|
invoice?: AlbyInvoice
|
|
paymentHash?: string
|
|
error?: string
|
|
split: {
|
|
reviewer: number
|
|
platform: number
|
|
total: number
|
|
}
|
|
}
|