inx

package module
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 16 Imported by: 16

Documentation

Index

Constants

View Source
const (
	APIRoundTripperBaseURL = "inx://"
)

Variables

View Source
var (
	BlockMetadata_LedgerInclusionState_name = map[int32]string{
		0: "LEDGER_INCLUSION_STATE_NO_TRANSACTION",
		1: "LEDGER_INCLUSION_STATE_INCLUDED",
		2: "LEDGER_INCLUSION_STATE_CONFLICTING",
	}
	BlockMetadata_LedgerInclusionState_value = map[string]int32{
		"LEDGER_INCLUSION_STATE_NO_TRANSACTION": 0,
		"LEDGER_INCLUSION_STATE_INCLUDED":       1,
		"LEDGER_INCLUSION_STATE_CONFLICTING":    2,
	}
)

Enum value maps for BlockMetadata_LedgerInclusionState.

View Source
var (
	BlockMetadata_ConflictReason_name = map[int32]string{
		0:   "CONFLICT_REASON_NONE",
		1:   "CONFLICT_REASON_INPUT_ALREADY_SPENT",
		2:   "CONFLICT_REASON_INPUT_ALREADY_SPENT_IN_THIS_MILESTONE",
		3:   "CONFLICT_REASON_INPUT_NOT_FOUND",
		4:   "CONFLICT_REASON_INPUT_OUTPUT_SUM_MISMATCH",
		5:   "CONFLICT_REASON_INVALID_SIGNATURE",
		6:   "CONFLICT_REASON_TIMELOCK_NOT_EXPIRED",
		7:   "CONFLICT_REASON_INVALID_NATIVE_TOKENS",
		8:   "CONFLICT_REASON_RETURN_AMOUNT_NOT_FULFILLED",
		9:   "CONFLICT_REASON_INVALID_INPUT_UNLOCK",
		10:  "CONFLICT_REASON_INVALID_INPUTS_COMMITMENT",
		11:  "CONFLICT_REASON_INVALID_SENDER",
		12:  "CONFLICT_REASON_INVALID_CHAIN_STATE_TRANSITION",
		255: "CONFLICT_REASON_SEMANTIC_VALIDATION_FAILED",
	}
	BlockMetadata_ConflictReason_value = map[string]int32{
		"CONFLICT_REASON_NONE":                                  0,
		"CONFLICT_REASON_INPUT_ALREADY_SPENT":                   1,
		"CONFLICT_REASON_INPUT_ALREADY_SPENT_IN_THIS_MILESTONE": 2,
		"CONFLICT_REASON_INPUT_NOT_FOUND":                       3,
		"CONFLICT_REASON_INPUT_OUTPUT_SUM_MISMATCH":             4,
		"CONFLICT_REASON_INVALID_SIGNATURE":                     5,
		"CONFLICT_REASON_TIMELOCK_NOT_EXPIRED":                  6,
		"CONFLICT_REASON_INVALID_NATIVE_TOKENS":                 7,
		"CONFLICT_REASON_RETURN_AMOUNT_NOT_FULFILLED":           8,
		"CONFLICT_REASON_INVALID_INPUT_UNLOCK":                  9,
		"CONFLICT_REASON_INVALID_INPUTS_COMMITMENT":             10,
		"CONFLICT_REASON_INVALID_SENDER":                        11,
		"CONFLICT_REASON_INVALID_CHAIN_STATE_TRANSITION":        12,
		"CONFLICT_REASON_SEMANTIC_VALIDATION_FAILED":            255,
	}
)

Enum value maps for BlockMetadata_ConflictReason.

View Source
var (
	LedgerUpdate_Marker_MarkerType_name = map[int32]string{
		0: "BEGIN",
		1: "END",
	}
	LedgerUpdate_Marker_MarkerType_value = map[string]int32{
		"BEGIN": 0,
		"END":   1,
	}
)

Enum value maps for LedgerUpdate_Marker_MarkerType.

View Source
var INX_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "inx.INX",
	HandlerType: (*INXServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ReadNodeStatus",
			Handler:    _INX_ReadNodeStatus_Handler,
		},
		{
			MethodName: "ReadNodeConfiguration",
			Handler:    _INX_ReadNodeConfiguration_Handler,
		},
		{
			MethodName: "ReadProtocolParameters",
			Handler:    _INX_ReadProtocolParameters_Handler,
		},
		{
			MethodName: "ReadMilestone",
			Handler:    _INX_ReadMilestone_Handler,
		},
		{
			MethodName: "ComputeWhiteFlag",
			Handler:    _INX_ComputeWhiteFlag_Handler,
		},
		{
			MethodName: "SubmitBlock",
			Handler:    _INX_SubmitBlock_Handler,
		},
		{
			MethodName: "ReadBlock",
			Handler:    _INX_ReadBlock_Handler,
		},
		{
			MethodName: "ReadBlockMetadata",
			Handler:    _INX_ReadBlockMetadata_Handler,
		},
		{
			MethodName: "RequestTips",
			Handler:    _INX_RequestTips_Handler,
		},
		{
			MethodName: "ReadOutput",
			Handler:    _INX_ReadOutput_Handler,
		},
		{
			MethodName: "RegisterAPIRoute",
			Handler:    _INX_RegisterAPIRoute_Handler,
		},
		{
			MethodName: "UnregisterAPIRoute",
			Handler:    _INX_UnregisterAPIRoute_Handler,
		},
		{
			MethodName: "PerformAPIRequest",
			Handler:    _INX_PerformAPIRequest_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ListenToNodeStatus",
			Handler:       _INX_ListenToNodeStatus_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListenToLatestMilestones",
			Handler:       _INX_ListenToLatestMilestones_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListenToConfirmedMilestones",
			Handler:       _INX_ListenToConfirmedMilestones_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadMilestoneCone",
			Handler:       _INX_ReadMilestoneCone_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadMilestoneConeMetadata",
			Handler:       _INX_ReadMilestoneConeMetadata_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListenToBlocks",
			Handler:       _INX_ListenToBlocks_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListenToSolidBlocks",
			Handler:       _INX_ListenToSolidBlocks_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListenToReferencedBlocks",
			Handler:       _INX_ListenToReferencedBlocks_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListenToTipsMetrics",
			Handler:       _INX_ListenToTipsMetrics_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListenToTipScoreUpdates",
			Handler:       _INX_ListenToTipScoreUpdates_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ReadUnspentOutputs",
			Handler:       _INX_ReadUnspentOutputs_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListenToLedgerUpdates",
			Handler:       _INX_ListenToLedgerUpdates_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListenToTreasuryUpdates",
			Handler:       _INX_ListenToTreasuryUpdates_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "ListenToMigrationReceipts",
			Handler:       _INX_ListenToMigrationReceipts_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "inx.proto",
}

INX_ServiceDesc is the grpc.ServiceDesc for INX service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func HeadersFromHTTPHeader

func HeadersFromHTTPHeader(headers http.Header) map[string]string

func NewHTTPClientOverINX

func NewHTTPClientOverINX(client INXClient) *http.Client

func NewNodeclientOverINX

func NewNodeclientOverINX(client INXClient) *nodeclient.Client

func RegisterINXServer

func RegisterINXServer(s grpc.ServiceRegistrar, srv INXServer)

Types

type APIRequest

