Skip to content

Commit 5a0f4ad

Browse files
arturbegclaude
andcommitted
Fix devnet1 OrdersGateway: stale default broke EIP-712 signing (PRO-164)
The non-mainnet default verifyingContract (0x5a0a...) is the older reya_cronos deployment and is stale for devnet1, where the live OrdersGateway is 0x7Ec89E555c771D2B5939aBE5C4E4291852633D4D — confirmed by reya-devops (ORDERS_GATEWAY_PROXY_ADDRESS across every devnet1 service incl. ws-exec) and the reya-deployments reya_devnet fork test. With REYA_ORDERS_GATEWAY unset, the SDK signed against the wrong contract and the matching engine rejected every order with an opaque "invalid signature" error. - config.py: point the non-mainnet baked-in default at the devnet1 gateway. - .env.example: set REYA_ORDERS_GATEWAY for devnet1 (+ commented mainnet value) so following the example works out of the box. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent c02ffc6 commit 5a0f4ad

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ CHAIN_ID=89346162
33
REYA_WS_URL="wss://websocket-devnet.reya-cronos.network/"
44
REYA_WS_EXEC_URL="wss://ws-exec-devnet.reya-cronos.network"
55
REYA_API_URL="https://api-devnet.reya-cronos.network/v2"
6+
# OrdersGateway proxy = the EIP-712 verifyingContract. Set this on devnet1: the
7+
# baked-in fallback is stale here, so leaving it unset makes the matching engine
8+
# reject every order with an opaque "invalid signature" error.
9+
REYA_ORDERS_GATEWAY="0x7Ec89E555c771D2B5939aBE5C4E4291852633D4D"
610

711
### Reya Network (mainnet)
812
#CHAIN_ID=1729
913
#REYA_WS_URL="wss://ws.reya.xyz/"
1014
#REYA_WS_EXEC_URL="wss://ws-exec.reya.xyz"
1115
#REYA_API_URL="https://api.reya.xyz/v2"
16+
#REYA_ORDERS_GATEWAY="0xfc8c96be87da63cecddbf54abfa7b13ee8044739"
1217

1318
### Staging (uses mainnet chain ID 1729)
1419
#CHAIN_ID=1729

sdk/reya_rest_api/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def default_orders_gateway_address(self) -> str:
6666
if self.is_mainnet:
6767
return "0xfc8c96be87da63cecddbf54abfa7b13ee8044739" # Mainnet address
6868
else:
69-
return "0x5a0ac2f89e0bdeafc5c549e354842210a3e87ca5" # Testnet address
69+
return "0x7Ec89E555c771D2B5939aBE5C4E4291852633D4D" # devnet1 (perpOB testnet)
7070

7171
@classmethod
7272
def from_env(cls) -> "TradingConfig":

0 commit comments

Comments
 (0)