v1

package
v1.2.1-cadence-v1-M3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Argument

type Argument struct {
	Index    int      `json:"index"`
	Type     string   `json:"type"`
	Messages Messages `json:"messages"`
	Balance  string   `json:"balance"`
}

type Arguments

type Arguments map[string]Argument

type Contracts

type Contracts map[string]Networks

type Data

type Data struct {
	Type         string       `json:"type"`
	Interface    string       `json:"interface"`
	Messages     Messages     `json:"messages"`
	Cadence      string       `json:"cadence"`
	Dependencies Dependencies `json:"dependencies"`
	Arguments    Arguments    `json:"arguments"`
}

type Dependencies

type Dependencies map[string]Contracts

type Description

type Description struct {
	I18N map[string]string `json:"i18n"`
}

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) GetDescription

func (t *FlowInteractionTemplate) GetDescription() string

func (*FlowInteractionTemplate) IsScript

func (t *FlowInteractionTemplate) IsScript() bool

func (*FlowInteractionTemplate) IsTransaction

func (t *FlowInteractionTemplate) IsTransaction() bool

func (*FlowInteractionTemplate) ReplaceCadenceImports

func (t *FlowInteractionTemplate) ReplaceCadenceImports(networkName string) (string, error)

type Messages

type Messages struct {
	Title       *Title       `json:"title,omitempty"`
	Description *Description `json:"description,omitempty"`
}

func (*Messages) GetTitleValue

func (msgs *Messages) GetTitleValue(placeholder string) string

type Network

type Network struct {
	Address        string `json:"address"`
	FqAddress      string `json:"fq_address"`
	Contract       string `json:"contract"`
	Pin            string `json:"pin"`
	PinBlockHeight uint64 `json:"pin_block_height"`
}

type Networks

type Networks map[string]Network

type Title

type Title struct {
	I18N map[string]string `json:"i18n"`
}

Jump to

Keyboard shortcuts

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