flowcli

package
v0.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

Flow CLI

Flow CLI package contains all the functionality used in CLI. This package is meant to be used by third party (langauge server etc...).

Config

Config package implements parsing and serializing configuration and persisting state needed for some commands.

Gateway

Gateway package contains functions that interact with the Flow blockchain. This package offers abstraction over communicating with the Flow network and takes care of initializing the network client and handling errors.

Function accept arguments in go-sdk types or lib types and must already be validated. Client is already initialized and only referenced inside here.

Services

Service layer is meant to be used as an api. Service function accepts raw arguments, validate them, use gateways to do network interactions and lib to build resources needed in gateways.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStakingInfoFromValue

func NewStakingInfoFromValue(value cadence.Value) map[string]interface{}

func ParseArguments

func ParseArguments(args []string, argsJSON string) (scriptArgs []cadence.Value, err error)

func ParseArgumentsCommaSplit

func ParseArgumentsCommaSplit(input []string) ([]cadence.Value, error)

func ParseArgumentsJSON

func ParseArgumentsJSON(input string) ([]cadence.Value, error)

Types

type CadenceArgument

type CadenceArgument struct {
	Value cadence.Value
}

func (CadenceArgument) MarshalJSON

func (v CadenceArgument) MarshalJSON() ([]byte, error)

func (*CadenceArgument) UnmarshalJSON

func (v *CadenceArgument) UnmarshalJSON(b []byte) (err error)

type Event

type Event struct {
	Type   string
	Values map[string]string
}

type Events

type Events []Event

func EventsFromTransaction

func EventsFromTransaction(tx *flow.TransactionResult) Events

func (*Events) GetAddress

func (e *Events) GetAddress() *flow.Address

Directories

Path Synopsis
Package cli defines constants, configurations, and utilities that are used across the Flow CLI.
Package cli defines constants, configurations, and utilities that are used across the Flow CLI.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL