governance

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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const OracleAll = "*"

Variables

Functions

func GetMarket

func GetMarket(markets []*vega.Market, oraclePubKey string, metadataTag string, validStates []vega.Market_State) *vega.Market

func ProposeAndVote

func ProposeAndVote(
	logger *zap.Logger,
	proposerVegawallet *wallet.VegaWallet,
	dataNodeClient vegaapi.DataNodeClient,
	proposal *commandspb.ProposalSubmission) error

func ProposeAndVoteList

func ProposeAndVoteList(
	descriptionToProposalConfig map[string]*commandspb.ProposalSubmission,
	proposerVegawallet *wallet.VegaWallet,
	dataNodeClient vegaapi.DataNodeClient,
	logger *zap.Logger,
) error

func ProposeAndVoteOnNetworkParameters

func ProposeAndVoteOnNetworkParameters(
	nameToValue map[string]string,
	proposerVegawallet *wallet.VegaWallet,
	networkParams *types.NetworkParams,
	dataNodeClient vegaapi.DataNodeClient,
	logger *zap.Logger,
) (int64, error)

func ProposeVoteAndWait

func ProposeVoteAndWait(
	description string,
	proposal *commandspb.ProposalSubmission,
	proposerVegawallet *wallet.VegaWallet,
	dataNodeClient vegaapi.DataNodeClient,
	logger *zap.Logger,
) error

func ProposeVoteAndWaitList

func ProposeVoteAndWaitList(
	descriptionToProposalConfig map[string]*commandspb.ProposalSubmission,
	proposerVegawallet *wallet.VegaWallet,
	dataNodeClient vegaapi.DataNodeClient,
	logger *zap.Logger,
) error

func ProposeVoteProvideLP

func ProposeVoteProvideLP(
	name string,
	dataNodeClient vegaapi.DataNodeClient,
	lastBlockData *vegaapipb.LastBlockHeightResponse,
	markets []*vega.Market,
	proposerVegawallet *wallet.VegaWallet,
	oraclePubKey string,
	closingTime time.Time,
	enactmentTime time.Time,
	marketMetadataMarker string,
	proposal *commandspb.ProposalSubmission,
	logger *zap.Logger,
) error

func SubmitProposal

func SubmitProposal(
	proposalDescription string,
	proposerVegawallet *wallet.VegaWallet,
	proposal *commandspb.ProposalSubmission,
	dataNodeClient vegaapi.DataNodeClient,
	logger *zap.Logger,
) (string, error)

func SubmitProposalList

func SubmitProposalList(
	descriptionToProposalConfig map[string]*commandspb.ProposalSubmission,
	proposerVegawallet *wallet.VegaWallet,
	dataNodeClient vegaapi.DataNodeClient,
	logger *zap.Logger,
) (map[string]string, error)

func SubmitTx

func SubmitTx(
	description string,
	dataNodeClient vegaapi.DataNodeClient,
	proposerVegawallet *wallet.VegaWallet,
	logger *zap.Logger,
	walletTxReq *walletpb.SubmitTransactionRequest,
) error

func TerminateMarketProposal

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

func VoteOnProposal

func VoteOnProposal(
	voteDescription string,
	proposalId string,
	voterVegawallet *wallet.VegaWallet,
	dataNodeClient vegaapi.DataNodeClient,
	logger *zap.Logger,
) error

func VoteOnProposalList

func VoteOnProposalList(
	descriptionToProposalId map[string]string,
	voterVegawallet *wallet.VegaWallet,
	dataNodeClient vegaapi.DataNodeClient,
	logger *zap.Logger,
) error

func WaitForEnactList

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

func WaitForNetworkParameters

func WaitForNetworkParameters(network *veganetwork.VegaNetwork, expectedNetworkParameters map[string]string) 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