@kuest/sdk 0.13.0 → 0.13.1
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/README.md +2 -2
- package/dist/actions/index.d.ts +3 -3
- package/dist/ethers-v5.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/{sports-DTAVbnv-.d.ts → sports-Bt7NXBWp.d.ts} +1 -1
- package/dist/{types-BGprBegM.d.ts → types-CI9Rwzhy.d.ts} +0 -31
- package/dist/viem.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OrderResponse } from '@kuest/bindings/clob';
|
|
2
|
-
import { di as RateLimitError, dt as RequestRejectedError, eE as SigningError, eT as TransportError, eW as UnexpectedResponseError, U as UserInputError, bz as InsufficientLiquidityError, t as BaseSecureClient, hz as PrepareLimitOrderRequest, hc as OrderWorkflow, hb as OrderPostingWorkflow, hB as PrepareMarketOrderRequest, I as CancelledSigningError, c_ as PostOrderError, eJ as TimeoutError, eN as TransactionFailedError, eB as SignedOrder, dn as RequestAbortedError, B as BaseClient, ds as RequestOptions } from './types-
|
|
2
|
+
import { di as RateLimitError, dt as RequestRejectedError, eE as SigningError, eT as TransportError, eW as UnexpectedResponseError, U as UserInputError, bz as InsufficientLiquidityError, t as BaseSecureClient, hz as PrepareLimitOrderRequest, hc as OrderWorkflow, hb as OrderPostingWorkflow, hB as PrepareMarketOrderRequest, I as CancelledSigningError, c_ as PostOrderError, eJ as TimeoutError, eN as TransactionFailedError, eB as SignedOrder, dn as RequestAbortedError, B as BaseClient, ds as RequestOptions } from './types-CI9Rwzhy.js';
|
|
3
3
|
import { SportsMarketTypesResponse, SportsMetadata } from '@kuest/bindings/gamma';
|
|
4
4
|
|
|
5
5
|
type PrepareMarketOrderError = InsufficientLiquidityError | RateLimitError | RequestRejectedError | SigningError | TransportError | UnexpectedResponseError | UserInputError;
|
|
@@ -6529,15 +6529,6 @@ type SecureTradingActions = {
|
|
|
6529
6529
|
* side: OrderSide.BUY,
|
|
6530
6530
|
* });
|
|
6531
6531
|
* ```
|
|
6532
|
-
*
|
|
6533
|
-
* @example Polymarket V2 market buy
|
|
6534
|
-
* ```ts
|
|
6535
|
-
* const order = await client.createMarketOrder({
|
|
6536
|
-
* assetId: '0x0122…0000',
|
|
6537
|
-
* amount: 10,
|
|
6538
|
-
* side: OrderSide.BUY,
|
|
6539
|
-
* });
|
|
6540
|
-
* ```
|
|
6541
6532
|
*/
|
|
6542
6533
|
createMarketOrder(request: PrepareMarketOrderRequest): Promise<SignedOrder>;
|
|
6543
6534
|
/**
|
|
@@ -6610,17 +6601,6 @@ type SecureTradingActions = {
|
|
|
6610
6601
|
* size: 10,
|
|
6611
6602
|
* });
|
|
6612
6603
|
* ```
|
|
6613
|
-
*
|
|
6614
|
-
* @example Polymarket V2 limit order
|
|
6615
|
-
* ```ts
|
|
6616
|
-
* const order = await client.createLimitOrder({
|
|
6617
|
-
* assetId: '0x0122…0000',
|
|
6618
|
-
* postOnly: true,
|
|
6619
|
-
* price: 0.52,
|
|
6620
|
-
* side: OrderSide.BUY,
|
|
6621
|
-
* size: 10,
|
|
6622
|
-
* });
|
|
6623
|
-
* ```
|
|
6624
6604
|
*/
|
|
6625
6605
|
createLimitOrder(request: PrepareLimitOrderRequest): Promise<SignedOrder>;
|
|
6626
6606
|
/**
|
|
@@ -7058,17 +7038,6 @@ type SecureWalletActions = {
|
|
|
7058
7038
|
*
|
|
7059
7039
|
* // outcome.transactionHash: TxHash
|
|
7060
7040
|
* ```
|
|
7061
|
-
*
|
|
7062
|
-
* @example Redeem a Polymarket V2 position by position ID.
|
|
7063
|
-
* ```ts
|
|
7064
|
-
* const handle = await client.redeemPositions({
|
|
7065
|
-
* positionId: '123',
|
|
7066
|
-
* });
|
|
7067
|
-
*
|
|
7068
|
-
* const outcome = await handle.wait();
|
|
7069
|
-
*
|
|
7070
|
-
* // outcome.transactionHash: TxHash
|
|
7071
|
-
* ```
|
|
7072
7041
|
*/
|
|
7073
7042
|
redeemPositions(request: PrepareRedeemPositionsRequest): Promise<TransactionHandle>;
|
|
7074
7043
|
/**
|
package/dist/viem.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PrivateKey } from '@kuest/types';
|
|
2
2
|
import { Chain, Transport, WalletClient } from 'viem';
|
|
3
|
-
import { S as Signer } from './types-
|
|
3
|
+
import { S as Signer } from './types-CI9Rwzhy.js';
|
|
4
4
|
import '@kuest/bindings';
|
|
5
5
|
import '@kuest/bindings/gamma';
|
|
6
6
|
import '@kuest/bindings/relayer';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kuest/sdk",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Unified Polygon prediction-market client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"ky": "^1.14.3",
|
|
94
94
|
"ox": "^0.14.16",
|
|
95
95
|
"zod": "^4.3.6",
|
|
96
|
-
"@kuest/bindings": "0.13.
|
|
97
|
-
"@kuest/types": "0.2.
|
|
96
|
+
"@kuest/bindings": "0.13.1",
|
|
97
|
+
"@kuest/types": "0.2.1"
|
|
98
98
|
},
|
|
99
99
|
"publishConfig": {
|
|
100
100
|
"access": "public"
|