Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update signature of UnmarshalPacketData #6441

Merged
merged 7 commits into from
Jun 4, 2024

Conversation

crodriguezvega
Copy link
Contributor

@crodriguezvega crodriguezvega commented May 31, 2024

Description

It also adds some extra information to explain why the extra parameters have been added.

closes: #XXXX


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against the correct branch (see CONTRIBUTING.md).
  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/).
  • Added relevant godoc comments.
  • Provide a conventional commit message to follow the repository standards.
  • Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
  • Re-reviewed Files changed in the GitHub PR explorer.
  • Review SonarCloud Report in the comment section below once CI passes.

Summary by CodeRabbit

  • Documentation
    • Updated various documentation files to reflect changes in the PacketDataUnmarshaler interface, including additional parameters for more context-aware unmarshaling of packet data.

Copy link
Contributor

coderabbitai bot commented May 31, 2024

Walkthrough

The primary change involves updating the PacketDataUnmarshaler interface across multiple documentation and code files to include additional parameters: ctx, portID, and channelID. This modification aims to provide more context-aware unmarshaling of packet data, enhancing flexibility and precision by allowing the unmarshaling process to consider the specific port and channel identifiers.

Changes

Files Change Summary
docs/architecture/adr-008-app-caller-cbs.md Updated UnmarshalPacketData method to include ctx, portID, and channelID parameters.
docs/docs/01-ibc/03-apps/02-ibcmodule.md Modified UnmarshalPacketData method signature to include ctx sdk.Context, portID, channelID string, bz []byte.
docs/docs/04-middleware/02-callbacks/03-interfaces.md Updated PacketDataUnmarshaler interface to include additional arguments for context-aware unmarshaling.
modules/core/05-port/types/module.go Added comments to clarify the arguments passed to UnmarshalPacketData method.

Sequence Diagram(s) (Beta)

sequenceDiagram
    participant App as Application
    participant Unmarshaler as PacketDataUnmarshaler

    App->>Unmarshaler: UnmarshalPacketData(ctx, portID, channelID, bz)
    Unmarshaler-->>App: Unmarshaled Data or Error
Loading

Possibly related issues


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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 as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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

Outside diff range and nitpick comments (1)
docs/architecture/adr-008-app-caller-cbs.md (1)

Line range hint 15-15: Refine the documentation for clarity and grammatical correctness.

Consider the following minor grammatical adjustments for clarity and conciseness:

  • Replace "on the basis of" with "based on" in lines 15 and 19 to reduce wordiness.
  • Add a comma after "meter" in line 42 for better readability.
  • Replace "very large" with "substantial" in line 44 to avoid overused intensifiers.
  • Change "amount of fees" to "number of fees" in line 44 if referring to countable items.
  • Add a hyphen to "callback-specific" in line 83 for correct modification usage.
  • Simplify "the specific details of" to "details of" in line 167 for conciseness.
  • Add commas before "and" in lines 253 and 256 where it connects two independent clauses.
  • Add a comma after "consumption" in line 533 to improve readability.

Also applies to: 19-19, 42-42, 44-44, 44-44, 44-44, 44-44, 83-83, 166-166, 167-167, 253-253, 256-256, 533-533

Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 7068760 and 4288c14.

Files selected for processing (4)
  • docs/architecture/adr-008-app-caller-cbs.md (1 hunks)
  • docs/docs/01-ibc/03-apps/02-ibcmodule.md (1 hunks)
  • docs/docs/04-middleware/02-callbacks/03-interfaces.md (1 hunks)
  • modules/core/05-port/types/module.go (1 hunks)
Additional context used
Path-based instructions (4)
modules/core/05-port/types/module.go (1)

