Skip to content

feat: revert thor/maya endpoints/second-class chains#11562

Merged
NeOMakinG merged 4 commits intodevelopfrom
feat_revert_thor_things
Jan 5, 2026
Merged

feat: revert thor/maya endpoints/second-class chains#11562
NeOMakinG merged 4 commits intodevelopfrom
feat_revert_thor_things

Conversation

@gomesalexandre
Copy link
Contributor

@gomesalexandre gomesalexandre commented Jan 3, 2026

Description

...back to unchained + first-class implementation, now that endpoints are back to life.

Will follow-up with a better implementation to leverage ninerealms as fallback + second-class as fallback, so we can have our cake and eat it.

Issue (if applicable)

closes N/A

Risk

High Risk PRs Require 2 approvals

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

Low to none assuming endpoints are alive.

Testing

  • Clear your cache
  • Ensure THOR/MAYA things are happy and no thor/maya unchained/thornode/midgard endpoints failures (except for the expected failures)

Engineering

  • ^

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)
  • ^

Screenshots (if applicable)

https://jam.dev/c/06138988-6952-4622-97b1-145f51f9bd67

Summary by CodeRabbit

  • Infrastructure Updates

    • Migrated Thorchain and Mayachain node and Midgard endpoints to ShapeShift/Unchained hosts (including dev env variants).
  • Architecture Changes

    • Switched Thorchain and Mayachain adapters to provider-based setup with HTTP and WebSocket clients.
    • Trade-status checks now query Unchained APIs for improved consistency.
  • Refactor

    • Removed legacy second-class adapter implementations and related chain-specific status handlers.

✏️ Tip: You can customize this high-level summary in your review settings.

@gomesalexandre gomesalexandre requested a review from a team as a code owner January 3, 2026 11:09
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 3, 2026

📝 Walkthrough

Walkthrough

Legacy node-based Thorchain and Mayachain adapters, endpoints, and related utilities were removed or replaced. Initialization now uses unchained HTTP/WS/httpV1 providers; swapper and trade-status logic were updated to use unchained API URLs; environment vars updated to ShapeShift/dev unchained endpoints.

Changes

Cohort / File(s) Summary
Environment Configuration
\.env, \.env.development
Switched Thorchain/Mayachain node and Midgard URLs from ninerealms/mayachain.info to ShapeShift/dev-api and unchained endpoints; updated active lines and branch-swap comments.
Second-Class Adapter Removals
packages/chain-adapters/src/cosmossdk/thorchain/SecondClassThorchainAdapter.ts, packages/chain-adapters/src/cosmossdk/mayachain/SecondClassMayachainAdapter.ts
Deleted full legacy SecondClass adapter implementations (wallet integration, tx build/sign/broadcast, parsing, fee handling, Midgard fallbacks).
Adapter Index Exports
packages/chain-adapters/src/cosmossdk/thorchain/index.ts, packages/chain-adapters/src/cosmossdk/mayachain/index.ts
Removed re-exports of the deleted SecondClass adapters from the barrels.
Chain Adapter Simplifications
packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts, packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
Removed nodeUrl from args/class, and removed getAccount() and broadcastTransaction() implementations that used node REST endpoints.
Swapper Endpoint Updates
packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts, packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
Added apiUrl from VITE_UNCHAINED_*_HTTP_URL and forward it into trade status checks.
Trade Status Logic
packages/swapper/src/thorchain-utils/checkTradeStatus.ts
checkTradeStatus signature extended with apiUrl; replaced Cosmos REST tx lookup with unchained API /tx/{txHash} fetch and updated error/response handling.
Constants & Chains
src/constants/chains.ts
Removed KnownChainIds.ThorchainMainnet and KnownChainIds.MayachainMainnet from SECOND_CLASS_CHAINS.
Action Center Subscribers
src/hooks/useActionCenterSubscribers/useSendActionSubscriber.tsx
Removed Thorchain/Mayachain-specific second-class status handling and imports; those chains now follow default/unsupported path.
Utility Module Deletions
src/lib/utils/mayachain.ts, src/lib/utils/thorchain/index.ts
Deleted Mayachain utility module and removed getThorchainSendTransactionStatus() helper.
Plugin Initialization
src/plugins/thorchain/index.tsx, src/plugins/mayachain/index.tsx
Replaced nodeUrl-based adapter construction with unchained client providers: constructed ChainAdapter with { http, ws, httpV1 } providers (using VITE_UNCHAINED_* urls) and preserved midgard URLs.

Sequence Diagram(s)

mermaid
sequenceDiagram
participant App as App / Plugin init
participant Adapter as ChainAdapter
participant UnchHttp as Unchained HTTP (httpV1)
participant UnchWs as Unchained WS
participant Midgard as Midgard
Note over App,Adapter: Adapter initialization with providers
App->>Adapter: new ChainAdapter({ providers: { http, ws, httpV1 }, midgardUrls... })
Adapter->>UnchHttp: REST calls (tx, account, etc.)
Adapter->>UnchWs: subscribe/stream tx events
Adapter->>Midgard: query pool/status/fallbacks
UnchHttp-->>Adapter: tx/account responses
UnchWs-->>Adapter: stream events/confirmations
Midgard-->>Adapter: liquidity / swap info
Note over Adapter,App: Adapter exposes sign/build flows (wallet) using unchained providers

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

Possibly related PRs

Suggested reviewers

  • gomesalexandre
  • kaladinlight
  • premiumjibles

Poem

🐰 I hopped from nodeUrl to unchained light,

HTTP and WebSocket now holding tight.
Midgard whispers, ShapeShift hums the tune,
Adapters reborn beneath the moon. ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: reverting Thorchain/Mayachain endpoints and second-class chains handling, which aligns with the comprehensive changeset that removes temporary workarounds and restores unchained-based implementations.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat_revert_thor_things

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
.env (1)

159-168: LGTM! Endpoint migration to ShapeShift infrastructure.

The THOR/MAYA endpoint URLs have been correctly updated to use ShapeShift's infrastructure (api.thorchain.shapeshift.com and api.mayachain.shapeshift.com). This aligns with the PR's objective to revert temporary ninerealms usage now that ShapeShift endpoints are operational.

Note: The linter flags minor key ordering issues (UnorderedKey warnings), but these are cosmetic and don't affect functionality.

📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between e3e6d27 and 2b2b58a.

📒 Files selected for processing (17)
  • .env
  • .env.development
  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/SecondClassMayachainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/index.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/SecondClassThorchainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/index.ts
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • src/constants/chains.ts
  • src/hooks/useActionCenterSubscribers/useSendActionSubscriber.tsx
  • src/lib/utils/mayachain.ts
  • src/lib/utils/thorchain/index.ts
  • src/plugins/mayachain/index.tsx
  • src/plugins/thorchain/index.tsx
💤 Files with no reviewable changes (8)
  • src/lib/utils/thorchain/index.ts
  • src/hooks/useActionCenterSubscribers/useSendActionSubscriber.tsx
  • packages/chain-adapters/src/cosmossdk/thorchain/index.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/index.ts
  • src/lib/utils/mayachain.ts
  • src/constants/chains.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/SecondClassThorchainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/SecondClassMayachainAdapter.ts
🧰 Additional context used
📓 Path-based instructions (12)
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx,js,jsx}: Never assume a library is available - always check imports/package.json first
Prefer composition over inheritance
Write self-documenting code with clear variable and function names
Keep functions small and focused on a single responsibility
Avoid deep nesting - use early returns instead
Prefer procedural and easy to understand code
Never expose, log, or commit secrets, API keys, or credentials
Validate all inputs, especially user inputs
Handle errors gracefully with meaningful messages
Don't silently catch and ignore exceptions
Log errors appropriately for debugging
Provide fallback behavior when possible
Use appropriate data structures for the task
Never add code comments unless explicitly requested
When modifying code, do not add comments that reference previous implementations or explain what changed. Comments should only describe the current logic and functionality.
Use meaningful names for branches, variables, and functions
Always run yarn lint --fix and yarn type-check after making changes
Avoid let variable assignments - prefer const with inline IIFE switch statements or extract to functions for conditional logic

