Documentation ¶
Index ¶
- Constants
- Variables
- func FindProposalID(ctx context.Context, proposerPubKey string, reference string, ...) (string, error)
- func IsProposalEnacted(ctx context.Context, proposalId string, client vegaapi.DataNodeClient) (bool, error)
- func NewBatchProposal(title, description string, closingTime time.Time, ...) *commandspb.BatchProposalSubmission
- func Propose(ctx context.Context, ...) error
- func ProposeAndVoteOnNetworkParameters(ctx context.Context, desiredValues map[string]string, proposer wallet.Wallet, ...) (int64, error)
- func ProposeVoteAndWait(ctx context.Context, description string, ...) error
- func ProposeVoteAndWaitList(ctx context.Context, ...) error
- func SubmitProposalList(ctx context.Context, ...) (map[string]string, error)
- func TerminateMarketProposal(closingTime, enactmentTime time.Time, marketName string, marketId string, ...) *commandspb.ProposalSubmission
- func VoteOnProposal(ctx context.Context, voteDescription string, proposalId string, ...) error
- func VoteOnProposalList(ctx context.Context, descriptionToProposalId map[string]string, ...) error
- func WaitForEnactList(ctx context.Context, descriptionToProposalId map[string]string, ...) error
Constants ¶
View Source
const IgnoreProposer = ""
Variables ¶
View Source
var LiveMarketStates = []vega.Market_State{ vega.Market_STATE_ACTIVE, vega.Market_STATE_PROPOSED, vega.Market_STATE_PENDING, vega.Market_STATE_SUSPENDED, vega.Market_STATE_SUSPENDED_VIA_GOVERNANCE, }
Functions ¶
func FindProposalID ¶ added in v0.76.8
func IsProposalEnacted ¶ added in v0.76.8
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 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 VoteOnProposalList ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.