Skip to content

Update invitation mechanism#66

Merged
CedrikNikita merged 11 commits intodevelopfrom
feature/update-invitation-mechanism
Mar 12, 2026
Merged

Update invitation mechanism#66
CedrikNikita merged 11 commits intodevelopfrom
feature/update-invitation-mechanism

Conversation

@CedrikNikita
Copy link
Copy Markdown
Collaborator

@CedrikNikita CedrikNikita commented Feb 27, 2026

Note

High Risk
Adds new reward payout flows (AE spends) driven by on-chain events and manual recheck endpoints, plus new DB tables/enums and external X API calls; mistakes could impact funds, abuse resistance, or data correctness.

Overview
Adds X invite + reward features. Introduces a new X invite system with signed challenge/consume flow, invite creation/binding, invite credits, and milestone payouts, including a manual SQL migration and new env knobs for invite/reward configuration.

Adds X posting reward workflow. Implements ProfileXPostingRewardService with X app-token fetching, tweet scanning/keyword matching, retry + cooldown handling, and spend-queue serialization; exposes new profile endpoints for status and on-demand recheck guarded by rate limiting.

Expands analytics + hardens validation. Adds BCL analytics endpoints for X verification and X invite usage, runs X verification metrics alongside existing dashboard queries, and wires Tx/ProfileXInvite repos. Enables global request validation (ValidationPipe) and tightens rate limiting to use Express-resolved IP (no x-forwarded-for parsing).

Profile naming/contract updates. Removes display_source from the Profile Registry ACI/constants and simplifies public-name selection to chain_nameusername → address fallback.

Written by Cursor Bugbot for commit ea12cf7. This will update automatically on new commits. Configure here.

@CedrikNikita CedrikNikita force-pushed the feature/update-invitation-mechanism branch 2 times, most recently from 8474344 to 92b5c23 Compare March 10, 2026 08:33
@CedrikNikita CedrikNikita marked this pull request as ready for review March 10, 2026 08:34
Comment thread src/profile/profile.module.ts
Comment thread src/profile/services/profile-x-posting-reward.service.ts Outdated
Comment thread docs/invite-x-temporary-testing.env.example Outdated
@CedrikNikita CedrikNikita force-pushed the feature/update-invitation-mechanism branch from 92b5c23 to 04d8437 Compare March 10, 2026 09:13
Comment thread src/profile/services/profile-indexer.service.spec.ts
@CedrikNikita CedrikNikita force-pushed the feature/update-invitation-mechanism branch from 04d8437 to 7b3358f Compare March 10, 2026 09:25
Comment thread src/profile/services/profile-x-invite.service.ts
@CedrikNikita CedrikNikita force-pushed the feature/update-invitation-mechanism branch from 7b3358f to 917c5c5 Compare March 10, 2026 09:38
Comment thread src/profile/services/profile-x-invite.service.ts Outdated
Comment thread docs/profile-x-invites-manual-migration.sql Outdated
@CedrikNikita CedrikNikita force-pushed the feature/update-invitation-mechanism branch from 917c5c5 to 26ffb5a Compare March 10, 2026 09:51
Comment thread src/affiliation/services/bcl-affiliation-analytics.service.ts
Comment thread src/profile/services/profile-x-posting-reward.service.ts
Comment thread src/affiliation/services/bcl-affiliation-analytics.service.ts Outdated
Comment thread src/main.ts
Comment thread src/profile/services/profile-x-invite.service.ts
@CedrikNikita CedrikNikita force-pushed the feature/update-invitation-mechanism branch from 5fc192b to 3b96b2b Compare March 10, 2026 12:19
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Comment thread src/profile/services/profile-x-invite.service.ts Outdated
@CedrikNikita CedrikNikita force-pushed the feature/update-invitation-mechanism branch from 3b96b2b to ea12cf7 Compare March 10, 2026 12:29
@CedrikNikita CedrikNikita merged commit 3adf714 into develop Mar 12, 2026
1 check passed
@CedrikNikita CedrikNikita deleted the feature/update-invitation-mechanism branch March 17, 2026 09:24
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