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

add support for hex encoded amounts on limit order and range order methods in LP API #4120

Merged
merged 2 commits into from
Oct 16, 2023

Conversation

martin-chainflip
Copy link
Contributor

Pull Request

Closes: PRO-912

Checklist

Please conduct a thorough self-review before opening the PR.

  • I am confident that the code works.
  • I have updated documentation where appropriate.

Summary

The current LP-API methods for limit orders only support u64 representation of numbers, which is not enough for large FLIP amounts. The API should support the "NumberOrHex" mechanism used elsewhere in the API

@linear
Copy link

linear bot commented Oct 13, 2023

PRO-912 Allow large hex numbers for Limit Order LP-API requests

The current LP-API methods for limit orders only support u64 representation of numbers, which is not enough for large FLIP amounts. The API should support the "NumberOrHex" mechanism used elsewhere in the API

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Merging #4120 (be3bbe0) into main (6436088) will increase coverage by 0%.
Report is 12 commits behind head on main.
The diff coverage is n/a.

@@          Coverage Diff           @@
##            main   #4120    +/-   ##
======================================
  Coverage     71%     72%            
======================================
  Files        377     378     +1     
  Lines      60078   60637   +559     
  Branches   60078   60637   +559     
======================================
+ Hits       42810   43490   +680     
+ Misses     15022   14879   -143     
- Partials    2246    2268    +22     

see 31 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@AlastairHolmes AlastairHolmes changed the title add support for hex encoded amounts on limit order methods in LP API add support for hex encoded amounts on limit order and range order methods in LP API Oct 16, 2023
@martin-chainflip martin-chainflip merged commit b90af35 into main Oct 16, 2023
44 checks passed
@martin-chainflip martin-chainflip deleted the feat/lp-api-limit-orders-accept-hex-amount branch October 16, 2023 14:47
syan095 added a commit that referenced this pull request Oct 17, 2023
* origin/main:
  chore: get gas parameters from statechain event (#4125)
  Feat: ingress-egress tracking for DOT (#4121)
  add support for hex encoded amounts on limit order and range order methods in LP API (#4120)
  feat: bouncer command for submitting runtime upgrades (#4122)
  Feat: ensure correct process termination in ingress/egress tracker (#4101)
  feat(custom-rpc): add flip balance to account info (#4119)
  chore: storage migration delete NextCompatibilityVersion (#4115)
  chore: delete unneeded function (#4116)

# Conflicts:
#	state-chain/runtime/src/lib.rs
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.

2 participants