Skip to content

Commit

Permalink
feat: set pyv1 client metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
samtin0x committed Oct 17, 2024
1 parent c1bd996 commit 555c2a2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion v4-client-py-deprecated/v4_client_py/clients/modules/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
from ...chain.aerial.client.utils import prepare_and_broadcast_basic_transaction


PY_V1_CLIENT_ID = 1


class Post:
def __init__(
self,
Expand Down Expand Up @@ -134,7 +137,7 @@ def place_order(
subticks=subticks,
time_in_force=time_in_force,
reduce_only=reduce_only,
client_metadata=client_metadata,
client_metadata=PY_V1_CLIENT_ID,
condition_type=condition_type,
conditional_order_trigger_subticks=conditional_order_trigger_subticks,
)
Expand Down
1 change: 1 addition & 0 deletions v4-client-py-v2/dydx_v4_client/node/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

PY_V2_CLIENT_ID = 2


def order(
order_id: OrderId,
side: Order.Side,
Expand Down
2 changes: 1 addition & 1 deletion v4-client-py-v2/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dydx-v4-client"
version = "1.1.0"
version = "1.1.1"
description = ""
authors = [
"Saul Martin <saulmartin1@pm.me>",
Expand Down
1 change: 0 additions & 1 deletion v4-client-py-v2/tests/test_mutating_node_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ async def test_order(
placed = await node_client.place_order(
wallet,
test_order,

)
assert_successful_broadcast(placed)

Expand Down
2 changes: 1 addition & 1 deletion v4-client-py-v2/tests/test_v4_proto.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
)
from tests.conftest import TEST_ADDRESS

SERIALIZED_PLACE_ORDER = b"\nF\n1\n-\n+dydx14zzueazeh0hj67cghhf9jypslcf9sh2n5k6art\x18@\x10\x01\x18\x80\xad\xe2\x04 \x80\xa0\xbe\x81\x95\x015\t\x9cYf"
SERIALIZED_PLACE_ORDER = b"\nH\n1\n-\n+dydx14zzueazeh0hj67cghhf9jypslcf9sh2n5k6art\x18@\x10\x01\x18\x80\xad\xe2\x04 \x80\xa0\xbe\x81\x95\x015\t\x9cYfH\x02"
SERIALIZED_CANCEL_ORDER = (
b"\n1\n-\n+dydx14zzueazeh0hj67cghhf9jypslcf9sh2n5k6art\x18@\x1d\t\x9cYf"
)
Expand Down

0 comments on commit 555c2a2

Please sign in to comment.