Files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • src/plugins/mayachain/index.tsx
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
  • src/plugins/thorchain/index.tsx
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Avoid useEffect where practical - use it only when necessary and following best practices
Avoid 'any' types - use specific type annotations instead
For default values with user overrides, use computed values (useMemo) instead of useEffect - pattern: userSelected ?? smartDefault ?? fallback
When function parameters are unused due to interface requirements, refactor the interface or implementation to remove them rather than prefixing with underscore
Sanitize data before displaying to prevent XSS
Memoize aggressively - wrap component variables in useMemo and callbacks in useCallback where possible
For static JSX icon elements (e.g., <TbCopy />) that don't depend on state/props, define them as constants outside the component to avoid re-renders instead of using useMemo
Account for light/dark mode using useColorModeValue hook
Account for responsive mobile designs in all UI components
When applying styles, use the existing standards and conventions of the codebase
Use Chakra UI components and conventions
All copy/text must use translation keys - never hardcode strings
Use the translation hook: useTranslate() from react-polyglot
Use useFeatureFlag('FlagName') hook to access feature flag values in components
Prefer type over interface for type definitions
Use strict typing - avoid any
Use Nominal types for domain identifiers (e.g., WalletId, AccountId)
Import types from @shapeshiftoss/caip for chain/account/asset IDs
Use useAppSelector for Redux state
Use useAppDispatch for Redux actions
Memoize expensive computations with useMemo
Memoize callbacks with useCallback

**/*.{ts,tsx}: Use Result<T, E> pattern for error handling in swappers and APIs; ALWAYS use Ok() and Err() from @sniptt/monads; AVOID throwing within swapper API implementations
ALWAYS use custom error classes from @shapeshiftoss/errors with meaningful error codes for internationalization and relevant details in error objects
ALWAYS wrap async op...

Files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • src/plugins/mayachain/index.tsx
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
  • src/plugins/thorchain/index.tsx
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
**/swapper{s,}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/error-handling.mdc)

ALWAYS use makeSwapErrorRight for swapper errors with TradeQuoteError enum for error codes and provide detailed error information

Files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
**/*.{js,jsx,ts,tsx}

📄 CodeRabbit inference engine (.cursor/rules/naming-conventions.mdc)

**/*.{js,jsx,ts,tsx}: Use camelCase for variables, functions, and methods with descriptive names that explain the purpose
Use verb prefixes for functions that perform actions (e.g., fetch, validate, execute, update, calculate)
Use UPPER_SNAKE_CASE for constants and configuration values with descriptive names
Use handle prefix for event handlers with descriptive names in camelCase
Use descriptive boolean variable names with is, has, can, should prefixes
Use named exports for components, functions, and utilities instead of default exports
Use descriptive import names and avoid renaming imports unless necessary
Avoid non-descriptive variable names like data, item, obj, and single-letter variable names except in loops
Avoid abbreviations in names unless they are widely understood
Avoid generic function names like fn, func, or callback

Files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • src/plugins/mayachain/index.tsx
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
  • src/plugins/thorchain/index.tsx
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
packages/swapper/**/*.ts

📄 CodeRabbit inference engine (.cursor/rules/swapper.mdc)

packages/swapper/**/*.ts: Use TypeScript with explicit types (e.g., SupportedChainIds) for all code in the Swapper system
Use camelCase for variable and function names in the Swapper system
Use PascalCase for types, interfaces, and enums in the Swapper system
Use kebab-case for filenames in the Swapper system

Files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
packages/swapper/src/swappers/**/*.ts

📄 CodeRabbit inference engine (.cursor/rules/swapper.mdc)

packages/swapper/src/swappers/**/*.ts: Adhere to the Swapper directory structure: each swapper resides in packages/swapper/src/swappers// with required files (SwapperName.ts, endpoints.ts, types.ts, utils/constants.ts, utils/helpers.ts)
Validate inputs and log errors for debugging in Swapper system implementations
Swapper files must be located in packages/swapper/src/swappers/ directory structure and not placed outside this location
Avoid side effects in swap logic; ensure swap methods are deterministic and stateless

Files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
packages/swapper/src/swappers/*/*.ts

📄 CodeRabbit inference engine (.cursor/rules/swapper.mdc)

packages/swapper/src/swappers/*/*.ts: All swappers must implement the Swapper interface from packages/swapper/src/types.ts
Implement filterAssetIdsBySellable method to filter assets by supported chain IDs in the sell property
Implement filterBuyAssetsBySellAssetId method to filter assets by supported chain IDs in the buy property
Reuse executeEvmTransaction utility for EVM-based swappers instead of implementing custom transaction execution

Files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
packages/swapper/src/swappers/*/endpoints.ts

📄 CodeRabbit inference engine (.cursor/rules/swapper.mdc)

packages/swapper/src/swappers/*/endpoints.ts: All swapper API implementations must implement the SwapperApi interface from packages/swapper/src/types.ts
Reuse checkEvmSwapStatus utility for checking EVM swap status instead of implementing custom status checks

Files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
**/*.{tsx,jsx}

📄 CodeRabbit inference engine (.cursor/rules/error-handling.mdc)

**/*.{tsx,jsx}: ALWAYS wrap React components in error boundaries and provide user-friendly fallback components with error logging
ALWAYS use useErrorToast hook for displaying errors with translated error messages and handle different error types appropriately

Use PascalCase for React component names and match the component name to the file name

Files:

  • src/plugins/mayachain/index.tsx
  • src/plugins/thorchain/index.tsx
**/*.{jsx,tsx}

📄 CodeRabbit inference engine (.cursor/rules/react-best-practices.mdc)

**/*.{jsx,tsx}: ALWAYS use useMemo for expensive computations, object/array creations, and filtered data
ALWAYS use useMemo for derived values and computed properties
ALWAYS use useMemo for conditional values and simple transformations
ALWAYS use useCallback for event handlers and functions passed as props
ALWAYS use useCallback for any function that could be passed as a prop or dependency
ALWAYS include all dependencies in useEffect, useMemo, useCallback dependency arrays
NEVER use // eslint-disable-next-line react-hooks/exhaustive-deps unless absolutely necessary, and ALWAYS explain why dependencies are excluded if using eslint disable
ALWAYS use named exports for components; NEVER use default exports for components
KEEP component files under 200 lines when possible; BREAK DOWN large components into smaller, reusable pieces
EXTRACT complex logic into custom hooks
ALWAYS wrap components in error boundaries for production
ALWAYS handle async errors properly in async operations
ALWAYS provide user-friendly error messages in error handling
ALWAYS use virtualization for lists with 100+ items
ALWAYS implement proper key props for list items
ALWAYS lazy load heavy components using React.lazy for code splitting
ALWAYS use Suspense wrapper for lazy loaded components
USE local state for component-level state; LIFT state up when needed across multiple components; USE Context for avoiding prop drilling; USE Redux only for global state shared across multiple places
Wrap components receiving props with memo for performance optimization

Files:

  • src/plugins/mayachain/index.tsx
  • src/plugins/thorchain/index.tsx
