Categorygithub.com/onflow/flowkit/v2
modulepackage
2.1.0
Repository: https://github.com/onflow/flowkit.git
Documentation: pkg.go.dev

# README

Flowkit Package Design

Flowkit is a core package used by the CLI commands. It features APIs for interacting with the Flow network in the context of flow.json configuration values. Flowkit is defined by the interface here.

Flowkit contains multiple subpackages, the most important ones are:

  • config: parsing and storing of flow.json values, as well as validation,
  • gateway: implementation of Flow AN methods, uses emulator as well as Go SDK to communicate with ANs,
  • project: stateful operations on top of flow.json, which allows resolving imports in contracts used in deployments

It is important we define clear boundaries between flowkit and other CLI packages. If we are in doubt where certain methods should be implemented we must ask ourselves if the method provides value for any other consumers of the pacakge or only provides utility for CLI usage, if it's only providing utility for CLI then it should be added inside the internal package, instead of flowkit. If in doubt better to add things to internal package and then move to flowkit if such need is identified.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
Init initializes a new Flow project.
Load loads a project configuration and returns the resulting project.
NewBlockQuery creates block query based on the passed query value.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

LatestBlockQuery specifies the latest block.
LatestScriptQuery specifies the latest block at which query is executed.

# Structs

BlockQuery defines possible queries for block.
No description provided by the author
EventWorker defines how many workers do we want to start, each in its own subroutine, and how many blocks each worker fetches from the network.
No description provided by the author
No description provided by the author
Script includes Cadence code and optional arguments and filename.
ScriptQuery defines block ID or height at which we should execute the script.
State manages the state for a Flow project.

# Interfaces

ReaderWriter defines read file and write file methods.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author