vegaapi

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: 9 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
	ListNetworkParameters(ctx context.Context) (*types.NetworkParams, error)
	GetCurrentEpoch(ctx context.Context) (*vega.Epoch, error)
	ListAssets(ctx context.Context) (map[string]*vega.AssetDetails, error)
	ListMarkets(ctx context.Context) ([]*vega.Market, error)
	GetAllMarketsWithState(ctx context.Context, states []vega.Market_State) ([]*vega.Market, error)
	GetPartyTotalStake(ctx context.Context, partyId string) (*big.Int, error)
	GeneralAccountBalance(ctx context.Context, partyID, assetID string) (*big.Int, error)
	ListAccounts(ctx context.Context, partyID string, accountType vega.AccountType, assetId *string) ([]datanode.AccountFunds, error)
	ListCoreSnapshots(ctx context.Context) ([]vegaeventspb.CoreSnapshotData, error)
	LastNetworkHistorySegment(ctx context.Context) (*dataapipb.HistorySegment, error)
	ListProtocolUpgradeProposals(ctx context.Context) ([]vegaeventspb.ProtocolUpgradeEvent, error)
	ListGovernanceData(ctx context.Context, req *v2.ListGovernanceDataRequest) (response *v2.ListGovernanceDataResponse, err error)
	GetGovernanceData(ctx context.Context, req *v2.GetGovernanceDataRequest) (response *v2.GetGovernanceDataResponse, err error)
	ListVotes(ctx context.Context, req *v2.ListVotesRequest) (response *v2.ListVotesResponse, err error)
	GetCurrentReferralProgram(ctx context.Context) (*v2.ReferralProgram, error)
	ListReferralSets(ctx context.Context) (map[string]*v2.ReferralSet, error)
	ListReferralSetReferees(ctx context.Context) (map[string]v2.ReferralSetReferee, error)
	GetCurrentVolumeDiscountProgram(ctx context.Context) (*dataapipb.VolumeDiscountProgram, error)
}

type VegaCoreClient

type VegaCoreClient interface {
	LastBlock(ctx context.Context) (*vegaapipb.LastBlockHeightResponse, error)
	Statistics(ctx context.Context) (*vegaapipb.StatisticsResponse, error)
	SendTransaction(ctx context.Context, tx *commandspb.Transaction, reqType vegaapipb.SubmitTransactionRequest_Type) (response *vegaapipb.SubmitTransactionResponse, err error)
	DepositBuiltinAsset(ctx context.Context, vegaAssetId string, partyId string, amount string, signAny func([]byte) ([]byte, string, error)) (bool, error)
	CoreNetworkParameters(ctx context.Context, 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