@dimes-dot-fi/sdk 1.4.3 → 2.0.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/LICENSE +21 -0
- package/README.md +88 -19
- package/dist/{aliases-C2l_JZX_.d.cts → aliases-BJyM8ydu.d.cts} +288 -4
- package/dist/{aliases-C2l_JZX_.d.ts → aliases-BJyM8ydu.d.ts} +288 -4
- package/dist/{chunk-UHQZSMUD.cjs → chunk-53U53KZ2.cjs} +5 -1
- package/dist/chunk-53U53KZ2.cjs.map +1 -0
- package/dist/chunk-5VHDXPRV.mjs +240 -0
- package/dist/chunk-5VHDXPRV.mjs.map +1 -0
- package/dist/{chunk-DYPABUKC.cjs → chunk-72LTVPD2.cjs} +16 -1
- package/dist/chunk-72LTVPD2.cjs.map +1 -0
- package/dist/{chunk-COSLZ5TM.cjs → chunk-DIH3ORFA.cjs} +38 -16
- package/dist/chunk-DIH3ORFA.cjs.map +1 -0
- package/dist/chunk-FAW2C5AM.cjs +240 -0
- package/dist/chunk-FAW2C5AM.cjs.map +1 -0
- package/dist/{chunk-SGA6OZEU.mjs → chunk-NHAIL4SN.mjs} +34 -12
- package/dist/chunk-NHAIL4SN.mjs.map +1 -0
- package/dist/{chunk-4MO3HKMS.mjs → chunk-PK2PRTQW.mjs} +5 -1
- package/dist/chunk-PK2PRTQW.mjs.map +1 -0
- package/dist/{chunk-BVILILIV.mjs → chunk-PZCBUVPD.mjs} +16 -1
- package/dist/chunk-PZCBUVPD.mjs.map +1 -0
- package/dist/contract/index.cjs +5534 -305
- package/dist/contract/index.cjs.map +1 -1
- package/dist/contract/index.d.cts +68 -10
- package/dist/contract/index.d.ts +68 -10
- package/dist/contract/index.mjs +5524 -295
- package/dist/contract/index.mjs.map +1 -1
- package/dist/{dimes-client-ty6xwk0b.d.cts → dimes-client-DYFvnZUx.d.ts} +57 -10
- package/dist/{dimes-client-u5wLYVfp.d.ts → dimes-client-DZPhU1CG.d.cts} +57 -10
- package/dist/{dimes-error-5ldDx2_G.d.cts → dimes-error-BlQWPqhQ.d.cts} +2 -2
- package/dist/{dimes-error-D2RVknPr.d.ts → dimes-error-DBKV5bfr.d.ts} +2 -2
- package/dist/index.cjs +164 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +151 -12
- package/dist/index.d.ts +151 -12
- package/dist/index.mjs +161 -9
- package/dist/index.mjs.map +1 -1
- package/dist/quote-BFNgVsY-.d.ts +39 -0
- package/dist/quote-CanwfT9m.d.cts +39 -0
- package/dist/react/index.cjs +416 -18
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +165 -8
- package/dist/react/index.d.ts +165 -8
- package/dist/react/index.mjs +414 -16
- package/dist/react/index.mjs.map +1 -1
- package/dist/{types-CM14Dx5b.d.cts → types-ClHQbIcY.d.ts} +3 -3
- package/dist/{types-CVcrVq0A.d.ts → types-Co-2bQSi.d.cts} +3 -3
- package/dist/ws/index.cjs +4 -230
- package/dist/ws/index.cjs.map +1 -1
- package/dist/ws/index.d.cts +3 -3
- package/dist/ws/index.d.ts +3 -3
- package/dist/ws/index.mjs +5 -231
- package/dist/ws/index.mjs.map +1 -1
- package/package.json +43 -4
- package/dist/chunk-4MO3HKMS.mjs.map +0 -1
- package/dist/chunk-BVILILIV.mjs.map +0 -1
- package/dist/chunk-COSLZ5TM.cjs.map +0 -1
- package/dist/chunk-DYPABUKC.cjs.map +0 -1
- package/dist/chunk-SGA6OZEU.mjs.map +0 -1
- package/dist/chunk-UHQZSMUD.cjs.map +0 -1
- package/dist/quote-DoRJUXld.d.cts +0 -30
- package/dist/quote-GCNVcEoo.d.ts +0 -30
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Abi, Address, Hex } from 'viem';
|
|
2
2
|
export { Address, Hex } from 'viem';
|
|
3
|
-
import {
|
|
4
|
-
import { D as DimesClient } from '../dimes-client-
|
|
5
|
-
import {
|
|
3
|
+
import { Q as Quote, d as ContractInfo } from '../aliases-BJyM8ydu.cjs';
|
|
4
|
+
import { D as DimesClient } from '../dimes-client-DZPhU1CG.cjs';
|
|
5
|
+
import { D as DimesContractError } from '../dimes-error-BlQWPqhQ.cjs';
|
|
6
6
|
|
|
7
7
|
declare const vaultAbi: Abi;
|
|
8
8
|
declare const erc20Abi: readonly [{
|
|
@@ -71,9 +71,16 @@ interface RequestCloseTxData {
|
|
|
71
71
|
functionName: "requestClose";
|
|
72
72
|
args: readonly [`0x${string}`];
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
interface RequestPartialCloseTxData {
|
|
75
|
+
address: `0x${string}`;
|
|
76
|
+
abi: Abi;
|
|
77
|
+
functionName: "requestPartialClose";
|
|
78
|
+
args: readonly [`0x${string}`, bigint];
|
|
79
|
+
}
|
|
80
|
+
declare function buildCreatePositionTx(quote: Quote): CreatePositionTxData;
|
|
75
81
|
declare function buildApproveTx(usdcAddress: `0x${string}`, spender: `0x${string}`, amount: bigint): ApproveTxData;
|
|
76
82
|
declare function buildRequestCloseTx(vaultAddress: `0x${string}`, positionKey: `0x${string}`): RequestCloseTxData;
|
|
83
|
+
declare function buildRequestPartialCloseTx(vaultAddress: `0x${string}`, positionKey: `0x${string}`, closeTokenUnits: bigint): RequestPartialCloseTxData;
|
|
77
84
|
|
|
78
85
|
/**
|
|
79
86
|
* Helpers for opening and closing positions from a Polymarket **deposit wallet** (DW).
|
|
@@ -134,13 +141,13 @@ declare const depositWalletBatchTypes: {
|
|
|
134
141
|
/**
|
|
135
142
|
* Build the three inner calls for a push-funded `createPosition`.
|
|
136
143
|
*
|
|
137
|
-
* The relayer submits these atomically; `
|
|
144
|
+
* The relayer submits these atomically; `quote.totalUserAmountUsdcUnits` is the
|
|
138
145
|
* contract-ready amount (collateral + fees) used for both the reservation and the transfer.
|
|
139
146
|
*
|
|
140
|
-
* @param
|
|
147
|
+
* @param quote - the signed quote returned by the quote endpoint
|
|
141
148
|
* @param pUsdAddress - the pUSD (USDC) token address (from `GET /contract-info`)
|
|
142
149
|
*/
|
|
143
|
-
declare function buildPushFundedCreateCalls(
|
|
150
|
+
declare function buildPushFundedCreateCalls(quote: Quote, pUsdAddress: string): DepositWalletCall[];
|
|
144
151
|
/**
|
|
145
152
|
* Build the single inner call for a deposit-wallet `requestClose`.
|
|
146
153
|
*
|
|
@@ -148,6 +155,14 @@ declare function buildPushFundedCreateCalls(offer: Offer, pUsdAddress: string):
|
|
|
148
155
|
* @param positionKey - the `on_chain_position_key` field from `GET /positions`
|
|
149
156
|
*/
|
|
150
157
|
declare function buildRequestCloseCalls(vaultAddress: string, positionKey: string): DepositWalletCall[];
|
|
158
|
+
/**
|
|
159
|
+
* Build the single inner call for a deposit-wallet `requestPartialClose`.
|
|
160
|
+
*
|
|
161
|
+
* @param vaultAddress - the vault contract address
|
|
162
|
+
* @param positionKey - the `on_chain_position_key` field from `GET /positions`
|
|
163
|
+
* @param closeTokenUnits - the slice to close, in token units (1000000 units = 1 token)
|
|
164
|
+
*/
|
|
165
|
+
declare function buildRequestPartialCloseCalls(vaultAddress: string, positionKey: string, closeTokenUnits: bigint): DepositWalletCall[];
|
|
151
166
|
interface BuildBatchParams {
|
|
152
167
|
depositWalletAddress: string;
|
|
153
168
|
/** Current `nonce()` read from the deposit wallet. */
|
|
@@ -226,10 +241,53 @@ interface BuildRelayerHeadersParams {
|
|
|
226
241
|
*/
|
|
227
242
|
declare function buildRelayerAuthHeaders(params: BuildRelayerHeadersParams): Promise<Record<string, string>>;
|
|
228
243
|
|
|
229
|
-
declare function recoverCreatePositionSigner(
|
|
244
|
+
declare function recoverCreatePositionSigner(quote: Quote, userAddress: `0x${string}`): Promise<`0x${string}`>;
|
|
230
245
|
declare function resolveExpectedSigner(apiSigner: string | undefined): `0x${string}` | undefined;
|
|
231
|
-
|
|
246
|
+
/**
|
|
247
|
+
* Recover the quote's contract signer and assert it matches `expectedSigner`,
|
|
248
|
+
* throwing `DimesContractError("invalid_signer")` on mismatch.
|
|
249
|
+
*
|
|
250
|
+
* Use this when you already hold the authorized signer address (e.g. from a cached
|
|
251
|
+
* `GET /contract-info` query) and don't want to plumb a {@link DimesClient} through.
|
|
252
|
+
* {@link verifyQuoteSignature} is the client-based convenience that fetches and caches
|
|
253
|
+
* the signer for you, then delegates here.
|
|
254
|
+
*/
|
|
255
|
+
declare function assertQuoteSigner(quote: Quote, userAddress: `0x${string}`, expectedSigner: `0x${string}`): Promise<void>;
|
|
256
|
+
/**
|
|
257
|
+
* Fetch `GET /contract-info` once per {@link DimesClient} and cache it. Use this to read
|
|
258
|
+
* any on-chain config (signer, vault, pUSD token address) without re-hitting the API.
|
|
259
|
+
*/
|
|
260
|
+
declare function getCachedContractInfo(client: DimesClient): Promise<ContractInfo>;
|
|
261
|
+
declare function verifyQuoteSignature(client: DimesClient, quote: Quote, userAddress: `0x${string}`): Promise<void>;
|
|
262
|
+
/** @deprecated Renamed to {@link verifyQuoteSignature}. Kept as an alias for backward compatibility. */
|
|
263
|
+
declare const verifyOfferSignature: typeof verifyQuoteSignature;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Verify a quote's signature against the on-chain authority (using the client's
|
|
267
|
+
* cached `/contract-info`) and then build the `createPosition` transaction.
|
|
268
|
+
*
|
|
269
|
+
* Prefer this over the raw {@link buildCreatePositionTx} so a tampered or stale
|
|
270
|
+
* quote fails fast in the client instead of reverting on-chain. Throws
|
|
271
|
+
* `DimesContractError("invalid_signer")` if the signature does not verify.
|
|
272
|
+
*
|
|
273
|
+
* @param userAddress - the wallet that will submit the tx (the signed `user`,
|
|
274
|
+
* bound to `msg.sender` by the contract).
|
|
275
|
+
*/
|
|
276
|
+
declare function buildVerifiedCreatePositionTx(client: DimesClient, quote: Quote, userAddress: `0x${string}`): Promise<CreatePositionTxData>;
|
|
277
|
+
/**
|
|
278
|
+
* Verify a quote's signature (see {@link buildVerifiedCreatePositionTx}) and then
|
|
279
|
+
* build the push-funded deposit-wallet calls. Prefer this over the raw
|
|
280
|
+
* {@link buildPushFundedCreateCalls}: it resolves the correct pUSD token address from
|
|
281
|
+
* the client's cached `GET /contract-info`, so the transfer can never target the wrong
|
|
282
|
+
* stablecoin (e.g. USDC.e instead of pUSD).
|
|
283
|
+
*
|
|
284
|
+
* @param userAddress - the deposit wallet that will be `msg.sender` on-chain.
|
|
285
|
+
* @param pUsdAddress - optional override for the pUSD (USDC) token address. Omit it to
|
|
286
|
+
* use the canonical address from `GET /contract-info`; only pass it to force a
|
|
287
|
+
* specific token.
|
|
288
|
+
*/
|
|
289
|
+
declare function buildVerifiedPushFundedCreateCalls(client: DimesClient, quote: Quote, userAddress: `0x${string}`, pUsdAddress?: string): Promise<DepositWalletCall[]>;
|
|
232
290
|
|
|
233
291
|
declare function formatContractError(err: unknown): DimesContractError;
|
|
234
292
|
|
|
235
|
-
export { type ApproveTxData, type CreatePositionTxData, type DepositWalletBatch, type DepositWalletCall, type RequestCloseTxData, buildApproveTx, buildCreatePositionTx, buildDepositWalletBatch, buildPushFundedCreateCalls, buildRelayerAuthHeaders, buildRelayerSubmitPayload, buildRequestCloseCalls, buildRequestCloseTx, depositWalletBatchTypes, depositWalletFactoryAddress, erc20Abi, formatContractError, getDepositWalletBatchTypedData, polymarketRelayerBaseUrl, recoverCreatePositionSigner, resolveExpectedSigner, toAddress, toHex, vaultAbi, verifyOfferSignature };
|
|
293
|
+
export { type ApproveTxData, type CreatePositionTxData, type DepositWalletBatch, type DepositWalletCall, type RequestCloseTxData, type RequestPartialCloseTxData, assertQuoteSigner, buildApproveTx, buildCreatePositionTx, buildDepositWalletBatch, buildPushFundedCreateCalls, buildRelayerAuthHeaders, buildRelayerSubmitPayload, buildRequestCloseCalls, buildRequestCloseTx, buildRequestPartialCloseCalls, buildRequestPartialCloseTx, buildVerifiedCreatePositionTx, buildVerifiedPushFundedCreateCalls, depositWalletBatchTypes, depositWalletFactoryAddress, erc20Abi, formatContractError, getCachedContractInfo, getDepositWalletBatchTypedData, polymarketRelayerBaseUrl, recoverCreatePositionSigner, resolveExpectedSigner, toAddress, toHex, vaultAbi, verifyOfferSignature, verifyQuoteSignature };
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Abi, Address, Hex } from 'viem';
|
|
2
2
|
export { Address, Hex } from 'viem';
|
|
3
|
-
import {
|
|
4
|
-
import { D as DimesClient } from '../dimes-client-
|
|
5
|
-
import {
|
|
3
|
+
import { Q as Quote, d as ContractInfo } from '../aliases-BJyM8ydu.js';
|
|
4
|
+
import { D as DimesClient } from '../dimes-client-DYFvnZUx.js';
|
|
5
|
+
import { D as DimesContractError } from '../dimes-error-DBKV5bfr.js';
|
|
6
6
|
|
|
7
7
|
declare const vaultAbi: Abi;
|
|
8
8
|
declare const erc20Abi: readonly [{
|
|
@@ -71,9 +71,16 @@ interface RequestCloseTxData {
|
|
|
71
71
|
functionName: "requestClose";
|
|
72
72
|
args: readonly [`0x${string}`];
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
interface RequestPartialCloseTxData {
|
|
75
|
+
address: `0x${string}`;
|
|
76
|
+
abi: Abi;
|
|
77
|
+
functionName: "requestPartialClose";
|
|
78
|
+
args: readonly [`0x${string}`, bigint];
|
|
79
|
+
}
|
|
80
|
+
declare function buildCreatePositionTx(quote: Quote): CreatePositionTxData;
|
|
75
81
|
declare function buildApproveTx(usdcAddress: `0x${string}`, spender: `0x${string}`, amount: bigint): ApproveTxData;
|
|
76
82
|
declare function buildRequestCloseTx(vaultAddress: `0x${string}`, positionKey: `0x${string}`): RequestCloseTxData;
|
|
83
|
+
declare function buildRequestPartialCloseTx(vaultAddress: `0x${string}`, positionKey: `0x${string}`, closeTokenUnits: bigint): RequestPartialCloseTxData;
|
|
77
84
|
|
|
78
85
|
/**
|
|
79
86
|
* Helpers for opening and closing positions from a Polymarket **deposit wallet** (DW).
|
|
@@ -134,13 +141,13 @@ declare const depositWalletBatchTypes: {
|
|
|
134
141
|
/**
|
|
135
142
|
* Build the three inner calls for a push-funded `createPosition`.
|
|
136
143
|
*
|
|
137
|
-
* The relayer submits these atomically; `
|
|
144
|
+
* The relayer submits these atomically; `quote.totalUserAmountUsdcUnits` is the
|
|
138
145
|
* contract-ready amount (collateral + fees) used for both the reservation and the transfer.
|
|
139
146
|
*
|
|
140
|
-
* @param
|
|
147
|
+
* @param quote - the signed quote returned by the quote endpoint
|
|
141
148
|
* @param pUsdAddress - the pUSD (USDC) token address (from `GET /contract-info`)
|
|
142
149
|
*/
|
|
143
|
-
declare function buildPushFundedCreateCalls(
|
|
150
|
+
declare function buildPushFundedCreateCalls(quote: Quote, pUsdAddress: string): DepositWalletCall[];
|
|
144
151
|
/**
|
|
145
152
|
* Build the single inner call for a deposit-wallet `requestClose`.
|
|
146
153
|
*
|
|
@@ -148,6 +155,14 @@ declare function buildPushFundedCreateCalls(offer: Offer, pUsdAddress: string):
|
|
|
148
155
|
* @param positionKey - the `on_chain_position_key` field from `GET /positions`
|
|
149
156
|
*/
|
|
150
157
|
declare function buildRequestCloseCalls(vaultAddress: string, positionKey: string): DepositWalletCall[];
|
|
158
|
+
/**
|
|
159
|
+
* Build the single inner call for a deposit-wallet `requestPartialClose`.
|
|
160
|
+
*
|
|
161
|
+
* @param vaultAddress - the vault contract address
|
|
162
|
+
* @param positionKey - the `on_chain_position_key` field from `GET /positions`
|
|
163
|
+
* @param closeTokenUnits - the slice to close, in token units (1000000 units = 1 token)
|
|
164
|
+
*/
|
|
165
|
+
declare function buildRequestPartialCloseCalls(vaultAddress: string, positionKey: string, closeTokenUnits: bigint): DepositWalletCall[];
|
|
151
166
|
interface BuildBatchParams {
|
|
152
167
|
depositWalletAddress: string;
|
|
153
168
|
/** Current `nonce()` read from the deposit wallet. */
|
|
@@ -226,10 +241,53 @@ interface BuildRelayerHeadersParams {
|
|
|
226
241
|
*/
|
|
227
242
|
declare function buildRelayerAuthHeaders(params: BuildRelayerHeadersParams): Promise<Record<string, string>>;
|
|
228
243
|
|
|
229
|
-
declare function recoverCreatePositionSigner(
|
|
244
|
+
declare function recoverCreatePositionSigner(quote: Quote, userAddress: `0x${string}`): Promise<`0x${string}`>;
|
|
230
245
|
declare function resolveExpectedSigner(apiSigner: string | undefined): `0x${string}` | undefined;
|
|
231
|
-
|
|
246
|
+
/**
|
|
247
|
+
* Recover the quote's contract signer and assert it matches `expectedSigner`,
|
|
248
|
+
* throwing `DimesContractError("invalid_signer")` on mismatch.
|
|
249
|
+
*
|
|
250
|
+
* Use this when you already hold the authorized signer address (e.g. from a cached
|
|
251
|
+
* `GET /contract-info` query) and don't want to plumb a {@link DimesClient} through.
|
|
252
|
+
* {@link verifyQuoteSignature} is the client-based convenience that fetches and caches
|
|
253
|
+
* the signer for you, then delegates here.
|
|
254
|
+
*/
|
|
255
|
+
declare function assertQuoteSigner(quote: Quote, userAddress: `0x${string}`, expectedSigner: `0x${string}`): Promise<void>;
|
|
256
|
+
/**
|
|
257
|
+
* Fetch `GET /contract-info` once per {@link DimesClient} and cache it. Use this to read
|
|
258
|
+
* any on-chain config (signer, vault, pUSD token address) without re-hitting the API.
|
|
259
|
+
*/
|
|
260
|
+
declare function getCachedContractInfo(client: DimesClient): Promise<ContractInfo>;
|
|
261
|
+
declare function verifyQuoteSignature(client: DimesClient, quote: Quote, userAddress: `0x${string}`): Promise<void>;
|
|
262
|
+
/** @deprecated Renamed to {@link verifyQuoteSignature}. Kept as an alias for backward compatibility. */
|
|
263
|
+
declare const verifyOfferSignature: typeof verifyQuoteSignature;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Verify a quote's signature against the on-chain authority (using the client's
|
|
267
|
+
* cached `/contract-info`) and then build the `createPosition` transaction.
|
|
268
|
+
*
|
|
269
|
+
* Prefer this over the raw {@link buildCreatePositionTx} so a tampered or stale
|
|
270
|
+
* quote fails fast in the client instead of reverting on-chain. Throws
|
|
271
|
+
* `DimesContractError("invalid_signer")` if the signature does not verify.
|
|
272
|
+
*
|
|
273
|
+
* @param userAddress - the wallet that will submit the tx (the signed `user`,
|
|
274
|
+
* bound to `msg.sender` by the contract).
|
|
275
|
+
*/
|
|
276
|
+
declare function buildVerifiedCreatePositionTx(client: DimesClient, quote: Quote, userAddress: `0x${string}`): Promise<CreatePositionTxData>;
|
|
277
|
+
/**
|
|
278
|
+
* Verify a quote's signature (see {@link buildVerifiedCreatePositionTx}) and then
|
|
279
|
+
* build the push-funded deposit-wallet calls. Prefer this over the raw
|
|
280
|
+
* {@link buildPushFundedCreateCalls}: it resolves the correct pUSD token address from
|
|
281
|
+
* the client's cached `GET /contract-info`, so the transfer can never target the wrong
|
|
282
|
+
* stablecoin (e.g. USDC.e instead of pUSD).
|
|
283
|
+
*
|
|
284
|
+
* @param userAddress - the deposit wallet that will be `msg.sender` on-chain.
|
|
285
|
+
* @param pUsdAddress - optional override for the pUSD (USDC) token address. Omit it to
|
|
286
|
+
* use the canonical address from `GET /contract-info`; only pass it to force a
|
|
287
|
+
* specific token.
|
|
288
|
+
*/
|
|
289
|
+
declare function buildVerifiedPushFundedCreateCalls(client: DimesClient, quote: Quote, userAddress: `0x${string}`, pUsdAddress?: string): Promise<DepositWalletCall[]>;
|
|
232
290
|
|
|
233
291
|
declare function formatContractError(err: unknown): DimesContractError;
|
|
234
292
|
|
|
235
|
-
export { type ApproveTxData, type CreatePositionTxData, type DepositWalletBatch, type DepositWalletCall, type RequestCloseTxData, buildApproveTx, buildCreatePositionTx, buildDepositWalletBatch, buildPushFundedCreateCalls, buildRelayerAuthHeaders, buildRelayerSubmitPayload, buildRequestCloseCalls, buildRequestCloseTx, depositWalletBatchTypes, depositWalletFactoryAddress, erc20Abi, formatContractError, getDepositWalletBatchTypedData, polymarketRelayerBaseUrl, recoverCreatePositionSigner, resolveExpectedSigner, toAddress, toHex, vaultAbi, verifyOfferSignature };
|
|
293
|
+
export { type ApproveTxData, type CreatePositionTxData, type DepositWalletBatch, type DepositWalletCall, type RequestCloseTxData, type RequestPartialCloseTxData, assertQuoteSigner, buildApproveTx, buildCreatePositionTx, buildDepositWalletBatch, buildPushFundedCreateCalls, buildRelayerAuthHeaders, buildRelayerSubmitPayload, buildRequestCloseCalls, buildRequestCloseTx, buildRequestPartialCloseCalls, buildRequestPartialCloseTx, buildVerifiedCreatePositionTx, buildVerifiedPushFundedCreateCalls, depositWalletBatchTypes, depositWalletFactoryAddress, erc20Abi, formatContractError, getCachedContractInfo, getDepositWalletBatchTypedData, polymarketRelayerBaseUrl, recoverCreatePositionSigner, resolveExpectedSigner, toAddress, toHex, vaultAbi, verifyOfferSignature, verifyQuoteSignature };
|