writeContractTokenDatum

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 ContractTokenDatumCmd = &cobra.Command{
	Use:   "contract-token-datum",
	Short: "Andamio Course Contract Token Datum",
	Long: `
Query the list of courses currently registered on the Andamio Network
	
	`,
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Printf("Writing contract token datum from %s...\n", inputFileName)
		writeContractTokenDatum(inputFileName)
	},
}

Functions

This section is empty.

Types

type InputContractTokenData

type InputContractTokenData struct {
	ContributorPolicyIds []string           `json:"contributorPolicyIds"`
	Projects             []InputProjectData `json:"projects"`
	EscrowHash           string             `json:"escrowHash"`
}

type InputProjectData

type InputProjectData struct {
	Title      string `json:"title"`
	Expiration int64  `json:"expiration"`
	Ada        int    `json:"ada"`
	Gimbals    int    `json:"gimbals"`
}

Input structures

type OutputDatum

type OutputDatum struct {
	Constructor int                      `json:"constructor"`
	Fields      []OutputDatumConstructor `json:"fields"`
}

type OutputDatumConstructor

type OutputDatumConstructor struct {
	Constructor int           `json:"constructor"`
	Fields      []interface{} `json:"fields,omitempty"`
}

Output structures

type OutputDatumConstructorList

type OutputDatumConstructorList struct {
	List []OutputDatumConstructor `json:"list"`
}

type OutputDatumField

type OutputDatumField struct {
	Bytes string             `json:"bytes,omitempty"`
	Int   int64              `json:"int,omitempty"`
	List  []OutputDatumField `json:"list,omitempty"`
}

Jump to

Keyboard shortcuts

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