**/*.tsx

📄 CodeRabbit inference engine (.cursor/rules/react-best-practices.mdc)

Ensure TypeScript types are explicit and proper; avoid use of any type

Files:

  • src/plugins/mayachain/index.tsx
  • src/plugins/thorchain/index.tsx
{.env.development,.env.production}

📄 CodeRabbit inference engine (CLAUDE.md)

Use .env.development for dev-only features and .env.production for prod settings

Files:

  • .env.development
🧠 Learnings (40)
📓 Common learnings
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11170
File: patches/@shapeshiftoss+bitcoinjs-lib+7.0.0-shapeshift.0.patch:9-19
Timestamp: 2025-11-25T21:43:10.838Z
Learning: In shapeshift/web, gomesalexandre will not expand PR scope to fix latent bugs in unused API surface (like bitcoinjs-lib patch validation methods) when comprehensive testing proves the actual used code paths work correctly, preferring to avoid costly hdwallet/web verdaccio publish cycles and full regression testing for conceptual issues with zero runtime impact.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10232
File: packages/unchained-client/openapitools.json:61-61
Timestamp: 2025-08-08T10:23:16.843Z
Learning: In shapeshift/web, for temporary “monkey patch” PRs (e.g., packages/unchained-client/openapitools.json using jsDelivr CDN refs like cosmos/mayachain), gomesalexandre is fine with branch-based URLs and does not want SHA pinning. Treat this as a scoped exception to their general preference for pinned dependencies/refs.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10232
File: packages/unchained-client/openapitools.json:230-230
Timestamp: 2025-08-08T10:23:06.773Z
Learning: In shapeshift/web, for temporary monkey patches (e.g., OpenAPI inputSpec URLs in packages/unchained-client/openapitools.json), gomesalexandre is not concerned about commit SHA pinning; tag-based CDN URLs (e.g., jsDelivr branch) are acceptable during the temporary period.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10265
File: src/pages/ThorChainLP/queries/hooks/usePools.ts:93-0
Timestamp: 2025-08-13T13:45:25.748Z
Learning: In the ShapeShift web app, inbound addresses data for Thorchain pools requires aggressive caching settings (staleTime: 0, gcTime: 0, refetchInterval: 60_000) to ensure trading status and LP deposit availability are always current. This is intentional business-critical behavior, not a performance issue to be optimized.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10206
File: src/config.ts:127-128
Timestamp: 2025-08-07T11:20:44.614Z
Learning: gomesalexandre prefers required environment variables without default values in the config file (src/config.ts). They want explicit configuration and fail-fast behavior when environment variables are missing, rather than having fallback defaults.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10461
File: src/plugins/walletConnectToDapps/components/modals/ContractInteractionBreakdown.tsx:0-0
Timestamp: 2025-09-13T16:45:18.813Z
Learning: gomesalexandre prefers aggressively deleting unused/obsolete code files ("ramboing") rather than fixing technical issues in code that won't be used, demonstrating his preference for keeping codebases clean and PR scope focused.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10458
File: src/plugins/walletConnectToDapps/types.ts:7-7
Timestamp: 2025-09-10T15:34:29.604Z
Learning: gomesalexandre is comfortable relying on transitive dependencies (like abitype through ethers/viem) rather than explicitly declaring them in package.json, preferring to avoid package.json bloat when the transitive dependency approach works reliably in practice.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10503
File: .env:56-56
Timestamp: 2025-09-16T13:17:02.938Z
Learning: gomesalexandre prefers to enable feature flags globally in the base .env file when the intent is to activate features everywhere, even when there are known issues like crashes, demonstrating his preference for intentional global feature rollouts over cautious per-environment enablement.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10249
File: src/pages/ThorChainLP/components/ReusableLpStatus/TransactionRow.tsx:447-503
Timestamp: 2025-08-13T17:07:10.763Z
Learning: gomesalexandre prefers relying on TypeScript's type system for validation rather than adding defensive runtime null checks when types are properly defined. They favor a TypeScript-first approach over defensive programming with runtime validations.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10276
File: src/hooks/useActionCenterSubscribers/useThorchainLpDepositActionSubscriber.tsx:61-66
Timestamp: 2025-08-14T17:51:47.556Z
Learning: gomesalexandre is not concerned about structured logging and prefers to keep console.error usage as-is rather than implementing structured logging patterns, even when project guidelines suggest otherwise.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10413
File: src/components/Modals/FiatRamps/fiatRampProviders/onramper/utils.ts:29-55
Timestamp: 2025-09-02T14:26:19.028Z
Learning: gomesalexandre prefers to keep preparatory/reference code simple until it's actively consumed, rather than implementing comprehensive error handling, validation, and robustness improvements upfront. They prefer to add these improvements when the code is actually being used in production.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10276
File: src/pages/ThorChainLP/components/ReusableLpStatus/TransactionRow.tsx:396-402
Timestamp: 2025-08-14T17:55:57.490Z
Learning: gomesalexandre is comfortable with functions/variables that return undefined or true (tri-state) when only the truthy case matters, preferring to rely on JavaScript's truthy/falsy behavior rather than explicitly returning boolean values.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10783
File: src/context/ModalStackProvider/useModalRegistration.ts:30-41
Timestamp: 2025-10-16T11:14:40.657Z
Learning: gomesalexandre prefers to add lint rules (like typescript-eslint/strict-boolean-expressions for truthiness checks on numbers) to catch common issues project-wide rather than relying on code review to catch them.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10206
File: src/lib/moralis.ts:47-85
Timestamp: 2025-08-07T11:22:16.983Z
Learning: gomesalexandre prefers console.error over structured logging for Moralis API integration debugging, as they find it more conventional and prefer to examine XHR requests directly rather than rely on structured logs for troubleshooting.
📚 Learning: 2025-11-24T21:20:57.909Z
Learnt from: CR
Repo: shapeshift/web PR: 0
File: .cursor/rules/swapper.mdc:0-0
Timestamp: 2025-11-24T21:20:57.909Z
Learning: Applies to packages/swapper/src/swappers/*/endpoints.ts : Reuse checkEvmSwapStatus utility for checking EVM swap status instead of implementing custom status checks

Applied to files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
📚 Learning: 2025-11-24T21:20:57.909Z
Learnt from: CR
Repo: shapeshift/web PR: 0
File: .cursor/rules/swapper.mdc:0-0
Timestamp: 2025-11-24T21:20:57.909Z
Learning: Applies to packages/swapper/src/swappers/*/endpoints.ts : All swapper API implementations must implement the SwapperApi interface from packages/swapper/src/types.ts

Applied to files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
📚 Learning: 2025-12-04T11:05:01.146Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11281
File: packages/swapper/src/swappers/PortalsSwapper/utils/fetchSquidStatus.ts:98-106
Timestamp: 2025-12-04T11:05:01.146Z
Learning: In packages/swapper/src/swappers/PortalsSwapper/utils/fetchSquidStatus.ts, getSquidTrackingLink should return blockchain explorer links (using Asset.explorerTxLink) rather than API endpoints. For non-GMP Squid swaps: return source chain explorer link with sourceTxHash when pending/failed, and destination chain explorer link with destinationTxHash when confirmed.

Applied to files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
📚 Learning: 2025-12-09T21:06:15.748Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11335
File: packages/swapper/src/swappers/CetusSwapper/endpoints.ts:66-68
Timestamp: 2025-12-09T21:06:15.748Z
Learning: In packages/swapper/src/swappers/CetusSwapper/endpoints.ts, gomesalexandre is comfortable with throwing errors directly in getUnsignedSuiTransaction and similar transaction preparation methods, rather than using the Result pattern. The Result pattern with makeSwapErrorRight/TradeQuoteError is primarily for the main swapper API methods (getTradeQuote, getTradeRate), while helper/preparation methods can use throws.

Applied to files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-11-24T21:20:17.804Z
Learnt from: CR
Repo: shapeshift/web PR: 0
File: .cursor/rules/error-handling.mdc:0-0
Timestamp: 2025-11-24T21:20:17.804Z
Learning: Applies to **/swapper{s,}/**/*.{ts,tsx} : ALWAYS use `makeSwapErrorRight` for swapper errors with `TradeQuoteError` enum for error codes and provide detailed error information

