Feat/crypto settlement - #106
Merged
Merged
Conversation
Add an optional `chain` field to event creation, validated against the active chain set (ACTIVE_CHAINS) rather than a hardcoded list. Omitted selections fall back to the default chain, so existing callers are unchanged. Expose GET /events/chains for the client picker. Chain is persisted on the event and immutable after creation. ACTIVE_CHAINS is the single source of truth for selectable chains — a testnet-only prod (e.g. Base Sepolia) is a valid configuration.
Move from a single default-chain wallet to a desired-state model: every non-admin user should have a DEVELOPER_CONTROLLED wallet on every chain in ACTIVE_CHAINS. New WalletsService.ensureWalletsForActiveChains fills only the missing chains (idempotent), pins primary to the default chain without demoting an existing one, and skips admins. Call it at register (all chains up front) and on login (fire-and-forget), so users self-heal into any newly added chain with no backfill. The lazy per-event-chain enqueue at checkout stays as a hard guarantee. Fix the processor to resolve Circle's blockchain id via getChain(chain).circleBlockchain instead of passing the raw chain, so any active chain provisions correctly — not just Base Sepolia. Adding a chain is now config-only: registry entry + env + a funded Gas Station policy + restart. Closes #105
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.
closes #104
closes #105