-
Notifications
You must be signed in to change notification settings - Fork 33
[CP-126] add support exchange v2 #354
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
d6195a7
(fix) Removed deprecated methods
aarmoa efc9ec6
(feat) Updated proto definitions with exchange V2 from chain core. Fi…
aarmoa 5e70823
(feat) Updated proto definitions with exchange V2 from chain core to …
aarmoa 291fe99
(feat) Added methods in AsyncClient and Composer for Exchange V2 quer…
aarmoa cc89852
(feat) Refactored markets and tokens initialization methods in AsyncC…
aarmoa a05a00c
(fix) Renamed two methods to make the intent more clear
aarmoa 7d7fc08
(fix) Removed support for chain stream V2, since it was decided we ar…
aarmoa 4980b41
(fix) Rename all methods having v2 in the middle of the name to have …
aarmoa 111373d
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
aarmoa 407067a
(fix) Solved a couple of warnings
aarmoa 321a78e
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
aarmoa b8beed2
(fix) Fixed issues in the V2 messages with Coin parameters, to not ad…
aarmoa 0e6a4ca
(fix) Updated pyproject.toml version number
aarmoa 52c798f
(feat) Added again support for chain stream V2
aarmoa 3c3b2e4
(fix) Updated version in pyproject.toml to publish a new alpha version
aarmoa 398e523
(fix) Updated incorrect deprecation comment
aarmoa c9cfcc0
chore: update proto definitions from injective-core master branch (v1…
aarmoa 0d50fc2
Merge branch 'dev' of https://github.com/InjectiveLabs/sdk-python int…
aarmoa 26cf36a
feat: upgraded Indexer proto to version v1.16.0-rc2. Updated gas esti…
aarmoa 8febafa
chore: added unit tests for the GTB gas estimation using gas heuristics
aarmoa de24ebd
fix: excluded deprecation unit test that freezed the Windows validati…
aarmoa 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,7 @@ async def main() -> None: | |
| fee_recipient = "inj1hkhdaj2a2clmq5jq6mspsggqs32vynpk228q3r" | ||
| cid = str(uuid.uuid4()) | ||
|
|
||
| order = composer.derivative_order( | ||
| order = composer.create_v2_derivative_order( | ||
|
||
| market_id=market_id, | ||
| subaccount_id=subaccount_id, | ||
| fee_recipient=fee_recipient, | ||
|
|
@@ -51,7 +51,7 @@ async def main() -> None: | |
| ) | ||
|
|
||
| # prepare tx msg | ||
| msg = composer.msg_liquidate_position( | ||
| msg = composer.msg_liquidate_position_v2( | ||
| sender=address.to_acc_bech32(), | ||
| subaccount_id="0x156df4d5bc8e7dd9191433e54bd6a11eeb390921000000000000000000000000", | ||
| market_id=market_id, | ||
|
|
||
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.
Why in some places we leave
Decimaland in some not?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.
Sorry @PavelInjective. What do you mean with "we leave Decimal"?
Or maybe you can mention an example of those places you mean we don't leave Decimal