meta

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(m DApp) (*g.DAppMeta, error)

Types

type Abbreviations

type Abbreviations struct {
	// contains filtered or unexported fields
}

func NewAbbreviations added in v0.10.5

func NewAbbreviations(names []string) Abbreviations

func (*Abbreviations) CompactToOriginal

func (a *Abbreviations) CompactToOriginal(compact string) (string, error)

type DApp

type DApp struct {
	Version       int
	Functions     []Function
	Abbreviations Abbreviations
}

DApp is a collection of callable functions' descriptions. As additional it has Version and Abbreviations map.

func Convert

func Convert(meta *g.DAppMeta) (DApp, error)

type Function

type Function struct {
	Name      string
	Arguments []Type
}

Function is a function signature descriptor. Function has a Name and list of argument's types.

type ListType

type ListType struct {
	Inner Type
}

ListType is a list of items of Inner type.

type SimpleType

type SimpleType byte

SimpleType is one of four basic types of Meta.

const (
	Int SimpleType = 1 << iota
	Bytes
	Boolean
	String
)

type Type

type Type interface {
	// contains filtered or unexported methods
}

Type interface represents all type descriptors that can be encoded in Meta.

type UnionType

type UnionType []SimpleType

UnionType represents a composition of basic types.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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