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

Dev 2015 cancel spot orders #843

Merged
merged 17 commits into from
Oct 10, 2024
Merged

Conversation

cryptokage1996
Copy link
Contributor

@cryptokage1996 cryptokage1996 commented Oct 4, 2024

@cryptokage1996 cryptokage1996 marked this pull request as ready for review October 4, 2024 08:42
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 18.96552% with 94 lines in your changes missing coverage. Please review.

Project coverage is 43.08%. Comparing base (f926ef5) to head (e73838b).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #843      +/-   ##
==========================================
+ Coverage   43.03%   43.08%   +0.05%     
==========================================
  Files         681      682       +1     
  Lines       23494    23538      +44     
==========================================
+ Hits        10111    10142      +31     
- Misses      12162    12167       +5     
- Partials     1221     1229       +8     
Components Coverage Δ
leveragelp_transactions 92.63% <ø> (ø)
leveragelp_lifecycle 84.78% <ø> (ø)
leveragelp_keeper 86.58% <ø> (ø)
leveragelp_queries 25.11% <ø> (ø)
accountedpool_transactions 100.00% <ø> (ø)
accountedpool_lifecycle ∅ <ø> (∅)
accountedpool_queries 68.42% <ø> (ø)
amm_transactions 58.84% <ø> (ø)
amm_lifecycle 79.16% <ø> (ø)
amm_keeper 61.13% <ø> (ø)
amm_queries 29.94% <ø> (ø)
assetprofile_transactions 78.82% <ø> (ø)
assetprofile_lifecycle ∅ <ø> (∅)
assetprofile_keeper 83.33% <ø> (ø)
assetprofile_queries 47.41% <ø> (ø)
burner_transactions 0.00% <ø> (ø)
burner_lifecycle ∅ <ø> (∅)
burner_keeper 100.00% <ø> (ø)
burner_queries 63.54% <ø> (ø)
clock_transactions 30.00% <ø> (ø)
clock_lifecycle ∅ <ø> (∅)
clock_keeper 76.92% <ø> (ø)
clock_queries ∅ <ø> (∅)
commitment_transactions 48.83% <ø> (ø)
commitment_lifecycle ∅ <ø> (∅)
commitment_keeper 19.60% <ø> (ø)
commitment_queries 9.33% <ø> (ø)
epochs_transactions ∅ <ø> (∅)
epochs_lifecycle 100.00% <ø> (ø)
epochs_keeper 81.81% <ø> (ø)
epochs_queries 85.71% <ø> (ø)
estaking_transactions 48.64% <ø> (ø)
estaking_lifecycle 73.23% <ø> (ø)
estaking_keeper 63.05% <ø> (ø)
estaking_queries 55.31% <ø> (ø)
incentive_transactions 0.00% <ø> (ø)
incentive_lifecycle ∅ <ø> (∅)
incentive_keeper 0.00% <ø> (ø)
incentive_queries ∅ <ø> (∅)
masterchef_transactions 64.78% <ø> (ø)
masterchef_lifecycle 71.34% <ø> (ø)
masterchef_keeper 90.00% <ø> (ø)
masterchef_queries 45.97% <ø> (ø)
oracle_transactions 31.91% <ø> (ø)
oracle_lifecycle 0.00% <ø> (ø)
oracle_keeper 63.88% <ø> (ø)
oracle_queries 34.90% <ø> (ø)
parameter_transactions 15.11% <ø> (ø)
parameter_lifecycle ∅ <ø> (∅)
parameter_keeper 75.00% <ø> (ø)
parameter_queries 60.00% <ø> (ø)
stablestake_transactions 76.59% <ø> (ø)
stablestake_lifecycle 76.92% <ø> (ø)
stablestake_keeper 71.42% <ø> (ø)
stablestake_queries 13.04% <ø> (ø)
tier_transactions 28.57% <ø> (ø)
tier_lifecycle 100.00% <ø> (ø)
tier_keeper 90.47% <ø> (ø)
tier_queries 20.32% <ø> (ø)
tokenomics_transactions 72.32% <ø> (ø)
tokenomics_lifecycle ∅ <ø> (∅)
tokenomics_keeper 83.33% <ø> (ø)
tokenomics_queries 70.96% <ø> (ø)
transferhook_transactions ∅ <ø> (∅)
transferhook_lifecycle ∅ <ø> (∅)
transferhook_keeper 100.00% <ø> (ø)
transferhook_queries 60.00% <ø> (ø)
tradeshield_transactions 1.70% <0.00%> (-0.13%) ⬇️
tradeshield_lifecycle ∅ <ø> (∅)
tradeshield_keeper 76.92% <ø> (ø)
tradeshield_queries 8.26% <ø> (ø)

x/tradeshield/keeper/msg_cancel_spot-orders.go Outdated Show resolved Hide resolved
x/tradeshield/client/cli/tx_pending_spot_order.go Outdated Show resolved Hide resolved
proto/elys/tradeshield/tx.proto Show resolved Hide resolved
proto/elys/tradeshield/tx.proto Outdated Show resolved Hide resolved
return sdk.NewEvent(TypeEvtCloseSpotOrder,
sdk.NewAttribute("order_type", order.OrderType.String()),
sdk.NewAttribute("owner_address", order.OwnerAddress),
sdk.NewAttribute("id", strconv.FormatInt(int64(order.OrderId), 10)),
Copy link
Contributor

Choose a reason for hiding this comment

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

@cryptokage1996 we need to add all the order fields as event attributes part of the event we are emitting.

return sdk.NewEvent(TypeEvtCloseSpotOrder,
sdk.NewAttribute("order_type", order.PerpetualOrderType.String()),
sdk.NewAttribute("owner_address", order.OwnerAddress),
sdk.NewAttribute("id", strconv.FormatInt(int64(order.OrderId), 10)),
Copy link
Contributor

Choose a reason for hiding this comment

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

@cryptokage1996 we need to add all the order fields as event attributes part of the event we are emitting.

@cosmic-vagabond cosmic-vagabond merged commit ea84537 into main Oct 10, 2024
74 of 75 checks passed
@cosmic-vagabond cosmic-vagabond deleted the DEV-2015-cancel-spot-orders branch October 10, 2024 14:11
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