Applied to files:

  • packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts
  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
📚 Learning: 2025-11-24T21:20:57.909Z
Learnt from: CR
Repo: shapeshift/web PR: 0
File: .cursor/rules/swapper.mdc:0-0
Timestamp: 2025-11-24T21:20:57.909Z
Learning: Applies to packages/swapper/**/*.ts : Use TypeScript with explicit types (e.g., SupportedChainIds) for all code in the Swapper system

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-12-09T21:07:22.474Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11335
File: packages/swapper/src/swappers/CetusSwapper/utils/helpers.ts:3-3
Timestamp: 2025-12-09T21:07:22.474Z
Learning: In packages/swapper/src/swappers/CetusSwapper, mysten/sui types (SuiClient, Transaction) must be imported from the nested path within cetusprotocol/aggregator-sdk (e.g., 'cetusprotocol/aggregator-sdk/node_modules/mysten/sui/client') because the aggregator SDK bundles its own version of mysten/sui. Direct imports from 'mysten/sui' break at runtime even when specified in package.json.

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-11-24T21:20:04.979Z
Learnt from: CR
Repo: shapeshift/web PR: 0
File: CLAUDE.md:0-0
Timestamp: 2025-11-24T21:20:04.979Z
Learning: Applies to **/*.{ts,tsx} : Import types from `shapeshiftoss/caip` for chain/account/asset IDs

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • src/plugins/mayachain/index.tsx
  • src/plugins/thorchain/index.tsx
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-12-17T14:50:01.629Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11449
File: packages/chain-adapters/src/tron/TronChainAdapter.ts:570-596
Timestamp: 2025-12-17T14:50:01.629Z
Learning: In packages/chain-adapters/src/tron/TronChainAdapter.ts, the parseTx method uses `unknown` type for the txHashOrTx parameter intentionally. TRON is a "second-class chain" that works differently from other chains - it accepts either a string hash (to fetch TronTx via unchained client) or a TronTx object directly. The base chain-adapter interface is strongly typed and doesn't accommodate this flexible signature, so `unknown` is used as an appropriate escape hatch rather than a type safety issue.

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • src/plugins/mayachain/index.tsx
  • src/plugins/thorchain/index.tsx
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-11-24T21:20:57.909Z
Learnt from: CR
Repo: shapeshift/web PR: 0
File: .cursor/rules/swapper.mdc:0-0
Timestamp: 2025-11-24T21:20:57.909Z
Learning: Applies to packages/swapper/src/swappers/*/utils/constants.ts : Define supported chain IDs for each swapper in utils/constants.ts with both 'sell' and 'buy' properties following the pattern: SupportedChainIds type

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • src/plugins/mayachain/index.tsx
  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
  • src/plugins/thorchain/index.tsx
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-08-05T23:36:13.214Z
Learnt from: premiumjibles
Repo: shapeshift/web PR: 10187
File: src/state/slices/preferencesSlice/selectors.ts:21-25
Timestamp: 2025-08-05T23:36:13.214Z
Learning: The AssetId type from 'shapeshiftoss/caip' package is a string type alias, so it can be used directly as a return type for cache key resolvers in re-reselect selectors without needing explicit string conversion.

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-10-23T14:27:19.073Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10857
File: src/plugins/walletConnectToDapps/eventsManager/useWalletConnectEventsHandler.ts:101-104
Timestamp: 2025-10-23T14:27:19.073Z
Learning: In WalletConnect wallet_switchEthereumChain and wallet_addEthereumChain requests, the chainId parameter is always present as per the protocol spec. Type guards checking for missing chainId in these handlers (like `if (!evmNetworkIdHex) return`) are solely for TypeScript compiler satisfaction, not real runtime edge cases.

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
📚 Learning: 2025-09-12T10:21:26.693Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10461
File: src/plugins/walletConnectToDapps/components/modals/EIP712MessageDisplay.tsx:0-0
Timestamp: 2025-09-12T10:21:26.693Z
Learning: gomesalexandre explained that in WalletConnect V2, the request context chainId comes from params?.chainId following CAIP2 standards, making both the request params chainId and EIP-712 domain chainId equally reliable sources. He considers both approaches trustworthy ("both gucci") for WalletConnect dApps integration.

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
📚 Learning: 2025-08-26T19:04:38.672Z
Learnt from: kaladinlight
Repo: shapeshift/web PR: 10369
File: packages/chain-adapters/src/cosmossdk/CosmosSdkBaseAdapter.ts:167-176
Timestamp: 2025-08-26T19:04:38.672Z
Learning: In packages/chain-adapters/src/cosmossdk/CosmosSdkBaseAdapter.ts, when processing assets from data.assets.reduce(), the team prefers using empty catch blocks to gracefully skip any assets that fail processing, rather than specific error type handling, to avoid useless noise and ensure robust asset filtering.

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-08-22T12:58:26.590Z
Learnt from: NeOMakinG
Repo: shapeshift/web PR: 10323
File: src/components/Layout/Header/ActionCenter/components/GenericTransactionActionCard.tsx:108-111
Timestamp: 2025-08-22T12:58:26.590Z
Learning: In the RFOX GenericTransactionDisplayType flow in src/components/Layout/Header/ActionCenter/components/GenericTransactionActionCard.tsx, the txHash is always guaranteed to be present according to NeOMakinG, so defensive null checks for txLink are not needed in this context.

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
📚 Learning: 2025-08-04T15:36:25.122Z
Learnt from: NeOMakinG
Repo: shapeshift/web PR: 10171
File: src/components/MultiHopTrade/components/TradeConfirm/components/ExpandedStepperSteps.tsx:458-458
Timestamp: 2025-08-04T15:36:25.122Z
Learning: In swap transaction handling, buy transaction hashes should always use the swapper's explorer (stepSource) because they are known by the swapper immediately upon swap execution. The conditional logic for using default explorers applies primarily to sell transactions which need to be detected/indexed by external systems like Thorchain or ViewBlock.

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
📚 Learning: 2025-08-14T17:54:32.563Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10276
File: src/pages/ThorChainLP/components/ReusableLpStatus/ReusableLpStatus.tsx:97-108
Timestamp: 2025-08-14T17:54:32.563Z
Learning: In ReusableLpStatus component (src/pages/ThorChainLP/components/ReusableLpStatus/ReusableLpStatus.tsx), the txAssets dependency is stable from first render because poolAsset, baseAsset, actionSide, and action are all defined first render, making the current txAssetsStatuses initialization pattern safe without needing useEffect synchronization.

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
📚 Learning: 2025-08-04T16:02:27.360Z
Learnt from: NeOMakinG
Repo: shapeshift/web PR: 10171
File: src/components/MultiHopTrade/components/TradeConfirm/components/ExpandedStepperSteps.tsx:458-458
Timestamp: 2025-08-04T16:02:27.360Z
Learning: In multi-hop swap transactions, last hop sell transactions might not be detected by the swapper (unlike buy transactions which are always known immediately). The conditional stepSource logic for last hop buy transactions (`isLastHopSellTxSeen ? stepSource : undefined`) serves as defensive programming for future multi-hop support with intermediate chains, even though multi-hop functionality is not currently supported in production.

Applied to files:

  • packages/swapper/src/thorchain-utils/checkTradeStatus.ts
