Documentation ¶
Index ¶
- Constants
- Variables
- func GetMarket(markets []*vega.Market, oraclePubKey string, metadataTag string, ...) *vega.Market
- func ProposeAndVote(logger *zap.Logger, proposerVegawallet *wallet.VegaWallet, ...) error
- func ProposeAndVoteList(descriptionToProposalConfig map[string]*commandspb.ProposalSubmission, ...) error
- func ProposeAndVoteOnNetworkParameters(nameToValue map[string]string, proposerVegawallet *wallet.VegaWallet, ...) (int64, error)
- func ProposeVoteAndWait(description string, proposal *commandspb.ProposalSubmission, ...) error
- func ProposeVoteAndWaitList(descriptionToProposalConfig map[string]*commandspb.ProposalSubmission, ...) error
- func ProposeVoteProvideLP(name string, dataNodeClient vegaapi.DataNodeClient, ...) error
- func SubmitProposal(proposalDescription string, proposerVegawallet *wallet.VegaWallet, ...) (string, error)
- func SubmitProposalList(descriptionToProposalConfig map[string]*commandspb.ProposalSubmission, ...) (map[string]string, error)
- func SubmitTx(description string, dataNodeClient vegaapi.DataNodeClient, ...) error
- func TerminateMarketProposal(closingTime, enactmentTime time.Time, marketName string, marketId string, ...) *commandspb.ProposalSubmission
- func VoteOnProposal(voteDescription string, proposalId string, voterVegawallet *wallet.VegaWallet, ...) error
- func VoteOnProposalList(descriptionToProposalId map[string]string, voterVegawallet *wallet.VegaWallet, ...) error
- func WaitForEnactList(descriptionToProposalId map[string]string, ...) error
- func WaitForNetworkParameters(network *veganetwork.VegaNetwork, expectedNetworkParameters map[string]string) error
Constants ¶
View Source
const OracleAll = "*"
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 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 WaitForNetworkParameters ¶
func WaitForNetworkParameters(network *veganetwork.VegaNetwork, expectedNetworkParameters map[string]string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.