topup

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TopUpCmd = &cobra.Command{
	Use:   "topup",
	Short: "Deposit ERC20 assets to vega pub keys",
	Long:  `Deposit ERC20 assets to vega pub keys`,
}

Root Command for OPS

Functions

func DepositAssetToParites

func DepositAssetToParites(
	network *veganetwork.VegaNetwork,
	networktools *networktools.NetworkTools,
	assetId string,
	humanDepositAmount *big.Float,
	vegaPubKeys []string,
	logger *zap.Logger,
) error

func RunTopUpLiqbot

func RunTopUpLiqbot(args LiqbotArgs) error

func RunTopUpParties

func RunTopUpParties(args PartiesArgs) error

func RunTopUpTraderbot

func RunTopUpTraderbot(args TraderbotArgs) error

Types

type LiqbotArgs

type LiqbotArgs struct {
	*TopUpArgs
	VegaNetworkName string
}

type PartiesArgs

type PartiesArgs struct {
	*TopUpArgs
	VegaNetworkName      string
	ERC20TokenHexAddress string
	FakeTokenAssetId     string
	PartiesVegaPubKeys   []string
	Amount               string
	Repeat               uint16
}

type TopUpArgs

type TopUpArgs struct {
	*rootCmd.RootArgs
}

type TraderbotArgs

type TraderbotArgs struct {
	*TopUpArgs
	VegaNetworkName string
	TraderBotId     string
}

Jump to

Keyboard shortcuts

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