Skip to main content

GPv2Order API

The GPv2Order library provides core order data structures and utilities for Gnosis Protocol v2, handling order hashing, UID packing, and parameter extraction.

Data Structure

Constants

Functions

hash

Generates the EIP-712 signing digest for an order.

actualReceiver

Resolves the receiver address, returning the owner if receiver is address(0).

packOrderUidParams

Encodes the 56-byte order UID from its components.

extractOrderUidParams

Decodes UID components from a packed order UID.

Order UID Format

The 56-byte UID is packed as: All functions use assembly optimization for gas efficiency.
Last modified on March 4, 2026