Open seleniumforest opened 7 months ago
search.ts
export interface SearchPair { readonly key: string; readonly value: string | number | bigint; readonly comparsionOp?: ">" | ">=" | "<" | "<=" }
It will be useful, for example, when you want to find logs by composite key in range of blocks (stargateclient.ts)
rawQuery = query .map((t) => { let compOp = t.comparsionOp || "=" if (typeof t.value === "string") return `${t.key}${compOp}'${t.value}'`; else return `${t.key}${compOp}${t.value}`; }) .join(" AND ");
Then client could use like this:
await searchTx([ {key: "tx.height", comparsionOp: ">" ,value: 10}, {key: "tx.height", comparsionOp: "<" ,value: 20}, ])
search.ts
It will be useful, for example, when you want to find logs by composite key in range of blocks (stargateclient.ts)
Then client could use like this: