governance

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: 16 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 IgnoreProposer = ""

Variables

Functions

func FindProposalID added in v0.76.8

func FindProposalID(ctx context.Context, proposerPubKey string, reference string, client vegaapi.DataNodeClient) (string, error)

func IsProposalEnacted added in v0.76.8

func IsProposalEnacted(ctx context.Context, proposalId string, client vegaapi.DataNodeClient) (bool, error)

func NewBatchProposal added in v0.74.10

func NewBatchProposal(
	title, description string,
	closingTime time.Time,

	proposals []*commandspb.ProposalSubmission,

	batchTerms []*vega.BatchProposalTermsChange,
) *commandspb.BatchProposalSubmission

NewBatchProposal either proposals or batchTerms can be nil not both at the same time.

func Propose added in v0.76.8

func Propose(ctx context.Context, descriptionToProposalConfig map[string]*commandspb.ProposalSubmission, proposer wallet.Wallet, proposerPublicKey string, dataNodeClient vegaapi.DataNodeClient, logger *zap.Logger) error

func ProposeAndVoteOnNetworkParameters

func ProposeAndVoteOnNetworkParameters(ctx context.Context, desiredValues map[string]string, proposer wallet.Wallet, proposerPublicKey string, networkParams *types.NetworkParams, dataNodeClient vegaapi.DataNodeClient, logger *zap.Logger) (int64, error)

func ProposeVoteAndWait

func ProposeVoteAndWait(ctx context.Context, description string, proposal *commandspb.ProposalSubmission, proposer wallet.Wallet, proposerPublicKey string, dataNodeClient vegaapi.DataNodeClient, logger *zap.Logger) error

func ProposeVoteAndWaitList

func ProposeVoteAndWaitList(ctx context.Context, descriptionToProposalConfig map[string]*commandspb.ProposalSubmission, proposer wallet.Wallet, proposerPublicKey string, dataNodeClient vegaapi.DataNodeClient, logger *zap.Logger) error

func SubmitProposalList

func SubmitProposalList(ctx context.Context, descriptionToProposalConfig map[string]*commandspb.ProposalSubmission, proposer wallet.Wallet, proposerPublicKey string, dataNodeClient vegaapi.DataNodeClient) (map[string]string, error)

func TerminateMarketProposal

func TerminateMarketProposal(closingTime, enactmentTime time.Time, marketName string, marketId string, price string) *commandspb.ProposalSubmission

func VoteOnProposal

func VoteOnProposal(ctx context.Context, voteDescription string, proposalId string, voter wallet.Wallet, voterPublicKey string, dataNodeClient vegaapi.DataNodeClient) error

func VoteOnProposalList

func VoteOnProposalList(ctx context.Context, descriptionToProposalId map[string]string, voter wallet.Wallet, voterPublicKey string, dataNodeClient vegaapi.DataNodeClient) error

func WaitForEnactList

func WaitForEnactList(ctx context.Context, descriptionToProposalId map[string]string, dataNodeClient vegaapi.DataNodeClient, logger *zap.Logger) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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