Documentation
¶
Index ¶
- func FetchFlixWithContext(ctx context.Context, url string) (string, error)
- func GenerateFlixID(flix *FlowInteractionTemplate) (string, error)
- func ShaHex(value interface{}, debugKey string) string
- func SortMapKeys[T any](m map[string]T) []string
- type Argument
- type ArgumentKey
- type ArgumentKeys
- type Arguments
- type Config
- type Contracts
- type Data
- type Dependencies
- type Description
- type FlixService
- type FlowInteractionTemplate
- func (flix FlowInteractionTemplate) EncodeRLP() (result string, err error)
- func (t *FlowInteractionTemplate) GetAndReplaceCadenceImports(networkName string) (string, error)
- func (t *FlowInteractionTemplate) GetDescription() string
- func (t *FlowInteractionTemplate) IsScript() bool
- func (t *FlowInteractionTemplate) IsTransaction() bool
- type Generator
- type MapKeySorter
- type Messages
- type Network
- type Networks
- type Title
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchFlixWithContext ¶
func GenerateFlixID ¶ added in v0.3.0
func GenerateFlixID(flix *FlowInteractionTemplate) (string, error)
func SortMapKeys ¶ added in v0.3.0
Types ¶
type ArgumentKey ¶ added in v0.3.0
type ArgumentKeys ¶ added in v0.3.0
type ArgumentKeys []ArgumentKey
type Arguments ¶
func (Arguments) SortArguments ¶ added in v0.3.0
func (args Arguments) SortArguments() ArgumentKeys
type Config ¶
type Config struct { FlixServerURL string FileReader fs.ReadFileFS }
type Dependencies ¶
type Description ¶
type FlixService ¶
type FlixService interface { GetFlixRaw(ctx context.Context, templateName string) (string, error) GetFlix(ctx context.Context, templateName string) (*FlowInteractionTemplate, error) GetFlixByIDRaw(ctx context.Context, templateID string) (string, error) GetFlixByID(ctx context.Context, templateID string) (*FlowInteractionTemplate, error) }
func NewFlixService ¶
func NewFlixService(config *Config) FlixService
type FlowInteractionTemplate ¶
type FlowInteractionTemplate struct { FType string `json:"f_type"` FVersion string `json:"f_version"` ID string `json:"id"` Data Data `json:"data"` }
func ParseFlix ¶
func ParseFlix(template string) (*FlowInteractionTemplate, error)
func (FlowInteractionTemplate) EncodeRLP ¶ added in v0.3.0
func (flix FlowInteractionTemplate) EncodeRLP() (result string, err error)
func (*FlowInteractionTemplate) GetAndReplaceCadenceImports ¶
func (t *FlowInteractionTemplate) GetAndReplaceCadenceImports(networkName string) (string, error)
func (*FlowInteractionTemplate) GetDescription ¶ added in v0.2.0
func (t *FlowInteractionTemplate) GetDescription() string
func (*FlowInteractionTemplate) IsScript ¶
func (t *FlowInteractionTemplate) IsScript() bool
func (*FlowInteractionTemplate) IsTransaction ¶
func (t *FlowInteractionTemplate) IsTransaction() bool
type Generator ¶ added in v0.2.0
type Generator interface {
Generate(ctx context.Context, code string, preFill *FlowInteractionTemplate) (*FlowInteractionTemplate, error)
}
type MapKeySorter ¶ added in v0.3.0
type Messages ¶
type Messages struct { Title *Title `json:"title,omitempty"` Description *Description `json:"description,omitempty"` }
func (*Messages) GetTitleValue ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.