Skip to content

Commit

Permalink
feat: Update version of Vega (#371)
Browse files Browse the repository at this point in the history
* feat: Update version of Vega
  • Loading branch information
TomMcL authored Mar 23, 2023
1 parent 9bf343a commit 0587fa4
Show file tree
Hide file tree
Showing 6 changed files with 569 additions and 565 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VEGA_SIM_VEGA_TAG=15df8ef44f7fe91845eaa8669be89493e0249b26
VEGA_SIM_VEGA_TAG=1c38f5b74e8f9aef12230dba4b17e57ed8e2c245
VEGA_SIM_CONSOLE_TAG=develop
VEGA_DEFAULT_KEY_NAME='Key 1'
VEGA_SIM_NETWORKS_INTERNAL_TAG=main
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pipeline {
timeout(time: 50, unit: 'MINUTES')
}
parameters {
string( name: 'VEGA_VERSION', defaultValue: '15df8ef44f7fe91845eaa8669be89493e0249b26',
string( name: 'VEGA_VERSION', defaultValue: '1c38f5b74e8f9aef12230dba4b17e57ed8e2c245',
description: 'Git branch, tag or hash of the vegaprotocol/vega repository')
string( name: 'JENKINS_SHARED_LIB_BRANCH', defaultValue: 'main',
description: 'Git branch, tag or hash of the vegaprotocol/jenkins-shared-library repository')
Expand Down
14 changes: 9 additions & 5 deletions vega_sim/api/data_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,19 @@ def list_orders(
_type_: _description_
"""

request = data_node_protos_v2.trading_data.ListOrdersRequest(live_only=live_only)
order_filter = data_node_protos_v2.trading_data.OrderFilter(live_only=live_only)

if reference is not None:
order_filter.reference = reference

for attr, val in [
("market_id", market_id),
("party_id", party_id),
("reference", reference),
("market_ids", [market_id] if market_id is not None else None),
("party_ids", [party_id] if party_id is not None else None),
]:
if val is not None:
setattr(request, attr, val)
getattr(order_filter, attr).extend(val)

request = data_node_protos_v2.trading_data.ListOrdersRequest(filter=order_filter)

return unroll_v2_pagination(
base_request=request,
Expand Down
1,044 changes: 522 additions & 522 deletions vega_sim/proto/data_node/api/v2/trading_data_pb2.py

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions vega_sim/proto/vega/checkpoint/v1/checkpoint_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0587fa4

Please sign in to comment.