inx

package
v2.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParamsINX = &ParametersINX{}
View Source
var (
	Plugin *app.Plugin
)

Functions

func INXNewBlockMetadata

func INXNewBlockMetadata(blockID iotago.BlockID, metadata *storage.BlockMetadata, tip ...*tipselect.Tip) (*inx.BlockMetadata, error)

func NewLedgerOutput

func NewLedgerOutput(o *utxo.Output) (*inx.LedgerOutput, error)

func NewLedgerSpent

func NewLedgerSpent(s *utxo.Spent) (*inx.LedgerSpent, error)

func NewLedgerUpdateBatchBegin

func NewLedgerUpdateBatchBegin(index iotago.MilestoneIndex, newOutputsCount int, newSpentsCount int) *inx.LedgerUpdate

func NewLedgerUpdateBatchEnd

func NewLedgerUpdateBatchEnd(index iotago.MilestoneIndex, newOutputsCount int, newSpentsCount int) *inx.LedgerUpdate

func NewLedgerUpdateBatchOperationConsumed

func NewLedgerUpdateBatchOperationConsumed(spent *utxo.Spent) (*inx.LedgerUpdate, error)

func NewLedgerUpdateBatchOperationCreated

func NewLedgerUpdateBatchOperationCreated(output *utxo.Output) (*inx.LedgerUpdate, error)

func NewTreasuryUpdate

func NewTreasuryUpdate(index iotago.MilestoneIndex, created *utxo.TreasuryOutput, consumed *utxo.TreasuryOutput) (*inx.TreasuryUpdate, error)

Types

type INXServer

type INXServer struct {
	inx.UnimplementedINXServer
	// contains filtered or unexported fields
}

func (*INXServer) ComputeWhiteFlag

func (s *INXServer) ComputeWhiteFlag(ctx context.Context, req *inx.WhiteFlagRequest) (*inx.WhiteFlagResponse, error)

func (*INXServer) ConfigurePrometheus

func (s *INXServer) ConfigurePrometheus()

func (*INXServer) ListenToBlocks

func (s *INXServer) ListenToBlocks(_ *inx.NoParams, srv inx.INX_ListenToBlocksServer) error

func (*INXServer) ListenToConfirmedMilestones

func (s *INXServer) ListenToConfirmedMilestones(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToConfirmedMilestonesServer) error

func (*INXServer) ListenToLatestMilestones

func (s *INXServer) ListenToLatestMilestones(_ *inx.NoParams, srv inx.INX_ListenToLatestMilestonesServer) error

func (*INXServer) ListenToLedgerUpdates

func (s *INXServer) ListenToLedgerUpdates(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToLedgerUpdatesServer) error

func (*INXServer) ListenToMigrationReceipts

func (s *INXServer) ListenToMigrationReceipts(_ *inx.NoParams, srv inx.INX_ListenToMigrationReceiptsServer) error

func (*INXServer) ListenToReferencedBlocks

func (s *INXServer) ListenToReferencedBlocks(_ *inx.NoParams, srv inx.INX_ListenToReferencedBlocksServer) error

func (*INXServer) ListenToSolidBlocks

func (s *INXServer) ListenToSolidBlocks(_ *inx.NoParams, srv inx.INX_ListenToSolidBlocksServer) error

func (*INXServer) ListenToTipScoreUpdates

func (s *INXServer) ListenToTipScoreUpdates(_ *inx.NoParams, srv inx.INX_ListenToTipScoreUpdatesServer) error

func (*INXServer) ListenToTipsMetrics

func (s *INXServer) ListenToTipsMetrics(req *inx.TipsMetricRequest, srv inx.INX_ListenToTipsMetricsServer) error

func (*INXServer) ListenToTreasuryUpdates

func (s *INXServer) ListenToTreasuryUpdates(req *inx.MilestoneRangeRequest, srv inx.INX_ListenToTreasuryUpdatesServer) error

func (*INXServer) PerformAPIRequest

func (s *INXServer) PerformAPIRequest(_ context.Context, req *inx.APIRequest) (*inx.APIResponse, error)

func (*INXServer) ReadBlock

func (s *INXServer) ReadBlock(_ context.Context, blockID *inx.BlockId) (*inx.RawBlock, error)

func (*INXServer) ReadBlockMetadata

func (s *INXServer) ReadBlockMetadata(_ context.Context, blockID *inx.BlockId) (*inx.BlockMetadata, error)

func (*INXServer) ReadMilestone

func (s *INXServer) ReadMilestone(_ context.Context, req *inx.MilestoneRequest) (*inx.Milestone, error)

func (*INXServer) ReadMilestoneCone

func (s *INXServer) ReadMilestoneCone(req *inx.MilestoneRequest, srv inx.INX_ReadMilestoneConeServer) error

func (*INXServer) ReadMilestoneConeMetadata

func (s *INXServer) ReadMilestoneConeMetadata(req *inx.MilestoneRequest, srv inx.INX_ReadMilestoneConeMetadataServer) error

func (*INXServer) ReadNodeConfiguration

func (s *INXServer) ReadNodeConfiguration(context.Context, *inx.NoParams) (*inx.NodeConfiguration, error)

func (*INXServer) ReadNodeStatus

func (s *INXServer) ReadNodeStatus(context.Context, *inx.NoParams) (*inx.NodeStatus, error)

func (*INXServer) ReadOutput

func (s *INXServer) ReadOutput(_ context.Context, id *inx.OutputId) (*inx.OutputResponse, error)

func (*INXServer) ReadProtocolParameters

func (s *INXServer) ReadProtocolParameters(_ context.Context, req *inx.MilestoneRequest) (*inx.RawProtocolParameters, error)

func (*INXServer) ReadUnspentOutputs

func (s *INXServer) ReadUnspentOutputs(_ *inx.NoParams, srv inx.INX_ReadUnspentOutputsServer) error

func (*INXServer) RegisterAPIRoute

func (s *INXServer) RegisterAPIRoute(_ context.Context, req *inx.APIRouteRequest) (*inx.NoParams, error)

func (*INXServer) RequestTips

func (s *INXServer) RequestTips(ctx context.Context, req *inx.TipsRequest) (*inx.TipsResponse, error)

func (*INXServer) Start

func (s *INXServer) Start()

func (*INXServer) Stop

func (s *INXServer) Stop()

func (*INXServer) SubmitBlock

func (s *INXServer) SubmitBlock(context context.Context, rawBlock *inx.RawBlock) (*inx.BlockId, error)

func (*INXServer) UnregisterAPIRoute

func (s *INXServer) UnregisterAPIRoute(_ context.Context, req *inx.APIRouteRequest) (*inx.NoParams, error)

type ParametersINX

type ParametersINX struct {
	// Enabled defines whether the INX plugin is enabled.
	Enabled bool `default:"false" usage:"whether the INX plugin is enabled"`
	// the bind address on which the INX can be accessed from
	BindAddress string `default:"localhost:9029" usage:"the bind address on which the INX can be accessed from"`

	PoW struct {
		// the amount of workers used for calculating PoW when issuing blocks via INX
		WorkerCount int `` /* 131-byte string literal not displayed */
	} `name:"pow"`
}

ParametersINX contains the definition of the parameters used by INX.

Jump to

Keyboard shortcuts

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