global_state

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllGlobalStateUtxosCmd = &cobra.Command{
	Use:   "all-global-state-utxos",
	Short: "List UTxOs for all access tokens on Andamio Network",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {
		client.GetAllGlobalStateUtxos()
	},
}
View Source
var DecodedGlobalStateDatumCmd = &cobra.Command{
	Use:   "view-access-token",
	Short: "View access token datum for specified alias",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {
		response, err := client.GetDecodedGlobalStateDatum(alias)
		if err != nil {
			log.Fatalf("Falied to get list of access token datums: %v", err)
		}

		utils.SaveOutputToFile(cmd, response)
	},
}
View Source
var GlobalStateCmd = &cobra.Command{
	Use:   "global-state",
	Short: "View Andamio Network data",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {

		if len(args) == 0 {
			cmd.Help()
			return
		}

		fmt.Printf("Error: '%s' is not a valid subcommand for 'global-state'\n", args[0])
		fmt.Println("Run './andamio-cli query network global-state --help' for available subcommands.")
		os.Exit(1)
	},
}
View Source
var GlobalStateUtxoCmd = &cobra.Command{
	Use:   "global-state-utxo",
	Short: "View global state utxo for specified alias",
	Long:  ``,
	Run: func(cmd *cobra.Command, args []string) {
		client.GetGlobalStateUtxo(alias)
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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