courseInstances

package
v0.0.0-...-3a7ae5a Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CourseInstanceCmd = &cobra.Command{
	Use:   "course-instances",
	Short: "List course instances on Andamio Network",
	Long: `
On the Andamio Network, a course instance is represented first with a UTxO.
This query provides quick access to those UTxOs.	
	`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println("Querying Andamio Course Instances...")
		courseInstance()
	},
}

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Unit   string `json:"unit"`
	Amount string `json:"amount"`
}

type CourseInstance

type CourseInstance struct {
	TxHash          string  `json:"tx_hash"`
	Index           int     `json:"index"`
	Slot            int     `json:"slot"`
	Assets          []Asset `json:"assets"`
	Address         string  `json:"address"`
	Datum           Datum   `json:"datum"`
	ReferenceScript string  `json:"reference_script"`
	TxoutCbor       string  `json:"txout_cbor"`
}

type Data

type Data struct {
	Constructor int     `json:"constructor"`
	Fields      []Field `json:"fields"`
}

type Datum

type Datum struct {
	Type  string `json:"type"`
	Hash  string `json:"hash"`
	Bytes string `json:"bytes"`
	JSON  Data
}

type Field

type Field struct {
	Constructor int     `json:"constructor"`
	Fields      []Field `json:"fields,omitempty"`
	List        []Field `json:"list,omitempty"`
	Bytes       string  `json:"bytes,omitempty"`
}

Jump to

Keyboard shortcuts

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