📚 Learning: 2025-11-24T21:20:57.909Z
Learnt from: CR
Repo: shapeshift/web PR: 0
File: .cursor/rules/swapper.mdc:0-0
Timestamp: 2025-11-24T21:20:57.909Z
Learning: Applies to packages/swapper/src/swappers/*/*.ts : Implement filterBuyAssetsBySellAssetId method to filter assets by supported chain IDs in the buy property

Applied to files:

  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-09-12T13:44:17.019Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10461
File: src/plugins/walletConnectToDapps/hooks/useSimulateEvmTransaction.ts:0-0
Timestamp: 2025-09-12T13:44:17.019Z
Learning: gomesalexandre prefers letting chain adapter errors throw naturally in useSimulateEvmTransaction rather than adding explicit error handling for missing adapters, consistent with his fail-fast approach and dismissal of defensive validation as "stale" in WalletConnect transaction simulation flows.

Applied to files:

  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-11-24T21:20:57.909Z
Learnt from: CR
Repo: shapeshift/web PR: 0
File: .cursor/rules/swapper.mdc:0-0
Timestamp: 2025-11-24T21:20:57.909Z
Learning: Applies to packages/swapper/src/swappers/*/*.ts : Implement filterAssetIdsBySellable method to filter assets by supported chain IDs in the sell property

Applied to files:

  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-08-17T21:53:03.806Z
Learnt from: 0xApotheosis
Repo: shapeshift/web PR: 10290
File: scripts/generateAssetData/color-map.json:41-47
Timestamp: 2025-08-17T21:53:03.806Z
Learning: In the ShapeShift web codebase, native assets (using CAIP-19 slip44 namespace like eip155:1/slip44:60, bip122:.../slip44:..., cosmos:.../slip44:...) are manually hardcoded and not generated via the automated asset generation script. Only ERC20/BEP20 tokens go through the asset generation process. The validation scripts should only validate generated assets, not manually added native assets.

Applied to files:

  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-09-04T17:29:59.479Z
Learnt from: NeOMakinG
Repo: shapeshift/web PR: 10380
File: src/components/TradeAssetSearch/hooks/useGetPopularAssetsQuery.tsx:28-33
Timestamp: 2025-09-04T17:29:59.479Z
Learning: In shapeshift/web, the useGetPopularAssetsQuery function in src/components/TradeAssetSearch/hooks/useGetPopularAssetsQuery.tsx intentionally uses primaryAssets[assetId] instead of falling back to assets[assetId]. The design distributes primary assets across chains by iterating through their related assets and adding the primary asset to each related asset's chain. This ensures primary assets appear in all chains where they have related assets, supporting the grouped asset system.

Applied to files:

  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-08-29T18:09:45.982Z
Learnt from: kaladinlight
Repo: shapeshift/web PR: 10376
File: vite.config.mts:136-137
Timestamp: 2025-08-29T18:09:45.982Z
Learning: In the ShapeShift web repository vite.config.mts, the commonjsOptions.exclude configuration using bare package name strings like ['shapeshiftoss/caip', 'shapeshiftoss/types'] works correctly for excluding specific packages from CommonJS transformation, despite theoretical concerns about module ID matching patterns.

Applied to files:

  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
📚 Learning: 2025-08-05T22:41:35.473Z
Learnt from: premiumjibles
Repo: shapeshift/web PR: 10187
File: src/pages/Assets/Asset.tsx:1-1
Timestamp: 2025-08-05T22:41:35.473Z
Learning: In the shapeshift/web codebase, component imports use direct file paths like '@/components/ComponentName/ComponentName' rather than barrel exports. The AssetAccountDetails component should be imported as '@/components/AssetAccountDetails/AssetAccountDetails', not from a directory index.

Applied to files:

  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-11-24T21:20:57.909Z
Learnt from: CR
Repo: shapeshift/web PR: 0
File: .cursor/rules/swapper.mdc:0-0
Timestamp: 2025-11-24T21:20:57.909Z
Learning: Applies to packages/swapper/src/swappers/**/*.ts : Validate inputs and log errors for debugging in Swapper system implementations

Applied to files:

  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-09-18T23:47:14.810Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10566
File: src/hooks/useWalletSupportsChain/useWalletSupportsChain.ts:55-66
Timestamp: 2025-09-18T23:47:14.810Z
Learning: In the useWalletSupportsChain architecture, checkWalletHasRuntimeSupport() determines if the app has runtime capability to interact with a chain type (not actual signing capabilities), while walletSupportsChain() does the actual capabilities detection by checking account IDs. For Ledger read-only mode, checkWalletHasRuntimeSupport should return true since the app can display balances/addresses, with KeyManager being the source of truth rather than wallet instance.

Applied to files:

  • packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts
📚 Learning: 2025-11-20T12:00:45.005Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11078
File: src/setupVitest.ts:11-15
Timestamp: 2025-11-20T12:00:45.005Z
Learning: In shapeshift/web, src/setupVitest.ts must redirect 'ethers' to 'ethers5' for shapeshiftoss/hdwallet-trezor (and -trezor-connect), same as ledger and shapeshift-multichain. Removing 'trezor' from the regex causes CI/Vitest failures due to ethers v6 vs v5 API differences.

Applied to files:

  • src/plugins/mayachain/index.tsx
  • .env
  • src/plugins/thorchain/index.tsx
📚 Learning: 2025-12-04T22:57:50.850Z
Learnt from: kaladinlight
Repo: shapeshift/web PR: 11290
File: packages/chain-adapters/src/utxo/zcash/ZcashChainAdapter.ts:48-51
Timestamp: 2025-12-04T22:57:50.850Z
Learning: In packages/chain-adapters/src/**/*ChainAdapter.ts files, the getName() method uses the pattern `const enumIndex = Object.values(ChainAdapterDisplayName).indexOf(ChainAdapterDisplayName.XXX); return Object.keys(ChainAdapterDisplayName)[enumIndex]` to reverse-lookup the enum key from its value. This is the established pattern used consistently across almost all chain adapters (Bitcoin, Ethereum, Litecoin, Dogecoin, Polygon, Arbitrum, Cosmos, etc.) and should be preserved for consistency when adding new chain adapters.

Applied to files:

  • src/plugins/mayachain/index.tsx
  • src/plugins/thorchain/index.tsx
  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-12-03T23:19:39.158Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11275
File: headers/csps/chains/plasma.ts:1-10
Timestamp: 2025-12-03T23:19:39.158Z
Learning: For CSP files in headers/csps/chains/, gomesalexandre prefers using Vite's loadEnv() pattern directly to load environment variables (e.g., VITE_PLASMA_NODE_URL, VITE_MONAD_NODE_URL) for consistency with existing second-class chain CSP files, rather than using getConfig() from src/config.ts, even though other parts of the codebase use validated config values.

Applied to files:

  • src/plugins/mayachain/index.tsx
  • .env.development
  • .env
  • src/plugins/thorchain/index.tsx
📚 Learning: 2025-12-27T16:02:52.792Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11536
File: src/components/MultiHopTrade/components/TradeConfirm/hooks/useTradeExecution.tsx:252-265
Timestamp: 2025-12-27T16:02:52.792Z
Learning: When reviewing bug fixes, especially in shapeshift/web, prefer minimal changes that fix correctness over introducing broader refactors or quality-of-life improvements (e.g., extracting duplicated logic) unless such improvements are essential to the fix. Apply this guideline broadly to TSX files and related components, not just the specific location, to keep changes focused and maintainable.

Applied to files:

  • src/plugins/mayachain/index.tsx
  • src/plugins/thorchain/index.tsx
📚 Learning: 2025-11-24T21:20:57.909Z
Learnt from: CR
Repo: shapeshift/web PR: 0
File: .cursor/rules/swapper.mdc:0-0
Timestamp: 2025-11-24T21:20:57.909Z
Learning: Applies to packages/swapper/**/*.test.ts : Write unit tests for swapper methods and API endpoints

