@agg-build/sdk 4.7.4 → 4.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +15 -2
- package/dist/index.d.ts +15 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2183,7 +2183,16 @@ type SignatureRequestType = "eip712" | "personal_sign"
|
|
|
2183
2183
|
* and that is expected: reject it and the server falls back to asking the
|
|
2184
2184
|
* user to broadcast a plain approve instead.
|
|
2185
2185
|
*/
|
|
2186
|
-
| "eip7702_authorization"
|
|
2186
|
+
| "eip7702_authorization"
|
|
2187
|
+
/**
|
|
2188
|
+
* A Gnosis Safe transaction relayed through Polymarket — a legacy Polymarket
|
|
2189
|
+
* wallet funding a fill. The payload is the SafeTx as EIP-712 typed data,
|
|
2190
|
+
* but the wallet must `personal_sign` the RAW 32 bytes of
|
|
2191
|
+
* `hashTypedData(payload)` (`signMessage({ message: { raw: hash } })`):
|
|
2192
|
+
* Polymarket's relayer only accepts that shape. `payload.safeTxHash` carries
|
|
2193
|
+
* the digest for convenience; the server recomputes it from the typed data.
|
|
2194
|
+
*/
|
|
2195
|
+
| "safe_tx";
|
|
2187
2196
|
/** One payload the client must sign before a fill can proceed. */
|
|
2188
2197
|
interface SignatureRequest {
|
|
2189
2198
|
/** Echo this back with the signature. */
|
|
@@ -2207,6 +2216,10 @@ interface SignatureRequest {
|
|
|
2207
2216
|
*
|
|
2208
2217
|
* - `eip712` — `signTypedData` over `payload`.
|
|
2209
2218
|
* - `personal_sign` — `personal_sign` over `payload`.
|
|
2219
|
+
* - `safe_tx` — `personal_sign` over the RAW 32 bytes of
|
|
2220
|
+
* `hashTypedData(payload)` (viem: `signMessage({ message: { raw: hash } })`,
|
|
2221
|
+
* MetaMask: `personal_sign` with the hex hash). The wallet shows a hash, not
|
|
2222
|
+
* a structured prompt — that is what Polymarket's own relayer requires.
|
|
2210
2223
|
* - `hl_l1_action` — Hyperliquid L1 action, EIP-712 in phantom-agent form.
|
|
2211
2224
|
* - `eip7702_authorization` — an EIP-7702 authorization over
|
|
2212
2225
|
* `{ contractAddress, chainId, nonce }`. This is a signature over a RAW
|
|
@@ -3633,7 +3646,7 @@ interface SmartRouteAllocation {
|
|
|
3633
3646
|
venue: string;
|
|
3634
3647
|
amount: number;
|
|
3635
3648
|
sourceTokenAddress?: string;
|
|
3636
|
-
custodyKind?: "EOA" | "DEPOSIT_WALLET";
|
|
3649
|
+
custodyKind?: "EOA" | "DEPOSIT_WALLET" | "POLYMARKET_LEGACY";
|
|
3637
3650
|
custodyAddress?: string;
|
|
3638
3651
|
exactToken?: boolean;
|
|
3639
3652
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -2183,7 +2183,16 @@ type SignatureRequestType = "eip712" | "personal_sign"
|
|
|
2183
2183
|
* and that is expected: reject it and the server falls back to asking the
|
|
2184
2184
|
* user to broadcast a plain approve instead.
|
|
2185
2185
|
*/
|
|
2186
|
-
| "eip7702_authorization"
|
|
2186
|
+
| "eip7702_authorization"
|
|
2187
|
+
/**
|
|
2188
|
+
* A Gnosis Safe transaction relayed through Polymarket — a legacy Polymarket
|
|
2189
|
+
* wallet funding a fill. The payload is the SafeTx as EIP-712 typed data,
|
|
2190
|
+
* but the wallet must `personal_sign` the RAW 32 bytes of
|
|
2191
|
+
* `hashTypedData(payload)` (`signMessage({ message: { raw: hash } })`):
|
|
2192
|
+
* Polymarket's relayer only accepts that shape. `payload.safeTxHash` carries
|
|
2193
|
+
* the digest for convenience; the server recomputes it from the typed data.
|
|
2194
|
+
*/
|
|
2195
|
+
| "safe_tx";
|
|
2187
2196
|
/** One payload the client must sign before a fill can proceed. */
|
|
2188
2197
|
interface SignatureRequest {
|
|
2189
2198
|
/** Echo this back with the signature. */
|
|
@@ -2207,6 +2216,10 @@ interface SignatureRequest {
|
|
|
2207
2216
|
*
|
|
2208
2217
|
* - `eip712` — `signTypedData` over `payload`.
|
|
2209
2218
|
* - `personal_sign` — `personal_sign` over `payload`.
|
|
2219
|
+
* - `safe_tx` — `personal_sign` over the RAW 32 bytes of
|
|
2220
|
+
* `hashTypedData(payload)` (viem: `signMessage({ message: { raw: hash } })`,
|
|
2221
|
+
* MetaMask: `personal_sign` with the hex hash). The wallet shows a hash, not
|
|
2222
|
+
* a structured prompt — that is what Polymarket's own relayer requires.
|
|
2210
2223
|
* - `hl_l1_action` — Hyperliquid L1 action, EIP-712 in phantom-agent form.
|
|
2211
2224
|
* - `eip7702_authorization` — an EIP-7702 authorization over
|
|
2212
2225
|
* `{ contractAddress, chainId, nonce }`. This is a signature over a RAW
|
|
@@ -3633,7 +3646,7 @@ interface SmartRouteAllocation {
|
|
|
3633
3646
|
venue: string;
|
|
3634
3647
|
amount: number;
|
|
3635
3648
|
sourceTokenAddress?: string;
|
|
3636
|
-
custodyKind?: "EOA" | "DEPOSIT_WALLET";
|
|
3649
|
+
custodyKind?: "EOA" | "DEPOSIT_WALLET" | "POLYMARKET_LEGACY";
|
|
3637
3650
|
custodyAddress?: string;
|
|
3638
3651
|
exactToken?: boolean;
|
|
3639
3652
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "Vanilla TypeScript client for the AGG prediction market aggregator (auth, markets, orderbooks, charts, trading, managed execution, WebSockets). Works in browsers, Node.js, and React Native.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|