Pattern **/*.go: Review the Golang code for conformity with the Uber Golang style guide, highlighting any deviations.

docs/docs/04-middleware/02-callbacks/03-interfaces.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

docs/docs/01-ibc/03-apps/02-ibcmodule.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

docs/architecture/adr-008-app-caller-cbs.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

LanguageTool
docs/docs/04-middleware/02-callbacks/03-interfaces.md

[grammar] ~71-~71: Possibly, a comma is missing after an introductory clause, the verb inflection is not correct, or a question mark is missing. Did you mean “packet, send” or “packet sends”?
Context: ...lbacks on the given information. If the packet send is successful, the contract keeper on t...

docs/docs/01-ibc/03-apps/02-ibcmodule.md

[style] ~11-~11: Consider removing “of” to be more concise
Context: ...implement the IBCModule interface and all of the callbacks it requires. ::: The Cosmos ...


[style] ~15-~15: Consider removing “of” to be more concise
Context: ...pes/module.go). This interface contains all of the callbacks IBC expects modules to implem...


[misspelling] ~52-~52: This word is normally spelled as one.
Context: ... > Note that some of the code below is pseudo code, indicating what actions need to happe...


[style] ~197-~197: Consider using “incompatible” to avoid wordiness.
Context: ... If the counterparty-chosen version is not compatible with this module's supported versions...


[style] ~213-~213: The phrase ‘have the ability to’ might be wordy. Consider using “can”.
Context: ... version type is a string, applications have the ability to do simple version verification via stri...


[uncategorized] ~214-~214: Use a comma before ‘or’ if it connects two independent clauses (unless they are closely connected and short).
Context: ...version verification via string matching or they can use the already implemented ve...


[misspelling] ~239-~239: This word is normally spelled as one.
Context: ... > Note that some of the code below is pseudo code, indicating what actions need to happe...


[style] ~258-~258: Consider a shorter alternative to avoid wordiness.
Context: ...outTimestamp, data, ) ``` :::warning In order to prevent modules from sending packets on...


[misspelling] ~283-~283: This word is normally spelled as one.
Context: ... > Note that some of the code below is pseudo code, indicating what actions need to happe...


[grammar] ~319-~319: Possible subject-verb agreement error.
Context: ...ck. The contents of the acknowledgement is entirely up to the modules on the chann...


[misspelling] ~327-~327: This word is normally spelled as one.
Context: ... > Note that some of the code below is pseudo code, indicating what actions need to happe...


[uncategorized] ~327-~327: Do not mix variants of the same word (‘acknowledgment’ and ‘acknowledgement’) within a single text.
Context: ...ement a custom implementation. E.g. the DecodeAcknowledgement(acknowledgments) and processAck(ack) functions. ```...


[uncategorized] ~364-~364: The verb “are” doesn’t seem to fit in this context, “is” is probably more formally correct.
Context: ...nal interfaces The following interface are optional and MAY be implemented by an I...


[style] ~384-~384: Consider a shorter alternative to avoid wordiness.
Context: ... middlewares to unmarshal a packet data in order to make use of interfaces the packet data ...


[style] ~385-~385: You have already used this phrasing in nearby sentences. Shortening it will avoid wordiness.
Context: ... For example, the callbacks middleware makes use of this function to access packet data typ...

docs/architecture/adr-008-app-caller-cbs.md

[style] ~15-~15: ‘on the basis of’ might be wordy. Consider a shorter alternative.
Context: ...t the IBC application could take action on the basis of the result (e.g. unescrow tokens for IC...


[style] ~19-~19: ‘on the basis of’ might be wordy. Consider a shorter alternative.
Context: ... machine logic and then do some actions on the basis of the packet result. Or to receive a pack...


[uncategorized] ~42-~42: Possible missing comma found.
Context: ...it` and the gas left in the context gas meter which is determined by the relayer's ch...


[uncategorized] ~44-~44: Possible missing comma found.
Context: ...leting. However, since this is a global cap it is likely to be very large. Thus, us...


[style] ~44-~44: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase.
Context: ...this is a global cap it is likely to be very large. Thus, users may specify a smaller limi...


[uncategorized] ~44-~44: ‘Amount of’ should usually only be used with uncountable or mass nouns. Consider using “number” if this is not the case.
Context: ... may specify a smaller limit to cap the amount of fees a relayer must pay in order to ...


[style] ~44-~44: Consider a shorter alternative to avoid wordiness.
Context: ...p the amount of fees a relayer must pay in order to complete the packet lifecycle on the us...


[uncategorized] ~83-~83: When ‘callback-specific’ is used as a modifier, it is usually spelled with a hyphen.
Context: ...en allow the middleware to retrieve the callback specific data from an arbitrary set of IBC appli...


[uncategorized] ~166-~166: Possible missing article found.
Context: ...ogic intended for all VMs (e.g. setting gas meter, extracting callback data, emitti...


[style] ~167-~167: This phrase is redundant. Consider writing “details”.
Context: ...while the ContractKeeper can handle the specific details of calling into the VM in question. Th...


[uncategorized] ~253-~253: Use a comma before “and” if it connects two independent clauses (unless they are closely connected and short).
Context: ...he callback state changes are discarded and the transaction is committed. If the r...


[uncategorized] ~256-~256: Use a comma before “and” if it connects two independent clauses (unless they are closely connected and short).
Context: ... the callback state changes are reverted and the transaction is committed. For the ...


[uncategorized] ~533-~533: Possible missing comma found.
Context: ... - Callbacks may now have unbounded gas consumption since the actor may execute arbitrary l...

Markdownlint
docs/docs/04-middleware/02-callbacks/03-interfaces.md

76-76: Column: 1
Hard tabs


77-77: Column: 1
Hard tabs


78-78: Column: 1
Hard tabs


79-79: Column: 1
Hard tabs


80-80: Column: 1
Hard tabs


81-81: Column: 1
Hard tabs


82-82: Column: 1
Hard tabs


83-83: Column: 1
Hard tabs


84-84: Column: 1
Hard tabs


85-85: Column: 1
Hard tabs


86-86: Column: 1
Hard tabs


87-87: Column: 1
Hard tabs


88-88: Column: 1
Hard tabs


89-89: Column: 1
Hard tabs


90-90: Column: 1
Hard tabs


91-91: Column: 1
Hard tabs


92-92: Column: 1
Hard tabs


93-93: Column: 1
Hard tabs


94-94: Column: 1
Hard tabs


95-95: Column: 1
Hard tabs


96-96: Column: 1
Hard tabs


97-97: Column: 1
Hard tabs


98-98: Column: 1
Hard tabs


99-99: Column: 1
Hard tabs


100-100: Column: 1
Hard tabs


101-101: Column: 1
Hard tabs


102-102: Column: 1
Hard tabs


103-103: Column: 1
Hard tabs


104-104: Column: 1
Hard tabs


105-105: Column: 1
Hard tabs


106-106: Column: 1
Hard tabs


107-107: Column: 1
Hard tabs


108-108: Column: 1
Hard tabs


109-109: Column: 1
Hard tabs


110-110: Column: 1
Hard tabs


111-111: Column: 1
Hard tabs


112-112: Column: 1
Hard tabs


113-113: Column: 1
Hard tabs


114-114: Column: 1
Hard tabs


115-115: Column: 1
Hard tabs


116-116: Column: 1
Hard tabs


117-117: Column: 1
Hard tabs


118-118: Column: 1
Hard tabs


119-119: Column: 1
Hard tabs


120-120: Column: 1
Hard tabs


121-121: Column: 1
Hard tabs


122-122: Column: 1
Hard tabs


123-123: Column: 1
Hard tabs


124-124: Column: 1
Hard tabs


125-125: Column: 1
Hard tabs


126-126: Column: 1
Hard tabs


127-127: Column: 1
Hard tabs


128-128: Column: 1
Hard tabs


129-129: Column: 1
Hard tabs


130-130: Column: 1
Hard tabs


131-131: Column: 1
Hard tabs


132-132: Column: 1
Hard tabs


133-133: Column: 1
Hard tabs


134-134: Column: 1
Hard tabs


135-135: Column: 1
Hard tabs


136-136: Column: 1
Hard tabs


137-137: Column: 1
Hard tabs


138-138: Column: 1
Hard tabs


139-139: Column: 1
Hard tabs


140-140: Column: 1
Hard tabs


141-141: Column: 1
Hard tabs


142-142: Column: 1
Hard tabs


143-143: Column: 1
Hard tabs


144-144: Column: 1
Hard tabs


145-145: Column: 1
Hard tabs


8-8: null
Multiple top-level headings in the same document

docs/docs/01-ibc/03-apps/02-ibcmodule.md

381-381: Expected: 0 or 2; Actual: 1
Trailing spaces


384-384: Expected: 0 or 2; Actual: 1
Trailing spaces


385-385: Expected: 0 or 2; Actual: 1
Trailing spaces


8-8: null
Multiple top-level headings in the same document

docs/architecture/adr-008-app-caller-cbs.md

166-166: Expected: 0 or 2; Actual: 1
Trailing spaces


169-169: Expected: 0 or 2; Actual: 1
Trailing spaces


250-250: Expected: 0 or 2; Actual: 1
Trailing spaces


251-251: Expected: 0 or 2; Actual: 1
Trailing spaces


252-252: Expected: 0 or 2; Actual: 1
Trailing spaces


255-255: Expected: 0 or 2; Actual: 1
Trailing spaces


545-545: Expected: 0 or 2; Actual: 1
Trailing spaces


68-68: Column: 1
Hard tabs


69-69: Column: 1
Hard tabs


71-71: Column: 1
Hard tabs


73-73: Column: 1
Hard tabs


74-74: Column: 1
Hard tabs


75-75: Column: 1
Hard tabs


76-76: Column: 1
Hard tabs


77-77: Column: 1
Hard tabs


89-89: Column: 1
Hard tabs


90-90: Column: 1
Hard tabs


96-96: Column: 1
Hard tabs


97-97: Column: 1
Hard tabs


98-98: Column: 1
Hard tabs


99-99: Column: 1
Hard tabs


108-108: Column: 1
Hard tabs


109-109: Column: 1
Hard tabs


110-110: Column: 1
Hard tabs


118-118: Column: 1
Hard tabs


119-119: Column: 1
Hard tabs


120-120: Column: 1
Hard tabs


121-121: Column: 1
Hard tabs


175-175: Column: 1
Hard tabs


176-176: Column: 1
Hard tabs


177-177: Column: 1
Hard tabs


178-178: Column: 1
Hard tabs


179-179: Column: 1
Hard tabs


180-180: Column: 1
Hard tabs


181-181: Column: 1
Hard tabs


182-182: Column: 1
Hard tabs


183-183: Column: 1
Hard tabs


184-184: Column: 1
Hard tabs


185-185: Column: 1
Hard tabs


186-186: Column: 1
Hard tabs


187-187: Column: 1
Hard tabs


188-188: Column: 1
Hard tabs


189-189: Column: 1
Hard tabs


190-190: Column: 1
Hard tabs


191-191: Column: 1
Hard tabs


192-192: Column: 1
Hard tabs


193-193: Column: 1
Hard tabs


194-194: Column: 1
Hard tabs


195-195: Column: 1
Hard tabs


196-196: Column: 1
Hard tabs


197-197: Column: 1
Hard tabs


198-198: Column: 1
Hard tabs


199-199: Column: 1
Hard tabs


200-200: Column: 1
Hard tabs


201-201: Column: 1
Hard tabs


202-202: Column: 1
Hard tabs


203-203: Column: 1
Hard tabs


204-204: Column: 1
Hard tabs


205-205: Column: 1
Hard tabs


206-206: Column: 1
Hard tabs


207-207: Column: 1
Hard tabs


208-208: Column: 1
Hard tabs


209-209: Column: 1
Hard tabs


210-210: Column: 1
Hard tabs


211-211: Column: 1
Hard tabs


212-212: Column: 1
Hard tabs


213-213: Column: 1
Hard tabs


214-214: Column: 1
Hard tabs


215-215: Column: 1
Hard tabs


216-216: Column: 1
Hard tabs


217-217: Column: 1
Hard tabs


218-218: Column: 1
Hard tabs


219-219: Column: 1
Hard tabs


220-220: Column: 1
Hard tabs


221-221: Column: 1
Hard tabs


222-222: Column: 1
Hard tabs


223-223: Column: 1
Hard tabs


224-224: Column: 1
Hard tabs


225-225: Column: 1
Hard tabs


226-226: Column: 1
Hard tabs


227-227: Column: 1
Hard tabs


228-228: Column: 1
Hard tabs


229-229: Column: 1
Hard tabs


230-230: Column: 1
Hard tabs


231-231: Column: 1
Hard tabs


232-232: Column: 1
Hard tabs


233-233: Column: 1
Hard tabs


234-234: Column: 1
Hard tabs


235-235: Column: 1
Hard tabs


236-236: Column: 1
Hard tabs


237-237: Column: 1
Hard tabs


238-238: Column: 1
Hard tabs


239-239: Column: 1
Hard tabs


240-240: Column: 1
Hard tabs


241-241: Column: 1
Hard tabs


242-242: Column: 1
Hard tabs


243-243: Column: 1
Hard tabs


244-244: Column: 1
Hard tabs


266-266: Column: 1
Hard tabs


267-267: Column: 1
Hard tabs


268-268: Column: 1
Hard tabs


269-269: Column: 1
Hard tabs


270-270: Column: 1
Hard tabs


271-271: Column: 1
Hard tabs


272-272: Column: 1
Hard tabs


276-276: Column: 1
Hard tabs


277-277: Column: 1
Hard tabs


278-278: Column: 1
Hard tabs


279-279: Column: 1
Hard tabs


282-282: Column: 1
Hard tabs


283-283: Column: 1
Hard tabs


284-284: Column: 1
Hard tabs


285-285: Column: 1
Hard tabs


286-286: Column: 1
Hard tabs


288-288: Column: 1
Hard tabs


289-289: Column: 1
Hard tabs


290-290: Column: 1
Hard tabs


291-291: Column: 1
Hard tabs


292-292: Column: 1
Hard tabs


294-294: Column: 1
Hard tabs


295-295: Column: 1
Hard tabs


296-296: Column: 1
Hard tabs


297-297: Column: 1
Hard tabs


298-298: Column: 1
Hard tabs


301-301: Column: 1
Hard tabs


310-310: Column: 1
Hard tabs


311-311: Column: 1
Hard tabs


312-312: Column: 1
Hard tabs


313-313: Column: 1
Hard tabs


317-317: Column: 1
Hard tabs


318-318: Column: 1
Hard tabs


319-319: Column: 1
Hard tabs


320-320: Column: 1
Hard tabs


323-323: Column: 1
Hard tabs


324-324: Column: 1
Hard tabs


325-325: Column: 1
Hard tabs


326-326: Column: 1
Hard tabs


327-327: Column: 1
Hard tabs


328-328: Column: 1
Hard tabs


329-329: Column: 1
Hard tabs


331-331: Column: 1
Hard tabs


332-332: Column: 1
Hard tabs


333-333: Column: 1
Hard tabs


335-335: Column: 1
Hard tabs


336-336: Column: 1
Hard tabs


337-337: Column: 1
Hard tabs


339-339: Column: 1
Hard tabs


340-340: Column: 1
Hard tabs


341-341: Column: 1
Hard tabs


343-343: Column: 1
Hard tabs


357-357: Column: 1
Hard tabs


358-358: Column: 1
Hard tabs


359-359: Column: 1
Hard tabs


360-360: Column: 1
Hard tabs


361-361: Column: 1
Hard tabs


362-362: Column: 1
Hard tabs


366-366: Column: 1
Hard tabs


367-367: Column: 1
Hard tabs


368-368: Column: 1
Hard tabs


369-369: Column: 1
Hard tabs


370-370: Column: 1
Hard tabs


371-371: Column: 1
Hard tabs


373-373: Column: 1
Hard tabs


374-374: Column: 1
Hard tabs


375-375: Column: 1
Hard tabs


378-378: Column: 1
Hard tabs


379-379: Column: 1
Hard tabs


380-380: Column: 1
Hard tabs


381-381: Column: 1
Hard tabs


382-382: Column: 1
Hard tabs


384-384: Column: 1
Hard tabs


401-401: Column: 1
Hard tabs


402-402: Column: 1
Hard tabs


403-403: Column: 1
Hard tabs


404-404: Column: 1
Hard tabs


407-407: Column: 1
Hard tabs


408-408: Column: 1
Hard tabs


409-409: Column: 1
Hard tabs


410-410: Column: 1
Hard tabs


411-411: Column: 1
Hard tabs


412-412: Column: 1
Hard tabs


413-413: Column: 1
Hard tabs


415-415: Column: 1
Hard tabs


416-416: Column: 1
Hard tabs


417-417: Column: 1
Hard tabs


418-418: Column: 1
Hard tabs


419-419: Column: 1
Hard tabs


421-421: Column: 1
Hard tabs


422-422: Column: 1
Hard tabs


424-424: Column: 1
Hard tabs


425-425: Column: 1
Hard tabs


426-426: Column: 1
Hard tabs


428-428: Column: 1
Hard tabs


444-444: Column: 1
Hard tabs


445-445: Column: 1
Hard tabs


446-446: Column: 1
Hard tabs


449-449: Column: 1
Hard tabs


450-450: Column: 1
Hard tabs


451-451: Column: 1
Hard tabs


452-452: Column: 1
Hard tabs


453-453: Column: 1
Hard tabs


454-454: Column: 1
Hard tabs


455-455: Column: 1
Hard tabs


457-457: Column: 1
Hard tabs


458-458: Column: 1
Hard tabs


459-459: Column: 1
Hard tabs


461-461: Column: 1
Hard tabs


462-462: Column: 1
Hard tabs


463-463: Column: 1
Hard tabs


464-464: Column: 1
Hard tabs


465-465: Column: 1
Hard tabs


466-466: Column: 1
Hard tabs


468-468: Column: 1
Hard tabs


483-483: Column: 1
Hard tabs


484-484: Column: 1
Hard tabs


486-486: Column: 1
Hard tabs


487-487: Column: 1
Hard tabs


489-489: Column: 1
Hard tabs


490-490: Column: 1
Hard tabs


491-491: Column: 1
Hard tabs


493-493: Column: 1
Hard tabs


494-494: Column: 1
Hard tabs


495-495: Column: 1
Hard tabs


496-496: Column: 1
Hard tabs


497-497: Column: 1
Hard tabs


498-498: Column: 1
Hard tabs


499-499: Column: 1
Hard tabs


501-501: Column: 1
Hard tabs


502-502: Column: 1
Hard tabs


503-503: Column: 1
Hard tabs


504-504: Column: 1
Hard tabs


505-505: Column: 1
Hard tabs


506-506: Column: 1
Hard tabs


507-507: Column: 1
Hard tabs


509-509: Column: 1
Hard tabs


510-510: Column: 1
Hard tabs


512-512: Column: 1
Hard tabs


513-513: Column: 1
Hard tabs


514-514: Column: 1
Hard tabs


515-515: Column: 1
Hard tabs


517-517: Column: 1
Hard tabs

Additional comments not posted (4)
modules/core/05-port/types/module.go (1)

197-198: The comment above UnmarshalPacketData method provides a clear explanation of the new parameters and their purpose.

docs/docs/04-middleware/02-callbacks/03-interfaces.md (1)

21-23: The updated signature of UnmarshalPacketData in the documentation correctly reflects the changes in the codebase, ensuring consistency between implementation and documentation.

docs/docs/01-ibc/03-apps/02-ibcmodule.md (1)

374-377: The documentation here correctly updates the signature of UnmarshalPacketData to include the new parameters. This aligns with the changes in the actual implementation and helps ensure that developers are aware of the new method requirements.

docs/architecture/adr-008-app-caller-cbs.md (1)

99-99: Update the signature of UnmarshalPacketData to include context and identifiers.

The updated method signature now includes ctx, portID, and channelID, which enhances the context-aware unmarshaling capabilities of packet data. This change aligns with the PR's objectives and the broader system architecture.

Copy link
Contributor

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

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

lgtm! grepped but couldn't find other occurences.

minor typo suggestions left

docs/architecture/adr-008-app-caller-cbs.md Outdated Show resolved Hide resolved
docs/docs/01-ibc/03-apps/02-ibcmodule.md Outdated Show resolved Hide resolved
docs/docs/04-middleware/02-callbacks/03-interfaces.md Outdated Show resolved Hide resolved
modules/core/05-port/types/module.go Outdated Show resolved Hide resolved
Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Thanks for keeping these up to date @crodriguezvega!!

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

Outside diff range and nitpick comments (7)
docs/docs/04-middleware/02-callbacks/03-interfaces.md (3)

Line range hint 61-61: Correct grammatical error in documentation.

- then the callbacks middleware passes and empty string as the sender address.
+ then the callbacks middleware passes an empty string as the sender address.

Line range hint 71-71: Clarify the sentence structure for better readability.

- If the packet send is successful, the contract keeper on the destination...
+ If the packet send is successful, then the contract keeper on the destination...

Line range hint 71-71: Add a missing comma for clarity.

- ...can be processed given that a relayer sets the gas limit...
+ ...can be processed, given that a relayer sets the gas limit...
docs/docs/01-ibc/03-apps/02-ibcmodule.md (4)

Line range hint 364-364: Correct grammatical error in documentation.

- The following interface are optional and MAY be implemented by an IBCModule.
+ The following interfaces are optional and MAY be implemented by an IBCModule.

Line range hint 206-206: Add a missing comma for clarity.

- ...if your application plans to have linear releases then semantic versioning is recommended.
+ ...if your application plans to have linear releases, then semantic versioning is recommended.

Line range hint 214-214: Add a missing comma before 'or'.

- ...version verification via string matching or they can use the already implemented versioning system...
+ ...version verification via string matching, or they can use the already implemented versioning system...

Line range hint 349-349: Add a missing comma for clarity.

- ...timeoutPacket` to handle this situation. Again the IBC module will verify that the timeout...
+ ...timeoutPacket` to handle this situation. Again, the IBC module will verify that the timeout...
Review details

Configuration used: .coderabbit.yml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 4288c14 and 8f82079.

Files selected for processing (4)
  • docs/architecture/adr-008-app-caller-cbs.md (1 hunks)
  • docs/docs/01-ibc/03-apps/02-ibcmodule.md (1 hunks)
  • docs/docs/04-middleware/02-callbacks/03-interfaces.md (1 hunks)
  • modules/core/05-port/types/module.go (1 hunks)
Files skipped from review as they are similar to previous changes (1)
  • modules/core/05-port/types/module.go
Additional context used
Path-based instructions (3)
docs/docs/04-middleware/02-callbacks/03-interfaces.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

docs/docs/01-ibc/03-apps/02-ibcmodule.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

docs/architecture/adr-008-app-caller-cbs.md (1)

Pattern **/*.md: "Assess the documentation for misspellings, grammatical errors, missing documentation and correctness"

