feat(blockchain): organizer as on-chain ticket admin + role-gated che… - #97
Merged
Conversation
…ck-in Sign createTicket from the organizer's Circle wallet so the organizer becomes the ticket's on-chain admin: the instant USDC payout target for non-refundable events, the mainAdmin who withdraws refundable balances, and the ticketAdminRole holder that gates check-in. Previously the treasury signed, making HostIT the admin. - CircleContractService.executeContract: optional `walletId` signer (defaults to treasury), recorded on the BlockchainTransaction row. - event-publish: resolve the organizer's ready wallet and sign createTicket with it; configure the on-chain fee as USDC (NGN price -> 6-dp USDC base units), replacing the ETH placeholder. - Fix the stale FeeType map to the deployed Base enum (USDC=5, NATIVE=2, ...); the Lisk-era map encoded USDC as USDT on-chain. - ticket-checkin: sign checkIn from the scanner's wallet (the role holder) instead of the treasury; guard missing scanner / unprovisioned wallet. Phase 1 of the crypto real-time split: non-refundable events pay the organizer instantly on-chain via mintTicket; refundable events escrow until the refund window. Scanner-role delegation (addTicketAdmins) and the payout/refund legs are Phase 2. Refs #37, #68
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.
…ck-in
Sign createTicket from the organizer's Circle wallet so the organizer becomes the ticket's on-chain admin: the instant USDC payout target for non-refundable events, the mainAdmin who withdraws refundable balances, and the ticketAdminRole holder that gates check-in. Previously the treasury signed, making HostIT the admin.
walletIdsigner (defaults to treasury), recorded on the BlockchainTransaction row.Phase 1 of the crypto real-time split: non-refundable events pay the organizer instantly on-chain via mintTicket; refundable events escrow until the refund window. Scanner-role delegation (addTicketAdmins) and the payout/refund legs are Phase 2.
Refs #37, #68