feat: enhance IBC NFT and transfer decoders - #32
Conversation
- Added timeout height and timestamp to IBC NFT send and receive decoders. - Included token address extraction for NFT send and receive messages. - Updated interfaces and schema to accommodate new fields. - Enhanced tests to cover new timeout and token address functionalities.
WalkthroughTimeout-related fields ( Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Decoder
participant Schema
participant LogParser
User->>Decoder: Decode IBC NFT Send/Receive Message
Decoder->>Schema: Validate message structure (including timeout_height)
Decoder->>LogParser: Find TransferEvent for tokenAddress
LogParser-->>Decoder: Return tokenAddress (error if not found)
Decoder-->>User: Return decoded data with timeoutHeight, timeoutTimestamp, tokenAddress
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (7)
🧰 Additional context used🧠 Learnings (8)📓 Common learningssrc/tests/ibc/transfer.test.ts (3)src/tests/ibc/send-nft.test.ts (4)src/tests/ibc/receive-nft.test.ts (3)src/decoders/ibc/transfer.ts (3)src/schema/messages.ts (5)src/interfaces/decoded-messages.ts (2)src/decoders/ibc/nft.ts (3)🔇 Additional comments (15)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Bug Fixes
Tests