LanguageTool
docs/docs/04-middleware/02-callbacks/03-interfaces.md

[uncategorized] ~61-~61: “and” (in addition to, following this) seems less likely than “an” (indefinite article before a vowel sound). (AI_HYDRA_LEO_CP_AND_AN)
Context: ...d, then the callbacks middleware passes and empty string as the sender address. For...


[grammar] ~71-~71: Possibly, a comma is missing after an introductory clause, the verb inflection is not correct, or a question mark is missing. Did you mean “packet, send” or “packet sends”? (IF_DT_NN_VBZ)
Context: ...lbacks on the given information. If the packet send is successful, the contract keeper on t...


[uncategorized] ~71-~71: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...ach step of the packet lifecycle can be processed given that a relayer sets the gas limit...

docs/docs/01-ibc/03-apps/02-ibcmodule.md

[style] ~11-~11: Consider removing “of” to be more concise (ALL_OF_THE)
Context: ...implement the IBCModule interface and all of the callbacks it requires. ::: The Cosmos ...


[style] ~15-~15: Consider removing “of” to be more concise (ALL_OF_THE)
Context: ...pes/module.go). This interface contains all of the callbacks IBC expects modules to implem...


[misspelling] ~52-~52: This word is normally spelled as one. (EN_COMPOUNDS_PSEUDO_CODE)
Context: ... > Note that some of the code below is pseudo code, indicating what actions need to happe...


