@net-protocol/score 0.1.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 +188 -0
- package/dist/index.d.ts +188 -0
- package/dist/index.js +2152 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2120 -0
- package/dist/index.mjs.map +1 -0
- package/dist/react.d.mts +86 -0
- package/dist/react.d.ts +86 -0
- package/dist/react.js +296 -0
- package/dist/react.js.map +1 -0
- package/dist/react.mjs +289 -0
- package/dist/react.mjs.map +1 -0
- package/dist/scoreKeyUtils-DIjbizO-.d.mts +135 -0
- package/dist/scoreKeyUtils-DIjbizO-.d.ts +135 -0
- package/package.json +93 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { S as ScoreClientOptions, G as GetUpvotesOptions, a as GetUpvotesForItemsOptions, b as GetStrategyKeyScoresOptions, c as GetAppKeyScoresOptions, D as DecodedStrategyMetadata, P as PoolKey } from './scoreKeyUtils-DIjbizO-.mjs';
|
|
2
|
+
export { n as DecodedUpvoteBlob, F as FeedMessage, m as PoolStrategyMetadata, l as PureAlphaMetadata, k as ScoreItem, p as UseTokenUpvotesOptions, o as UseUpvotesBatchOptions, U as UseUpvotesOptions, h as extractTokenAddressFromScoreKey, e as getFeedContentKey, f as getScoreKey, d as getStorageScoreKey, j as getStorageUpvoteContext, g as getTokenScoreKey, i as isTokenScoreKey } from './scoreKeyUtils-DIjbizO-.mjs';
|
|
3
|
+
import { Address, Abi } from 'viem';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* ScoreClient - Client for interacting with Net protocol scoring/upvote system
|
|
7
|
+
*
|
|
8
|
+
* **Pattern for client methods:**
|
|
9
|
+
* - Client methods never require `chainId` in their parameters
|
|
10
|
+
* - All methods use `this.client` internally (created during construction)
|
|
11
|
+
* - This ensures consistency: the client's chain is the single source of truth
|
|
12
|
+
*/
|
|
13
|
+
declare class ScoreClient {
|
|
14
|
+
private client;
|
|
15
|
+
private scoreAddress;
|
|
16
|
+
private upvoteAppAddress;
|
|
17
|
+
constructor(params: ScoreClientOptions);
|
|
18
|
+
/**
|
|
19
|
+
* Get upvote counts for score keys via UpvoteApp.getUpvotesWithLegacy.
|
|
20
|
+
* Returns an array of counts, one per score key.
|
|
21
|
+
*/
|
|
22
|
+
getUpvotesWithLegacy({ scoreKeys, strategies, }: GetUpvotesOptions): Promise<number[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Get upvote counts for ScoreItem array.
|
|
25
|
+
* Converts items to score keys, then calls getUpvotesWithLegacy.
|
|
26
|
+
*/
|
|
27
|
+
getUpvotesForItems({ items, strategies, }: GetUpvotesForItemsOptions): Promise<number[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Read scores for keys from a specific strategy on the Score contract.
|
|
30
|
+
* Uses the batch getAppStrategyKeyScores function for efficiency.
|
|
31
|
+
*/
|
|
32
|
+
getStrategyKeyScores({ strategy, scoreKeys, }: GetStrategyKeyScoresOptions): Promise<number[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Read scores for keys from a specific app on the Score contract.
|
|
35
|
+
* Uses the batch getAppKeyScores function for efficiency.
|
|
36
|
+
*/
|
|
37
|
+
getAppKeyScores({ app, scoreKeys, }: GetAppKeyScoresOptions): Promise<number[]>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Convert token address to bytes32 upvote key.
|
|
42
|
+
*/
|
|
43
|
+
declare const encodeUpvoteKey: (tokenAddress: string) => `0x${string}`;
|
|
44
|
+
/**
|
|
45
|
+
* Convert token address to upvote key string format.
|
|
46
|
+
* Strips leading zeros to match Solidity's Strings.toHexString(uint256(scoreKey)).
|
|
47
|
+
*/
|
|
48
|
+
declare function tokenAddressToUpvoteKeyString(tokenAddress: string): string;
|
|
49
|
+
/**
|
|
50
|
+
* Check if a topic string represents a strategy message.
|
|
51
|
+
*/
|
|
52
|
+
declare function isStrategyMessage(topic: string): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Check if a topic string represents a user upvote message.
|
|
55
|
+
*/
|
|
56
|
+
declare function isUserUpvoteMessage(topic: string): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Extracts strategy address from topic string.
|
|
59
|
+
* Handles both new format and legacy format.
|
|
60
|
+
*/
|
|
61
|
+
declare function extractStrategyAddress(topic: string): string;
|
|
62
|
+
declare function isPureAlphaStrategy(strategyAddress: string): boolean;
|
|
63
|
+
declare function isUniv234PoolsStrategy(strategyAddress: string): boolean;
|
|
64
|
+
declare function isDynamicSplitStrategy(strategyAddress: string): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Decode strategy-specific metadata from ABI-encoded bytes.
|
|
67
|
+
*/
|
|
68
|
+
declare const decodeStrategyMetadata: (metadata: `0x${string}`, strategyAddress: string) => DecodedStrategyMetadata;
|
|
69
|
+
/**
|
|
70
|
+
* Decode the full Score storage blob.
|
|
71
|
+
*/
|
|
72
|
+
declare const decodeUpvoteStorageBlob: (value: `0x${string}`) => {
|
|
73
|
+
scoreKey: `0x${string}`;
|
|
74
|
+
scoreDelta: number;
|
|
75
|
+
originalSender: Address;
|
|
76
|
+
appAddress: Address;
|
|
77
|
+
strategyAddress: Address;
|
|
78
|
+
timestamp: number;
|
|
79
|
+
scoreStoredContext: `0x${string}`;
|
|
80
|
+
scoreUnstoredContext: `0x${string}`;
|
|
81
|
+
decodedMetadata: DecodedStrategyMetadata;
|
|
82
|
+
} | null;
|
|
83
|
+
/**
|
|
84
|
+
* Select the appropriate strategy based on pool key validity.
|
|
85
|
+
* Returns PURE_ALPHA if no valid pool key; DYNAMIC_SPLIT otherwise.
|
|
86
|
+
*/
|
|
87
|
+
declare const selectStrategy: (poolKey?: PoolKey | null) => Address;
|
|
88
|
+
/**
|
|
89
|
+
* Decode an upvote message from Net protocol into a consistent format.
|
|
90
|
+
* Handles both legacy and strategy message formats.
|
|
91
|
+
*/
|
|
92
|
+
declare function decodeUpvoteMessage(msg: {
|
|
93
|
+
topic: string;
|
|
94
|
+
data: `0x${string}`;
|
|
95
|
+
text: string;
|
|
96
|
+
}): {
|
|
97
|
+
scoreDelta: number;
|
|
98
|
+
tokenWethPrice: number;
|
|
99
|
+
wethUsdcPrice: number;
|
|
100
|
+
alphaWethPrice: number;
|
|
101
|
+
userTokenBalance: number;
|
|
102
|
+
tokenAddress: string;
|
|
103
|
+
messageType: "legacy";
|
|
104
|
+
appAddress?: undefined;
|
|
105
|
+
strategyAddress?: undefined;
|
|
106
|
+
userAddress?: undefined;
|
|
107
|
+
} | {
|
|
108
|
+
appAddress: string;
|
|
109
|
+
messageType: "app-first";
|
|
110
|
+
scoreDelta?: undefined;
|
|
111
|
+
tokenWethPrice?: undefined;
|
|
112
|
+
wethUsdcPrice?: undefined;
|
|
113
|
+
alphaWethPrice?: undefined;
|
|
114
|
+
userTokenBalance?: undefined;
|
|
115
|
+
tokenAddress?: undefined;
|
|
116
|
+
strategyAddress?: undefined;
|
|
117
|
+
userAddress?: undefined;
|
|
118
|
+
} | {
|
|
119
|
+
appAddress: string;
|
|
120
|
+
strategyAddress: string;
|
|
121
|
+
messageType: "app-strategy-first";
|
|
122
|
+
scoreDelta?: undefined;
|
|
123
|
+
tokenWethPrice?: undefined;
|
|
124
|
+
wethUsdcPrice?: undefined;
|
|
125
|
+
alphaWethPrice?: undefined;
|
|
126
|
+
userTokenBalance?: undefined;
|
|
127
|
+
tokenAddress?: undefined;
|
|
128
|
+
userAddress?: undefined;
|
|
129
|
+
} | {
|
|
130
|
+
appAddress: string;
|
|
131
|
+
userAddress: string;
|
|
132
|
+
tokenAddress: string;
|
|
133
|
+
messageType: "app-user-first";
|
|
134
|
+
scoreDelta?: undefined;
|
|
135
|
+
tokenWethPrice?: undefined;
|
|
136
|
+
wethUsdcPrice?: undefined;
|
|
137
|
+
alphaWethPrice?: undefined;
|
|
138
|
+
userTokenBalance?: undefined;
|
|
139
|
+
strategyAddress?: undefined;
|
|
140
|
+
} | {
|
|
141
|
+
appAddress: string;
|
|
142
|
+
strategyAddress: string;
|
|
143
|
+
userAddress: string;
|
|
144
|
+
tokenAddress: string;
|
|
145
|
+
messageType: "app-strategy-user-first";
|
|
146
|
+
scoreDelta?: undefined;
|
|
147
|
+
tokenWethPrice?: undefined;
|
|
148
|
+
wethUsdcPrice?: undefined;
|
|
149
|
+
alphaWethPrice?: undefined;
|
|
150
|
+
userTokenBalance?: undefined;
|
|
151
|
+
} | null;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Encode a PoolKey struct to bytes for scoreStoredContext.
|
|
155
|
+
* Returns "0x" for invalid or missing pool keys.
|
|
156
|
+
*/
|
|
157
|
+
declare const encodePoolKey: (poolKey?: PoolKey | null) => `0x${string}`;
|
|
158
|
+
|
|
159
|
+
declare const SCORE_CONTRACT: {
|
|
160
|
+
readonly address: Address;
|
|
161
|
+
readonly abi: Abi;
|
|
162
|
+
};
|
|
163
|
+
declare const UPVOTE_APP: {
|
|
164
|
+
readonly address: Address;
|
|
165
|
+
readonly abi: Abi;
|
|
166
|
+
};
|
|
167
|
+
declare const UPVOTE_STORAGE_APP: {
|
|
168
|
+
readonly address: Address;
|
|
169
|
+
readonly abi: Abi;
|
|
170
|
+
};
|
|
171
|
+
declare const PURE_ALPHA_STRATEGY: {
|
|
172
|
+
readonly address: Address;
|
|
173
|
+
readonly abi: Abi;
|
|
174
|
+
};
|
|
175
|
+
declare const UNIV234_POOLS_STRATEGY: {
|
|
176
|
+
readonly address: Address;
|
|
177
|
+
readonly abi: Abi;
|
|
178
|
+
};
|
|
179
|
+
declare const DYNAMIC_SPLIT_STRATEGY: {
|
|
180
|
+
readonly address: Address;
|
|
181
|
+
readonly abi: Abi;
|
|
182
|
+
};
|
|
183
|
+
declare const ALL_STRATEGY_ADDRESSES: Address[];
|
|
184
|
+
declare const LEGACY_UPVOTE_V1_ADDRESS: Address;
|
|
185
|
+
declare const LEGACY_UPVOTE_V2_ADDRESS: Address;
|
|
186
|
+
declare const SUPPORTED_SCORE_CHAINS: readonly [8453];
|
|
187
|
+
|
|
188
|
+
export { ALL_STRATEGY_ADDRESSES, DYNAMIC_SPLIT_STRATEGY, DecodedStrategyMetadata, GetAppKeyScoresOptions, GetStrategyKeyScoresOptions, GetUpvotesForItemsOptions, GetUpvotesOptions, LEGACY_UPVOTE_V1_ADDRESS, LEGACY_UPVOTE_V2_ADDRESS, PURE_ALPHA_STRATEGY, PoolKey, SCORE_CONTRACT, SUPPORTED_SCORE_CHAINS, ScoreClient, ScoreClientOptions, UNIV234_POOLS_STRATEGY, UPVOTE_APP, UPVOTE_STORAGE_APP, decodeStrategyMetadata, decodeUpvoteMessage, decodeUpvoteStorageBlob, encodePoolKey, encodeUpvoteKey, extractStrategyAddress, isDynamicSplitStrategy, isPureAlphaStrategy, isStrategyMessage, isUniv234PoolsStrategy, isUserUpvoteMessage, selectStrategy, tokenAddressToUpvoteKeyString };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { S as ScoreClientOptions, G as GetUpvotesOptions, a as GetUpvotesForItemsOptions, b as GetStrategyKeyScoresOptions, c as GetAppKeyScoresOptions, D as DecodedStrategyMetadata, P as PoolKey } from './scoreKeyUtils-DIjbizO-.js';
|
|
2
|
+
export { n as DecodedUpvoteBlob, F as FeedMessage, m as PoolStrategyMetadata, l as PureAlphaMetadata, k as ScoreItem, p as UseTokenUpvotesOptions, o as UseUpvotesBatchOptions, U as UseUpvotesOptions, h as extractTokenAddressFromScoreKey, e as getFeedContentKey, f as getScoreKey, d as getStorageScoreKey, j as getStorageUpvoteContext, g as getTokenScoreKey, i as isTokenScoreKey } from './scoreKeyUtils-DIjbizO-.js';
|
|
3
|
+
import { Address, Abi } from 'viem';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* ScoreClient - Client for interacting with Net protocol scoring/upvote system
|
|
7
|
+
*
|
|
8
|
+
* **Pattern for client methods:**
|
|
9
|
+
* - Client methods never require `chainId` in their parameters
|
|
10
|
+
* - All methods use `this.client` internally (created during construction)
|
|
11
|
+
* - This ensures consistency: the client's chain is the single source of truth
|
|
12
|
+
*/
|
|
13
|
+
declare class ScoreClient {
|
|
14
|
+
private client;
|
|
15
|
+
private scoreAddress;
|
|
16
|
+
private upvoteAppAddress;
|
|
17
|
+
constructor(params: ScoreClientOptions);
|
|
18
|
+
/**
|
|
19
|
+
* Get upvote counts for score keys via UpvoteApp.getUpvotesWithLegacy.
|
|
20
|
+
* Returns an array of counts, one per score key.
|
|
21
|
+
*/
|
|
22
|
+
getUpvotesWithLegacy({ scoreKeys, strategies, }: GetUpvotesOptions): Promise<number[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Get upvote counts for ScoreItem array.
|
|
25
|
+
* Converts items to score keys, then calls getUpvotesWithLegacy.
|
|
26
|
+
*/
|
|
27
|
+
getUpvotesForItems({ items, strategies, }: GetUpvotesForItemsOptions): Promise<number[]>;
|
|
28
|
+
/**
|
|
29
|
+
* Read scores for keys from a specific strategy on the Score contract.
|
|
30
|
+
* Uses the batch getAppStrategyKeyScores function for efficiency.
|
|
31
|
+
*/
|
|
32
|
+
getStrategyKeyScores({ strategy, scoreKeys, }: GetStrategyKeyScoresOptions): Promise<number[]>;
|
|
33
|
+
/**
|
|
34
|
+
* Read scores for keys from a specific app on the Score contract.
|
|
35
|
+
* Uses the batch getAppKeyScores function for efficiency.
|
|
36
|
+
*/
|
|
37
|
+
getAppKeyScores({ app, scoreKeys, }: GetAppKeyScoresOptions): Promise<number[]>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Convert token address to bytes32 upvote key.
|
|
42
|
+
*/
|
|
43
|
+
declare const encodeUpvoteKey: (tokenAddress: string) => `0x${string}`;
|
|
44
|
+
/**
|
|
45
|
+
* Convert token address to upvote key string format.
|
|
46
|
+
* Strips leading zeros to match Solidity's Strings.toHexString(uint256(scoreKey)).
|
|
47
|
+
*/
|
|
48
|
+
declare function tokenAddressToUpvoteKeyString(tokenAddress: string): string;
|
|
49
|
+
/**
|
|
50
|
+
* Check if a topic string represents a strategy message.
|
|
51
|
+
*/
|
|
52
|
+
declare function isStrategyMessage(topic: string): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Check if a topic string represents a user upvote message.
|
|
55
|
+
*/
|
|
56
|
+
declare function isUserUpvoteMessage(topic: string): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Extracts strategy address from topic string.
|
|
59
|
+
* Handles both new format and legacy format.
|
|
60
|
+
*/
|
|
61
|
+
declare function extractStrategyAddress(topic: string): string;
|
|
62
|
+
declare function isPureAlphaStrategy(strategyAddress: string): boolean;
|
|
63
|
+
declare function isUniv234PoolsStrategy(strategyAddress: string): boolean;
|
|
64
|
+
declare function isDynamicSplitStrategy(strategyAddress: string): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Decode strategy-specific metadata from ABI-encoded bytes.
|
|
67
|
+
*/
|
|
68
|
+
declare const decodeStrategyMetadata: (metadata: `0x${string}`, strategyAddress: string) => DecodedStrategyMetadata;
|
|
69
|
+
/**
|
|
70
|
+
* Decode the full Score storage blob.
|
|
71
|
+
*/
|
|
72
|
+
declare const decodeUpvoteStorageBlob: (value: `0x${string}`) => {
|
|
73
|
+
scoreKey: `0x${string}`;
|
|
74
|
+
scoreDelta: number;
|
|
75
|
+
originalSender: Address;
|
|
76
|
+
appAddress: Address;
|
|
77
|
+
strategyAddress: Address;
|
|
78
|
+
timestamp: number;
|
|
79
|
+
scoreStoredContext: `0x${string}`;
|
|
80
|
+
scoreUnstoredContext: `0x${string}`;
|
|
81
|
+
decodedMetadata: DecodedStrategyMetadata;
|
|
82
|
+
} | null;
|
|
83
|
+
/**
|
|
84
|
+
* Select the appropriate strategy based on pool key validity.
|
|
85
|
+
* Returns PURE_ALPHA if no valid pool key; DYNAMIC_SPLIT otherwise.
|
|
86
|
+
*/
|
|
87
|
+
declare const selectStrategy: (poolKey?: PoolKey | null) => Address;
|
|
88
|
+
/**
|
|
89
|
+
* Decode an upvote message from Net protocol into a consistent format.
|
|
90
|
+
* Handles both legacy and strategy message formats.
|
|
91
|
+
*/
|
|
92
|
+
declare function decodeUpvoteMessage(msg: {
|
|
93
|
+
topic: string;
|
|
94
|
+
data: `0x${string}`;
|
|
95
|
+
text: string;
|
|
96
|
+
}): {
|
|
97
|
+
scoreDelta: number;
|
|
98
|
+
tokenWethPrice: number;
|
|
99
|
+
wethUsdcPrice: number;
|
|
100
|
+
alphaWethPrice: number;
|
|
101
|
+
userTokenBalance: number;
|
|
102
|
+
tokenAddress: string;
|
|
103
|
+
messageType: "legacy";
|
|
104
|
+
appAddress?: undefined;
|
|
105
|
+
strategyAddress?: undefined;
|
|
106
|
+
userAddress?: undefined;
|
|
107
|
+
} | {
|
|
108
|
+
appAddress: string;
|
|
109
|
+
messageType: "app-first";
|
|
110
|
+
scoreDelta?: undefined;
|
|
111
|
+
tokenWethPrice?: undefined;
|
|
112
|
+
wethUsdcPrice?: undefined;
|
|
113
|
+
alphaWethPrice?: undefined;
|
|
114
|
+
userTokenBalance?: undefined;
|
|
115
|
+
tokenAddress?: undefined;
|
|
116
|
+
strategyAddress?: undefined;
|
|
117
|
+
userAddress?: undefined;
|
|
118
|
+
} | {
|
|
119
|
+
appAddress: string;
|
|
120
|
+
strategyAddress: string;
|
|
121
|
+
messageType: "app-strategy-first";
|
|
122
|
+
scoreDelta?: undefined;
|
|
123
|
+
tokenWethPrice?: undefined;
|
|
124
|
+
wethUsdcPrice?: undefined;
|
|
125
|
+
alphaWethPrice?: undefined;
|
|
126
|
+
userTokenBalance?: undefined;
|
|
127
|
+
tokenAddress?: undefined;
|
|
128
|
+
userAddress?: undefined;
|
|
129
|
+
} | {
|
|
130
|
+
appAddress: string;
|
|
131
|
+
userAddress: string;
|
|
132
|
+
tokenAddress: string;
|
|
133
|
+
messageType: "app-user-first";
|
|
134
|
+
scoreDelta?: undefined;
|
|
135
|
+
tokenWethPrice?: undefined;
|
|
136
|
+
wethUsdcPrice?: undefined;
|
|
137
|
+
alphaWethPrice?: undefined;
|
|
138
|
+
userTokenBalance?: undefined;
|
|
139
|
+
strategyAddress?: undefined;
|
|
140
|
+
} | {
|
|
141
|
+
appAddress: string;
|
|
142
|
+
strategyAddress: string;
|
|
143
|
+
userAddress: string;
|
|
144
|
+
tokenAddress: string;
|
|
145
|
+
messageType: "app-strategy-user-first";
|
|
146
|
+
scoreDelta?: undefined;
|
|
147
|
+
tokenWethPrice?: undefined;
|
|
148
|
+
wethUsdcPrice?: undefined;
|
|
149
|
+
alphaWethPrice?: undefined;
|
|
150
|
+
userTokenBalance?: undefined;
|
|
151
|
+
} | null;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Encode a PoolKey struct to bytes for scoreStoredContext.
|
|
155
|
+
* Returns "0x" for invalid or missing pool keys.
|
|
156
|
+
*/
|
|
157
|
+
declare const encodePoolKey: (poolKey?: PoolKey | null) => `0x${string}`;
|
|
158
|
+
|
|
159
|
+
declare const SCORE_CONTRACT: {
|
|
160
|
+
readonly address: Address;
|
|
161
|
+
readonly abi: Abi;
|
|
162
|
+
};
|
|
163
|
+
declare const UPVOTE_APP: {
|
|
164
|
+
readonly address: Address;
|
|
165
|
+
readonly abi: Abi;
|
|
166
|
+
};
|
|
167
|
+
declare const UPVOTE_STORAGE_APP: {
|
|
168
|
+
readonly address: Address;
|
|
169
|
+
readonly abi: Abi;
|
|
170
|
+
};
|
|
171
|
+
declare const PURE_ALPHA_STRATEGY: {
|
|
172
|
+
readonly address: Address;
|
|
173
|
+
readonly abi: Abi;
|
|
174
|
+
};
|
|
175
|
+
declare const UNIV234_POOLS_STRATEGY: {
|
|
176
|
+
readonly address: Address;
|
|
177
|
+
readonly abi: Abi;
|
|
178
|
+
};
|
|
179
|
+
declare const DYNAMIC_SPLIT_STRATEGY: {
|
|
180
|
+
readonly address: Address;
|
|
181
|
+
readonly abi: Abi;
|
|
182
|
+
};
|
|
183
|
+
declare const ALL_STRATEGY_ADDRESSES: Address[];
|
|
184
|
+
declare const LEGACY_UPVOTE_V1_ADDRESS: Address;
|
|
185
|
+
declare const LEGACY_UPVOTE_V2_ADDRESS: Address;
|
|
186
|
+
declare const SUPPORTED_SCORE_CHAINS: readonly [8453];
|
|
187
|
+
|
|
188
|
+
export { ALL_STRATEGY_ADDRESSES, DYNAMIC_SPLIT_STRATEGY, DecodedStrategyMetadata, GetAppKeyScoresOptions, GetStrategyKeyScoresOptions, GetUpvotesForItemsOptions, GetUpvotesOptions, LEGACY_UPVOTE_V1_ADDRESS, LEGACY_UPVOTE_V2_ADDRESS, PURE_ALPHA_STRATEGY, PoolKey, SCORE_CONTRACT, SUPPORTED_SCORE_CHAINS, ScoreClient, ScoreClientOptions, UNIV234_POOLS_STRATEGY, UPVOTE_APP, UPVOTE_STORAGE_APP, decodeStrategyMetadata, decodeUpvoteMessage, decodeUpvoteStorageBlob, encodePoolKey, encodeUpvoteKey, extractStrategyAddress, isDynamicSplitStrategy, isPureAlphaStrategy, isStrategyMessage, isUniv234PoolsStrategy, isUserUpvoteMessage, selectStrategy, tokenAddressToUpvoteKeyString };
|