didoperations

package
v0.0.0-...-48ef1ca Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IoTeXDIDABI defines the ABI of IoTeX DID contract
	IoTeXDIDABI = `` /* 3257-byte string literal not displayed */

	// DeviceDecentralizedIdentifierABI defines the ABI of Device DID
	DeviceDecentralizedIdentifierABI = `` /* 6486-byte string literal not displayed */

	MockDeviceDIDABI = `` /* 7633-byte string literal not displayed */

	ControllerContractAddress     = "io15kftve6k3nrwccwsahq205gckavzn8mkuf2ws3"
	DeviceOperatorContractAddress = "io1saftaaamturktykv27ftj32ckj86sqly0tgwjj"
	MockDeviceContractAddress     = "io1zegt9x0kkt6v60d9c87aq96q3h63qv9wdjwkhe"
	ControllerDIDPrefix           = "did:io:"
	MockDeviceDIDPrefix           = "did:io:mock:"
	IOEndpoint                    = "api.testnet.iotex.one:443"
)

Variables

View Source
var (
	GasPrice = big.NewInt(1e12)
	GasLimit = uint64(3000000)
)
View Source
var CreateControllerDIDCmd = &cobra.Command{
	Use:   "create-controller",
	Short: "Create DID for controller",
	RunE: func(cmd *cobra.Command, args []string) error {
		cmd.SilenceUsage = true
		return createControllerDID()
	},
}
View Source
var CreateDeviceDIDCmd = &cobra.Command{
	Use:   "create-device",
	Short: "Create DID for device",
	RunE: func(cmd *cobra.Command, args []string) error {
		cmd.SilenceUsage = true
		return createDeviceDID()
	},
}
View Source
var DeleteControllerDIDCmd = &cobra.Command{
	Use:   "delete-controller",
	Short: "Delete DID for controller",
	RunE: func(cmd *cobra.Command, args []string) error {
		cmd.SilenceUsage = true
		return deleteControllerDID()
	},
}
View Source
var DeleteDeviceDIDCmd = &cobra.Command{
	Use:   "delete-device",
	Short: "Delete DID for device",
	RunE: func(cmd *cobra.Command, args []string) error {
		cmd.SilenceUsage = true
		return deleteDeviceDID()
	},
}
View Source
var GetControllerDIDCmd = &cobra.Command{
	Use:   "get-controller",
	Short: "Get DID document hash and URI for controller",
	RunE: func(cmd *cobra.Command, args []string) error {
		cmd.SilenceUsage = true
		return getControllerDID()
	},
}
View Source
var GetDeviceDIDCmd = &cobra.Command{
	Use:   "get-device",
	Short: "Get DID document hash and URI for device",
	RunE: func(cmd *cobra.Command, args []string) error {
		cmd.SilenceUsage = true
		return getDeviceDID()
	},
}
View Source
var UpdateControllerDIDCmd = &cobra.Command{
	Use:   "update-controller",
	Short: "Update DID for controller",
	RunE: func(cmd *cobra.Command, args []string) error {
		cmd.SilenceUsage = true
		return updateControllerDID()
	},
}
View Source
var UpdateDeviceDIDCmd = &cobra.Command{
	Use:   "update-device",
	Short: "Update DID for device",
	RunE: func(cmd *cobra.Command, args []string) error {
		cmd.SilenceUsage = true
		return updateDeviceDID()
	},
}

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