[style] ~197-~197: Consider using “incompatible” to avoid wordiness. (NOT_ABLE_PREMIUM)
Context: ... If the counterparty-chosen version is not compatible with this module's supported versions...


[uncategorized] ~206-~206: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...f your application plans to have linear releases then semantic versioning is recommended...


[style] ~213-~213: The phrase ‘have the ability to’ might be wordy. Consider using “can”. (HAS_THE_ABILITY_TO)
Context: ... version type is a string, applications have the ability to do simple version verification via stri...


[uncategorized] ~214-~214: Use a comma before ‘or’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE)
Context: ...version verification via string matching or they can use the already implemented ve...


[uncategorized] ~237-~237: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...h the use of callbacks. Thus, to send a packet a module simply needs to call `SendPack...


[misspelling] ~239-~239: This word is normally spelled as one. (EN_COMPOUNDS_PSEUDO_CODE)
Context: ... > Note that some of the code below is pseudo code, indicating what actions need to happe...


[style] ~258-~258: Consider a shorter alternative to avoid wordiness. (IN_ORDER_TO_PREMIUM)
Context: ...outTimestamp, data, ) ``` :::warning In order to prevent modules from sending packets on...


[misspelling] ~283-~283: This word is normally spelled as one. (EN_COMPOUNDS_PSEUDO_CODE)
Context: ... > Note that some of the code below is pseudo code, indicating what actions need to happe...


