9c55f1ebe2
* lnurlp paid action * lnurlp has 10% sybil fee * fix merge issue * Update pages/settings/index.js Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com> * fix notifications * fix destructure * pass lud18Data to lnurlp action * minor cleanup * truncate invoice description to permitted length * remove redundant targetUserId * lnurlp paidAction -> receive paidAction * remove redundant user query * improve determining if peer is invoiceable * fix inconsistent relative imports * prevent paying self-proxied invoices and better held invoice cancellation * make gun/horse streak zap specific * unique withdrawal hash should apply to confirmed payments too * prevent receive from exceeding wallet limits * notifications * fix notifications & enhance invoice/withdrawl page * notification indicator, proxy receive based on threshold, refinements --------- Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com> Co-authored-by: k00b <k00b@stacker.news>
14 lines
426 B
SQL
14 lines
426 B
SQL
-- AlterEnum
|
|
ALTER TYPE "InvoiceActionType" ADD VALUE 'RECEIVE';
|
|
|
|
-- AlterTable
|
|
ALTER TABLE "users" ADD COLUMN "proxyReceive" BOOLEAN NOT NULL DEFAULT false;
|
|
|
|
DROP FUNCTION IF EXISTS create_invoice;
|
|
|
|
-- Add unique index for Withdrawl table
|
|
-- to prevent multiple pending withdrawls with the same hash
|
|
CREATE UNIQUE INDEX "Withdrawl_hash_key_null_status"
|
|
ON "Withdrawl" (hash)
|
|
WHERE status IS NULL OR status = 'CONFIRMED';
|