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
func (Argument) MarshalJSON ¶ added in v0.16.0
type ClientAccount ¶ added in v0.16.0
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)
Click to show internal directories.
Click to hide internal directories.