tx

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Fee    string
	Height string
)
View Source
var BurnCmd = &cobra.Command{
	Use:   "burn <udc_id> <amount>",
	Short: "Burn certain amount of UDC",
	Args:  cobra.MinimumNArgs(2),
	RunE:  burnFunc,
}
View Source
var CancelCmd = &cobra.Command{
	Use:   "cancel <parcel_id>",
	Short: "Cancel the request of parcel in store/request",
	Args:  cobra.MinimumNArgs(1),
	RunE:  cancelFunc,
}
View Source
var CloseCmd = &cobra.Command{
	Use:   "close <storage_id>",
	Short: "Close a storage with its id",
	Args:  cobra.MinimumNArgs(1),
	RunE:  closeFunc,
}
View Source
var Cmd = &cobra.Command{
	Use:     "tx",
	Aliases: []string{"t"},
	Short:   "Send signed transactions",
}
View Source
var DIDClaimCmd = &cobra.Command{
	Use:   "did.claim <did> <filename>",
	Short: "Register a DID document",
	Args:  cobra.MinimumNArgs(2),
	RunE:  didClaimFunc,
}
View Source
var DIDDismissCmd = &cobra.Command{
	Use:   "did.dismiss <did>",
	Short: "Deactivate a DID document",
	Args:  cobra.MinimumNArgs(1),
	RunE:  didDismissFunc,
}
View Source
var DIDIssueCmd = &cobra.Command{
	Use:   "did.issue <vcid> <filename>",
	Short: "Publish a verifiable credential",
	Args:  cobra.MinimumNArgs(2),
	RunE:  didIssueFunc,
}
View Source
var DIDRevokeCmd = &cobra.Command{
	Use:   "did.revoke <vcid>",
	Short: "Revoke a verifiable credential",
	Args:  cobra.MinimumNArgs(1),
	RunE:  didDismissFunc,
}
View Source
var DelegateCmd = &cobra.Command{
	Use:   "delegate <address> <amount>",
	Short: "Lock sender's AMO coin as a delegated stake of the delegator",
	Args:  cobra.MinimumNArgs(2),
	RunE:  delegateFunc,
}
View Source
var DiscardCmd = &cobra.Command{
	Use:   "discard <parcel_id>",
	Short: "Discard the registered data in store/parcel",
	Args:  cobra.MinimumNArgs(1),
	RunE:  discardFunc,
}
View Source
var GrantCmd = &cobra.Command{
	Use:   "grant <parcel_id> <recipient> <key_custody>",
	Short: "Grant a parcel permission",
	Args:  cobra.MinimumNArgs(3),
	RunE:  grantFunc,
}
View Source
var IssueCmd = &cobra.Command{
	Use:   "issue <udc_id> <amount>",
	Short: "Issue a UDC with its id and total issue amount",
	Args:  cobra.MinimumNArgs(2),
	RunE:  issueFunc,
}
View Source
var LockCmd = &cobra.Command{
	Use:   "lock <udc_id> <holder> <amount>",
	Short: "Lock certain amount of holder's UDC",
	Args:  cobra.MinimumNArgs(3),
	RunE:  LockFunc,
}
View Source
var ProposeCmd = &cobra.Command{
	Use:   "propose <draft_id> <config> <desc>",
	Short: "Propose a draft of configs to change",
	Args:  cobra.MinimumNArgs(3),
	RunE:  proposeFunc,
}
View Source
var RegisterCmd = &cobra.Command{
	Use:   "register <parcel_id> <key_custody>",
	Short: "Register a parcel with extra information",
	Args:  cobra.MinimumNArgs(2),
	RunE:  registerFunc,
}
View Source
var RequestCmd = &cobra.Command{
	Use:   "request <parcel_id> <amount>",
	Short: "Request a parcel permission with payment",
	Args:  cobra.MinimumNArgs(2),
	RunE:  requestFunc,
}
View Source
var RetractCmd = &cobra.Command{
	Use:   "retract <amount>",
	Short: "Retract all or part of the AMO coin locked as a delegated stake",
	Args:  cobra.MinimumNArgs(1),
	RunE:  retractFunc,
}
View Source
var RevokeCmd = &cobra.Command{
	Use:   "revoke <parcel_id> <recipient>",
	Short: "Delete the usage of parcel in store/usage",
	Args:  cobra.MinimumNArgs(2),
	RunE:  revokeFunc,
}
View Source
var SetupCmd = &cobra.Command{
	Use:   "setup <storage_id> <url> <registration_fee> <hosting_fee>",
	Short: "Setup a storage with url and paying fees",
	Args:  cobra.MinimumNArgs(4),
	RunE:  setupFunc,
}
View Source
var StakeCmd = &cobra.Command{
	Use:   "stake <validator_pubkey> <amount>",
	Short: "Lock AMO coin and acquire a stake with a validator key",
	Args:  cobra.MinimumNArgs(2),
	RunE:  stakeFunc,
}
View Source
var TransferCmd = &cobra.Command{
	Use:   "transfer <address> <amount>|<parcel_id>",
	Short: "Transfer the specified amount of money or parcel to <address>",
	Args:  cobra.MinimumNArgs(2),

	RunE: transferFunc,
}
View Source
var VoteCmd = &cobra.Command{
	Use:   "vote <draft_id> <approve>",
	Short: "Vote on a draft",
	Args:  cobra.MinimumNArgs(2),
	RunE:  voteFunc,
}
View Source
var WithdrawCmd = &cobra.Command{
	Use:   "withdraw <amount>",
	Short: "Withdraw all or part of the AMO coin locked as a stake",
	Args:  cobra.MinimumNArgs(1),
	RunE:  withdrawFunc,
}

Functions

func GetLastHeight added in v1.3.0

func GetLastHeight(path string) (string, error)

func LockFunc added in v1.4.2

func LockFunc(cmd *cobra.Command, args []string) error

func SetLastHeight added in v1.3.0

func SetLastHeight(path, lastHeight string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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