@logswap/sdk 0.5.72 → 0.5.73
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/indexer.js +2 -2
- package/package.json +1 -1
- package/src/indexer.ts +3 -3
package/dist/indexer.js
CHANGED
|
@@ -138,13 +138,13 @@ export async function indexerHealthy(url, signal) {
|
|
|
138
138
|
* everywhere else, so a wrong id fails loudly instead of addressing the wrong pool.
|
|
139
139
|
*/
|
|
140
140
|
export async function discoverMarketsIndexed(url, signal) {
|
|
141
|
-
const nodes = await gqlAll(url, "allInitializes", "poolId base quote tickSpacing
|
|
141
|
+
const nodes = await gqlAll(url, "allInitializes", "poolId base quote tickSpacing swapFee x0 blockNumber txHash contractAddress", { signal });
|
|
142
142
|
return nodes.map((n) => {
|
|
143
143
|
const key = {
|
|
144
144
|
base: n.base,
|
|
145
145
|
quote: n.quote,
|
|
146
146
|
tickSpacing: BigInt(n.tickSpacing),
|
|
147
|
-
swapFee: BigInt(n.
|
|
147
|
+
swapFee: BigInt(n.swapFee), // rindexer names the column after the event's field: `swapFee` since C version 6 (logswap-be #40)
|
|
148
148
|
};
|
|
149
149
|
return {
|
|
150
150
|
key,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logswap/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.73",
|
|
4
4
|
"description": "TypeScript SDK for Logswap, the liquidity primitive introducing the logarithmic invariant — typed wrappers over the CPoolManager / FPoolManager / Router / Lens surface.",
|
|
5
5
|
"license": "GPL-2.0-or-later",
|
|
6
6
|
"type": "module",
|
package/src/indexer.ts
CHANGED
|
@@ -184,16 +184,16 @@ export async function indexerHealthy(url: string, signal?: AbortSignal): Promise
|
|
|
184
184
|
*/
|
|
185
185
|
export async function discoverMarketsIndexed(url: string, signal?: AbortSignal): Promise<DiscoveredMarket[]> {
|
|
186
186
|
type Row = {
|
|
187
|
-
poolId: Hex; base: Hex; quote: Hex; tickSpacing: string;
|
|
187
|
+
poolId: Hex; base: Hex; quote: Hex; tickSpacing: string; swapFee: string;
|
|
188
188
|
x0: string; blockNumber: string; txHash: Hex; contractAddress: Hex;
|
|
189
189
|
};
|
|
190
|
-
const nodes = await gqlAll<Row>(url, "allInitializes", "poolId base quote tickSpacing
|
|
190
|
+
const nodes = await gqlAll<Row>(url, "allInitializes", "poolId base quote tickSpacing swapFee x0 blockNumber txHash contractAddress", { signal });
|
|
191
191
|
return nodes.map((n) => {
|
|
192
192
|
const key: PoolKey = {
|
|
193
193
|
base: n.base as Address,
|
|
194
194
|
quote: n.quote as Address,
|
|
195
195
|
tickSpacing: BigInt(n.tickSpacing),
|
|
196
|
-
swapFee: BigInt(n.
|
|
196
|
+
swapFee: BigInt(n.swapFee), // rindexer names the column after the event's field: `swapFee` since C version 6 (logswap-be #40)
|
|
197
197
|
};
|
|
198
198
|
return {
|
|
199
199
|
key,
|