type APIRequest struct {
	Method  string            `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
	Path    string            `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Headers map[string]string `` /* 155-byte string literal not displayed */
	Body    []byte            `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*APIRequest) Descriptor deprecated

func (*APIRequest) Descriptor() ([]byte, []int)

Deprecated: Use APIRequest.ProtoReflect.Descriptor instead.

func (*APIRequest) GetBody

func (x *APIRequest) GetBody() []byte

func (*APIRequest) GetHeaders

func (x *APIRequest) GetHeaders() map[string]string

func (*APIRequest) GetMethod

func (x *APIRequest) GetMethod() string

func (*APIRequest) GetPath

func (x *APIRequest) GetPath() string

func (*APIRequest) HTTPHeader

func (x *APIRequest) HTTPHeader() http.Header

func (*APIRequest) ProtoMessage

func (*APIRequest) ProtoMessage()

func (*APIRequest) ProtoReflect

func (x *APIRequest) ProtoReflect() protoreflect.Message

func (*APIRequest) Reset

func (x *APIRequest) Reset()

func (*APIRequest) String

func (x *APIRequest) String() string

type APIResponse

type APIResponse struct {
	Code    uint32            `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Headers map[string]string `` /* 155-byte string literal not displayed */
	Body    []byte            `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*APIResponse) Descriptor deprecated

func (*APIResponse) Descriptor() ([]byte, []int)

Deprecated: Use APIResponse.ProtoReflect.Descriptor instead.

func (*APIResponse) GetBody

func (x *APIResponse) GetBody() []byte

func (*APIResponse) GetCode

func (x *APIResponse) GetCode() uint32

func (*APIResponse) GetHeaders

func (x *APIResponse) GetHeaders() map[string]string

func (*APIResponse) HTTPHeader

func (x *APIResponse) HTTPHeader() http.Header

func (*APIResponse) ProtoMessage

func (*APIResponse) ProtoMessage()

func (*APIResponse) ProtoReflect

func (x *APIResponse) ProtoReflect() protoreflect.Message

func (*APIResponse) Reset

func (x *APIResponse) Reset()

func (*APIResponse) String

func (x *APIResponse) String() string

type APIRoundTripper

type APIRoundTripper struct {
	// contains filtered or unexported fields
}

func NewAPIRoundTripper

func NewAPIRoundTripper(client INXClient) *APIRoundTripper

func (*APIRoundTripper) RoundTrip

func (r *APIRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

type APIRouteRequest

type APIRouteRequest struct {
	Route string `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"`
	Host  string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Port  uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	Path  string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

REST API

func (*APIRouteRequest) Descriptor deprecated

func (*APIRouteRequest) Descriptor() ([]byte, []int)

Deprecated: Use APIRouteRequest.ProtoReflect.Descriptor instead.

func (*APIRouteRequest) GetHost

func (x *APIRouteRequest) GetHost() string

func (*APIRouteRequest) GetPath

func (x *APIRouteRequest) GetPath() string

func (*APIRouteRequest) GetPort

func (x *APIRouteRequest) GetPort() uint32

func (*APIRouteRequest) GetRoute

func (x *APIRouteRequest) GetRoute() string

func (*APIRouteRequest) ProtoMessage

func (*APIRouteRequest) ProtoMessage()

func (*APIRouteRequest) ProtoReflect

func (x *APIRouteRequest) ProtoReflect() protoreflect.Message

func (*APIRouteRequest) Reset

func (x *APIRouteRequest) Reset()

func (*APIRouteRequest) String

func (x *APIRouteRequest) String() string

type BaseToken

type BaseToken struct {
	Name            string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	TickerSymbol    string `protobuf:"bytes,2,opt,name=ticker_symbol,json=tickerSymbol,proto3" json:"ticker_symbol,omitempty"`
	Unit            string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
	Subunit         string `protobuf:"bytes,4,opt,name=subunit,proto3" json:"subunit,omitempty"`
	Decimals        uint32 `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty"`
	UseMetricPrefix bool   `protobuf:"varint,6,opt,name=use_metric_prefix,json=useMetricPrefix,proto3" json:"use_metric_prefix,omitempty"`
	// contains filtered or unexported fields
}

func (*BaseToken) Descriptor deprecated

func (*BaseToken) Descriptor() ([]byte, []int)

Deprecated: Use BaseToken.ProtoReflect.Descriptor instead.

func (*BaseToken) GetDecimals

func (x *BaseToken) GetDecimals() uint32

func (*BaseToken) GetName

func (x *BaseToken) GetName() string

func (*BaseToken) GetSubunit

func (x *BaseToken) GetSubunit() string

func (*BaseToken) GetTickerSymbol

func (x *BaseToken) GetTickerSymbol() string

func (*BaseToken) GetUnit

func (x *BaseToken) GetUnit() string

func (*BaseToken) GetUseMetricPrefix

func (x *BaseToken) GetUseMetricPrefix() bool

func (*BaseToken) ProtoMessage

func (*BaseToken) ProtoMessage()

func (*BaseToken) ProtoReflect

func (x *BaseToken) ProtoReflect() protoreflect.Message

func (*BaseToken) Reset

func (x *BaseToken) Reset()

func (*BaseToken) String

func (x *BaseToken) String() string

type Block

type Block struct {
	BlockId *BlockId  `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	Block   *RawBlock `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func NewBlockWithBytes

func NewBlockWithBytes(blockID iotago.BlockID, data []byte) *Block

func (*Block) Descriptor deprecated

func (*Block) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetBlock

func (x *Block) GetBlock() *RawBlock

func (*Block) GetBlockId

func (x *Block) GetBlockId() *BlockId

func (*Block) MustUnwrapBlock

func (x *Block) MustUnwrapBlock(deSeriMode serializer.DeSerializationMode, protoParas *iotago.ProtocolParameters) *iotago.Block

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

func (*Block) UnwrapBlock

func (x *Block) UnwrapBlock(deSeriMode serializer.DeSerializationMode, protoParas *iotago.ProtocolParameters) (*iotago.Block, error)

func (*Block) UnwrapBlockID

func (x *Block) UnwrapBlockID() iotago.BlockID

type BlockId

type BlockId struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func NewBlockId

func NewBlockId(blockID iotago.BlockID) *BlockId

nolint:revive,stylecheck // this name is auto generated

func NewBlockIds

func NewBlockIds(blockIDs iotago.BlockIDs) []*BlockId

func (*BlockId) Descriptor deprecated

func (*BlockId) Descriptor() ([]byte, []int)

Deprecated: Use BlockId.ProtoReflect.Descriptor instead.

func (*BlockId) GetId

func (x *BlockId) GetId() []byte

func (*BlockId) ProtoMessage

func (*BlockId) ProtoMessage()

func (*BlockId) ProtoReflect

func (x *BlockId) ProtoReflect() protoreflect.Message

func (*BlockId) Reset

func (x *BlockId) Reset()

func (*BlockId) String

func (x *BlockId) String() string

func (*BlockId) Unwrap

func (x *BlockId) Unwrap() iotago.BlockID

type BlockMetadata

type BlockMetadata struct {
	BlockId                    *BlockId                           `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	Parents                    []*BlockId                         `protobuf:"bytes,2,rep,name=parents,proto3" json:"parents,omitempty"`
	Solid                      bool                               `protobuf:"varint,3,opt,name=solid,proto3" json:"solid,omitempty"`
	ShouldPromote              bool                               `protobuf:"varint,4,opt,name=should_promote,json=shouldPromote,proto3" json:"should_promote,omitempty"`
	ShouldReattach             bool                               `protobuf:"varint,5,opt,name=should_reattach,json=shouldReattach,proto3" json:"should_reattach,omitempty"`
	ReferencedByMilestoneIndex uint32                             `` /* 144-byte string literal not displayed */
	MilestoneIndex             uint32                             `protobuf:"varint,7,opt,name=milestone_index,json=milestoneIndex,proto3" json:"milestone_index,omitempty"`
	LedgerInclusionState       BlockMetadata_LedgerInclusionState `` /* 168-byte string literal not displayed */
	ConflictReason             BlockMetadata_ConflictReason       `` /* 142-byte string literal not displayed */
	WhiteFlagIndex             uint32                             `protobuf:"varint,10,opt,name=white_flag_index,json=whiteFlagIndex,proto3" json:"white_flag_index,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockMetadata) Descriptor deprecated

func (*BlockMetadata) Descriptor() ([]byte, []int)

Deprecated: Use BlockMetadata.ProtoReflect.Descriptor instead.

func (*BlockMetadata) GetBlockId

func (x *BlockMetadata) GetBlockId() *BlockId

func (*BlockMetadata) GetConflictReason

func (x *BlockMetadata) GetConflictReason() BlockMetadata_ConflictReason

func (*BlockMetadata) GetLedgerInclusionState

func (x *BlockMetadata) GetLedgerInclusionState() BlockMetadata_LedgerInclusionState

func (*BlockMetadata) GetMilestoneIndex

func (x *BlockMetadata) GetMilestoneIndex() uint32

func (*BlockMetadata) GetParents

func (x *BlockMetadata) GetParents() []*BlockId

func (*BlockMetadata) GetReferencedByMilestoneIndex

func (x *BlockMetadata) GetReferencedByMilestoneIndex() uint32

func (*BlockMetadata) GetShouldPromote

func (x *BlockMetadata) GetShouldPromote() bool

func (*BlockMetadata) GetShouldReattach

func (x *BlockMetadata) GetShouldReattach() bool

func (*BlockMetadata) GetSolid

func (x *BlockMetadata) GetSolid() bool

func (*BlockMetadata) GetWhiteFlagIndex

func (x *BlockMetadata) GetWhiteFlagIndex() uint32

func (*BlockMetadata) ProtoMessage

func (*BlockMetadata) ProtoMessage()

func (*BlockMetadata) ProtoReflect

func (x *BlockMetadata) ProtoReflect() protoreflect.Message

func (*BlockMetadata) Reset

func (x *BlockMetadata) Reset()

func (*BlockMetadata) String

func (x *BlockMetadata) String() string

func (*BlockMetadata) UnwrapBlockID

func (x *BlockMetadata) UnwrapBlockID() iotago.BlockID

func (*BlockMetadata) UnwrapParents

func (x *BlockMetadata) UnwrapParents() iotago.BlockIDs

type BlockMetadata_ConflictReason

type BlockMetadata_ConflictReason int32
const (
	BlockMetadata_CONFLICT_REASON_NONE                                  BlockMetadata_ConflictReason = 0
	BlockMetadata_CONFLICT_REASON_INPUT_ALREADY_SPENT                   BlockMetadata_ConflictReason = 1
	BlockMetadata_CONFLICT_REASON_INPUT_ALREADY_SPENT_IN_THIS_MILESTONE BlockMetadata_ConflictReason = 2
	BlockMetadata_CONFLICT_REASON_INPUT_NOT_FOUND                       BlockMetadata_ConflictReason = 3
	BlockMetadata_CONFLICT_REASON_INPUT_OUTPUT_SUM_MISMATCH             BlockMetadata_ConflictReason = 4
	BlockMetadata_CONFLICT_REASON_INVALID_SIGNATURE                     BlockMetadata_ConflictReason = 5
	BlockMetadata_CONFLICT_REASON_TIMELOCK_NOT_EXPIRED                  BlockMetadata_ConflictReason = 6
	BlockMetadata_CONFLICT_REASON_INVALID_NATIVE_TOKENS                 BlockMetadata_ConflictReason = 7
	BlockMetadata_CONFLICT_REASON_RETURN_AMOUNT_NOT_FULFILLED           BlockMetadata_ConflictReason = 8
	BlockMetadata_CONFLICT_REASON_INVALID_INPUT_UNLOCK                  BlockMetadata_ConflictReason = 9
	BlockMetadata_CONFLICT_REASON_INVALID_INPUTS_COMMITMENT             BlockMetadata_ConflictReason = 10
	BlockMetadata_CONFLICT_REASON_INVALID_SENDER                        BlockMetadata_ConflictReason = 11
	BlockMetadata_CONFLICT_REASON_INVALID_CHAIN_STATE_TRANSITION        BlockMetadata_ConflictReason = 12
	BlockMetadata_CONFLICT_REASON_SEMANTIC_VALIDATION_FAILED            BlockMetadata_ConflictReason = 255
)

func (BlockMetadata_ConflictReason) Descriptor

func (BlockMetadata_ConflictReason) Enum

func (BlockMetadata_ConflictReason) EnumDescriptor deprecated

func (BlockMetadata_ConflictReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use BlockMetadata_ConflictReason.Descriptor instead.

func (BlockMetadata_ConflictReason) Number

func (BlockMetadata_ConflictReason) String

func (BlockMetadata_ConflictReason) Type

type BlockMetadata_LedgerInclusionState

type BlockMetadata_LedgerInclusionState int32
const (
	BlockMetadata_LEDGER_INCLUSION_STATE_NO_TRANSACTION BlockMetadata_LedgerInclusionState = 0
	BlockMetadata_LEDGER_INCLUSION_STATE_INCLUDED       BlockMetadata_LedgerInclusionState = 1
	BlockMetadata_LEDGER_INCLUSION_STATE_CONFLICTING    BlockMetadata_LedgerInclusionState = 2
)

func (BlockMetadata_LedgerInclusionState) Descriptor

func (BlockMetadata_LedgerInclusionState) Enum

func (BlockMetadata_LedgerInclusionState) EnumDescriptor deprecated

func (BlockMetadata_LedgerInclusionState) EnumDescriptor() ([]byte, []int)

Deprecated: Use BlockMetadata_LedgerInclusionState.Descriptor instead.

func (BlockMetadata_LedgerInclusionState) Number

func (BlockMetadata_LedgerInclusionState) String

func (BlockMetadata_LedgerInclusionState) Type

type BlockWithMetadata

type BlockWithMetadata struct {
	Metadata *BlockMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Block    *RawBlock      `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
	// contains filtered or unexported fields
}

func (*BlockWithMetadata) Descriptor deprecated

func (*BlockWithMetadata) Descriptor() ([]byte, []int)

Deprecated: Use BlockWithMetadata.ProtoReflect.Descriptor instead.

func (*BlockWithMetadata) GetBlock

func (x *BlockWithMetadata) GetBlock() *RawBlock

func (*BlockWithMetadata) GetMetadata

func (x *BlockWithMetadata) GetMetadata() *BlockMetadata

func (*BlockWithMetadata) ProtoMessage

func (*BlockWithMetadata) ProtoMessage()

func (*BlockWithMetadata) ProtoReflect

func (x *BlockWithMetadata) ProtoReflect() protoreflect.Message

func (*BlockWithMetadata) Reset

func (x *BlockWithMetadata) Reset()

func (*BlockWithMetadata) String

func (x *BlockWithMetadata) String() string

func (*BlockWithMetadata) UnwrapBlock

func (x *BlockWithMetadata) UnwrapBlock(deSeriMode serializer.DeSerializationMode, protoParas *iotago.ProtocolParameters) (*iotago.Block, error)

type INXClient

type INXClient interface {
	// Node
	ReadNodeStatus(ctx context.Context, in *NoParams, opts ...grpc.CallOption) (*NodeStatus, error)
	ListenToNodeStatus(ctx context.Context, in *NodeStatusRequest, opts ...grpc.CallOption) (INX_ListenToNodeStatusClient, error)
	ReadNodeConfiguration(ctx context.Context, in *NoParams, opts ...grpc.CallOption) (*NodeConfiguration, error)
	ReadProtocolParameters(ctx context.Context, in *MilestoneRequest, opts ...grpc.CallOption) (*RawProtocolParameters, error)
	// Milestones
	ReadMilestone(ctx context.Context, in *MilestoneRequest, opts ...grpc.CallOption) (*Milestone, error)
	ListenToLatestMilestones(ctx context.Context, in *NoParams, opts ...grpc.CallOption) (INX_ListenToLatestMilestonesClient, error)
	ListenToConfirmedMilestones(ctx context.Context, in *MilestoneRangeRequest, opts ...grpc.CallOption) (INX_ListenToConfirmedMilestonesClient, error)
	ComputeWhiteFlag(ctx context.Context, in *WhiteFlagRequest, opts ...grpc.CallOption) (*WhiteFlagResponse, error)
	ReadMilestoneCone(ctx context.Context, in *MilestoneRequest, opts ...grpc.CallOption) (INX_ReadMilestoneConeClient, error)
	ReadMilestoneConeMetadata(ctx context.Context, in *MilestoneRequest, opts ...grpc.CallOption) (INX_ReadMilestoneConeMetadataClient, error)
	// Blocks
	ListenToBlocks(ctx context.Context, in *NoParams, opts ...grpc.CallOption) (INX_ListenToBlocksClient, error)
	ListenToSolidBlocks(ctx context.Context, in *NoParams, opts ...grpc.CallOption) (INX_ListenToSolidBlocksClient, error)
	ListenToReferencedBlocks(ctx context.Context, in *NoParams, opts ...grpc.CallOption) (INX_ListenToReferencedBlocksClient, error)
	SubmitBlock(ctx context.Context, in *RawBlock, opts ...grpc.CallOption) (*BlockId, error)
	ReadBlock(ctx context.Context, in *BlockId, opts ...grpc.CallOption) (*RawBlock, error)
	ReadBlockMetadata(ctx context.Context, in *BlockId, opts ...grpc.CallOption) (*BlockMetadata, error)
	// Tips
	RequestTips(ctx context.Context, in *TipsRequest, opts ...grpc.CallOption) (*TipsResponse, error)
	ListenToTipsMetrics(ctx context.Context, in *TipsMetricRequest, opts ...grpc.CallOption) (INX_ListenToTipsMetricsClient, error)
	ListenToTipScoreUpdates(ctx context.Context, in *NoParams, opts ...grpc.CallOption) (INX_ListenToTipScoreUpdatesClient, error)
	// UTXO
	ReadUnspentOutputs(ctx context.Context, in *NoParams, opts ...grpc.CallOption) (INX_ReadUnspentOutputsClient, error)
	// A stream that yields updates to the ledger. A `LedgerUpdate` represents a batch to be applied to the ledger.
	// It first sends a `BEGIN`, then all the consumed outputs, then all the created outputs and finally an `END`.
	// `BEGIN` and `END` will also be sent for milestones that did not mutate the ledger.
	// The counts in the batch markers can be used to sanity check that everything arrived and to pre-allocate space if needed.
	ListenToLedgerUpdates(ctx context.Context, in *MilestoneRangeRequest, opts ...grpc.CallOption) (INX_ListenToLedgerUpdatesClient, error)
	ListenToTreasuryUpdates(ctx context.Context, in *MilestoneRangeRequest, opts ...grpc.CallOption) (INX_ListenToTreasuryUpdatesClient, error)
	ReadOutput(ctx context.Context, in *OutputId, opts ...grpc.CallOption) (*OutputResponse, error)
	ListenToMigrationReceipts(ctx context.Context, in *NoParams, opts ...grpc.CallOption) (INX_ListenToMigrationReceiptsClient, error)
	// REST API
	RegisterAPIRoute(ctx context.Context, in *APIRouteRequest, opts ...grpc.CallOption) (*NoParams, error)
	UnregisterAPIRoute(ctx context.Context, in *APIRouteRequest, opts ...grpc.CallOption) (*NoParams, error)
	PerformAPIRequest(ctx context.Context, in *APIRequest, opts ...grpc.CallOption) (*APIResponse, error)
}

INXClient is the client API for INX service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewINXClient

func NewINXClient(cc grpc.ClientConnInterface) INXClient

type INXServer

type INXServer interface {
	// Node
	ReadNodeStatus(context.Context, *NoParams) (*NodeStatus, error)
	ListenToNodeStatus(*NodeStatusRequest, INX_ListenToNodeStatusServer) error
	ReadNodeConfiguration(context.Context, *NoParams) (*NodeConfiguration, error)
	ReadProtocolParameters(context.Context, *MilestoneRequest) (*RawProtocolParameters, error)
	// Milestones
	ReadMilestone(context.Context, *MilestoneRequest) (*Milestone, error)
	ListenToLatestMilestones(*NoParams, INX_ListenToLatestMilestonesServer) error
	ListenToConfirmedMilestones(*MilestoneRangeRequest, INX_ListenToConfirmedMilestonesServer) error
	ComputeWhiteFlag(context.Context, *WhiteFlagRequest) (*WhiteFlagResponse, error)
	ReadMilestoneCone(*MilestoneRequest, INX_ReadMilestoneConeServer) error
	ReadMilestoneConeMetadata(*MilestoneRequest, INX_ReadMilestoneConeMetadataServer) error
	// Blocks
	ListenToBlocks(*NoParams, INX_ListenToBlocksServer) error
	ListenToSolidBlocks(*NoParams, INX_ListenToSolidBlocksServer) error
	ListenToReferencedBlocks(*NoParams, INX_ListenToReferencedBlocksServer) error
	SubmitBlock(context.Context, *RawBlock) (*BlockId, error)
	ReadBlock(context.Context, *BlockId) (*RawBlock, error)
	ReadBlockMetadata(context.Context, *BlockId) (*BlockMetadata, error)
	// Tips
	RequestTips(context.Context, *TipsRequest) (*TipsResponse, error)
	ListenToTipsMetrics(*TipsMetricRequest, INX_ListenToTipsMetricsServer) error
	ListenToTipScoreUpdates(*NoParams, INX_ListenToTipScoreUpdatesServer) error
	// UTXO
	ReadUnspentOutputs(*NoParams, INX_ReadUnspentOutputsServer) error
	// A stream that yields updates to the ledger. A `LedgerUpdate` represents a batch to be applied to the ledger.
	// It first sends a `BEGIN`, then all the consumed outputs, then all the created outputs and finally an `END`.
	// `BEGIN` and `END` will also be sent for milestones that did not mutate the ledger.
	// The counts in the batch markers can be used to sanity check that everything arrived and to pre-allocate space if needed.
	ListenToLedgerUpdates(*MilestoneRangeRequest, INX_ListenToLedgerUpdatesServer) error
	ListenToTreasuryUpdates(*MilestoneRangeRequest, INX_ListenToTreasuryUpdatesServer) error
	ReadOutput(context.Context, *OutputId) (*OutputResponse, error)
	ListenToMigrationReceipts(*NoParams, INX_ListenToMigrationReceiptsServer) error
	// REST API
	RegisterAPIRoute(context.Context, *APIRouteRequest) (*NoParams, error)
	UnregisterAPIRoute(context.Context, *APIRouteRequest) (*NoParams, error)
	PerformAPIRequest(context.Context, *APIRequest) (*APIResponse, error)
	// contains filtered or unexported methods
}

INXServer is the server API for INX service. All implementations must embed UnimplementedINXServer for forward compatibility

type INX_ListenToBlocksClient

type INX_ListenToBlocksClient interface {
	Recv() (*Block, error)
	grpc.ClientStream
}

type INX_ListenToBlocksServer

type INX_ListenToBlocksServer interface {
	Send(*Block) error
	grpc.ServerStream
}

type INX_ListenToConfirmedMilestonesClient

type INX_ListenToConfirmedMilestonesClient interface {
	Recv() (*MilestoneAndProtocolParameters, error)
	grpc.ClientStream
}

type INX_ListenToConfirmedMilestonesServer

type INX_ListenToConfirmedMilestonesServer interface {
	Send(*MilestoneAndProtocolParameters) error
	grpc.ServerStream
}

type INX_ListenToLatestMilestonesClient

type INX_ListenToLatestMilestonesClient interface {
	Recv() (*Milestone, error)
	grpc.ClientStream
}

type INX_ListenToLatestMilestonesServer

type INX_ListenToLatestMilestonesServer interface {
	Send(*Milestone) error
	grpc.ServerStream
}

type INX_ListenToLedgerUpdatesClient

type INX_ListenToLedgerUpdatesClient interface {
	Recv() (*LedgerUpdate, error)
	grpc.ClientStream
}

type INX_ListenToLedgerUpdatesServer

type INX_ListenToLedgerUpdatesServer interface {
	Send(*LedgerUpdate) error
	grpc.ServerStream
}

type INX_ListenToMigrationReceiptsClient

type INX_ListenToMigrationReceiptsClient interface {
	Recv() (*RawReceipt, error)
	grpc.ClientStream
}

type INX_ListenToMigrationReceiptsServer

type INX_ListenToMigrationReceiptsServer interface {
	Send(*RawReceipt) error
	grpc.ServerStream
}

type INX_ListenToNodeStatusClient

type INX_ListenToNodeStatusClient interface {
	Recv() (*NodeStatus, error)
	grpc.ClientStream
}

type INX_ListenToNodeStatusServer

type INX_ListenToNodeStatusServer interface {
	Send(*NodeStatus) error
	grpc.ServerStream
}

type INX_ListenToReferencedBlocksClient

type INX_ListenToReferencedBlocksClient interface {
	Recv() (*BlockMetadata, error)
	grpc.ClientStream
}

type INX_ListenToReferencedBlocksServer

type INX_ListenToReferencedBlocksServer interface {
	Send(*BlockMetadata) error
	grpc.ServerStream
}

type INX_ListenToSolidBlocksClient

type INX_ListenToSolidBlocksClient interface {
	Recv() (*BlockMetadata, error)
	grpc.ClientStream
}

type INX_ListenToSolidBlocksServer

type INX_ListenToSolidBlocksServer interface {
	Send(*BlockMetadata) error
	grpc.ServerStream
}

type INX_ListenToTipScoreUpdatesClient

type INX_ListenToTipScoreUpdatesClient interface {
	Recv() (*BlockMetadata, error)
	grpc.ClientStream
}

type INX_ListenToTipScoreUpdatesServer

type INX_ListenToTipScoreUpdatesServer interface {
	Send(*BlockMetadata) error
	grpc.ServerStream
}

type INX_ListenToTipsMetricsClient

type INX_ListenToTipsMetricsClient interface {
	Recv() (*TipsMetric, error)
	grpc.ClientStream
}

type INX_ListenToTipsMetricsServer

type INX_ListenToTipsMetricsServer interface {
	Send(*TipsMetric) error
	grpc.ServerStream
}

type INX_ListenToTreasuryUpdatesClient

type INX_ListenToTreasuryUpdatesClient interface {
	Recv() (*TreasuryUpdate, error)
	grpc.ClientStream
}

type INX_ListenToTreasuryUpdatesServer

type INX_ListenToTreasuryUpdatesServer interface {
	Send(*TreasuryUpdate) error
	grpc.ServerStream
}

type INX_ReadMilestoneConeClient

type INX_ReadMilestoneConeClient interface {
	Recv() (*BlockWithMetadata, error)
	grpc.ClientStream
}

type INX_ReadMilestoneConeMetadataClient

type INX_ReadMilestoneConeMetadataClient interface {
	Recv() (*BlockMetadata, error)
	grpc.ClientStream
}

type INX_ReadMilestoneConeMetadataServer

type INX_ReadMilestoneConeMetadataServer interface {
	Send(*BlockMetadata) error
	grpc.ServerStream
}

type INX_ReadMilestoneConeServer

type INX_ReadMilestoneConeServer interface {
	Send(*BlockWithMetadata) error
	grpc.ServerStream
}

type INX_ReadUnspentOutputsClient

type INX_ReadUnspentOutputsClient interface {
	Recv() (*UnspentOutput, error)
	grpc.ClientStream
}

type INX_ReadUnspentOutputsServer

type INX_ReadUnspentOutputsServer interface {
	Send(*UnspentOutput) error
	grpc.ServerStream
}

type LedgerOutput

type LedgerOutput struct {
	OutputId                 *OutputId  `protobuf:"bytes,1,opt,name=output_id,json=outputId,proto3" json:"output_id,omitempty"`
	BlockId                  *BlockId   `protobuf:"bytes,2,opt,name=blockId,proto3" json:"blockId,omitempty"`
	MilestoneIndexBooked     uint32     `protobuf:"varint,3,opt,name=milestone_index_booked,json=milestoneIndexBooked,proto3" json:"milestone_index_booked,omitempty"`
	MilestoneTimestampBooked uint32     `` /* 136-byte string literal not displayed */
	Output                   *RawOutput `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*LedgerOutput) Descriptor deprecated

func (*LedgerOutput) Descriptor() ([]byte, []int)

Deprecated: Use LedgerOutput.ProtoReflect.Descriptor instead.

func (*LedgerOutput) GetBlockId

func (x *LedgerOutput) GetBlockId() *BlockId

func (*LedgerOutput) GetMilestoneIndexBooked

func (x *LedgerOutput) GetMilestoneIndexBooked() uint32

func (*LedgerOutput) GetMilestoneTimestampBooked

func (x *LedgerOutput) GetMilestoneTimestampBooked() uint32

func (*LedgerOutput) GetOutput

func (x *LedgerOutput) GetOutput() *RawOutput

func (*LedgerOutput) GetOutputId

func (x *LedgerOutput) GetOutputId() *OutputId

func (*LedgerOutput) MustUnwrapOutput

func (x *LedgerOutput) MustUnwrapOutput(deSeriMode serializer.DeSerializationMode, protoParas *iotago.ProtocolParameters) iotago.Output

func (*LedgerOutput) ProtoMessage

func (*LedgerOutput) ProtoMessage()

func (*LedgerOutput) ProtoReflect

func (x *LedgerOutput) ProtoReflect() protoreflect.Message

func (*LedgerOutput) Reset

func (x *LedgerOutput) Reset()

func (*LedgerOutput) String

func (x *LedgerOutput) String() string

func (*LedgerOutput) UnwrapBlockID

func (x *LedgerOutput) UnwrapBlockID() iotago.BlockID

func (*LedgerOutput) UnwrapOutput

func (x *LedgerOutput) UnwrapOutput(deSeriMode serializer.DeSerializationMode, protoParas *iotago.ProtocolParameters) (iotago.Output, error)

func (*LedgerOutput) UnwrapOutputID

func (x *LedgerOutput) UnwrapOutputID() iotago.OutputID

type LedgerSpent

type LedgerSpent struct {
	Output                  *LedgerOutput  `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
	TransactionIdSpent      *TransactionId `protobuf:"bytes,2,opt,name=transaction_id_spent,json=transactionIdSpent,proto3" json:"transaction_id_spent,omitempty"`
	MilestoneIndexSpent     uint32         `protobuf:"varint,3,opt,name=milestone_index_spent,json=milestoneIndexSpent,proto3" json:"milestone_index_spent,omitempty"`
	MilestoneTimestampSpent uint32         `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*LedgerSpent) Descriptor deprecated

func (*LedgerSpent) Descriptor() ([]byte, []int)

Deprecated: Use LedgerSpent.ProtoReflect.Descriptor instead.

func (*LedgerSpent) GetMilestoneIndexSpent

func (x *LedgerSpent) GetMilestoneIndexSpent() uint32

func (*LedgerSpent) GetMilestoneTimestampSpent

func (x *LedgerSpent) GetMilestoneTimestampSpent() uint32

func (*LedgerSpent) GetOutput

func (x *LedgerSpent) GetOutput() *LedgerOutput

func (*LedgerSpent) GetTransactionIdSpent

func (x *LedgerSpent) GetTransactionIdSpent() *TransactionId

func (*LedgerSpent) ProtoMessage

func (*LedgerSpent) ProtoMessage()

func (*LedgerSpent) ProtoReflect

func (x *LedgerSpent) ProtoReflect() protoreflect.Message

func (*LedgerSpent) Reset

func (x *LedgerSpent) Reset()

func (*LedgerSpent) String

func (x *LedgerSpent) String() string

func (*LedgerSpent) UnwrapTransactionIDSpent

func (x *LedgerSpent) UnwrapTransactionIDSpent() iotago.TransactionID

type LedgerUpdate

type LedgerUpdate struct {

	// Types that are assignable to Op:
	//
	//	*LedgerUpdate_BatchMarker
	//	*LedgerUpdate_Consumed
	//	*LedgerUpdate_Created
	Op isLedgerUpdate_Op `protobuf_oneof:"op"`
	// contains filtered or unexported fields
}

func (*LedgerUpdate) Descriptor deprecated

func (*LedgerUpdate) Descriptor() ([]byte, []int)

Deprecated: Use LedgerUpdate.ProtoReflect.Descriptor instead.

func (*LedgerUpdate) GetBatchMarker

func (x *LedgerUpdate) GetBatchMarker() *LedgerUpdate_Marker

func (*LedgerUpdate) GetConsumed

func (x *LedgerUpdate) GetConsumed() *LedgerSpent

func (*LedgerUpdate) GetCreated

func (x *LedgerUpdate) GetCreated() *LedgerOutput

func (*LedgerUpdate) GetOp

func (m *LedgerUpdate) GetOp() isLedgerUpdate_Op

func (*LedgerUpdate) ProtoMessage

func (*LedgerUpdate) ProtoMessage()

func (*LedgerUpdate) ProtoReflect

func (x *LedgerUpdate) ProtoReflect() protoreflect.Message

func (*LedgerUpdate) Reset

func (x *LedgerUpdate) Reset()

func (*LedgerUpdate) String

func (x *LedgerUpdate) String() string

type LedgerUpdate_BatchMarker

type LedgerUpdate_BatchMarker struct {
	BatchMarker *LedgerUpdate_Marker `protobuf:"bytes,1,opt,name=batch_marker,json=batchMarker,proto3,oneof"`
}

type LedgerUpdate_Consumed

type LedgerUpdate_Consumed struct {
	Consumed *LedgerSpent `protobuf:"bytes,2,opt,name=consumed,proto3,oneof"`
}

type LedgerUpdate_Created

type LedgerUpdate_Created struct {
	Created *LedgerOutput `protobuf:"bytes,3,opt,name=created,proto3,oneof"`
}

type LedgerUpdate_Marker

type LedgerUpdate_Marker struct {
	MilestoneIndex uint32                         `protobuf:"varint,1,opt,name=milestone_index,json=milestoneIndex,proto3" json:"milestone_index,omitempty"`
	MarkerType     LedgerUpdate_Marker_MarkerType `` /* 132-byte string literal not displayed */
	ConsumedCount  uint32                         `protobuf:"varint,3,opt,name=consumed_count,json=consumedCount,proto3" json:"consumed_count,omitempty"`
	CreatedCount   uint32                         `protobuf:"varint,4,opt,name=created_count,json=createdCount,proto3" json:"created_count,omitempty"`
	// contains filtered or unexported fields
}

func (*LedgerUpdate_Marker) Descriptor deprecated

func (*LedgerUpdate_Marker) Descriptor() ([]byte, []int)

Deprecated: Use LedgerUpdate_Marker.ProtoReflect.Descriptor instead.

func (*LedgerUpdate_Marker) GetConsumedCount

func (x *LedgerUpdate_Marker) GetConsumedCount() uint32

func (*LedgerUpdate_Marker) GetCreatedCount

func (x *LedgerUpdate_Marker) GetCreatedCount() uint32

func (*LedgerUpdate_Marker) GetMarkerType

func (*LedgerUpdate_Marker) GetMilestoneIndex

func (x *LedgerUpdate_Marker) GetMilestoneIndex() uint32

func (*LedgerUpdate_Marker) ProtoMessage

func (*LedgerUpdate_Marker) ProtoMessage()

func (*LedgerUpdate_Marker) ProtoReflect

func (x *LedgerUpdate_Marker) ProtoReflect() protoreflect.Message

func (*LedgerUpdate_Marker) Reset

func (x *LedgerUpdate_Marker) Reset()

func (*LedgerUpdate_Marker) String

func (x *LedgerUpdate_Marker) String() string

type LedgerUpdate_Marker_MarkerType

type LedgerUpdate_Marker_MarkerType int32
const (
	LedgerUpdate_Marker_BEGIN LedgerUpdate_Marker_MarkerType = 0
	LedgerUpdate_Marker_END   LedgerUpdate_Marker_MarkerType = 1
)

func (LedgerUpdate_Marker_MarkerType) Descriptor

func (LedgerUpdate_Marker_MarkerType) Enum

func (LedgerUpdate_Marker_MarkerType) EnumDescriptor deprecated

func (LedgerUpdate_Marker_MarkerType) EnumDescriptor() ([]byte, []int)

Deprecated: Use LedgerUpdate_Marker_MarkerType.Descriptor instead.

func (LedgerUpdate_Marker_MarkerType) Number

func (LedgerUpdate_Marker_MarkerType) String

func (LedgerUpdate_Marker_MarkerType) Type

type Milestone

type Milestone struct {
	MilestoneInfo *MilestoneInfo `protobuf:"bytes,1,opt,name=milestone_info,json=milestoneInfo,proto3" json:"milestone_info,omitempty"`
	// Optional. This field can be missing for example if there are no milestones yet in a network.
	Milestone *RawMilestone `protobuf:"bytes,2,opt,name=milestone,proto3" json:"milestone,omitempty"`
	// contains filtered or unexported fields
}

func (*Milestone) Descriptor deprecated

func (*Milestone) Descriptor() ([]byte, []int)

Deprecated: Use Milestone.ProtoReflect.Descriptor instead.

func (*Milestone) GetMilestone

func (x *Milestone) GetMilestone() *RawMilestone

func (*Milestone) GetMilestoneInfo

func (x *Milestone) GetMilestoneInfo() *MilestoneInfo

func (*Milestone) ProtoMessage

func (*Milestone) ProtoMessage()

func (*Milestone) ProtoReflect

func (x *Milestone) ProtoReflect() protoreflect.Message

func (*Milestone) Reset

func (x *Milestone) Reset()

func (*Milestone) String

func (x *Milestone) String() string

func (*Milestone) UnwrapMilestone

func (x *Milestone) UnwrapMilestone(deSeriMode serializer.DeSerializationMode, protoParas *iotago.ProtocolParameters) (*iotago.Milestone, error)

type MilestoneAndProtocolParameters

type MilestoneAndProtocolParameters struct {
	Milestone                 *Milestone             `protobuf:"bytes,1,opt,name=milestone,proto3" json:"milestone,omitempty"`
	CurrentProtocolParameters *RawProtocolParameters `` /* 138-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MilestoneAndProtocolParameters) Descriptor deprecated

func (*MilestoneAndProtocolParameters) Descriptor() ([]byte, []int)

Deprecated: Use MilestoneAndProtocolParameters.ProtoReflect.Descriptor instead.

func (*MilestoneAndProtocolParameters) GetCurrentProtocolParameters

func (x *MilestoneAndProtocolParameters) GetCurrentProtocolParameters() *RawProtocolParameters

func (*MilestoneAndProtocolParameters) GetMilestone

func (x *MilestoneAndProtocolParameters) GetMilestone() *Milestone

func (*MilestoneAndProtocolParameters) ProtoMessage

func (*MilestoneAndProtocolParameters) ProtoMessage()

func (*MilestoneAndProtocolParameters) ProtoReflect

func (*MilestoneAndProtocolParameters) Reset

func (x *MilestoneAndProtocolParameters) Reset()

func (*MilestoneAndProtocolParameters) String

type MilestoneId

type MilestoneId struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func NewMilestoneId

func NewMilestoneId(milestoneID iotago.MilestoneID) *MilestoneId

nolint:revive,stylecheck // this name is auto generated

func (*MilestoneId) Descriptor deprecated

func (*MilestoneId) Descriptor() ([]byte, []int)

Deprecated: Use MilestoneId.ProtoReflect.Descriptor instead.

func (*MilestoneId) GetId

func (x *MilestoneId) GetId() []byte

func (*MilestoneId) ProtoMessage

func (*MilestoneId) ProtoMessage()

func (*MilestoneId) ProtoReflect

func (x *MilestoneId) ProtoReflect() protoreflect.Message

func (*MilestoneId) Reset

func (x *MilestoneId) Reset()

func (*MilestoneId) String

func (x *MilestoneId) String() string

func (*MilestoneId) Unwrap

func (x *MilestoneId) Unwrap() iotago.MilestoneID

type MilestoneInfo

type MilestoneInfo struct {

	// Optional. This field can be missing for example if there are no milestones yet in a network.
	MilestoneId    *MilestoneId `protobuf:"bytes,1,opt,name=milestone_id,json=milestoneId,proto3" json:"milestone_id,omitempty"`
	MilestoneIndex uint32       `protobuf:"varint,2,opt,name=milestone_index,json=milestoneIndex,proto3" json:"milestone_index,omitempty"`
	// Optional. This field can be missing for example if there are no milestones yet in a network.
	MilestoneTimestamp uint32 `protobuf:"varint,3,opt,name=milestone_timestamp,json=milestoneTimestamp,proto3" json:"milestone_timestamp,omitempty"`
	// contains filtered or unexported fields
}

func NewMilestoneInfo

func NewMilestoneInfo(milestoneID iotago.MilestoneID, index uint32, timestamp uint32) *MilestoneInfo

func (*MilestoneInfo) Descriptor deprecated

func (*MilestoneInfo) Descriptor() ([]byte, []int)

Deprecated: Use MilestoneInfo.ProtoReflect.Descriptor instead.

func (*MilestoneInfo) GetMilestoneId

func (x *MilestoneInfo) GetMilestoneId() *MilestoneId

func (*MilestoneInfo) GetMilestoneIndex

func (x *MilestoneInfo) GetMilestoneIndex() uint32

func (*MilestoneInfo) GetMilestoneTimestamp

func (x *MilestoneInfo) GetMilestoneTimestamp() uint32

func (*MilestoneInfo) ProtoMessage

func (*MilestoneInfo) ProtoMessage()

func (*MilestoneInfo) ProtoReflect

func (x *MilestoneInfo) ProtoReflect() protoreflect.Message

func (*MilestoneInfo) Reset

func (x *MilestoneInfo) Reset()

func (*MilestoneInfo) String

func (x *MilestoneInfo) String() string

type MilestoneKeyRange

type MilestoneKeyRange struct {
	PublicKey  []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	StartIndex uint32 `protobuf:"varint,2,opt,name=start_index,json=startIndex,proto3" json:"start_index,omitempty"`
	EndIndex   uint32 `protobuf:"varint,3,opt,name=end_index,json=endIndex,proto3" json:"end_index,omitempty"`
	// contains filtered or unexported fields
}

func (*MilestoneKeyRange) Descriptor deprecated

func (*MilestoneKeyRange) Descriptor() ([]byte, []int)

Deprecated: Use MilestoneKeyRange.ProtoReflect.Descriptor instead.

func (*MilestoneKeyRange) GetEndIndex

func (x *MilestoneKeyRange) GetEndIndex() uint32

func (*MilestoneKeyRange) GetPublicKey

func (x *MilestoneKeyRange) GetPublicKey() []byte

func (*MilestoneKeyRange) GetStartIndex

func (x *MilestoneKeyRange) GetStartIndex() uint32

func (*MilestoneKeyRange) ProtoMessage

func (*MilestoneKeyRange) ProtoMessage()

func (*MilestoneKeyRange) ProtoReflect

func (x *MilestoneKeyRange) ProtoReflect() protoreflect.Message

func (*MilestoneKeyRange) Reset

func (x *MilestoneKeyRange) Reset()

func (*MilestoneKeyRange) String

func (x *MilestoneKeyRange) String() string

type MilestoneRangeRequest

type MilestoneRangeRequest struct {

	// start_milestone_index is the initial milestone to get. Use 0 to start from the current node status.
	StartMilestoneIndex uint32 `protobuf:"varint,1,opt,name=start_milestone_index,json=startMilestoneIndex,proto3" json:"start_milestone_index,omitempty"`
	// end_milestone_index is the last milestone to get (inclusive). Use 0 to keep getting new confirmed milestones.
	EndMilestoneIndex uint32 `protobuf:"varint,2,opt,name=end_milestone_index,json=endMilestoneIndex,proto3" json:"end_milestone_index,omitempty"`
	// contains filtered or unexported fields
}

func (*MilestoneRangeRequest) Descriptor deprecated

func (*MilestoneRangeRequest) Descriptor() ([]byte, []int)

Deprecated: Use MilestoneRangeRequest.ProtoReflect.Descriptor instead.

func (*MilestoneRangeRequest) GetEndMilestoneIndex

func (x *MilestoneRangeRequest) GetEndMilestoneIndex() uint32

func (*MilestoneRangeRequest) GetStartMilestoneIndex

func (x *MilestoneRangeRequest) GetStartMilestoneIndex() uint32

func (*MilestoneRangeRequest) ProtoMessage

func (*MilestoneRangeRequest) ProtoMessage()

func (*MilestoneRangeRequest) ProtoReflect

func (x *MilestoneRangeRequest) ProtoReflect() protoreflect.Message

func (*MilestoneRangeRequest) Reset

func (x *MilestoneRangeRequest) Reset()

func (*MilestoneRangeRequest) String

func (x *MilestoneRangeRequest) String() string

type MilestoneRequest

type MilestoneRequest struct {
	MilestoneIndex uint32       `protobuf:"varint,1,opt,name=milestone_index,json=milestoneIndex,proto3" json:"milestone_index,omitempty"`
	MilestoneId    *MilestoneId `protobuf:"bytes,2,opt,name=milestone_id,json=milestoneId,proto3" json:"milestone_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MilestoneRequest) Descriptor deprecated

func (*MilestoneRequest) Descriptor() ([]byte, []int)

Deprecated: Use MilestoneRequest.ProtoReflect.Descriptor instead.

func (*MilestoneRequest) GetMilestoneId

func (x *MilestoneRequest) GetMilestoneId() *MilestoneId

func (*MilestoneRequest) GetMilestoneIndex

func (x *MilestoneRequest) GetMilestoneIndex() uint32

func (*MilestoneRequest) ProtoMessage

func (*MilestoneRequest) ProtoMessage()

func (*MilestoneRequest) ProtoReflect

func (x *MilestoneRequest) ProtoReflect() protoreflect.Message

func (*MilestoneRequest) Reset

func (x *MilestoneRequest) Reset()

func (*MilestoneRequest) String

func (x *MilestoneRequest) String() string

type NoParams

type NoParams struct {
	// contains filtered or unexported fields
}

func (*NoParams) Descriptor deprecated

func (*NoParams) Descriptor() ([]byte, []int)

Deprecated: Use NoParams.ProtoReflect.Descriptor instead.

func (*NoParams) ProtoMessage

func (*NoParams) ProtoMessage()

func (*NoParams) ProtoReflect

func (x *NoParams) ProtoReflect() protoreflect.Message

func (*NoParams) Reset

func (x *NoParams) Reset()

func (*NoParams) String

func (x *NoParams) String() string

type NodeConfiguration

type NodeConfiguration struct {
	MilestonePublicKeyCount   uint32               `` /* 135-byte string literal not displayed */
	MilestoneKeyRanges        []*MilestoneKeyRange `protobuf:"bytes,2,rep,name=milestone_key_ranges,json=milestoneKeyRanges,proto3" json:"milestone_key_ranges,omitempty"`
	BaseToken                 *BaseToken           `protobuf:"bytes,3,opt,name=base_token,json=baseToken,proto3" json:"base_token,omitempty"`
	SupportedProtocolVersions []uint32             `` /* 146-byte string literal not displayed */
	// contains filtered or unexported fields
}

Node

func (*NodeConfiguration) Descriptor deprecated

func (*NodeConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use NodeConfiguration.ProtoReflect.Descriptor instead.

func (*NodeConfiguration) GetBaseToken

func (x *NodeConfiguration) GetBaseToken() *BaseToken

func (*NodeConfiguration) GetMilestoneKeyRanges

func (x *NodeConfiguration) GetMilestoneKeyRanges() []*MilestoneKeyRange

func (*NodeConfiguration) GetMilestonePublicKeyCount

func (x *NodeConfiguration) GetMilestonePublicKeyCount() uint32

func (*NodeConfiguration) GetSupportedProtocolVersions

func (x *NodeConfiguration) GetSupportedProtocolVersions() []uint32

func (*NodeConfiguration) ProtoMessage

func (*NodeConfiguration) ProtoMessage()

func (*NodeConfiguration) ProtoReflect

func (x *NodeConfiguration) ProtoReflect() protoreflect.Message

func (*NodeConfiguration) Reset

func (x *NodeConfiguration) Reset()

func (*NodeConfiguration) String

func (x *NodeConfiguration) String() string

type NodeStatus

type NodeStatus struct {
	IsHealthy                 bool                   `protobuf:"varint,1,opt,name=is_healthy,json=isHealthy,proto3" json:"is_healthy,omitempty"`
	IsSynced                  bool                   `protobuf:"varint,2,opt,name=is_synced,json=isSynced,proto3" json:"is_synced,omitempty"`
	IsAlmostSynced            bool                   `protobuf:"varint,3,opt,name=is_almost_synced,json=isAlmostSynced,proto3" json:"is_almost_synced,omitempty"`
	LatestMilestone           *Milestone             `protobuf:"bytes,4,opt,name=latest_milestone,json=latestMilestone,proto3" json:"latest_milestone,omitempty"`
	ConfirmedMilestone        *Milestone             `protobuf:"bytes,5,opt,name=confirmed_milestone,json=confirmedMilestone,proto3" json:"confirmed_milestone,omitempty"`
	CurrentProtocolParameters *RawProtocolParameters `` /* 138-byte string literal not displayed */
	TanglePruningIndex        uint32                 `protobuf:"varint,7,opt,name=tangle_pruning_index,json=tanglePruningIndex,proto3" json:"tangle_pruning_index,omitempty"`
	MilestonesPruningIndex    uint32                 `` /* 130-byte string literal not displayed */
	LedgerPruningIndex        uint32                 `protobuf:"varint,9,opt,name=ledger_pruning_index,json=ledgerPruningIndex,proto3" json:"ledger_pruning_index,omitempty"`
	LedgerIndex               uint32                 `protobuf:"varint,10,opt,name=ledger_index,json=ledgerIndex,proto3" json:"ledger_index,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeStatus) Descriptor deprecated

func (*NodeStatus) Descriptor() ([]byte, []int)

Deprecated: Use NodeStatus.ProtoReflect.Descriptor instead.

func (*NodeStatus) GetConfirmedMilestone

func (x *NodeStatus) GetConfirmedMilestone() *Milestone

func (*NodeStatus) GetCurrentProtocolParameters

func (x *NodeStatus) GetCurrentProtocolParameters() *RawProtocolParameters

func (*NodeStatus) GetIsAlmostSynced

func (x *NodeStatus) GetIsAlmostSynced() bool

func (*NodeStatus) GetIsHealthy

func (x *NodeStatus) GetIsHealthy() bool

func (*NodeStatus) GetIsSynced

func (x *NodeStatus) GetIsSynced() bool

func (*NodeStatus) GetLatestMilestone

func (x *NodeStatus) GetLatestMilestone() *Milestone

func (*NodeStatus) GetLedgerIndex

func (x *NodeStatus) GetLedgerIndex() uint32

func (*NodeStatus) GetLedgerPruningIndex

func (x *NodeStatus) GetLedgerPruningIndex() uint32

func (*NodeStatus) GetMilestonesPruningIndex

func (x *NodeStatus) GetMilestonesPruningIndex() uint32

func (*NodeStatus) GetTanglePruningIndex

func (x *NodeStatus) GetTanglePruningIndex() uint32

func (*NodeStatus) ProtoMessage

func (*NodeStatus) ProtoMessage()

func (*NodeStatus) ProtoReflect

func (x *NodeStatus) ProtoReflect() protoreflect.Message

func (*NodeStatus) Reset

func (x *NodeStatus) Reset()

func (*NodeStatus) String

func (x *NodeStatus) String() string

type NodeStatusRequest

type NodeStatusRequest struct {
	CooldownInMilliseconds uint32 `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*NodeStatusRequest) Descriptor deprecated

func (*NodeStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use NodeStatusRequest.ProtoReflect.Descriptor instead.

func (*NodeStatusRequest) GetCooldownInMilliseconds

func (x *NodeStatusRequest) GetCooldownInMilliseconds() uint32

func (*NodeStatusRequest) ProtoMessage

func (*NodeStatusRequest) ProtoMessage()

func (*NodeStatusRequest) ProtoReflect

func (x *NodeStatusRequest) ProtoReflect() protoreflect.Message

func (*NodeStatusRequest) Reset

func (x *NodeStatusRequest) Reset()

func (*NodeStatusRequest) String

func (x *NodeStatusRequest) String() string

type OutputId

type OutputId struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func NewOutputId

func NewOutputId(outputID iotago.OutputID) *OutputId

nolint:revive,stylecheck // this name is auto generated

func (*OutputId) Descriptor deprecated

func (*OutputId) Descriptor() ([]byte, []int)

Deprecated: Use OutputId.ProtoReflect.Descriptor instead.

func (*OutputId) GetId

func (x *OutputId) GetId() []byte

func (*OutputId) ProtoMessage

func (*OutputId) ProtoMessage()

func (*OutputId) ProtoReflect

func (x *OutputId) ProtoReflect() protoreflect.Message

func (*OutputId) Reset

func (x *OutputId) Reset()

func (*OutputId) String

func (x *OutputId) String() string

func (*OutputId) Unwrap

func (x *OutputId) Unwrap() iotago.OutputID

type OutputResponse

type OutputResponse struct {
	LedgerIndex uint32 `protobuf:"varint,1,opt,name=ledger_index,json=ledgerIndex,proto3" json:"ledger_index,omitempty"`
	// Types that are assignable to Payload:
	//
	//	*OutputResponse_Output
	//	*OutputResponse_Spent
	Payload isOutputResponse_Payload `protobuf_oneof:"payload"`
	// contains filtered or unexported fields
}

func (*OutputResponse) Descriptor deprecated

func (*OutputResponse) Descriptor() ([]byte, []int)

Deprecated: Use OutputResponse.ProtoReflect.Descriptor instead.

func (*OutputResponse) GetLedgerIndex

func (x *OutputResponse) GetLedgerIndex() uint32

func (*OutputResponse) GetOutput

func (x *OutputResponse) GetOutput() *LedgerOutput

func (*OutputResponse) GetPayload

func (m *OutputResponse) GetPayload() isOutputResponse_Payload

func (*OutputResponse) GetSpent

func (x *OutputResponse) GetSpent() *LedgerSpent

func (*OutputResponse) ProtoMessage

func (*OutputResponse) ProtoMessage()

func (*OutputResponse) ProtoReflect

func (x *OutputResponse) ProtoReflect() protoreflect.Message

func (*OutputResponse) Reset

func (x *OutputResponse) Reset()

func (*OutputResponse) String

func (x *OutputResponse) String() string

type OutputResponse_Output

type OutputResponse_Output struct {
	Output *LedgerOutput `protobuf:"bytes,2,opt,name=output,proto3,oneof"`
}

type OutputResponse_Spent

type OutputResponse_Spent struct {
	Spent *LedgerSpent `protobuf:"bytes,3,opt,name=spent,proto3,oneof"`
}

type RawBlock

type RawBlock struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Blocks

func WrapBlock

func WrapBlock(msg *iotago.Block) (*RawBlock, error)

func (*RawBlock) Descriptor deprecated

func (*RawBlock) Descriptor() ([]byte, []int)

Deprecated: Use RawBlock.ProtoReflect.Descriptor instead.

func (*RawBlock) GetData

func (x *RawBlock) GetData() []byte

func (*RawBlock) ProtoMessage

func (*RawBlock) ProtoMessage()

func (*RawBlock) ProtoReflect

func (x *RawBlock) ProtoReflect() protoreflect.Message

func (*RawBlock) Reset

func (x *RawBlock) Reset()

func (*RawBlock) String

func (x *RawBlock) String() string

func (*RawBlock) UnwrapBlock

func (x *RawBlock) UnwrapBlock(deSeriMode serializer.DeSerializationMode, protoParas *iotago.ProtocolParameters) (*iotago.Block, error)

type RawMilestone

type RawMilestone struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

Milestones

func (*RawMilestone) Descriptor deprecated

func (*RawMilestone) Descriptor() ([]byte, []int)

Deprecated: Use RawMilestone.ProtoReflect.Descriptor instead.

func (*RawMilestone) GetData

func (x *RawMilestone) GetData() []byte

func (*RawMilestone) ProtoMessage

func (*RawMilestone) ProtoMessage()

func (*RawMilestone) ProtoReflect

func (x *RawMilestone) ProtoReflect() protoreflect.Message

func (*RawMilestone) Reset

func (x *RawMilestone) Reset()

func (*RawMilestone) String

func (x *RawMilestone) String() string

func (*RawMilestone) Unwrap

func (x *RawMilestone) Unwrap(deSeriMode serializer.DeSerializationMode, protoParas *iotago.ProtocolParameters) (*iotago.Milestone, error)

type RawOutput

type RawOutput struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func WrapOutput

func WrapOutput(output iotago.Output) (*RawOutput, error)

func (*RawOutput) Descriptor deprecated

func (*RawOutput) Descriptor() ([]byte, []int)

Deprecated: Use RawOutput.ProtoReflect.Descriptor instead.

func (*RawOutput) GetData

func (x *RawOutput) GetData() []byte

func (*RawOutput) ProtoMessage

func (*RawOutput) ProtoMessage()

func (*RawOutput) ProtoReflect

func (x *RawOutput) ProtoReflect() protoreflect.Message

func (*RawOutput) Reset

func (x *RawOutput) Reset()

func (*RawOutput) String

func (x *RawOutput) String() string

func (*RawOutput) Unwrap

func (x *RawOutput) Unwrap(deSeriMode serializer.DeSerializationMode, protoParas *iotago.ProtocolParameters) (iotago.Output, error)

type RawProtocolParameters

type RawProtocolParameters struct {
	ProtocolVersion uint32 `protobuf:"varint,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
	Params          []byte `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

func (*RawProtocolParameters) Descriptor deprecated

func (*RawProtocolParameters) Descriptor() ([]byte, []int)

Deprecated: Use RawProtocolParameters.ProtoReflect.Descriptor instead.

func (*RawProtocolParameters) GetParams

func (x *RawProtocolParameters) GetParams() []byte

func (*RawProtocolParameters) GetProtocolVersion

func (x *RawProtocolParameters) GetProtocolVersion() uint32

func (*RawProtocolParameters) ProtoMessage

func (*RawProtocolParameters) ProtoMessage()

func (*RawProtocolParameters) ProtoReflect

func (x *RawProtocolParameters) ProtoReflect() protoreflect.Message

func (*RawProtocolParameters) Reset

func (x *RawProtocolParameters) Reset()

func (*RawProtocolParameters) String

func (x *RawProtocolParameters) String() string

type RawReceipt

type RawReceipt struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func WrapReceipt

func WrapReceipt(receipt *iotago.ReceiptMilestoneOpt) (*RawReceipt, error)

func (*RawReceipt) Descriptor deprecated

func (*RawReceipt) Descriptor() ([]byte, []int)

Deprecated: Use RawReceipt.ProtoReflect.Descriptor instead.

func (*RawReceipt) GetData

func (x *RawReceipt) GetData() []byte

func (*RawReceipt) ProtoMessage

func (*RawReceipt) ProtoMessage()

func (*RawReceipt) ProtoReflect

func (x *RawReceipt) ProtoReflect() protoreflect.Message

func (*RawReceipt) Reset

func (x *RawReceipt) Reset()

func (*RawReceipt) String

func (x *RawReceipt) String() string

func (*RawReceipt) UnwrapReceipt

func (x *RawReceipt) UnwrapReceipt(deSeriMode serializer.DeSerializationMode, protoParas *iotago.ProtocolParameters) (*iotago.ReceiptMilestoneOpt, error)

type TipsMetric

type TipsMetric struct {
	NonLazyPoolSize  uint32 `protobuf:"varint,1,opt,name=non_lazy_pool_size,json=nonLazyPoolSize,proto3" json:"non_lazy_pool_size,omitempty"`
	SemiLazyPoolSize uint32 `protobuf:"varint,2,opt,name=semi_lazy_pool_size,json=semiLazyPoolSize,proto3" json:"semi_lazy_pool_size,omitempty"`
	// contains filtered or unexported fields
}

func (*TipsMetric) Descriptor deprecated

func (*TipsMetric) Descriptor() ([]byte, []int)

Deprecated: Use TipsMetric.ProtoReflect.Descriptor instead.

func (*TipsMetric) GetNonLazyPoolSize

func (x *TipsMetric) GetNonLazyPoolSize() uint32

func (*TipsMetric) GetSemiLazyPoolSize

func (x *TipsMetric) GetSemiLazyPoolSize() uint32

func (*TipsMetric) ProtoMessage

func (*TipsMetric) ProtoMessage()

func (*TipsMetric) ProtoReflect

func (x *TipsMetric) ProtoReflect() protoreflect.Message

func (*TipsMetric) Reset

func (x *TipsMetric) Reset()

func (*TipsMetric) String

func (x *TipsMetric) String() string

type TipsMetricRequest

type TipsMetricRequest struct {
	IntervalInMilliseconds uint32 `` /* 130-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*TipsMetricRequest) Descriptor deprecated

func (*TipsMetricRequest) Descriptor() ([]byte, []int)

Deprecated: Use TipsMetricRequest.ProtoReflect.Descriptor instead.

func (*TipsMetricRequest) GetIntervalInMilliseconds

func (x *TipsMetricRequest) GetIntervalInMilliseconds() uint32

func (*TipsMetricRequest) ProtoMessage

func (*TipsMetricRequest) ProtoMessage()

func (*TipsMetricRequest) ProtoReflect

func (x *TipsMetricRequest) ProtoReflect() protoreflect.Message

func (*TipsMetricRequest) Reset

func (x *TipsMetricRequest) Reset()

func (*TipsMetricRequest) String

func (x *TipsMetricRequest) String() string

type TipsRequest

type TipsRequest struct {
	Count         uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	AllowSemiLazy bool   `protobuf:"varint,2,opt,name=allow_semiLazy,json=allowSemiLazy,proto3" json:"allow_semiLazy,omitempty"`
	// contains filtered or unexported fields
}

Tips

func (*TipsRequest) Descriptor deprecated

func (*TipsRequest) Descriptor() ([]byte, []int)

Deprecated: Use TipsRequest.ProtoReflect.Descriptor instead.

func (*TipsRequest) GetAllowSemiLazy

func (x *TipsRequest) GetAllowSemiLazy() bool

func (*TipsRequest) GetCount

func (x *TipsRequest) GetCount() uint32

func (*TipsRequest) ProtoMessage

func (*TipsRequest) ProtoMessage()

func (*TipsRequest) ProtoReflect

func (x *TipsRequest) ProtoReflect() protoreflect.Message

func (*TipsRequest) Reset

func (x *TipsRequest) Reset()

func (*TipsRequest) String

func (x *TipsRequest) String() string

type TipsResponse

type TipsResponse struct {
	Tips []*BlockId `protobuf:"bytes,1,rep,name=tips,proto3" json:"tips,omitempty"`
	// contains filtered or unexported fields
}

func (*TipsResponse) Descriptor deprecated

func (*TipsResponse) Descriptor() ([]byte, []int)

Deprecated: Use TipsResponse.ProtoReflect.Descriptor instead.

func (*TipsResponse) GetTips

func (x *TipsResponse) GetTips() []*BlockId

func (*TipsResponse) ProtoMessage

func (*TipsResponse) ProtoMessage()

func (*TipsResponse) ProtoReflect

func (x *TipsResponse) ProtoReflect() protoreflect.Message

func (*TipsResponse) Reset

func (x *TipsResponse) Reset()

func (*TipsResponse) String

func (x *TipsResponse) String() string

func (*TipsResponse) UnwrapTips

func (x *TipsResponse) UnwrapTips() iotago.BlockIDs

type TransactionId

type TransactionId struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

UTXO

func NewTransactionId

func NewTransactionId(transactionID iotago.TransactionID) *TransactionId

nolint:revive,stylecheck // this name is auto generated

func (*TransactionId) Descriptor deprecated

func (*TransactionId) Descriptor() ([]byte, []int)

Deprecated: Use TransactionId.ProtoReflect.Descriptor instead.

func (*TransactionId) GetId

func (x *TransactionId) GetId() []byte

func (*TransactionId) ProtoMessage

func (*TransactionId) ProtoMessage()

func (*TransactionId) ProtoReflect

func (x *TransactionId) ProtoReflect() protoreflect.Message

func (*TransactionId) Reset

func (x *TransactionId) Reset()

func (*TransactionId) String

func (x *TransactionId) String() string

func (*TransactionId) Unwrap

func (x *TransactionId) Unwrap() iotago.TransactionID

type TreasuryOutput

type TreasuryOutput struct {
	MilestoneId *MilestoneId `protobuf:"bytes,1,opt,name=milestone_id,json=milestoneId,proto3" json:"milestone_id,omitempty"`
	Amount      uint64       `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*TreasuryOutput) Descriptor deprecated

func (*TreasuryOutput) Descriptor() ([]byte, []int)

Deprecated: Use TreasuryOutput.ProtoReflect.Descriptor instead.

func (*TreasuryOutput) GetAmount

func (x *TreasuryOutput) GetAmount() uint64

func (*TreasuryOutput) GetMilestoneId

func (x *TreasuryOutput) GetMilestoneId() *MilestoneId

func (*TreasuryOutput) ProtoMessage

func (*TreasuryOutput) ProtoMessage()

func (*TreasuryOutput) ProtoReflect

func (x *TreasuryOutput) ProtoReflect() protoreflect.Message

func (*TreasuryOutput) Reset

func (x *TreasuryOutput) Reset()

func (*TreasuryOutput) String

func (x *TreasuryOutput) String() string

func (*TreasuryOutput) UnwrapMilestoneID

func (x *TreasuryOutput) UnwrapMilestoneID() iotago.MilestoneID

type TreasuryUpdate

type TreasuryUpdate struct {
	MilestoneIndex uint32          `protobuf:"varint,1,opt,name=milestone_index,json=milestoneIndex,proto3" json:"milestone_index,omitempty"`
	Created        *TreasuryOutput `protobuf:"bytes,2,opt,name=created,proto3" json:"created,omitempty"`
	Consumed       *TreasuryOutput `protobuf:"bytes,3,opt,name=consumed,proto3" json:"consumed,omitempty"`
	// contains filtered or unexported fields
}

func (*TreasuryUpdate) Descriptor deprecated

func (*TreasuryUpdate) Descriptor() ([]byte, []int)

Deprecated: Use TreasuryUpdate.ProtoReflect.Descriptor instead.

func (*TreasuryUpdate) GetConsumed

func (x *TreasuryUpdate) GetConsumed() *TreasuryOutput

func (*TreasuryUpdate) GetCreated

func (x *TreasuryUpdate) GetCreated() *TreasuryOutput

func (*TreasuryUpdate) GetMilestoneIndex

func (x *TreasuryUpdate) GetMilestoneIndex() uint32

func (*TreasuryUpdate) ProtoMessage

func (*TreasuryUpdate) ProtoMessage()

func (*TreasuryUpdate) ProtoReflect

func (x *TreasuryUpdate) ProtoReflect() protoreflect.Message

func (*TreasuryUpdate) Reset

func (x *TreasuryUpdate) Reset()

func (*TreasuryUpdate) String

func (x *TreasuryUpdate) String() string

type UnimplementedINXServer

type UnimplementedINXServer struct {
}

UnimplementedINXServer must be embedded to have forward compatible implementations.

func (UnimplementedINXServer) ComputeWhiteFlag

func (UnimplementedINXServer) ListenToBlocks

func (UnimplementedINXServer) ListenToLatestMilestones

func (UnimplementedINXServer) ListenToLedgerUpdates

func (UnimplementedINXServer) ListenToMigrationReceipts

func (UnimplementedINXServer) ListenToNodeStatus

func (UnimplementedINXServer) ListenToReferencedBlocks

func (UnimplementedINXServer) ListenToSolidBlocks

func (UnimplementedINXServer) ListenToTipScoreUpdates

func (UnimplementedINXServer) ListenToTipsMetrics

func (UnimplementedINXServer) ListenToTreasuryUpdates

func (UnimplementedINXServer) PerformAPIRequest

func (UnimplementedINXServer) ReadBlock

func (UnimplementedINXServer) ReadBlockMetadata

func (UnimplementedINXServer) ReadMilestone

func (UnimplementedINXServer) ReadMilestoneCone

func (UnimplementedINXServer) ReadMilestoneConeMetadata

func (UnimplementedINXServer) ReadNodeConfiguration

func (UnimplementedINXServer) ReadNodeStatus

func (UnimplementedINXServer) ReadOutput

func (UnimplementedINXServer) ReadProtocolParameters

func (UnimplementedINXServer) ReadUnspentOutputs

func (UnimplementedINXServer) RegisterAPIRoute

func (UnimplementedINXServer) RequestTips

func (UnimplementedINXServer) SubmitBlock

func (UnimplementedINXServer) UnregisterAPIRoute

type UnsafeINXServer

type UnsafeINXServer interface {
	// contains filtered or unexported methods
}

UnsafeINXServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to INXServer will result in compilation errors.

type UnspentOutput

type UnspentOutput struct {
	LedgerIndex uint32        `protobuf:"varint,1,opt,name=ledgerIndex,proto3" json:"ledgerIndex,omitempty"`
	Output      *LedgerOutput `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*UnspentOutput) Descriptor deprecated

func (*UnspentOutput) Descriptor() ([]byte, []int)

Deprecated: Use UnspentOutput.ProtoReflect.Descriptor instead.

func (*UnspentOutput) GetLedgerIndex

func (x *UnspentOutput) GetLedgerIndex() uint32

func (*UnspentOutput) GetOutput

func (x *UnspentOutput) GetOutput() *LedgerOutput

func (*UnspentOutput) ProtoMessage

func (*UnspentOutput) ProtoMessage()

func (*UnspentOutput) ProtoReflect

func (x *UnspentOutput) ProtoReflect() protoreflect.Message

func (*UnspentOutput) Reset

func (x *UnspentOutput) Reset()

func (*UnspentOutput) String

func (x *UnspentOutput) String() string

type WhiteFlagRequest

type WhiteFlagRequest struct {
	MilestoneIndex      uint32       `protobuf:"varint,1,opt,name=milestone_index,json=milestoneIndex,proto3" json:"milestone_index,omitempty"`
	MilestoneTimestamp  uint32       `protobuf:"varint,2,opt,name=milestone_timestamp,json=milestoneTimestamp,proto3" json:"milestone_timestamp,omitempty"`
	Parents             []*BlockId   `protobuf:"bytes,3,rep,name=parents,proto3" json:"parents,omitempty"`
	PreviousMilestoneId *MilestoneId `protobuf:"bytes,4,opt,name=previous_milestone_id,json=previousMilestoneId,proto3" json:"previous_milestone_id,omitempty"`
	// contains filtered or unexported fields
}

func (*WhiteFlagRequest) Descriptor deprecated

func (*WhiteFlagRequest) Descriptor() ([]byte, []int)

Deprecated: Use WhiteFlagRequest.ProtoReflect.Descriptor instead.

func (*WhiteFlagRequest) GetMilestoneIndex

func (x *WhiteFlagRequest) GetMilestoneIndex() uint32

func (*WhiteFlagRequest) GetMilestoneTimestamp

func (x *WhiteFlagRequest) GetMilestoneTimestamp() uint32

func (*WhiteFlagRequest) GetParents

func (x *WhiteFlagRequest) GetParents() []*BlockId

func (*WhiteFlagRequest) GetPreviousMilestoneId

func (x *WhiteFlagRequest) GetPreviousMilestoneId() *MilestoneId

func (*WhiteFlagRequest) ProtoMessage

func (*WhiteFlagRequest) ProtoMessage()

func (*WhiteFlagRequest) ProtoReflect

func (x *WhiteFlagRequest) ProtoReflect() protoreflect.Message

func (*WhiteFlagRequest) Reset

func (x *WhiteFlagRequest) Reset()

func (*WhiteFlagRequest) String

func (x *WhiteFlagRequest) String() string

func (*WhiteFlagRequest) UnwrapParents

func (x *WhiteFlagRequest) UnwrapParents() iotago.BlockIDs

type WhiteFlagResponse

type WhiteFlagResponse struct {
	MilestoneInclusionMerkleRoot []byte `` /* 149-byte string literal not displayed */
	MilestoneAppliedMerkleRoot   []byte `` /* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*WhiteFlagResponse) Descriptor deprecated

func (*WhiteFlagResponse) Descriptor() ([]byte, []int)

Deprecated: Use WhiteFlagResponse.ProtoReflect.Descriptor instead.

func (*WhiteFlagResponse) GetMilestoneAppliedMerkleRoot

func (x *WhiteFlagResponse) GetMilestoneAppliedMerkleRoot() []byte

func (*WhiteFlagResponse) GetMilestoneInclusionMerkleRoot

func (x *WhiteFlagResponse) GetMilestoneInclusionMerkleRoot() []byte

func (*WhiteFlagResponse) ProtoMessage

func (*WhiteFlagResponse) ProtoMessage()

func (*WhiteFlagResponse) ProtoReflect

func (x *WhiteFlagResponse) ProtoReflect() protoreflect.Message

func (*WhiteFlagResponse) Reset

func (x *WhiteFlagResponse) Reset()

func (*WhiteFlagResponse) String

func (x *WhiteFlagResponse) String() string

Jump to

Keyboard shortcuts

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