Applied to files:

  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
📚 Learning: 2025-12-01T22:01:37.982Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11240
File: packages/swapper/src/swappers/CetusSwapper/endpoints.ts:56-58
Timestamp: 2025-12-01T22:01:37.982Z
Learning: In packages/swapper/src/swappers/CetusSwapper/endpoints.ts, gomesalexandre is comfortable with mutating the shared Cetus SDK singleton instance (sdk.senderAddress = from) when required by the SDK API, preferring pragmatic working code over theoretical statelessness concerns.

Applied to files:

  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
📚 Learning: 2025-11-24T21:20:57.909Z
Learnt from: CR
Repo: shapeshift/web PR: 0
File: .cursor/rules/swapper.mdc:0-0
Timestamp: 2025-11-24T21:20:57.909Z
Learning: Applies to packages/swapper/src/swappers/**/*.ts : Avoid side effects in swap logic; ensure swap methods are deterministic and stateless

Applied to files:

  • packages/swapper/src/swappers/MayachainSwapper/endpoints.ts
📚 Learning: 2025-08-13T13:45:25.748Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10265
File: src/pages/ThorChainLP/queries/hooks/usePools.ts:93-0
Timestamp: 2025-08-13T13:45:25.748Z
Learning: In the ShapeShift web app, inbound addresses data for Thorchain pools requires aggressive caching settings (staleTime: 0, gcTime: 0, refetchInterval: 60_000) to ensure trading status and LP deposit availability are always current. This is intentional business-critical behavior, not a performance issue to be optimized.

Applied to files:

  • .env
📚 Learning: 2025-11-19T16:59:50.569Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11012
File: src/context/WalletProvider/Vultisig/components/Connect.tsx:24-59
Timestamp: 2025-11-19T16:59:50.569Z
Learning: In src/context/WalletProvider/*/components/Connect.tsx files across the ShapeShift web codebase, the established pattern for handling null/undefined adapter from getAdapter() is to simply check `if (adapter) { ... }` without an else clause. All wallet Connect components (Coinbase, Keplr, Phantom, Ledger, MetaMask, WalletConnectV2, KeepKey, Vultisig) follow this pattern—they reset loading state after the if block but do not show error messages when adapter is null. This is an intentional design decision and should be maintained for consistency.

Applied to files:

  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-11-12T12:49:17.895Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11016
File: packages/swapper/src/swappers/NearIntentsSwapper/swapperApi/getTradeQuote.ts:109-125
Timestamp: 2025-11-12T12:49:17.895Z
Learning: In packages/chain-adapters/src/evm/utils.ts, the getErc20Data function already includes a guard that returns an empty string when contractAddress is undefined (line 8: `if (!contractAddress) return ''`). This built-in handling means callers don't need to conditionally invoke getErc20Data—it safely handles both ERC20 tokens and native assets.

Applied to files:

  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-11-24T21:20:57.909Z
Learnt from: CR
Repo: shapeshift/web PR: 0
File: .cursor/rules/swapper.mdc:0-0
Timestamp: 2025-11-24T21:20:57.909Z
Learning: Applies to packages/swapper/src/index.ts : Export unique functions and types from packages/swapper/src/index.ts only if needed for external consumption

Applied to files:

  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
📚 Learning: 2025-08-22T15:07:18.021Z
Learnt from: kaladinlight
Repo: shapeshift/web PR: 10326
File: src/hooks/useActionCenterSubscribers/useThorchainLpActionSubscriber.tsx:37-41
Timestamp: 2025-08-22T15:07:18.021Z
Learning: In src/hooks/useActionCenterSubscribers/useThorchainLpActionSubscriber.tsx, kaladinlight prefers not to await the upsertBasePortfolio call in the Base chain handling block, indicating intentional fire-and-forget behavior for Base portfolio upserts in the THORChain LP completion flow.

Applied to files:

  • packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts
🧬 Code graph analysis (4)
packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts (1)
packages/swapper/src/thorchain-utils/checkTradeStatus.ts (1)
  • checkTradeStatus (18-101)
src/plugins/mayachain/index.tsx (6)
src/plugins/ethereum/index.tsx (1)
  • http (10-14)
src/plugins/avalanche/index.tsx (1)
  • http (10-14)
src/plugins/bnbsmartchain/index.tsx (1)
  • http (10-14)
src/config.ts (1)
  • getConfig (241-243)
packages/utils/src/assetData/baseAssets.ts (1)
  • mayachain (188-202)
packages/unchained-client/src/cosmossdk/index.ts (1)
  • mayachain (10-10)
packages/swapper/src/swappers/MayachainSwapper/endpoints.ts (1)
packages/swapper/src/thorchain-utils/checkTradeStatus.ts (1)
  • checkTradeStatus (18-101)
src/plugins/thorchain/index.tsx (3)
src/plugins/ethereum/index.tsx (1)
  • http (10-14)
src/plugins/avalanche/index.tsx (1)
  • http (10-14)
src/plugins/bnbsmartchain/index.tsx (1)
  • http (10-14)
🪛 dotenv-linter (4.0.0)
.env.development

[warning] 70-70: [UnorderedKey] The VITE_MAYACHAIN_NODE_URL key should go before the VITE_MONAD_NODE_URL key

(UnorderedKey)


[warning] 71-71: [UnorderedKey] The VITE_SOLANA_NODE_URL key should go before the VITE_THORCHAIN_NODE_URL key

(UnorderedKey)


[warning] 72-72: [UnorderedKey] The VITE_STARKNET_NODE_URL key should go before the VITE_THORCHAIN_NODE_URL key

(UnorderedKey)


[warning] 77-77: [UnorderedKey] The VITE_MAYACHAIN_MIDGARD_URL key should go before the VITE_THORCHAIN_MIDGARD_URL key

(UnorderedKey)

.env

[warning] 160-160: [UnorderedKey] The VITE_MAYACHAIN_NODE_URL key should go before the VITE_MONAD_NODE_URL key

(UnorderedKey)


[warning] 161-161: [UnorderedKey] The VITE_SOLANA_NODE_URL key should go before the VITE_THORCHAIN_NODE_URL key

(UnorderedKey)


[warning] 162-162: [UnorderedKey] The VITE_STARKNET_NODE_URL key should go before the VITE_THORCHAIN_NODE_URL key

(UnorderedKey)


[warning] 164-164: [UnorderedKey] The VITE_ALCHEMY_POLYGON_URL key should go before the VITE_ARBITRUM_NODE_URL key

(UnorderedKey)


[warning] 168-168: [UnorderedKey] The VITE_MAYACHAIN_MIDGARD_URL key should go before the VITE_THORCHAIN_MIDGARD_URL key

(UnorderedKey)

🔇 Additional comments (7)
.env.development (1)

67-77: LGTM! Endpoint migration to ShapeShift dev infrastructure.

The changes successfully migrate THOR/MAYA endpoints from Ninerealms to ShapeShift's dev infrastructure, aligning with the PR objective to restore the unchained + first-class implementation now that endpoints are operational.

Note: The static analysis warnings about key ordering (UnorderedKey) are false positives and can be safely ignored—.env file key ordering doesn't impact functionality.

packages/chain-adapters/src/cosmossdk/thorchain/ThorchainChainAdapter.ts (1)

1-345: LGTM! Clean migration to provider-based architecture.

The removal of nodeUrl, getAccount, and broadcastTransaction successfully eliminates direct node endpoint dependencies. The adapter now relies on the unchained HTTP/WS/V1 providers passed through ChainAdapterArgs, aligning with the first-class chain implementation strategy.

packages/swapper/src/swappers/MayachainSwapper/endpoints.ts (1)

89-96: LGTM! Clean apiUrl propagation.

The addition of apiUrl derived from VITE_UNCHAINED_MAYACHAIN_HTTP_URL properly extends the status check to use the unchained API endpoint, consistent with the migration strategy.

packages/swapper/src/swappers/ThorchainSwapper/endpoints.ts (1)

101-108: LGTM! Clean apiUrl propagation.

The addition of apiUrl derived from VITE_UNCHAINED_THORCHAIN_HTTP_URL properly extends the status check to use the unchained API endpoint, maintaining consistency with the MayachainSwapper implementation.

packages/chain-adapters/src/cosmossdk/mayachain/MayachainChainAdapter.ts (1)

1-253: LGTM! Clean migration to base class delegation.

The removal of nodeUrl-based methods and delegation to CosmosSdkBaseAdapter is correct. The class now uses the unchained client providers (http/ws) passed through the base class, eliminating the need for custom getAccount and broadcastTransaction implementations.

src/plugins/mayachain/index.tsx (1)

20-34: LGTM! Provider-based adapter follows established patterns.

The migration from nodeUrl-based adapter to provider-based initialization using unchained HTTP and WebSocket clients follows the established pattern used in ethereum, avalanche, and bnbsmartchain plugins. The configuration correctly uses getConfig() for validated environment variables.

src/plugins/thorchain/index.tsx (1)

20-42: LGTM! Three-provider configuration for Thorchain.

The migration to provider-based adapter correctly initializes three unchained clients: http (V1Api), httpV1 (V1Api for legacy endpoint), and ws (WebSocket client). The httpV1 client is appropriately passed as a separate parameter to support Thorchain's dual HTTP API requirements.

Copy link
Collaborator

@NeOMakinG NeOMakinG left a comment

Choose a reason for hiding this comment

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

Derivating, swapping, sending are all good, lets revert it!

https://jam.dev/c/39bac3c5-18dd-4e4f-89b9-f842e9237d6a

@NeOMakinG NeOMakinG enabled auto-merge (squash) January 5, 2026 06:44
@NeOMakinG NeOMakinG disabled auto-merge January 5, 2026 06:44
@NeOMakinG NeOMakinG enabled auto-merge (squash) January 5, 2026 06:44
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
.env (1)

159-160: Minor: Reorder keys to fix dotenv-linter UnorderedKey warnings.

Static analysis flagged ordering inconsistencies:

  • Line 160: VITE_MAYACHAIN_NODE_URL should precede VITE_MONAD_NODE_URL
  • Line 172: VITE_MAYACHAIN_MIDGARD_URL should precede VITE_THORCHAIN_MIDGARD_URL

This is a cosmetic issue with no functional impact, but addressing it improves consistency.

🔎 Proposed ordering fix
 VITE_MONAD_NODE_URL=https://rpc.monad.xyz
 VITE_PLASMA_NODE_URL=https://rpc.plasma.to
-VITE_THORCHAIN_NODE_URL=https://api.thorchain.shapeshift.com/lcd
 VITE_MAYACHAIN_NODE_URL=https://api.mayachain.shapeshift.com/lcd
+VITE_THORCHAIN_NODE_URL=https://api.thorchain.shapeshift.com/lcd

And for midgard:

-VITE_THORCHAIN_MIDGARD_URL=https://api.thorchain.shapeshift.com/midgard/v2
 VITE_MAYACHAIN_MIDGARD_URL=https://api.mayachain.shapeshift.com/midgard/v2
+VITE_THORCHAIN_MIDGARD_URL=https://api.thorchain.shapeshift.com/midgard/v2

Also applies to: 171-172

.env.development (1)

69-72: Minor: Reorder keys to fix dotenv-linter UnorderedKey warnings.

Static analysis flagged several ordering inconsistencies in the nodes section:

  • Line 70: VITE_MAYACHAIN_NODE_URL should precede VITE_MONAD_NODE_URL
  • Lines 71–72: VITE_SOLANA_NODE_URL and VITE_STARKNET_NODE_URL should precede VITE_THORCHAIN_NODE_URL
  • Line 77: VITE_MAYACHAIN_MIDGARD_URL should precede VITE_THORCHAIN_MIDGARD_URL

These are cosmetic issues with no functional impact.

🔎 Proposed ordering fix

Reorder the nodes section to alphabetical order:

-VITE_THORCHAIN_NODE_URL=https://dev-api.thorchain.shapeshift.com/lcd
-VITE_MAYACHAIN_NODE_URL=https://dev-api.mayachain.shapeshift.com/lcd
+VITE_MAYACHAIN_NODE_URL=https://dev-api.mayachain.shapeshift.com/lcd
 VITE_SOLANA_NODE_URL=https://dev-api.solana.shapeshift.com/api/v1/jsonrpc
 VITE_STARKNET_NODE_URL=https://rpc.starknet.lava.build
+VITE_THORCHAIN_NODE_URL=https://dev-api.thorchain.shapeshift.com/lcd

And for midgard:

-VITE_THORCHAIN_MIDGARD_URL=https://dev-api.thorchain.shapeshift.com/midgard/v2
 VITE_MAYACHAIN_MIDGARD_URL=https://dev-api.mayachain.shapeshift.com/midgard/v2
+VITE_THORCHAIN_MIDGARD_URL=https://dev-api.thorchain.shapeshift.com/midgard/v2

Also applies to: 76-77

📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 2b2b58a and 5663b7b.

📒 Files selected for processing (4)
  • .env
  • .env.development
  • src/constants/chains.ts
  • src/hooks/useActionCenterSubscribers/useSendActionSubscriber.tsx
💤 Files with no reviewable changes (2)
  • src/hooks/useActionCenterSubscribers/useSendActionSubscriber.tsx
  • src/constants/chains.ts
🧰 Additional context used
📓 Path-based instructions (1)
{.env.development,.env.production}

📄 CodeRabbit inference engine (CLAUDE.md)

Use .env.development for dev-only features and .env.production for prod settings

Files:

  • .env.development
🧠 Learnings (4)
📓 Common learnings
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11170
File: patches/@shapeshiftoss+bitcoinjs-lib+7.0.0-shapeshift.0.patch:9-19
Timestamp: 2025-11-25T21:43:10.838Z
Learning: In shapeshift/web, gomesalexandre will not expand PR scope to fix latent bugs in unused API surface (like bitcoinjs-lib patch validation methods) when comprehensive testing proves the actual used code paths work correctly, preferring to avoid costly hdwallet/web verdaccio publish cycles and full regression testing for conceptual issues with zero runtime impact.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10232
File: packages/unchained-client/openapitools.json:61-61
Timestamp: 2025-08-08T10:23:16.843Z
Learning: In shapeshift/web, for temporary “monkey patch” PRs (e.g., packages/unchained-client/openapitools.json using jsDelivr CDN refs like cosmos/mayachain), gomesalexandre is fine with branch-based URLs and does not want SHA pinning. Treat this as a scoped exception to their general preference for pinned dependencies/refs.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10232
File: packages/unchained-client/openapitools.json:230-230
Timestamp: 2025-08-08T10:23:06.773Z
Learning: In shapeshift/web, for temporary monkey patches (e.g., OpenAPI inputSpec URLs in packages/unchained-client/openapitools.json), gomesalexandre is not concerned about commit SHA pinning; tag-based CDN URLs (e.g., jsDelivr branch) are acceptable during the temporary period.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10265
File: src/pages/ThorChainLP/queries/hooks/usePools.ts:93-0
Timestamp: 2025-08-13T13:45:25.748Z
Learning: In the ShapeShift web app, inbound addresses data for Thorchain pools requires aggressive caching settings (staleTime: 0, gcTime: 0, refetchInterval: 60_000) to ensure trading status and LP deposit availability are always current. This is intentional business-critical behavior, not a performance issue to be optimized.
Learnt from: NeOMakinG
Repo: shapeshift/web PR: 10171
File: src/components/MultiHopTrade/components/TradeConfirm/components/ExpandedStepperSteps.tsx:458-458
Timestamp: 2025-08-04T15:36:25.122Z
Learning: In swap transaction handling, buy transaction hashes should always use the swapper's explorer (stepSource) because they are known by the swapper immediately upon swap execution. The conditional logic for using default explorers applies primarily to sell transactions which need to be detected/indexed by external systems like Thorchain or ViewBlock.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10206
File: src/config.ts:127-128
Timestamp: 2025-08-07T11:20:44.614Z
Learning: gomesalexandre prefers required environment variables without default values in the config file (src/config.ts). They want explicit configuration and fail-fast behavior when environment variables are missing, rather than having fallback defaults.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10461
File: src/plugins/walletConnectToDapps/components/modals/ContractInteractionBreakdown.tsx:0-0
Timestamp: 2025-09-13T16:45:18.813Z
Learning: gomesalexandre prefers aggressively deleting unused/obsolete code files ("ramboing") rather than fixing technical issues in code that won't be used, demonstrating his preference for keeping codebases clean and PR scope focused.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10458
File: src/plugins/walletConnectToDapps/types.ts:7-7
Timestamp: 2025-09-10T15:34:29.604Z
Learning: gomesalexandre is comfortable relying on transitive dependencies (like abitype through ethers/viem) rather than explicitly declaring them in package.json, preferring to avoid package.json bloat when the transitive dependency approach works reliably in practice.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10503
File: .env:56-56
Timestamp: 2025-09-16T13:17:02.938Z
Learning: gomesalexandre prefers to enable feature flags globally in the base .env file when the intent is to activate features everywhere, even when there are known issues like crashes, demonstrating his preference for intentional global feature rollouts over cautious per-environment enablement.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10249
File: src/pages/ThorChainLP/components/ReusableLpStatus/TransactionRow.tsx:447-503
Timestamp: 2025-08-13T17:07:10.763Z
Learning: gomesalexandre prefers relying on TypeScript's type system for validation rather than adding defensive runtime null checks when types are properly defined. They favor a TypeScript-first approach over defensive programming with runtime validations.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10276
File: src/hooks/useActionCenterSubscribers/useThorchainLpDepositActionSubscriber.tsx:61-66
Timestamp: 2025-08-14T17:51:47.556Z
Learning: gomesalexandre is not concerned about structured logging and prefers to keep console.error usage as-is rather than implementing structured logging patterns, even when project guidelines suggest otherwise.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10413
File: src/components/Modals/FiatRamps/fiatRampProviders/onramper/utils.ts:29-55
Timestamp: 2025-09-02T14:26:19.028Z
Learning: gomesalexandre prefers to keep preparatory/reference code simple until it's actively consumed, rather than implementing comprehensive error handling, validation, and robustness improvements upfront. They prefer to add these improvements when the code is actually being used in production.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10276
File: src/pages/ThorChainLP/components/ReusableLpStatus/TransactionRow.tsx:396-402
Timestamp: 2025-08-14T17:55:57.490Z
Learning: gomesalexandre is comfortable with functions/variables that return undefined or true (tri-state) when only the truthy case matters, preferring to rely on JavaScript's truthy/falsy behavior rather than explicitly returning boolean values.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10783
File: src/context/ModalStackProvider/useModalRegistration.ts:30-41
Timestamp: 2025-10-16T11:14:40.657Z
Learning: gomesalexandre prefers to add lint rules (like typescript-eslint/strict-boolean-expressions for truthiness checks on numbers) to catch common issues project-wide rather than relying on code review to catch them.
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10206
File: src/lib/moralis.ts:47-85
Timestamp: 2025-08-07T11:22:16.983Z
Learning: gomesalexandre prefers console.error over structured logging for Moralis API integration debugging, as they find it more conventional and prefer to examine XHR requests directly rather than rely on structured logs for troubleshooting.
📚 Learning: 2025-12-03T23:19:39.158Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11275
File: headers/csps/chains/plasma.ts:1-10
Timestamp: 2025-12-03T23:19:39.158Z
Learning: For CSP files in headers/csps/chains/, gomesalexandre prefers using Vite's loadEnv() pattern directly to load environment variables (e.g., VITE_PLASMA_NODE_URL, VITE_MONAD_NODE_URL) for consistency with existing second-class chain CSP files, rather than using getConfig() from src/config.ts, even though other parts of the codebase use validated config values.

Applied to files:

  • .env
  • .env.development
📚 Learning: 2025-11-20T12:00:45.005Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 11078
File: src/setupVitest.ts:11-15
Timestamp: 2025-11-20T12:00:45.005Z
Learning: In shapeshift/web, src/setupVitest.ts must redirect 'ethers' to 'ethers5' for shapeshiftoss/hdwallet-trezor (and -trezor-connect), same as ledger and shapeshift-multichain. Removing 'trezor' from the regex causes CI/Vitest failures due to ethers v6 vs v5 API differences.

Applied to files:

  • .env
📚 Learning: 2025-08-13T13:45:25.748Z
Learnt from: gomesalexandre
Repo: shapeshift/web PR: 10265
File: src/pages/ThorChainLP/queries/hooks/usePools.ts:93-0
Timestamp: 2025-08-13T13:45:25.748Z
Learning: In the ShapeShift web app, inbound addresses data for Thorchain pools requires aggressive caching settings (staleTime: 0, gcTime: 0, refetchInterval: 60_000) to ensure trading status and LP deposit availability are always current. This is intentional business-critical behavior, not a performance issue to be optimized.

Applied to files:

  • .env
🪛 dotenv-linter (4.0.0)
.env

[warning] 160-160: [UnorderedKey] The VITE_MAYACHAIN_NODE_URL key should go before the VITE_MONAD_NODE_URL key

(UnorderedKey)


[warning] 172-172: [UnorderedKey] The VITE_MAYACHAIN_MIDGARD_URL key should go before the VITE_THORCHAIN_MIDGARD_URL key

(UnorderedKey)

.env.development

[warning] 70-70: [UnorderedKey] The VITE_MAYACHAIN_NODE_URL key should go before the VITE_MONAD_NODE_URL key

(UnorderedKey)


[warning] 71-71: [UnorderedKey] The VITE_SOLANA_NODE_URL key should go before the VITE_THORCHAIN_NODE_URL key

(UnorderedKey)


[warning] 72-72: [UnorderedKey] The VITE_STARKNET_NODE_URL key should go before the VITE_THORCHAIN_NODE_URL key

(UnorderedKey)


[warning] 77-77: [UnorderedKey] The VITE_MAYACHAIN_MIDGARD_URL key should go before the VITE_THORCHAIN_MIDGARD_URL key

(UnorderedKey)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Install and Cache
🔇 Additional comments (2)
.env (1)

159-172: ✓ Endpoint configuration looks correct.

The new THOR/MAYA node and midgard URLs are properly configured to use ShapeShift's production endpoints, aligning with the PR objective to restore "unchained + first-class" implementation. Endpoint formats (LCD and Midgard v2) are appropriate for the provider-based architecture.

.env.development (1)

67-77: ✓ Development endpoints correctly configured with clear fallback path.

The dev-api endpoints are properly set for development use, and the comment "Swap me back to 9R as-needed" clearly marks the Ninerealms fallback option. This aligns with the PR's plan to implement a layered fallback strategy in a follow-up PR.

@NeOMakinG NeOMakinG merged commit bee0c1f into develop Jan 5, 2026
4 checks passed
@NeOMakinG NeOMakinG deleted the feat_revert_thor_things branch January 5, 2026 06:59
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.

2 participants