integration

package
v0.18.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CommandSendTransaction       = "cadence.server.flow.sendTransaction"
	CommandExecuteScript         = "cadence.server.flow.executeScript"
	CommandDeployContract        = "cadence.server.flow.deployContract"
	CommandCreateAccount         = "cadence.server.flow.createAccount"
	CommandCreateDefaultAccounts = "cadence.server.flow.createDefaultAccounts"
	CommandSwitchActiveAccount   = "cadence.server.flow.switchActiveAccount"
	CommandChangeEmulatorState   = "cadence.server.flow.changeEmulatorState"
	CommandInitAccountManager    = "cadence.server.flow.initAccountManager"

	ClientStartEmulator = "cadence.runEmulator"

	ErrorMessageEmulator          = "emulator error"
	ErrorMessageServiceAccount    = "service account error"
	ErrorMessageTransactionError  = "transaction error"
	ErrorMessageServiceAccountKey = "service account private key error"
	ErrorMessageAccountCreate     = "create account error"
	ErrorMessageAccountStore      = "store account error"
	ErrorMessagePrivateKeyDecoder = "private key decoder error"
	ErrorMessageDeploy            = "deployment error"
	ErrorMessageScriptExecution   = "script error"
	ErrorMessageArguments         = "arguments error"
)

Variables

View Source
var SignersRegexp = regexp.MustCompile(`[\w-]+`)

Functions

This section is empty.

Types

type AccountPrivateKey

type AccountPrivateKey struct {
	PrivateKey crypto.PrivateKey
	SigAlgo    crypto.SignatureAlgorithm
	HashAlgo   crypto.HashAlgorithm
}

type Argument added in v0.16.0

type Argument struct {
	cadence.Value
}

func (Argument) MarshalJSON added in v0.16.0

func (a Argument) MarshalJSON() ([]byte, error)

type ClientAccount added in v0.16.0

type ClientAccount struct {
	Name    string       `json:"name"`
	Address flow.Address `json:"address"`
}

ClientAccount will be used to * store active account on language server to sign transactions and deploy contracts * return newly created accounts to client

type Config

type Config struct {
	// The address where the emulator is running.
	EmulatorAddr string
	// contains filtered or unexported fields
}

Config defines configuration for the Language Server. These options are determined by the client and passed to the server at initialization.

type EmulatorState added in v0.16.0

type EmulatorState int
const (
	EmulatorOffline EmulatorState = iota
	EmulatorStarting
	EmulatorStarted
)

type FlowIntegration

type FlowIntegration struct {
	// contains filtered or unexported fields
}

func NewFlowIntegration

func NewFlowIntegration(s *server.Server, enableFlowClient bool) (*FlowIntegration, error)

Jump to

Keyboard shortcuts

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