Documentation
¶
Index ¶
- func FetchFlixWithContext(ctx context.Context, url string) (string, error)
- func GetFlixFclCompatibility(flixVersion string) string
- func GetTemplateVersion(template string) (string, error)
- type Config
- type ContractInfos
- type FclGenerator
- type FileReader
- type FlixParameter
- type FlixService
- type FlowInteractionTemplateCadence
- type FlowInteractionTemplateExecution
- type FlowInteractionTemplateVersion
- type GenerateBinding
- type GenerateTemplate
- type Generator
- func (g Generator) Generate(ctx context.Context, code string, preFill string) (string, error)
- func (g *Generator) GenerateDepPinDepthFirst(ctx context.Context, flowkit *flowkit.Flowkit, address string, name string, ...) (details *v1_1.PinDetail, err error)
- func (g *Generator) LookupImportContractInfo(contractName string) []v1_1.Network
- type NetworkAddressMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchFlixWithContext ¶
func GetFlixFclCompatibility ¶
func GetTemplateVersion ¶
Types ¶
type Config ¶
type Config struct { FlixServerURL string FileReader FileReader }
type ContractInfos ¶
type ContractInfos map[string]NetworkAddressMap
Same structure as core contracts, keyed by contract name
type FclGenerator ¶
type FclGenerator struct {
Templates []string
}
func NewFclJSGenerator ¶
func NewFclJSGenerator() *FclGenerator
func NewFclTSGenerator ¶
func NewFclTSGenerator() *FclGenerator
type FileReader ¶
type FlixParameter ¶
type FlixService ¶
type FlixService interface { GetTemplate(ctx context.Context, templateName string) (string, error) GetAndReplaceCadenceImports(ctx context.Context, templateName string, network string) (*FlowInteractionTemplateExecution, error) }
func NewFlixService ¶
func NewFlixService(config *Config) FlixService
type FlowInteractionTemplateVersion ¶
type FlowInteractionTemplateVersion struct {
FVersion string `json:"f_version"`
}
type GenerateBinding ¶
type GenerateTemplate ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func NewGenerator(contractInfos ContractInfos, logger output.Logger) (*Generator, error)
func (*Generator) GenerateDepPinDepthFirst ¶
type NetworkAddressMap ¶
Same structure as core contracts, using config network names
Click to show internal directories.
Click to hide internal directories.