vegaapi

package
v0.75.8 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 6 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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataNodeClient

type DataNodeClient interface {
	VegaCoreClient
	GetAllNetworkParameters() (map[string]string, error)
	ListNetworkParameters(req *dataapipb.ListNetworkParametersRequest) (response *dataapipb.ListNetworkParametersResponse, err error)
	GetCurrentEpoch() (*vega.Epoch, error)
	GetAssets() (map[string]*vega.AssetDetails, error)
	GetAllMarkets() ([]*vega.Market, error)
	GetMarketById(marketId string) (*vega.Market, error)
	GetPartyTotalStake(partyId string) (*big.Int, error)
	GetFunds(
		partyID string,
		accountType vega.AccountType,
		assetId *string,
	) ([]datanode.AccountFunds, error)
	ListCoreSnapshots() ([]vegaeventspb.CoreSnapshotData, error)
	LastNetworkHistorySegment() (*dataapipb.HistorySegment, error)
	ListProtocolUpgradeProposals() ([]vegaeventspb.ProtocolUpgradeEvent, error)
	ListGovernanceData(
		req *dataapipb.ListGovernanceDataRequest,
	) (response *dataapipb.ListGovernanceDataResponse, err error)
	GetGovernanceData(req *dataapipb.GetGovernanceDataRequest) (response *dataapipb.GetGovernanceDataResponse, err error)
	ListVotes(req *dataapipb.ListVotesRequest) (response *dataapipb.ListVotesResponse, err error)
	GetCurrentReferralProgram() (*dataapipb.ReferralProgram, error)
	GetReferralSets() (map[string]*v2.ReferralSet, error)
	GetReferralSetReferees() (map[string]v2.ReferralSetReferee, error)
	GetCurrentVolumeDiscountProgram() (*dataapipb.VolumeDiscountProgram, error)
}

type VegaCoreClient

type VegaCoreClient interface {
	LastBlockData() (*vegaapipb.LastBlockHeightResponse, error)
	Statistics() (*vegaapipb.StatisticsResponse, error)
	SubmitTransaction(
		req *vegaapipb.SubmitTransactionRequest,
	) (response *vegaapipb.SubmitTransactionResponse, err error)
	PropagateChainEvent(
		req *vegaapipb.PropagateChainEventRequest,
	) (response *vegaapipb.PropagateChainEventResponse, err error)
	DepositBuiltinAsset(
		vegaAssetId string,
		partyId string,
		amount string,
		signAny func([]byte) ([]byte, string, error),
	) (bool, error)
	DepositERC20Asset(
		vegaAssetId string,
		sourceEthereumAddress string,
		targetPartyId string,
		amount string,
		signAny func([]byte) ([]byte, string, error),
	) (bool, error)
	CoreNetworkParameters(parameterKey string) ([]*vega.NetworkParameter, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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