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

feat(ur-sdk): add command parser #127

Merged
merged 9 commits into from
Oct 2, 2024
Merged

feat(ur-sdk): add command parser #127

merged 9 commits into from
Oct 2, 2024

Conversation

marktoda
Copy link
Collaborator

@marktoda marktoda commented Oct 1, 2024

  • feat: add command parser
  • feat: start testing command parser

PR Scope

Please title your PR according to the following types and scopes following conventional commits:

  • fix(SDK name): will trigger a patch version
  • chore(<type>): will not trigger any release and should be used for internal repo changes
  • <type>(public): will trigger a patch version for non-code changes (e.g. README changes)
  • feat(SDK name): will trigger a minor version
  • feat(breaking): will trigger a major version for a breaking change

Description

[Summary of the change, motivation, and context]

How Has This Been Tested?

[e.g. Manually, E2E tests, unit tests, Storybook]

Are there any breaking changes?

[e.g. Type definitions, API definitions]

If there are breaking changes, please ensure you bump the major version Bump the major version (by using the title feat(breaking): ...), post a notice in #eng-sdks, and explicitly notify all Uniswap Labs consumers of the SDK.

(Optional) Feedback Focus

[Specific parts of this PR you'd like feedback on, or that reviewers should pay closer attention to]

(Optional) Follow Ups

[Things that weren't addressed in this PR, ways you plan to build on this work, or other ways this work could be extended]

@marktoda
Copy link
Collaborator Author

marktoda commented Oct 1, 2024

TODO: subparsers for v4 stuff in a followup

@marktoda marktoda marked this pull request as ready for review October 1, 2024 15:17
@marktoda marktoda changed the title add command parser feat(ur-sdk): add command parser Oct 1, 2024
Copy link

graphite-app bot commented Oct 1, 2024

Graphite Automations

"Request reviewers once CI passes on sdks monorepo" took an action on this PR • (10/01/24)

1 assignee was added and 1 reviewer was added to this PR based on 's automation.

Copy link
Member

@snreynolds snreynolds left a comment

Choose a reason for hiding this comment

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

this looks good but I'm going to have @hensha256 take a look since she owned a lot of the other routing code, and reviewed other ur-sdk work!

[CommandType.BALANCE_CHECK_ERC20]: ['address', 'address', 'uint256'],
[CommandType.WRAP_ETH]: [
{ name: 'recipient', type: 'address' },
{ name: 'amountMin', type: 'uint256' },
Copy link
Contributor

Choose a reason for hiding this comment

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

i know its named amountMin in the contract but thats a mistake 😆
its actually just amount

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ty fixed!

@marktoda marktoda merged commit b637f99 into main Oct 2, 2024
7 checks passed
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