Skip to content

17 feature extract referral and link on first order#19

Open
rauf322 wants to merge 7 commits intodevelopfrom
17-feature-extract-referral-and-link-on-first-order
Open

17 feature extract referral and link on first order#19
rauf322 wants to merge 7 commits intodevelopfrom
17-feature-extract-referral-and-link-on-first-order

Conversation

@rauf322
Copy link

@rauf322 rauf322 commented Jan 15, 2026

No description provided.

@rauf322 rauf322 linked an issue Jan 15, 2026 that may be closed by this pull request

const buyerWallet = event.params.taker;
const buyerWalletId = `${event.chainId}-${buyerWallet}`;
const buyerWalletEntity = await context.Wallet.get(buyerWalletId);
Copy link
Author

Choose a reason for hiding this comment

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

Assuming frontend requires registration before trading, which fires Users.AddedWallet event This indexes the wallet to schema and links it to User, so buyerWalletEntity.user_id will exist

@rauf322 rauf322 force-pushed the 17-feature-extract-referral-and-link-on-first-order branch from 8b9339d to eef3e2a Compare January 19, 2026 12:28
wallet_id: buyerWalletId,
referrer_id: referrerUserId,
marketplace_id: marketplaceId,
firstOrderTrade_id: tradeId,
Copy link
Author

Choose a reason for hiding this comment

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

Should we have firstOrderTrade_id? if we can just indexing trade history by buyerWalletId?

@rauf322 rauf322 force-pushed the 17-feature-extract-referral-and-link-on-first-order branch from 3ce8f12 to f42abb8 Compare January 20, 2026 12:18
KristjanBajuk and others added 7 commits February 2, 2026 11:33
…teraction handler, add protocol property to PropertyTokenTrade entity
…illed

First graphql schema tables is ReferralCode that's where our Referrer is
living and it has relationships to Referrals table.
Second table is Referral which showing to us Referral address data of
creation and what was first order
@rauf322 rauf322 force-pushed the 17-feature-extract-referral-and-link-on-first-order branch from 6f90151 to 36f77e9 Compare February 2, 2026 10:34
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.

[FEATURE] Extract referral and link on first order

2 participants