@notifi-network/local-fusion
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -37,4 +37,4 @@ import type { BlockchainTypeEnum, Evm, FetchProxy, FusionSubscriptions, Storage as IStorage } from "@notifi-network/fusion-types"; | ||
constructor(blockchainType: BlockchainTypeEnum, fetchProxy: FetchProxy, logger: Logger, parserSource: Evm.Parser, evmRpc: Evm.Rpc, storage: IStorage, subscriptions: FusionSubscriptions, fetchBlock: FetchBlockFn, fetchLogs: FetchLogsFn, logOutput: boolean); | ||
executeSourceUsingBlock(blockTag: BlockTag, filterJsonString: string): Promise<import("@notifi-network/fusion-types").CommonHost.Event[]>; | ||
executeSourceUsingBlock(blockTag: BlockTag, filter: string | Record<string, unknown>): Promise<import("@notifi-network/fusion-types").CommonHost.Event[]>; | ||
executeSourceUsingParserArgs(args: Evm.ParserArgs): Promise<import("@notifi-network/fusion-types").CommonHost.Event[]>; | ||
} |
@@ -93,4 +93,5 @@ import Storage from "@notifi-network/fusion-storage"; | ||
} | ||
async executeSourceUsingBlock(blockTag, filterJsonString) { | ||
const args = await prepareEvmArgs(filterJsonString, blockTag, this.blockchainType, this.fetchLogs, this.fetchBlock); | ||
async executeSourceUsingBlock(blockTag, filter) { | ||
const filterJson = typeof filter === "string" ? filter : JSON.stringify(filter); | ||
const args = await prepareEvmArgs(filterJson, blockTag, this.blockchainType, this.fetchLogs, this.fetchBlock); | ||
return this.executeSourceUsingParserArgs(args); | ||
@@ -97,0 +98,0 @@ } |
{ | ||
"name": "@notifi-network/local-fusion", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -76,2 +76,3 @@ # Local Fusion | ||
- [ ] LocalEvmHost should accept a filter as both a string and the filter itself... painful to stringify it... | ||
- [ ] Fix the npx command | ||
@@ -78,0 +79,0 @@ - [ ] Add better support for subscriptions: users should be able to provide a list of subscribed addresses AND/OR a real endpoint which serves the subscriptions. |
Sorry, the diff of this file is not supported yet
123931
2066
81