Skip to content

Conversation

@EdouardBougon
Copy link
Contributor

@EdouardBougon EdouardBougon commented Nov 19, 2025


Note

Adds Tron RPC scope/types and exposes EIP-155 and session types; updates exports and adds tsd tests.

  • Types/Scopes:
    • Tron: Introduce tron scope (types/scopes/tron.types.ts) with signMessage and signTransaction methods; add to DefaultRpcApi in types/scopes/index.ts.
    • EIP-155: Make core types/interfaces exported in types/scopes/eip155.types.ts (e.g., Transaction, Block, Log, etc.).
    • Session: Document and export CaipAccountId, CaipChainId; clarify session-related types in types/session.ts.
    • Barrel Exports: Export types/scopes from src/index.ts.
  • Tests:
    • Add tsd test for Tron signMessage and import Signature in tests/index.test-d.ts.

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

@socket-security
Copy link

socket-security bot commented Nov 19, 2025

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

@EdouardBougon EdouardBougon marked this pull request as ready for review November 26, 2025 10:08
@EdouardBougon EdouardBougon requested a review from a team as a code owner November 26, 2025 10:08
@EdouardBougon EdouardBougon force-pushed the tron-types branch 6 times, most recently from 586db74 to 0d5ff1f Compare November 26, 2025 21:22
const transport = getDefaultTransport({
warmupTimeout: 200, // 200 ms for the initial warmup request
defaultTimeout: -1 // No timeout for subsequent requests (user interactions)
});
Copy link

Choose a reason for hiding this comment

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

Bug: getDefaultTransport missing warmupTimeout parameter support

The README shows using getDefaultTransport({ warmupTimeout: 200, defaultTimeout: -1 }), but the getDefaultTransport function only accepts extensionId and defaultTimeout parameters. It doesn't destructure or pass warmupTimeout to the underlying transport functions (getExternallyConnectableTransport and getWindowPostMessageTransport), even though they support it. Users following the documentation will have warmupTimeout silently ignored.

Additional Locations (1)

Fix in Cursor Fix in Web

@baptiste-marchand baptiste-marchand merged commit 92b0fdb into main Dec 2, 2025
16 checks passed
@baptiste-marchand baptiste-marchand deleted the tron-types branch December 2, 2025 11:00
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.

3 participants