admin

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: LGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Admin              string
	Implementation     string
	Relayer            string
	DepositNonce       uint64
	DomainID           uint8
	ChainID            uint64
	Fee                string
	RelayerThreshold   uint64
	SignatureThreshold uint64
	Amount             string
	TokenID            string
	Handler            string
	Token              string
	Decimals           uint64
	Recipient          string
	Bridge             string
	Account            string
	Proxy              string
	Signature          string
	FeeHandler         bool

	SrcBridge  string
	DestBridge string

	SrcUrl   string
	RelayUrl string
	DestUrl  string

	TxID   string
	Submit bool
)

flag vars

View Source
var (
	BridgeAddr         common.Address
	TxHash             common.Hash
	SrcBridgeAddr      common.Address
	DestBridgeAddr     common.Address
	AccountAddr        common.Address
	ProxyAddr          common.Address
	SignatureAddr      common.Address
	HandlerAddr        common.Address
	RelayerAddr        common.Address
	AdminAddr          common.Address
	ImplementationAddr 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 AddAdminCMD

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

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 BindChangeAdminFlags

func BindChangeAdminFlags(cmd *cobra.Command)

func BindGetDestChainIdFlags

func BindGetDestChainIdFlags(cmd *cobra.Command)

func BindGetDomainFlags

func BindGetDomainFlags(cmd *cobra.Command)

func BindGetFeeFlags

func BindGetFeeFlags(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 BindProposalLogicFlags

func BindProposalLogicFlags(cmd *cobra.Command)

func BindRemoveAdminFlags

func BindRemoveAdminFlags(cmd *cobra.Command)

func BindRemoveRelayerFlags

func BindRemoveRelayerFlags(cmd *cobra.Command)

func BindRenounceAdminFlags

func BindRenounceAdminFlags(cmd *cobra.Command)

func BindSetDepositNonceFlags

func BindSetDepositNonceFlags(cmd *cobra.Command)

func BindSetDomainFlags

func BindSetDomainFlags(cmd *cobra.Command)

func BindSetFeeFlags

func BindSetFeeFlags(cmd *cobra.Command)

func BindSetSpecialFeeFlags

func BindSetSpecialFeeFlags(cmd *cobra.Command)

func BindSetThresholdFlags

func BindSetThresholdFlags(cmd *cobra.Command)

func BindTransferFeeFlags

func BindTransferFeeFlags(cmd *cobra.Command)

func BindUnpauseFlags

func BindUnpauseFlags(cmd *cobra.Command)

func BindUpgradeImplementationFlags

func BindUpgradeImplementationFlags(cmd *cobra.Command)

func BindWithdrawFlags

func BindWithdrawFlags(cmd *cobra.Command)

func ChangeAdminEVMCMD

func ChangeAdminEVMCMD(cmd *cobra.Command, args []string, contract *proxy.ProxyContract) error

func GetDestChainIdCMD

func GetDestChainIdCMD(cmd *cobra.Command, args []string, contract *signatures.SignaturesContract) error

func GetDomainCMD

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

func GetFeeCMD

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

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 ProcessAddAdminFlags

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

func ProcessAddRelayerFlags

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

func ProcessChangeAdminFlags

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

func ProcessGetDestChainIdFlags

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

func ProcessGetDomainFlags

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

func ProcessGetFeeFlags

func ProcessGetFeeFlags(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 ProcessProcessProposalFlags

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

func ProcessProposalCMD

func ProcessProposalCMD(cmd *cobra.Command, args []string, srcClient *evmclient.EVMClient, _ *bridge.BridgeContract, relayContract *signatures.SignaturesContract, destContract *bridge.BridgeContract) error

func ProcessRemoveAdminFlags

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

func ProcessRemoveRelayerFlags

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

func ProcessRenounceAdminFlags

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

func ProcessSetDepositNonceFlags

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

func ProcessSetDomainFlags

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

func ProcessSetFeeFlags

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

func ProcessSetSpecialFeeFlags

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

func ProcessSetThresholdFlags

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

func ProcessTransferFeeFlags

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

func ProcessUnpauseFlags

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

func ProcessUpgradeImplementationFlags

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

func ProcessWithdrawFlags

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

func RemoveAdminCMD

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

func RemoveRelayerEVMCMD

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

func RenounceAdminEVMCMD

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

func SetDepositNonceEVMCMD

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

func SetDomainCMD

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

func SetFeeCMD

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

func SetSpecialFeeCMD

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

func SetThresholdCMD

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

func TransferFeeCMD

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

func UnpackDepositEventLog

func UnpackDepositEventLog(abi abi.ABI, data []byte) (*evmclient.DepositLogs, error)

func UnpauseCmd

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

func UpgradeImplementationEVMCMD

func UpgradeImplementationEVMCMD(cmd *cobra.Command, args []string, contract *proxy.ProxyContract) error

func ValidateAddAdminFlags

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

func ValidateAddRelayerFlags

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

func ValidateChangeAdminFlags

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

func ValidateGetDestChainIdFlags

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

func ValidateGetDomainFlags

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

func ValidateGetFeeFlags

func ValidateGetFeeFlags(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 ValidateProcessProposalFlags

func ValidateProcessProposalFlags(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 ValidateRenounceAdminFlags

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

func ValidateSetDepositNonceFlags

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

func ValidateSetDomainFlags

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

func ValidateSetFeeFlags

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

func ValidateSetSpecialFeeFlags

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

func ValidateSetThresholdFlags

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

func ValidateTransferFeeFlags

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

func ValidateUnpauseFlags

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

func ValidateUpgradeImplementationFlags

func ValidateUpgradeImplementationFlags(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