admin

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Admin            string
	Relayer          string
	DepositNonce     uint64
	DomainID         uint8
	Fee              string
	RelayerThreshold uint64
	Amount           string
	TokenID          string
	Handler          string
	Token            string
	Decimals         uint64
	Recipient        string
	Bridge           string
)

flag vars

View Source
var (
	BridgeAddr    common.Address
	HandlerAddr   common.Address
	RelayerAddr   common.Address
	RecipientAddr common.Address
	TokenAddr     common.Address
	RealAmount    *big.Int
)

processed flag vars

View Source
var AdminCmd = &cobra.Command{
	Use:   "admin",
	Short: "Set of commands for executing various admin actions",
	Long:  "Set of commands for executing various admin actions",
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		var err error

		url, gasLimit, gasPrice, senderKeyPair, prepare, err = flags.GlobalFlagValues(cmd)
		if err != nil {
			return fmt.Errorf("could not get global flags: %v", err)
		}
		return nil
	},
}

Functions

func AddRelayerEVMCMD

func AddRelayerEVMCMD(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error

func BindAddAdminFlags

func BindAddAdminFlags(cmd *cobra.Command)

func BindAddRelayerFlags

func BindAddRelayerFlags(cmd *cobra.Command)

func BindGetThresholdFlags

func BindGetThresholdFlags(cmd *cobra.Command)

func BindIsRelayerFlags

func BindIsRelayerFlags(cmd *cobra.Command)

func BindPauseFlags

func BindPauseFlags(cmd *cobra.Command)

func BindRemoveAdminFlags

func BindRemoveAdminFlags(cmd *cobra.Command)

func BindRemoveRelayerFlags

func BindRemoveRelayerFlags(cmd *cobra.Command)

func BindSetDepositNonceFlags

func BindSetDepositNonceFlags(cmd *cobra.Command)

func BindSetFeeFlags

func BindSetFeeFlags(cmd *cobra.Command)

func BindSetThresholdFlags

func BindSetThresholdFlags(cmd *cobra.Command)

func BindUnpauseFlags

func BindUnpauseFlags(cmd *cobra.Command)

func BindWithdrawFlags

func BindWithdrawFlags(cmd *cobra.Command)

func GetThresholdCMD

func GetThresholdCMD(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error

func IsRelayer

func IsRelayer(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error

func PauseCmd

func PauseCmd(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error

func ProcessAddRelayerFlags

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

func ProcessGetThresholdFlags

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

func ProcessIsRelayerFlags

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

func ProcessPauseFlags

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

func ProcessSetDepositNonceFlags

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

func ProcessSetThresholdFlags

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

func ProcessUnpauseFlags

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

func ProcessWithdrawFlags

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

func SetDepositNonceEVMCMD

func SetDepositNonceEVMCMD(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error

func SetThresholdCMD

func SetThresholdCMD(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error

func UnpauseCmd

func UnpauseCmd(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error

func ValidateAddAdminFlags

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

func ValidateAddRelayerFlags

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

func ValidateGetThresholdFlags

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

func ValidateIsRelayerFlags

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

func ValidatePauseFlags

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

func ValidateRemoveAdminFlags

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

func ValidateRemoveRelayerFlags

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

func ValidateSetDepositNonceFlags

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

func ValidateSetFeeFlags

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

func ValidateSetThresholdFlags

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

func ValidateUnpauseFlags

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

func ValidateWithdrawFlags

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

func WithdrawCmd

func WithdrawCmd(cmd *cobra.Command, args []string, contract *bridge.BridgeContract) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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