Documentation ¶
Index ¶
- Variables
- type AccountFunds
- type DataNode
- func (n *DataNode) ERC20AssetWithAddress(ctx context.Context, address string) (*vega.AssetDetails, *vega.ERC20, error)
- func (n *DataNode) GeneralAccountBalance(ctx context.Context, partyID, assetID string) (*big.Int, error)
- func (n *DataNode) GetAllMarketsWithState(ctx context.Context, states []vega.Market_State) ([]*vega.Market, error)
- func (n *DataNode) GetCurrentEpoch(ctx context.Context) (*vega.Epoch, error)
- func (n *DataNode) GetCurrentReferralProgram(ctx context.Context) (*v2.ReferralProgram, error)
- func (n *DataNode) GetCurrentVolumeDiscountProgram(ctx context.Context) (*dataapipb.VolumeDiscountProgram, error)
- func (n *DataNode) GetGovernanceData(ctx context.Context, req *dataapipb.GetGovernanceDataRequest) (*dataapipb.GetGovernanceDataResponse, error)
- func (n *DataNode) GetPartyTotalStake(ctx context.Context, partyId string) (*big.Int, error)
- func (n *DataNode) LastNetworkHistorySegment(ctx context.Context) (*dataapipb.HistorySegment, error)
- func (n *DataNode) ListAccounts(ctx context.Context, partyID string, accountType vega.AccountType, ...) ([]AccountFunds, error)
- func (n *DataNode) ListAssets(ctx context.Context) (map[string]*vega.AssetDetails, error)
- func (n *DataNode) ListCoreSnapshots(ctx context.Context) ([]vegaeventspb.CoreSnapshotData, error)
- func (n *DataNode) ListDelegations(req *dataapipb.ListDelegationsRequest) (*dataapipb.ListDelegationsResponse, error)
- func (n *DataNode) ListGovernanceData(ctx context.Context, req *dataapipb.ListGovernanceDataRequest) (*dataapipb.ListGovernanceDataResponse, error)
- func (n *DataNode) ListMarkets(ctx context.Context) ([]*vega.Market, error)
- func (n *DataNode) ListNetworkParameters(ctx context.Context) (*types.NetworkParams, error)
- func (n *DataNode) ListProtocolUpgradeProposals(ctx context.Context) ([]vegaeventspb.ProtocolUpgradeEvent, error)
- func (n *DataNode) ListReferralSetReferees(ctx context.Context) (map[string]v2.ReferralSetReferee, error)
- func (n *DataNode) ListReferralSets(ctx context.Context) (map[string]*v2.ReferralSet, error)
- func (n *DataNode) ListVotes(ctx context.Context, req *dataapipb.ListVotesRequest) (*dataapipb.ListVotesResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ActiveMarkets = []vega.Market_State{ vega.Market_STATE_ACTIVE, vega.Market_STATE_SUSPENDED, vega.Market_STATE_PENDING, }
View Source
var ErrAssetNotFound = errors.New("asset not found")
Functions ¶
This section is empty.
Types ¶
type AccountFunds ¶
type DataNode ¶
DataNode stores state for a Vega Data node.
func (*DataNode) ERC20AssetWithAddress ¶ added in v0.76.8
func (*DataNode) GeneralAccountBalance ¶ added in v0.76.8
func (*DataNode) GetAllMarketsWithState ¶ added in v0.76.8
func (*DataNode) GetCurrentEpoch ¶
func (*DataNode) GetCurrentReferralProgram ¶ added in v0.73.9
func (*DataNode) GetCurrentVolumeDiscountProgram ¶ added in v0.73.9
func (*DataNode) GetGovernanceData ¶ added in v0.73.9
func (n *DataNode) GetGovernanceData(ctx context.Context, req *dataapipb.GetGovernanceDataRequest) (*dataapipb.GetGovernanceDataResponse, error)
func (*DataNode) GetPartyTotalStake ¶
func (*DataNode) LastNetworkHistorySegment ¶
func (*DataNode) ListAccounts ¶ added in v0.76.8
func (n *DataNode) ListAccounts(ctx context.Context, partyID string, accountType vega.AccountType, assetID *string) ([]AccountFunds, error)
func (*DataNode) ListAssets ¶
func (*DataNode) ListCoreSnapshots ¶
func (n *DataNode) ListCoreSnapshots(ctx context.Context) ([]vegaeventspb.CoreSnapshotData, error)
func (*DataNode) ListDelegations ¶
func (n *DataNode) ListDelegations(req *dataapipb.ListDelegationsRequest) (*dataapipb.ListDelegationsResponse, error)
ListDelegations returns delegations for the given party.
func (*DataNode) ListGovernanceData ¶
func (n *DataNode) ListGovernanceData(ctx context.Context, req *dataapipb.ListGovernanceDataRequest) (*dataapipb.ListGovernanceDataResponse, error)
func (*DataNode) ListMarkets ¶
func (*DataNode) ListNetworkParameters ¶
func (*DataNode) ListProtocolUpgradeProposals ¶
func (n *DataNode) ListProtocolUpgradeProposals(ctx context.Context) ([]vegaeventspb.ProtocolUpgradeEvent, error)
func (*DataNode) ListReferralSetReferees ¶ added in v0.73.9
func (*DataNode) ListReferralSets ¶ added in v0.73.9
func (*DataNode) ListVotes ¶ added in v0.73.9
func (n *DataNode) ListVotes(ctx context.Context, req *dataapipb.ListVotesRequest) (*dataapipb.ListVotesResponse, error)
Click to show internal directories.
Click to hide internal directories.