cli

package
v0.0.0-...-21d70e9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 33 Imported by: 1

Documentation

Index

Constants

View Source
const FeatureUpgradeHeight = int64(1)
View Source
const FeatureUpgradeKey = "FEATURE"

Variables

View Source
var CLIVersion = app.AppVersion
View Source
var (
	SendRawTxPath,
	GetNodePath,
	GetACLPath,
	GetUpgradePath,
	GetDAOOwnerPath,
	GetHeightPath,
	GetAccountPath,
	GetAppPath,
	GetTxPath,
	GetBlockPath,
	GetSupportedChainsPath,
	GetBalancePath,
	GetAccountTxsPath,
	GetNodeParamsPath,
	GetNodesPath,
	GetSigningInfoPath,
	GetAppsPath,
	GetAppParamsPath,
	GetPocketParamsPath,
	GetNodeClaimsPath,
	GetNodeClaimPath,
	GetBlockTxsPath,
	GetSupplyPath,
	GetAllParamsPath,
	GetParamPath,
	GetStopPath,
	GetQueryChains,
	GetAccountsPath string
)

Functions

func BuildStakeTx

func BuildStakeTx(
	operatorPubKeyStr,
	outputAddrStr,
	stakeAmountStr,
	chains,
	serviceUrl,
	delegatorsStr,
	networkId,
	feeStr,
	memo,
	signerAddrStr,
	passphrase string,
) (*rpc.SendRawTxParams, error)

func ChangeParam

func ChangeParam(fromAddr, paramACLKey string, paramValue json.RawMessage, passphrase, chainID string, fees int64, legacyCodec bool) (*rpc.SendRawTxParams, error)

func DAOTx

func DAOTx(fromAddr, toAddr, passphrase string, amount sdk.BigInt, action, chainID string, fees int64, legacyCodec bool) (*rpc.SendRawTxParams, error)

func Execute

func Execute()

func LegacyStakeNode

func LegacyStakeNode(chains []string, serviceURL, fromAddr, passphrase, chainID string, amount sdk.BigInt, fees int64, isBefore8 bool) (*rpc.SendRawTxParams, error)

LegacyStakeNode - Deliver Stake message to node

func QueryRPC

func QueryRPC(path string, jsonArgs []byte) (string, error)

func QuerySecuredRPC

func QuerySecuredRPC(path string, jsonArgs []byte, token sdk.AuthToken) (string, error)

func SendTransaction

func SendTransaction(fromAddr, toAddr, passphrase, chainID string, amount sdk.BigInt, fees int64, memo string, legacyCodec bool) (*rpc.SendRawTxParams, error)

SendTransaction - Deliver Transaction to node

func StakeApp

func StakeApp(chains []string, fromAddr, passphrase, chainID string, amount sdk.BigInt, fees int64, legacyCodec bool) (*rpc.SendRawTxParams, error)

func StakeNode

func StakeNode(chains []string, serviceURL, operatorPubKey, output, passphrase, chainID string, amount sdk.BigInt, fees int64, isBefore8 bool) (*rpc.SendRawTxParams, error)

StakeNode - Deliver Stake message to node

func TransferApp

func TransferApp(
	currentAppAddrStr, newAppPubKeyStr, passphrase, networkId string,
	fee int64,
	memo string,
) (*rpc.SendRawTxParams, error)

func UnjailNode

func UnjailNode(operatorAddr, fromAddr, passphrase, chainID string, fees int64, isBefore8 bool) (*rpc.SendRawTxParams, error)

UnjailNode - Remove node from jail

func UnstakeApp

func UnstakeApp(fromAddr, passphrase, chainID string, fees int64, legacyCodec bool) (*rpc.SendRawTxParams, error)

func UnstakeNode

func UnstakeNode(operatorAddr, fromAddr, passphrase, chainID string, fees int64, isBefore8 bool) (*rpc.SendRawTxParams, error)

UnstakeNode - start unstaking message to node

func Upgrade

func Upgrade(fromAddr string, upgrade govTypes.Upgrade, passphrase, chainID string, fees int64, legacyCodec bool) (*rpc.SendRawTxParams, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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