[grammar] ~319-~319: Possible subject-verb agreement error. (NNS_OF_SINGULAR_AGREEMENT)
Context: ...ck. The contents of the acknowledgement is entirely up to the modules on the chann...


[misspelling] ~327-~327: This word is normally spelled as one. (EN_COMPOUNDS_PSEUDO_CODE)
Context: ... > Note that some of the code below is pseudo code, indicating what actions need to happe...


[uncategorized] ~327-~327: Do not mix variants of the same word (‘acknowledgment’ and ‘acknowledgement’) within a single text. (EN_WORD_COHERENCY)
Context: ...ement a custom implementation. E.g. the DecodeAcknowledgement(acknowledgments) and processAck(ack) functions. ```...


[uncategorized] ~349-~349: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...imeoutPacket` to handle this situation. Again the IBC module will verify that the tim...


[grammar] ~364-~364: The verb form ‘are’ does not appear to fit in this context. (SINGULAR_NOUN_VERB_AGREEMENT)
Context: ... ### Optional interfaces The following interface are optional and MAY be implemented by an I...


[style] ~384-~384: Consider a shorter alternative to avoid wordiness. (IN_ORDER_TO_PREMIUM)
Context: ... middlewares to unmarshal a packet data in order to make use of interfaces the packet data ...


[style] ~385-~385: You have already used this phrasing in nearby sentences. Shortening it will avoid wordiness. (REP_MAKE_USE_OF)
Context: ... For example, the callbacks middleware makes use of this function to access packet data typ...

docs/architecture/adr-008-app-caller-cbs.md

[uncategorized] ~15-~15: The preposition ‘to’ seems more likely in this position. (AI_HYDRA_LEO_REPLACE_ON_TO)
Context: ...r a timeout, core IBC called a callback on the IBC application so that the IBC app...


