bots

package
v0.76.8 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 32 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	TopUpFactorForTradingBots = 3.0
	TopUpFactorForWhale       = 30.0
)

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "bots",
	Short: "Manage bots on the network",
	Long:  "Manage bots on the network",
}

Functions

func TopUpBots

func TopUpBots(args TopUpArgs) error

Types

type Args

type Args struct {
	*rootCmd.RootArgs

	NetworkFile string
}

type AssetToTopUp

type AssetToTopUp struct {
	Symbol          string
	ContractAddress string
	VegaAssetId     string
	TotalAmount     *types.Amount
	AmountsByParty  map[string]*types.Amount
}

type Party

type Party struct {
	Name      string
	Wallet    wallet.Wallet
	PublicKey string
	Joined    bool
}

type ReferralArgs

type ReferralArgs struct {
	*Args
	Setup                 bool
	Assets                []string
	NumberOfSets          uint32
	NumberOfMembersPerSet uint32
}

type ReferralSet

type ReferralSet struct {
	Leader   Party
	Referees []Party
	ID       string
}

func NewReferralSet

func NewReferralSet(referrer Party) ReferralSet

type TopUpArgs

type TopUpArgs struct {
	*Args
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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