Repository navigation
Create auction releases from imported gifts with complete upgrade pools - #181
Merged
iamxvbaba merged 7 commits intoNov 18, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Operators can now select an imported gift when creating an auction, including disabled templates, instead of uploading its animation again. A new gift identity and its complete collectible pool are published atomically: models (including crafted rarities), patterns, backdrops and upgrade pricing are copied while the source's inventory and issued gifts stay intact.
The scrollable authoring dialog previews the selected gift and exposes release supply, bidding rounds, opening bid, upgrade price, released-by author, per-user limits, Premium/birthday flags and sort order. Dry-run fingerprints prevent confirming changed source assets/settings; stable execution IDs prevent duplicate submissions. New releases reserve a separate auction/collectible namespace. Custom round duration now survives PostgreSQL writes and catalog reloads.
Disabled gifts are hidden from the regular catalog, issuance and auction lists, and remain accessible through “All imported gifts”.
Official auction templates such as UFC Strike and Khabib’s Papakha retain their complete attribute pools when the snapshot has a zero upgrade fee. Explicit zero import overrides are preserved; omitted overrides inherit the snapshot price. Free upgrades use the same atomic issuance and replay protections as paid ones, while paid pools still require the exact locked price. Free saved gifts do not advertise paid sponsorship links. A paired migration permits zero fees and preserves purchase options in immutable command receipts.
Scheduled auctions also accept early bids and increases before their start date, while settlement still waits for the configured first-round deadline. PostgreSQL coverage checks reservation/replay, delta charging, insufficient-balance rollback, cancelled/finished rejection, the start transition, winner settlement and loser refunds.
Validation:
go test ./... -count=1,go vet ./...