UNPKG

@tiplink/api

Version:

Api for creating and sending TipLinks

19 lines (18 loc) 1.59 kB
import { Keypair } from "@solana/web3.js"; export declare const TIPLINK_ORIGIN: string; export declare class TipLink { url: URL; keypair: Keypair; private constructor(); static create(version?: number): Promise<TipLink>; static fromUrl(url: URL): Promise<TipLink>; static fromLink(link: string): Promise<TipLink>; } import { TipLinkClient } from "./client"; export { TipLinkClient }; import { attachTheme } from "./lib/themes"; export { attachTheme }; import { EscrowTipLink, getEscrowReceiverTipLink, PRIO_FEES_LAMPORTS, ESCROW_PROGRAM_ID, parseEscrowIx, parseEscrowTx, getAllRecordedEscrowActions, EscrowActionType, EscrowActionDepositLamport, EscrowActionWithdrawLamport, EscrowActionDepositSpl, EscrowActionWithdrawSpl, EscrowAction, RecordedEscrowAction, serializeRecordedEscrowActions, deserializeRecordedEscrowActions, getRecordedEscrowActionsFromVault, getRecordedEscrowActionsFromTx, DepositEvent, WithdrawEvent } from "./escrow"; export { EscrowTipLink, getEscrowReceiverTipLink, PRIO_FEES_LAMPORTS, ESCROW_PROGRAM_ID, parseEscrowIx, parseEscrowTx, getAllRecordedEscrowActions, EscrowActionType, EscrowActionDepositLamport, EscrowActionWithdrawLamport, EscrowActionDepositSpl, EscrowActionWithdrawSpl, EscrowAction, RecordedEscrowAction, serializeRecordedEscrowActions, deserializeRecordedEscrowActions, getRecordedEscrowActionsFromVault, getRecordedEscrowActionsFromTx, DepositEvent, WithdrawEvent, }; import { mail, mailEscrow, createReceiverTipLink, getReceiverEmail } from "./enclave"; export { mail, mailEscrow, createReceiverTipLink, getReceiverEmail };