[style] ~15-~15: ‘on the basis of’ might be wordy. Consider a shorter alternative. (EN_WORDINESS_PREMIUM_ON_THE_BASIS_OF)
Context: ...t the IBC application could take action on the basis of the result (e.g. unescrow tokens for IC...


[style] ~19-~19: ‘on the basis of’ might be wordy. Consider a shorter alternative. (EN_WORDINESS_PREMIUM_ON_THE_BASIS_OF)
Context: ... machine logic and then do some actions on the basis of the packet result. Or to receive a pack...


[uncategorized] ~42-~42: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...it` and the gas left in the context gas meter which is determined by the relayer's ch...


[uncategorized] ~44-~44: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ...leting. However, since this is a global cap it is likely to be very large. Thus, us...


[style] ~44-~44: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase. (EN_WEAK_ADJECTIVE)
Context: ...this is a global cap it is likely to be very large. Thus, users may specify a smaller limi...


[uncategorized] ~44-~44: ‘Amount of’ should usually only be used with uncountable or mass nouns. Consider using “number” if this is not the case. (AMOUNTOF_TO_NUMBEROF)
Context: ... may specify a smaller limit to cap the amount of fees a relayer must pay in order to ...


[style] ~44-~44: Consider a shorter alternative to avoid wordiness. (IN_ORDER_TO_PREMIUM)
Context: ...p the amount of fees a relayer must pay in order to complete the packet lifecycle on the us...


[uncategorized] ~83-~83: When ‘callback-specific’ is used as a modifier, it is usually spelled with a hyphen. (SPECIFIC_HYPHEN)
Context: ...en allow the middleware to retrieve the callback specific data from an arbitrary set of IBC appli...


[uncategorized] ~166-~166: Possible missing article found. (AI_HYDRA_LEO_MISSING_THE)
Context: ...ogic intended for all VMs (e.g. setting gas meter, extracting callback data, emitti...


[style] ~167-~167: This phrase is redundant. Consider writing “details”. (SPECIFIC_DETAILS)
Context: ...while the ContractKeeper can handle the specific details of calling into the VM in question. Th...


[uncategorized] ~253-~253: Use a comma before “and” if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE_2)
Context: ...he callback state changes are discarded and the transaction is committed. If the r...


[uncategorized] ~256-~256: Use a comma before “and” if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE_2)
Context: ... the callback state changes are reverted and the transaction is committed. For the ...


[uncategorized] ~533-~533: Possible missing comma found. (AI_HYDRA_LEO_MISSING_COMMA)
Context: ... - Callbacks may now have unbounded gas consumption since the actor may execute arbitrary l...

Markdownlint
docs/docs/04-middleware/02-callbacks/03-interfaces.md

76-76: Column: 1
Hard tabs


77-77: Column: 1
Hard tabs


78-78: Column: 1
Hard tabs


79-79: Column: 1
Hard tabs


80-80: Column: 1
Hard tabs


81-81: Column: 1
Hard tabs


82-82: Column: 1
Hard tabs


83-83: Column: 1
Hard tabs


84-84: Column: 1
Hard tabs


85-85: Column: 1
Hard tabs


86-86: Column: 1
Hard tabs


87-87: Column: 1
Hard tabs


88-88: Column: 1
Hard tabs


89-89: Column: 1
Hard tabs


90-90: Column: 1
Hard tabs


91-91: Column: 1
Hard tabs


92-92: Column: 1
Hard tabs


93-93: Column: 1
Hard tabs


94-94: Column: 1
Hard tabs


95-95: Column: 1
Hard tabs


96-96: Column: 1
Hard tabs


97-97: Column: 1
Hard tabs


98-98: Column: 1
Hard tabs


99-99: Column: 1
Hard tabs


100-100: Column: 1
Hard tabs


101-101: Column: 1
Hard tabs


102-102: Column: 1
Hard tabs


103-103: Column: 1
Hard tabs


104-104: Column: 1
Hard tabs


105-105: Column: 1
Hard tabs


106-106: Column: 1
Hard tabs


107-107: Column: 1
Hard tabs


108-108: Column: 1
Hard tabs


109-109: Column: 1
Hard tabs


110-110: Column: 1
Hard tabs


111-111: Column: 1
Hard tabs


112-112: Column: 1
Hard tabs


113-113: Column: 1
Hard tabs


114-114: Column: 1
Hard tabs


115-115: Column: 1
Hard tabs


116-116: Column: 1
Hard tabs


117-117: Column: 1
Hard tabs


118-118: Column: 1
Hard tabs


119-119: Column: 1
Hard tabs


120-120: Column: 1
Hard tabs


121-121: Column: 1
Hard tabs


122-122: Column: 1
Hard tabs


123-123: Column: 1
Hard tabs


124-124: Column: 1
Hard tabs


125-125: Column: 1
Hard tabs


126-126: Column: 1
Hard tabs


127-127: Column: 1
Hard tabs


128-128: Column: 1
Hard tabs


129-129: Column: 1
Hard tabs


130-130: Column: 1
Hard tabs


131-131: Column: 1
Hard tabs


132-132: Column: 1
Hard tabs


133-133: Column: 1
Hard tabs


134-134: Column: 1
Hard tabs


135-135: Column: 1
Hard tabs


136-136: Column: 1
Hard tabs


137-137: Column: 1
Hard tabs


138-138: Column: 1
Hard tabs


139-139: Column: 1
Hard tabs


140-140: Column: 1
Hard tabs


141-141: Column: 1
Hard tabs


142-142: Column: 1
Hard tabs


143-143: Column: 1
Hard tabs


144-144: Column: 1
Hard tabs


145-145: Column: 1
Hard tabs


8-8: null
Multiple top-level headings in the same document

docs/docs/01-ibc/03-apps/02-ibcmodule.md

381-381: Expected: 0 or 2; Actual: 1
Trailing spaces


384-384: Expected: 0 or 2; Actual: 1
Trailing spaces


385-385: Expected: 0 or 2; Actual: 1
Trailing spaces


8-8: null
Multiple top-level headings in the same document

docs/architecture/adr-008-app-caller-cbs.md

166-166: Expected: 0 or 2; Actual: 1
Trailing spaces


169-169: Expected: 0 or 2; Actual: 1
Trailing spaces


250-250: Expected: 0 or 2; Actual: 1
Trailing spaces


251-251: Expected: 0 or 2; Actual: 1
Trailing spaces


252-252: Expected: 0 or 2; Actual: 1
Trailing spaces


255-255: Expected: 0 or 2; Actual: 1
Trailing spaces


545-545: Expected: 0 or 2; Actual: 1
Trailing spaces


68-68: Column: 1
Hard tabs


69-69: Column: 1
Hard tabs


71-71: Column: 1
Hard tabs


73-73: Column: 1
Hard tabs


74-74: Column: 1
Hard tabs


75-75: Column: 1
Hard tabs


76-76: Column: 1
Hard tabs


77-77: Column: 1
Hard tabs


89-89: Column: 1
Hard tabs


90-90: Column: 1
Hard tabs


96-96: Column: 1
Hard tabs


97-97: Column: 1
Hard tabs


98-98: Column: 1
Hard tabs


99-99: Column: 1
Hard tabs


108-108: Column: 1
Hard tabs


109-109: Column: 1
Hard tabs


110-110: Column: 1
Hard tabs


118-118: Column: 1
Hard tabs


119-119: Column: 1
Hard tabs


120-120: Column: 1
Hard tabs


121-121: Column: 1
Hard tabs


175-175: Column: 1
Hard tabs


176-176: Column: 1
Hard tabs


177-177: Column: 1
Hard tabs


178-178: Column: 1
Hard tabs


179-179: Column: 1
Hard tabs


180-180: Column: 1
Hard tabs


181-181: Column: 1
Hard tabs


182-182: Column: 1
Hard tabs


183-183: Column: 1
Hard tabs


184-184: Column: 1
Hard tabs


185-185: Column: 1
Hard tabs


186-186: Column: 1
Hard tabs


187-187: Column: 1
Hard tabs


188-188: Column: 1
Hard tabs


189-189: Column: 1
Hard tabs


190-190: Column: 1
Hard tabs


191-191: Column: 1
Hard tabs


192-192: Column: 1
Hard tabs


193-193: Column: 1
Hard tabs


194-194: Column: 1
Hard tabs


195-195: Column: 1
Hard tabs


196-196: Column: 1
Hard tabs


197-197: Column: 1
Hard tabs


198-198: Column: 1
Hard tabs


199-199: Column: 1
Hard tabs


200-200: Column: 1
Hard tabs


201-201: Column: 1
Hard tabs


202-202: Column: 1
Hard tabs


203-203: Column: 1
Hard tabs


204-204: Column: 1
Hard tabs


205-205: Column: 1
Hard tabs


206-206: Column: 1
Hard tabs


207-207: Column: 1
Hard tabs


208-208: Column: 1
Hard tabs


209-209: Column: 1
Hard tabs


210-210: Column: 1
Hard tabs


211-211: Column: 1
Hard tabs


212-212: Column: 1
Hard tabs


213-213: Column: 1
Hard tabs


214-214: Column: 1
Hard tabs


215-215: Column: 1
Hard tabs


216-216: Column: 1
Hard tabs


217-217: Column: 1
Hard tabs


218-218: Column: 1
Hard tabs


219-219: Column: 1
Hard tabs


220-220: Column: 1
Hard tabs


221-221: Column: 1
Hard tabs


222-222: Column: 1
Hard tabs


223-223: Column: 1
Hard tabs


224-224: Column: 1
Hard tabs


225-225: Column: 1
Hard tabs


226-226: Column: 1
Hard tabs


227-227: Column: 1
Hard tabs


228-228: Column: 1
Hard tabs


229-229: Column: 1
Hard tabs


230-230: Column: 1
Hard tabs


231-231: Column: 1
Hard tabs


232-232: Column: 1
Hard tabs


233-233: Column: 1
Hard tabs


234-234: Column: 1
Hard tabs


235-235: Column: 1
Hard tabs


236-236: Column: 1
Hard tabs


237-237: Column: 1
Hard tabs


238-238: Column: 1
Hard tabs


239-239: Column: 1
Hard tabs


240-240: Column: 1
Hard tabs


241-241: Column: 1
Hard tabs


242-242: Column: 1
Hard tabs


243-243: Column: 1
Hard tabs


244-244: Column: 1
Hard tabs


266-266: Column: 1
Hard tabs


267-267: Column: 1
Hard tabs


268-268: Column: 1
Hard tabs


269-269: Column: 1
Hard tabs


270-270: Column: 1
Hard tabs


271-271: Column: 1
Hard tabs


272-272: Column: 1
Hard tabs


276-276: Column: 1
Hard tabs


277-277: Column: 1
Hard tabs


278-278: Column: 1
Hard tabs


279-279: Column: 1
Hard tabs


282-282: Column: 1
Hard tabs


283-283: Column: 1
Hard tabs


284-284: Column: 1
Hard tabs


285-285: Column: 1
Hard tabs


286-286: Column: 1
Hard tabs


288-288: Column: 1
Hard tabs


289-289: Column: 1
Hard tabs


290-290: Column: 1
Hard tabs


291-291: Column: 1
Hard tabs


292-292: Column: 1
Hard tabs


294-294: Column: 1
Hard tabs


295-295: Column: 1
Hard tabs


296-296: Column: 1
Hard tabs


297-297: Column: 1
Hard tabs


298-298: Column: 1
Hard tabs


301-301: Column: 1
Hard tabs


310-310: Column: 1
Hard tabs


311-311: Column: 1
Hard tabs


312-312: Column: 1
Hard tabs


313-313: Column: 1
Hard tabs


317-317: Column: 1
Hard tabs


318-318: Column: 1
Hard tabs


319-319: Column: 1
Hard tabs


320-320: Column: 1
Hard tabs


323-323: Column: 1
Hard tabs


324-324: Column: 1
Hard tabs


325-325: Column: 1
Hard tabs


326-326: Column: 1
Hard tabs


327-327: Column: 1
Hard tabs


328-328: Column: 1
Hard tabs


329-329: Column: 1
Hard tabs


331-331: Column: 1
Hard tabs


332-332: Column: 1
Hard tabs


333-333: Column: 1
Hard tabs


335-335: Column: 1
Hard tabs


336-336: Column: 1
Hard tabs


337-337: Column: 1
Hard tabs


339-339: Column: 1
Hard tabs


340-340: Column: 1
Hard tabs


341-341: Column: 1
Hard tabs


343-343: Column: 1
Hard tabs


357-357: Column: 1
Hard tabs


358-358: Column: 1
Hard tabs


359-359: Column: 1
Hard tabs


360-360: Column: 1
Hard tabs


361-361: Column: 1
Hard tabs


362-362: Column: 1
Hard tabs


366-366: Column: 1
Hard tabs


367-367: Column: 1
Hard tabs


368-368: Column: 1
Hard tabs


369-369: Column: 1
Hard tabs


370-370: Column: 1
Hard tabs


371-371: Column: 1
Hard tabs


373-373: Column: 1
Hard tabs


374-374: Column: 1
Hard tabs


375-375: Column: 1
Hard tabs


378-378: Column: 1
Hard tabs


379-379: Column: 1
Hard tabs


380-380: Column: 1
Hard tabs


381-381: Column: 1
Hard tabs


382-382: Column: 1
Hard tabs


384-384: Column: 1
Hard tabs


401-401: Column: 1
Hard tabs


402-402: Column: 1
Hard tabs


403-403: Column: 1
Hard tabs


404-404: Column: 1
Hard tabs


407-407: Column: 1
Hard tabs


408-408: Column: 1
Hard tabs


409-409: Column: 1
Hard tabs


410-410: Column: 1
Hard tabs


411-411: Column: 1
Hard tabs


412-412: Column: 1
Hard tabs


413-413: Column: 1
Hard tabs


415-415: Column: 1
Hard tabs


416-416: Column: 1
Hard tabs


417-417: Column: 1
Hard tabs


418-418: Column: 1
Hard tabs


419-419: Column: 1
Hard tabs


421-421: Column: 1
Hard tabs


422-422: Column: 1
Hard tabs


424-424: Column: 1
Hard tabs


425-425: Column: 1
Hard tabs


426-426: Column: 1
Hard tabs


428-428: Column: 1
Hard tabs


444-444: Column: 1
Hard tabs


445-445: Column: 1
Hard tabs


446-446: Column: 1
Hard tabs


449-449: Column: 1
Hard tabs


450-450: Column: 1
Hard tabs


451-451: Column: 1
Hard tabs


452-452: Column: 1
Hard tabs


453-453: Column: 1
Hard tabs


454-454: Column: 1
Hard tabs


455-455: Column: 1
Hard tabs


457-457: Column: 1
Hard tabs


458-458: Column: 1
Hard tabs


459-459: Column: 1
Hard tabs


461-461: Column: 1
Hard tabs


462-462: Column: 1
Hard tabs


463-463: Column: 1
Hard tabs


464-464: Column: 1
Hard tabs


465-465: Column: 1
Hard tabs


466-466: Column: 1
Hard tabs


468-468: Column: 1
Hard tabs


483-483: Column: 1
Hard tabs


484-484: Column: 1
Hard tabs


486-486: Column: 1
Hard tabs


487-487: Column: 1
Hard tabs


489-489: Column: 1
Hard tabs


490-490: Column: 1
Hard tabs


491-491: Column: 1
Hard tabs


493-493: Column: 1
Hard tabs


494-494: Column: 1
Hard tabs


495-495: Column: 1
Hard tabs


496-496: Column: 1
Hard tabs


497-497: Column: 1
Hard tabs


498-498: Column: 1
Hard tabs


499-499: Column: 1
Hard tabs


501-501: Column: 1
Hard tabs


502-502: Column: 1
Hard tabs


503-503: Column: 1
Hard tabs


504-504: Column: 1
Hard tabs


505-505: Column: 1
Hard tabs


506-506: Column: 1
Hard tabs


507-507: Column: 1
Hard tabs


509-509: Column: 1
Hard tabs


510-510: Column: 1
Hard tabs


512-512: Column: 1
Hard tabs


513-513: Column: 1
Hard tabs


514-514: Column: 1
Hard tabs


515-515: Column: 1
Hard tabs


517-517: Column: 1
Hard tabs

Additional comments not posted (3)
docs/docs/04-middleware/02-callbacks/03-interfaces.md (1)

21-23: Update the method signature to include new parameters.

The updated signature of UnmarshalPacketData now includes ctx sdk.Context, portID, channelID string, bz []byte as parameters, aligning with the changes described in the PR summary and AI-generated summary. This change enhances the context-awareness of the unmarshaling process.

docs/docs/01-ibc/03-apps/02-ibcmodule.md (1)

374-377: Ensure consistency in method signature across documentation.

The UnmarshalPacketData method signature has been consistently updated across different documentation files to include the new parameters. This ensures that the interface is accurately represented wherever it is mentioned.

docs/architecture/adr-008-app-caller-cbs.md (1)

97-99: Update to UnmarshalPacketData method signature is well-documented.

This change aligns with the PR's objective to update the documentation according to the latest code changes. The inclusion of ctx, portID, and channelID as parameters is clearly explained, which should help developers understand the context-aware unmarshaling process.

Tools
Markdownlint

97-97: Column: 1
Hard tabs


98-98: Column: 1
Hard tabs


99-99: Column: 1
Hard tabs

Comment on lines +97 to +99
// ctx, portID, channelID are provided as arguments, so that (if needed)
// the packet data can be unmarshaled based on the channel version.
UnmarshalPacketData(ctx sdk.Context, portID, channelID string, bz []byte) (interface{}, error)
Copy link
Contributor

Choose a reason for hiding this comment

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

Clarify the use of parameters in UnmarshalPacketData.

The comment "// ctx, portID, channelID are provided as arguments, so that (if needed)" could be expanded to provide specific examples or scenarios where these parameters would be necessary. Would you like me to draft a more detailed explanation or examples?

Tools
Markdownlint

97-97: Column: 1
Hard tabs


98-98: Column: 1
Hard tabs


99-99: Column: 1
Hard tabs

Copy link

sonarqubecloud bot commented Jun 4, 2024

Quality Gate Passed Quality Gate passed for 'ibc-go'

Issues
12 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@crodriguezvega crodriguezvega merged commit 7598976 into main Jun 4, 2024
78 of 79 checks passed
@crodriguezvega crodriguezvega deleted the carlos/update-adr8-unmarshalpacketdata branch June 4, 2024 11:09
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.

4 participants