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"` }
Click to show internal directories.
Click to hide internal directories.