keyring-agent-core 0.4.7 → 0.4.8
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.ts +13 -9
- package/dist/index.js +2 -2
- package/dist/index.native.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -8749,12 +8749,14 @@ declare const POLYGON_CHAIN_ID = "137";
|
|
|
8749
8749
|
*/
|
|
8750
8750
|
declare const PERPS_DEPOSIT_CONTRACT = "0xDCa4af75705dbB50f62437045afF9921947917d2";
|
|
8751
8751
|
/**
|
|
8752
|
-
* The
|
|
8753
|
-
*
|
|
8754
|
-
*
|
|
8755
|
-
*
|
|
8756
|
-
*
|
|
8757
|
-
*
|
|
8752
|
+
* The Neg Risk Adapter. Polymarket's contracts page: "The CLOB still checks pUSD
|
|
8753
|
+
* and Conditional Tokens approvals for the Neg Risk Adapter on orders in CTF
|
|
8754
|
+
* negative-risk markets. Grant them with the other trading approvals."
|
|
8755
|
+
* (https://docs.polymarket.com/resources/contracts). The SDK's trading-approval
|
|
8756
|
+
* list (@polymarket/client 0.12.0) leaves both out; without the pUSD allowance a
|
|
8757
|
+
* neg-risk BUY is refused with "the allowance is not enough -> spender:
|
|
8758
|
+
* 0xd91E80…, allowance: 0". Account setup adds both. Read from the SDK
|
|
8759
|
+
* environment (`contracts.negRiskAdapter`); this is the fallback.
|
|
8758
8760
|
*/
|
|
8759
8761
|
declare const NEG_RISK_ADAPTER = "0xd91E80cF2E7be2e162c6513ceD06f1dD0dA35296";
|
|
8760
8762
|
/** Gnosis ConditionalTokens (the outcome positions); fallback for `contracts.conditionalTokens`. */
|
|
@@ -10591,9 +10593,11 @@ declare function resolveAccountWallet(address: string, profileWallet: string | n
|
|
|
10591
10593
|
declare function getCashBalanceBaseUnits(wallet: string, client?: PublicClient): Promise<bigint>;
|
|
10592
10594
|
/**
|
|
10593
10595
|
* Shares of each v1 outcome token (`clobTokenIds`) the account wallet holds, read
|
|
10594
|
-
* from ConditionalTokens on Polygon: `{ [tokenId]: shares }`. One call.
|
|
10595
|
-
*
|
|
10596
|
-
*
|
|
10596
|
+
* from ConditionalTokens on Polygon: `{ [tokenId]: shares }`. One call. The
|
|
10597
|
+
* chain is the source of truth the moment a fill settles; the Data API's
|
|
10598
|
+
* positions are an index of it and can lag behind. Shares have 6 decimals, like
|
|
10599
|
+
* pUSD. Not for v2 markets: their positions live in the PositionManager
|
|
10600
|
+
* ("PositionManager owns the ERC-1155 balances", docs.polymarket.com/resources/contracts).
|
|
10597
10601
|
*/
|
|
10598
10602
|
declare function getShareBalances(wallet: string, tokenIds: string[], client?: PublicClient): Promise<Record<string, number>>;
|
|
10599
10603
|
/** pUSD held by the account wallet — the cash available to trade. */
|