feat: update order utils to v2
Merged
IB
5mo ago+1580+1580+0123456789012345678901234567890123456789-1365-1365-0123456789012345678901234567890123456789
Summary by cubic
Upgrade py_order_utils to Order V2 with EIP‑712 domain version "2" and a new order schema. Updates signatures/hashes and CI (Ubuntu 24.04 with actions/checkout@v6 and actions/setup-python@v6).
-
New Features
- EIP‑712 domain version "2".
- V2 fields: millisecond
timestamp(auto-filled),metadata/builderas bytes32 defaulting toZERO_BYTES32. Removedtaker,nonce,feeRateBps;expirationmoved toSignedOrder.expiration. - Updated
abi/Exchange.json, test addresses, and expected struct hashes/signatures. - Version bumps: package
0.3.6,kuest-py-eip712-structs0.0.4.
-
Migration
- Do not pass
taker,nonce,feeRateBps, orexpirationinOrderData. Settimestamp(ms) or let the builder auto-fill;metadataandbuilderare optional. - Read
expirationfromSignedOrder.expiration. Verify EIP‑712 with domain version "2" and the new struct; expect new hashes/signatures.
- Do not pass