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

Orchestration: optimize timeoutHeight parameter for transactions, queries, and transfers #9324

Open
0xpatrickdev opened this issue May 6, 2024 · 0 comments
Labels
enhancement New feature or request needs-design

Comments

@0xpatrickdev
Copy link
Member

0xpatrickdev commented May 6, 2024

What is the Problem Being Solved?

As an orchestration API developer, I want to make sure we arrive at the correct abstraction and default values for the timeoutHeight: bigint | timeoutTimestamp: bigint parameter required for cross-chain transactions and queries.

The following messages require this parameter, in some form or another, and will default to 0/ 0n if nothing is provided. When the value is 0, it seems this results in an unbound timeout. An unbound timeout can degrade DX + UX.

  1. MsgTransfer has timeoutHeight and timeoutTimestamp fields (the generated TS types say both are required, but i think it's actually one or the other)
  2. RequestQuery has a height field used for timing out a query
  3. TxBody has a timeoutHeight field used for timing out a tx message

Description of the Design

  1. Need to determine if its's the orchestration API's responsibility to set a default timeout value, or it's something passed down to users
  2. Need to determine if revisionHeight is something ChainInfo can reliably provide
  3. Need to determine what sensible defaults values should be for example contracts and documentation (+ orchestration service depending on the answer to 1)

Security Considerations

Scaling Considerations

Test Plan

Upgrade Considerations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-design
Projects
None yet
Development

No branches or pull requests

1 participant