Promote analytics events to mainnet#715
Merged
Merged
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile Overview
|
| Filename | Score | Overview |
|---|---|---|
| apps/maestro/src/lib/utils/analytics.ts | 5/5 | New analytics utility file with functions to track token deployment, registration, and transfer events via Vercel Analytics |
| apps/maestro/src/features/RegisterRemoteTokens/RegisterRemoteTokens.tsx | 5/5 | Added analytics tracking for remote token deployments across three different transaction flows (EVM, Sui, Stellar) |
| apps/maestro/src/features/SendInterchainToken/hooks/useInterchainTokenServiceTransferMutation.ts | 5/5 | Added analytics tracking for token transfers via ITS after successful transaction submission |
| apps/maestro/src/features/SendInterchainToken/hooks/useInterchainTransferMutation.ts | 5/5 | Added analytics tracking for interchain token transfers after successful transaction submission |
Sequence Diagram
sequenceDiagram
participant User
participant UI
participant Hook
participant Contract
participant Analytics
participant Database
Note over User,Database: Token Deployment Flow
User->>UI: Deploy/Register Token
UI->>Hook: Call deployment mutation
Hook->>Contract: Execute deployment transaction
Contract-->>Hook: Return tx hash
Hook->>Database: Record deployment
Database-->>Hook: Success
Hook->>Analytics: Track token deployment event
Hook->>Analytics: Track remote token deployments
Analytics-->>Hook: Events tracked
Hook->>UI: Update status (deployed)
Note over User,Database: Token Transfer Flow
User->>UI: Initiate token transfer
UI->>Hook: Call transfer mutation
Hook->>Contract: Execute transfer transaction
Contract-->>Hook: Return tx hash
Hook->>Analytics: Track token transfer event
Analytics-->>Hook: Event tracked
Hook->>UI: Update status (submitted)
themetalfleece
approved these changes
Dec 16, 2025
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.
Note
Integrates Vercel Analytics to track canonical/interchain token deployments (including remote registrations) and token transfers, and skips flaky network-dependent tests.
~/lib/utils/analyticswithtrackTokenDeployment,trackRemoteTokenDeployments, andtrackTokenTransfer.useDeployAndRegisterRemoteCanonicalTokenMutation.useDeployAndRegisterRemoteInterchainTokenMutation.RegisterRemoteTokens.useInterchainTokenServiceTransferMutationanduseInterchainTransferMutation.packages/api/src/axelarscan/client.spec.tsandpackages/api/src/deposit-address/client.spec.ts.Written by Cursor Bugbot for commit 3897c54. This will update automatically on new commits. Configure here.