diff --git a/examples/signatureTypes.ts b/examples/signatureTypes.ts index 3f546b0..af3d79d 100644 --- a/examples/signatureTypes.ts +++ b/examples/signatureTypes.ts @@ -42,9 +42,21 @@ async function main() { gnosisSafeAddress, ); + // Client used with a Polymarket Deposit Wallet: Signature type 3 + const depositWalletAddress = "0x..."; + const depositWalletClient = new ClobClient( + host, + chainId, + wallet, + creds, + SignatureType.POLY_DEPOSIT_WALLET, + depositWalletAddress, + ); + void clobClient; void polyProxyClient; void polyGnosisSafeClient; + void depositWalletClient; } main(); diff --git a/src/order-utils/model/signature-types.model.ts b/src/order-utils/model/signature-types.model.ts index f5cab7b..cc536bb 100644 --- a/src/order-utils/model/signature-types.model.ts +++ b/src/order-utils/model/signature-types.model.ts @@ -13,4 +13,10 @@ export enum SignatureType { * EIP712 signatures signed by EOAs that own Polymarket Gnosis safes */ POLY_GNOSIS_SAFE = 2, + + /** + * EIP712 signatures signed by EOAs that own Polymarket Deposit Wallets. + * Validated on-chain via ERC-1271 isValidSignature() with ERC-7739 nested domain wrapping. + */ + POLY_DEPOSIT_WALLET = 3, }