2.0.3 • Published 11 months ago

@blockflow-labs/cli v2.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

BlockFlow Studio

Build Status

BlockFlow is a cutting-edge data infrastructure platform that revolutionizes how you interact with on-chain data. Our platform enables seamless data transformation, streaming, and integration capabilities, supporting both real-time and historical data access.

With BlockFlow's robust command-line interface (CLI), you can unlock the platform's full potential. Focus on building innovative features for your Web3 application while we manage the complex backend infrastructure.

Installation

BlockFlow requires Docker and Node.js v18+ with TypeScript support.

npm i -g @blockflow-labs/cli

Verify your installation:

blockflow --version

Set up your BlockFlow credentials to get started. Find your credentials here.

blockflow configure

Project Initialization

Create a new project in an empty directory using the blockflow init command. This launches an interactive setup wizard where you can either configure your project from scratch or build upon existing templates.

blockflow init

Configuration

BlockFlow Studio uses a YAML configuration file (studio.yaml) in your project's root directory to manage settings. Here are the key configuration components:

ConfigurationDescription
VersionSpecifies the BlockFlow YAML template version (currently 2.0.0)
TypeDetermines the deployment mode: either instance or api
MetadataContains your instance name and description
AuthStores BlockFlow credentials required for deployment
PathSpecifies locations of your docker-compose and studio.schema.ts files
EnvironmentDefines settings for testing and deployment (network, chain, startBlock, RPCs)
SecretsStores sensitive variables securely for runtime injection
ResourcesSpecifies smart contracts for indexing or APIs built on indexed data

Resources

The resources section lets you define multiple data sources from blockchain networks, smart contracts, or APIs. Each data source includes:

ParametersDescription
nameUnique identifier for the data source
typeResource category specification
abiLocation of the smart contract's ABI file for interface definition
addressData source's blockchain address
triggersMaps smart contract events/functions to their handler functions

For detailed configuration information, visit our documentation.

Blockflow Commands

Validate your configuration:

blockflow validate

Generate event/function listings in studio.yaml:

blockflow generate

Create handlers in your project:

blockflow codegen

Test locally using Docker with MongoDB and PostgreSQL:

blockflow test

Deployment

Deploy your tested project to the BlockFlow server:

blockflow deploy

Template Usage

Jump-start development using pre-built templates:

blockflow apply --template template-name

Available templates from the BlockFlow team:

TemplateDescription
ERC20Standard fungible token interface for Ethereum
ERC4337Account abstraction protocol for enhanced wallet functionality
ERC721Standard non-fungible token (NFT) interface for Ethereum
LidoLiquid ETH staking protocol with maintained liquidity
ENSDecentralized domain naming system for Ethereum

For comprehensive details about BlockFlow Studio and its capabilities, explore our documentation.

Interested in contributing or exploring examples? We'd love your involvement! Star our examples repository.

2.0.3

11 months ago

2.0.2

11 months ago

2.0.1

12 months ago

2.0.0

1 year ago

1.0.10

1 year ago

1.0.10-beta.2

1 year ago

1.0.10-beta.1

1 year ago

1.0.10-beta.3

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.7-beta.5

1 year ago

1.0.9-beta.1

1 year ago

1.0.8-beta.1

1 year ago

1.0.7-beta.1

1 year ago

1.0.7-beta.2

1 year ago

1.0.7-beta.3

1 year ago

1.0.7-beta.4

1 year ago

1.0.8-beta.5

1 year ago

1.0.8-beta.4

1 year ago

1.0.8-beta.3

1 year ago

1.0.8-beta.2

1 year ago

1.0.6

1 year ago

1.0.6-beta

1 year ago

1.0.6-beta-1

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.9-beta

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago