inx

package
v1.0.0-alpha.23 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT.

Index

Constants

This section is empty.

Variables

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

Functions

func NewLedgerOutput

func NewLedgerOutput(o *utxoledger.Output, slotIncluded ...iotago.SlotIndex) (*inx.LedgerOutput, error)

func NewLedgerSpent

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

func NewLedgerUpdateBatchBegin

func NewLedgerUpdateBatchBegin(commitmentID iotago.CommitmentID, newOutputsCount int, newSpentsCount int) *inx.LedgerUpdate

func NewLedgerUpdateBatchEnd

func NewLedgerUpdateBatchEnd(commitmentID iotago.CommitmentID, newOutputsCount int, newSpentsCount int) *inx.LedgerUpdate

func NewLedgerUpdateBatchOperationConsumed

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

func NewLedgerUpdateBatchOperationCreated

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

Types

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"`
}

ParametersINX contains the definition of the parameters used by INX.

type Server

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

func (*Server) ConfigurePrometheus

func (s *Server) ConfigurePrometheus()

func (*Server) ForceCommitUntil

func (s *Server) ForceCommitUntil(_ context.Context, slot *inx.SlotRequest) (*inx.NoParams, error)

func (*Server) ListenToAcceptedTransactions

func (s *Server) ListenToAcceptedTransactions(_ *inx.NoParams, srv inx.INX_ListenToAcceptedTransactionsServer) error

func (*Server) ListenToBlockMetadata

func (s *Server) ListenToBlockMetadata(_ *inx.NoParams, srv inx.INX_ListenToBlockMetadataServer) error

func (*Server) ListenToBlocks

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

func (*Server) ListenToCommitments

func (s *Server) ListenToCommitments(req *inx.SlotRangeRequest, srv inx.INX_ListenToCommitmentsServer) error

func (*Server) ListenToLedgerUpdates

func (s *Server) ListenToLedgerUpdates(req *inx.SlotRangeRequest, srv inx.INX_ListenToLedgerUpdatesServer) error

func (*Server) ListenToNodeStatus

func (s *Server) ListenToNodeStatus(req *inx.NodeStatusRequest, srv inx.INX_ListenToNodeStatusServer) error

func (*Server) PerformAPIRequest

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

func (*Server) ReadAcceptedBlocks

func (s *Server) ReadAcceptedBlocks(slot *inx.SlotRequest, srv inx.INX_ReadAcceptedBlocksServer) error

func (*Server) ReadActiveRootBlocks

func (s *Server) ReadActiveRootBlocks(_ context.Context, _ *inx.NoParams) (*inx.RootBlocksResponse, error)

func (*Server) ReadBlock

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

func (*Server) ReadBlockIssuance

func (s *Server) ReadBlockIssuance(_ context.Context, req *inx.BlockIssuanceRequest) (*inx.BlockIssuanceResponse, error)

func (*Server) ReadBlockMetadata

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

func (*Server) ReadCommitment

func (s *Server) ReadCommitment(_ context.Context, req *inx.CommitmentRequest) (*inx.Commitment, error)

func (*Server) ReadIsCandidate

func (s *Server) ReadIsCandidate(_ context.Context, accountInfoRequest *inx.AccountInfoRequest) (*inx.BoolResponse, error)

func (*Server) ReadIsCommitteeMember

func (s *Server) ReadIsCommitteeMember(_ context.Context, accountInfoRequest *inx.AccountInfoRequest) (*inx.BoolResponse, error)

func (*Server) ReadIsValidatorAccount

func (s *Server) ReadIsValidatorAccount(_ context.Context, accountInfoRequest *inx.AccountInfoRequest) (*inx.BoolResponse, error)

func (*Server) ReadNodeConfiguration

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

func (*Server) ReadNodeStatus

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

func (*Server) ReadOutput

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

func (*Server) ReadTransactionMetadata

func (s *Server) ReadTransactionMetadata(_ context.Context, transactionID *inx.TransactionId) (*inx.TransactionMetadata, error)

func (*Server) ReadUnspentOutputs

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

func (*Server) RegisterAPIRoute

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

func (*Server) Start

func (s *Server) Start()

func (*Server) Stop

func (s *Server) Stop()

func (*Server) SubmitBlock

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

func (*Server) UnregisterAPIRoute

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

func (*Server) ValidatePayload

func (s *Server) ValidatePayload(_ context.Context, payload *inx.RawPayload) (*inx.PayloadValidationResponse, error)

Jump to

Keyboard shortcuts

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