forked from jl777/SuperNET
-
Notifications
You must be signed in to change notification settings - Fork 96
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(LRAPI): add 1inch classic swap rpc #2222
Merged
Merged
Changes from 4 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
14e695d
change wei to big decimal macro to fn (for easier using in other crates)
dimxy aad3739
add chain_id from conf fn
dimxy 5df753b
add code to connect 1inch api, add rpcs to use classic swap api
dimxy 57192ca
refactor on review notes
dimxy 1c31a7a
added doc comment for swap params
dimxy 3610147
refactor on review notes (more)
dimxy 23d8f1d
refactor on review notes (more)
dimxy 18466fc
fix fmt
dimxy 116fb0c
Merge branch 'dev' into 1inch-classic-swap
dimxy 5ec045f
fix review notes
dimxy 7a1282d
add 'deny unknown fields' for 1inch rpcs
dimxy 28a645d
return api response amount as DetailedAmount
dimxy ef93d1a
refactor api errors as c-like structs
dimxy e68cfc2
add two informational 1inch rpcs (to return available protocols and t…
dimxy 5ab3b19
more review notes
dimxy e040bca
add doc for strip 0x macro
dimxy a19063a
add test for 1inch json deserialisation
dimxy d457bee
add 1inch response web link validation
dimxy 6a150a5
move approve allowance rpcs to mm2_main crate
dimxy c175191
add lp_command/rpc.rs source file
dimxy 257d4b9
changed StatusCode for approve rpc errors
dimxy ce96d87
fix cargo fmt
dimxy 65c4853
fix review notes (including: rename approve to approve_token rpc, add…
dimxy df5f045
refactor eth type import
dimxy 57efd04
Merge branch 'dev' into 1inch-classic-swap
dimxy 7b5bed3
fix fmt
dimxy 0e2680a
Merge branch 'dev' into 1inch-classic-swap
dimxy 801a07f
refactor rename fn
dimxy 3e07470
add todos about 0x prefix in eth
dimxy 55006d4
fix cargo fmt
dimxy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rc/mm2_main/src/ext_api/one_inch/types.rs → ...ain/src/rpc/lp_commands/one_inch/types.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should be called
api_supports_pair