Help us shape the future of Go! Take the 2026 Go Developer Survey

flixkit

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractInfos

type ContractInfos = internal.ContractInfos

ContractInfos is an input into generating a template, it is a map of contract name to network information of deployed contracts of the source Cadence code.

type FlixService

type FlixService interface {
	// GetTemplate returns the raw flix template
	GetTemplate(ctx context.Context, templateName string) (string, string, error)
	// GetAndReplaceImports returns the raw flix template with cadence imports replaced
	GetTemplateAndReplaceImports(ctx context.Context, templateName string, network string) (*FlowInteractionTemplateExecution, error)
	// GenerateBinding returns the generated binding given the language
	GetTemplateAndCreateBinding(ctx context.Context, templateName string, lang string, destFile string) (string, error)
	// GenerateTemplate returns the generated raw template
	CreateTemplate(ctx context.Context, contractInfos ContractInfos, code string, preFill string) (string, error)
}

func NewFlixService

func NewFlixService(config *FlixServiceConfig) FlixService

NewFlixService returns a new FlixService given a FlixServiceConfig

type FlixServiceConfig added in v1.1.0

type FlixServiceConfig = internal.FlixServiceConfig

FlixServiceConfig is the configuration for the FlixService that provides a override for FlixServerURL and default values for FileReader and Logger.

type FlowInteractionTemplateExecution

type FlowInteractionTemplateExecution = internal.FlowInteractionTemplateExecution

FlowInteractionTemplateCadence is the interface returned from Replacing imports, it provides helper methods to assist in executing the resulting Cadence.

type NetworkAddressMap

type NetworkAddressMap = internal.NetworkAddressMap

Jump to

Keyboard shortcuts

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