Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add transaction IDs #95

Merged
merged 1 commit into from
Aug 21, 2024
Merged

add transaction IDs #95

merged 1 commit into from
Aug 21, 2024

Conversation

gudnuf
Copy link
Contributor

@gudnuf gudnuf commented Aug 21, 2024

Adds a function to computeTxId that creates a unique identifier for token, no matter the order of the proofs.

  • NOTE: this is not part of the nuts

Stores tokens in the database by txid

Lookup tokens (including from a sharable link) by txid

Copy link

vercel bot commented Aug 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
boardwalk ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 11:13pm

@gudnuf gudnuf reopened this Aug 21, 2024
@gudnuf gudnuf merged commit 71cf60f into dev Aug 21, 2024
1 of 2 checks passed
@gudnuf gudnuf deleted the txids branch August 21, 2024 23:18
@gudnuf gudnuf restored the txids branch August 21, 2024 23:24
gudnuf added a commit that referenced this pull request Aug 21, 2024
@gudnuf gudnuf mentioned this pull request Sep 9, 2024
gudnuf added a commit that referenced this pull request Sep 9, 2024
* add txids (#95)

* Add eGifts (#96)

* add gift functionality + styliing changes

* add gifts to HistoryTable

* add `isMintTrusted`

* forgotten commits

* add gift image caching

* apply gifts to /wallet page

* preven swapping to/from testmints

* error handling for auth middleware

* fix receive give to be selected

* fix type error

* cleanup public directory (#97)

* fix load gift from link

* fix lollipop gift name

* remove spinners

* fix claimed token on new boardwalk

* fix eGift modal not opening

* update heart gift

* remove immutable cache header

* update all images to X emojis

* update teddy bear name

* sort stickers by amount

* fix hover space on tooltip

* create WaitForInvoiceModal

* refactor GiftModal to work with invoices

* add EGiftButton to profile page

* commit migration

* tweak styles

* send spinner

* commit extra gifts

* add gift cost

* update proofStorage to work better

* send fee along with gift

* include fee amount in tx history

* gift modal styles + postTokenToDb

* make gift fees work on profile page

* change selected heart quality

* don't close if gift and already claimed

* clean up gift modal

* upgrade pic quality on all selected

* redirect to /setup

* giftmodal styling

* don't show mint trust if not initialized

* toast didn't select gift

* more modal styling

* add custom user gifts

* add user loading state

* only load gifts we care about

* force fetch for loading gift from token

* show user's custom gifts after contact is added

* fix balance bug

* delay loading by 1 second

* profile page add btn size

* add useRouter to GiftProvider for loading gifts on profile page when user might not be initialized

* error logging

* erorr logging

* dont throw receive error

* WIP leaderboard page

* add navigation to the setting sidebar

* add a reset app button

* add toast to reset user error

* add date filtering and refactor leaderboard page

* upgrade ViewTotalGiftsModal

* leaderboard updates

* close all dropdowns when settings closes

* filter userData for leaderboard on backend

* only show trusted mints in producion on leaderboard

* change leaderboard icon

* add custom tab component

* change table styling

* add margin to ViewLeaderboardData

* cleanup

* commit my scripts

* try to fix userstatscard crashing

* sort leaderboards by totalAmountCents

* style updates

* make tabs `button`

* Nostr auth otp (#98)

* rename /api/users/[slug] to /api/users/[pubkey]

* add functionality to delete contacts

* add nostr pubkey authentication via otp dm

* fetch contacts with timeout

* dicsover other contacts with same nostr pubkey

* nostr otp cleanup and error handling

* make it a link

* add min width to leaderboard drawer

* style profile tab

* remove NEXT_PUBLIC_PROJECT_URL from frontend

* update userstats card styling

* rename gift.cost to gift.fee

* mark fee tokens as such

* refactor Receive modal

* add loading state to receive

* more profile setting styling

* remove invoice modal spinner

* try to fix reset account button

* let useCashu make the toast

* remove "waiting for payment"

* fix claim token from link

* hide profile eGift button

* hide leaderboard from settings

* hide discover button
@gudnuf gudnuf deleted the txids branch September 13, 2024 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant