@net-protocol/score 0.1.6 → 0.1.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.mts +4 -7
- package/dist/index.d.ts +4 -7
- package/dist/index.js +145 -82
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +145 -82
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +11 -3
- package/dist/react.d.ts +11 -3
- package/dist/react.js +744 -0
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +745 -2
- package/dist/react.mjs.map +1 -1
- package/dist/{scoreKeyUtils-DuH70ypB.d.mts → scoreKeyUtils-BjMpyhyX.d.mts} +12 -1
- package/dist/{scoreKeyUtils-DuH70ypB.d.ts → scoreKeyUtils-BjMpyhyX.d.ts} +12 -1
- package/package.json +1 -1
|
@@ -58,6 +58,8 @@ type PoolDiscoveryResult = {
|
|
|
58
58
|
price: number | null;
|
|
59
59
|
fee: number;
|
|
60
60
|
poolKey?: PoolKey;
|
|
61
|
+
/** V4 in-range concentrated liquidity (uint128) as a decimal string. "0" for V2/V3. */
|
|
62
|
+
liquidity?: string;
|
|
61
63
|
balances?: {
|
|
62
64
|
baseTokenBalance: string;
|
|
63
65
|
token0Balance: string;
|
|
@@ -134,6 +136,15 @@ type UseUpvotePriceOptions = {
|
|
|
134
136
|
chainId: number;
|
|
135
137
|
enabled?: boolean;
|
|
136
138
|
};
|
|
139
|
+
type PoolDiscoveryPair = {
|
|
140
|
+
tokenAddress: string;
|
|
141
|
+
baseTokenAddress?: string;
|
|
142
|
+
};
|
|
143
|
+
type UseDiscoverPoolsOptions = {
|
|
144
|
+
chainId: number;
|
|
145
|
+
pairs: PoolDiscoveryPair[];
|
|
146
|
+
enabled?: boolean;
|
|
147
|
+
};
|
|
137
148
|
|
|
138
149
|
/**
|
|
139
150
|
* Generate score key for token upvotes.
|
|
@@ -174,4 +185,4 @@ declare const extractTokenAddressFromScoreKey: (scoreKey: string) => string | nu
|
|
|
174
185
|
*/
|
|
175
186
|
declare const getStorageUpvoteContext: (operatorAddress: string, storageKey: string) => `0x${string}`;
|
|
176
187
|
|
|
177
|
-
export { type DecodedStrategyMetadata as D, type FeedMessage as F, type GetUpvotesOptions as G, type PoolKey as P, type ScoreClientOptions as S, type UseTokenUpvotesOptions as U, type GetUpvotesForItemsOptions as a, type GetStrategyKeyScoresOptions as b, type GetAppKeyScoresOptions as c, type
|
|
188
|
+
export { type DecodedStrategyMetadata as D, type FeedMessage as F, type GetUpvotesOptions as G, type PoolKey as P, type ScoreClientOptions as S, type UseTokenUpvotesOptions as U, type GetUpvotesForItemsOptions as a, type GetStrategyKeyScoresOptions as b, type GetAppKeyScoresOptions as c, type PoolDiscoveryPair as d, type PoolDiscoveryResult as e, type DecodedUpvoteBlob as f, type PoolStrategyMetadata as g, type PureAlphaMetadata as h, type ScoreItem as i, type UseUpvotePriceOptions as j, type UseUpvoteUserOptions as k, type UseUpvotesBatchOptions as l, type UseUpvotesOptions as m, type UseUserUpvotesGivenOptions as n, type UseUserUpvotesGivenPerTokenBatchOptions as o, type UseUserUpvotesReceivedOptions as p, type UseUserUpvotesReceivedPerTokenBatchOptions as q, extractTokenAddressFromScoreKey as r, getFeedContentKey as s, getScoreKey as t, getStorageScoreKey as u, getStorageUpvoteContext as v, getTokenScoreKey as w, isTokenScoreKey as x, type UseDiscoverPoolsOptions as y };
|