Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@notifi-network/local-fusion-cli
Advanced tools
This package contains the tooling required to execute a Notifi fusion source locally on a developer machine. The MVP of this tool will be focused on the execution of various fusion sources inside the [https://github.com/notifi-network/notifi-utils/tree/ma
This package contains the tooling required to execute a Notifi fusion source locally on a developer machine. The MVP of this tool will be focused on the execution of various fusion sources inside the [https://github.com/notifi-network/notifi-utils/tree/main/Docker-DevEnv](dev container environments).
Note: This package is not yet published to npm. To use it, you will need to clone the repo and run npm link
in the root directory. Additionally, the npx command is temporarily broken so you will need to install ts-node in the parser sources packahe and run the command with
node --loader ts-node/esm <node_modules_directory>/@notifi-network/local-fusion/dist/cli/bin.js <commands> [options]
The package exposes a CLI tool that can be used to execute a fusion source locally. The tool can be invoked with the following command:
npx local-fusion-cli <command> [options]
The following commands are available:
The RUN PARSER command is used to execute a fusion parser source locally inside a stubbed out host environment. The command can be invoked with the following command:
npx local-fusion-cli run:parser [options]
Note:: The parser file path can be absolute or relative to the current working directory
Option | Description | Type | Default | Required |
---|---|---|---|---|
rpcUrl | RPC URL | string | N/A | true |
parserFilePath | Absolute path to parser file | string | './src/parser.ts' | false |
blockTag | Block number or tag to execute parser at | number | 'latest' | 'latest' | false |
blockchainType | Blockchain type | BlockchainType | false | |
filter | Fusion filter to trigger parser execution | string | false | |
logOutput | Log output from parser | boolean | true | false |
At the heart of fusion lies a scheduling mechanism which detects when a parser should be executed. This is done by defining a filter which is used to determine whether a parser should be triggered by some on-chain event or not. The filter is defined as a string and is parsed by the fusion scheduler. The following filter types are supported:
Filter Type | Type Definition | Description | Default |
---|---|---|---|
EvmFusionFilter | {contractAddresses: string[], topicHashes: string[]} | TODO: Add description here | {contractAddresses: [],topicHashes: []} |
Note:: Within fusion we refer to different Blockchains by their enum value in the BlockchainType
enum. This list is subject to change as we add support for more blockchains, please verify by looking at the source code for the BlockchainType
enum inside the @notifi-network/fusion-types
package and the source code within this repo.
Below is a table of the support status for each supported blockchain, alongside their enums and the FilterType that is used to trigger parser execution.
Blockchain Name | BlockchainType | FilterType | Status |
---|---|---|---|
Ethereum | 3 | EvmFusionFilter | In Progress |
Polygon | 5 | EvmFusionFilter | In Progress |
Arbitrum | 6 | EvmFusionFilter | In Progress |
Bnb | 7 | EvmFusionFilter | In Progress |
Avalanche | 10 | EvmFusionFilter | In Progress |
Optimism | 12 | EvmFusionFilter | In Progress |
ZkSync | 16 | EvmFusionFilter | In Progress |
Aside from exposing the CLI tool, this package also exports various utilities that can be consumed and used to test parser sources in your own code. In particular the createLocalHost
factory function can be used to create a local host environment that can be used to execute parser sources.
Docker-DevEnv
toolingbcmEndpoint
option to the CLI tool. Additional work will need to be completed to enable this, including the creation of a local BlockchainManager environment which stubs out the calls to the real blockchain rather than the rpc proxies.FAQs
This package contains the tooling required to execute a Notifi fusion source locally on a developer machine. The MVP of this tool will be focused on the execution of various fusion sources inside the [https://github.com/notifi-network/notifi-utils/tree/ma
The npm package @notifi-network/local-fusion-cli receives a total of 0 weekly downloads. As such, @notifi-network/local-fusion-cli popularity was classified as not popular.
We found that @notifi-network/local-fusion-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.