bd67bfc92e
A self-hostable Grin payment server for shops, creators, and sites: show a code, Grin lands in your wallet, with a verifiable Grin payment proof on receive. Workspace crates (gp-core / gp-nostr / gp-server / gp-wallet / gp-goblin-sender), a WooCommerce connector, a hosted /pay/<token> checkout, and NIP-44 v3 gift-wrapped payment DMs carried over the Nym mixnet. All secrets are read from the environment; none are committed.
12 lines
714 B
SQL
12 lines
714 B
SQL
-- Milestone 7: conversion rates. A fiat invoice is now priced into Grin at
|
|
-- creation by the configurable price oracle (gp-core::rates), so its
|
|
-- expected_amount is filled (it was NULL through milestone 5) and the invoice
|
|
-- participates in amount-matching. The locked quote is recorded alongside the
|
|
-- fiat amount/currency already stored: the rate used (fiat per GRIN, decimal
|
|
-- string) and the source it came from (e.g. `coingecko`). The lock window is
|
|
-- the invoice's existing `expiry` column (quoted_at is its `created_at`), so
|
|
-- an amount-match past expiry re-quotes rather than honouring a stale rate.
|
|
|
|
ALTER TABLE invoice ADD COLUMN quote_rate TEXT;
|
|
ALTER TABLE invoice ADD COLUMN quote_source TEXT;
|