topup

package
v0.73.9 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTopUpValue = 10000
	TraderTopUpFactor = 3.0
	WhaleTopUpFactor  = 10.0
)

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

func RunTopUpWithTransfer added in v0.73.9

func RunTopUpWithTransfer(args TopUpWithTransferArgs) error

Types

type AssetTopUp added in v0.73.9

type AssetTopUp struct {
	Symbol          string
	ContractAddress string
	VegaAssetId     string
	TotalAmount     *big.Float
	Parties         map[string]*big.Float
}

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 TopUpWithTransferArgs added in v0.73.9

type TopUpWithTransferArgs struct {
	*TopUpArgs
	VegaNetworkName string
	TradersURL      string
}

type TraderbotArgs

type TraderbotArgs struct {
	*TopUpArgs
	VegaNetworkName string
	TraderBotsURL   string
	TraderBotId     string
}

Jump to

Keyboard shortcuts

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