neutrinodtypes

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Register   ActionType = "register"
	Unregister ActionType = "unregister"

	UnspentUtxo EventType = "unspentUtxo"
	SpentUtxo   EventType = "spentUtxo"
)

Variables

View Source
var (
	ErrInvalidEventType = errors.New("invalid event type")
)

Functions

func FromNeutrinodTypeToScannerEventType

func FromNeutrinodTypeToScannerEventType(eventType EventType) (scanner.EventType, error)

Types

type ActionType

type ActionType string

type EventType

type EventType string

func FromScannerEventTypeToNeutrinodType

func FromScannerEventTypeToNeutrinodType(eventType scanner.EventType) (EventType, error)

type GeneralMessageResponse

type GeneralMessageResponse struct {
	Message string `json:"message"`
}

type MessageErrorResponse

type MessageErrorResponse struct {
	ErrorMessage string `json:"errorMessage"`
}

type OnChainEventResponse

type OnChainEventResponse struct {
	EventType EventType `json:"eventType"`
	TxID      string    `json:"txId"`
}

type SubscriptionRequestHttp

type SubscriptionRequestHttp struct {
	ActionType       ActionType          `json:"actionType"`
	EventTypes       []scanner.EventType `json:"eventTypes"`
	DescriptorWallet string              `json:"descriptorWallet"`
	StartBlockHeight int                 `json:"startBlockHeight"`
	EndpointUrl      string              `json:"endpointUrl"`
}

type SubscriptionRequestWs

type SubscriptionRequestWs struct {
	ActionType       ActionType  `json:"actionType"`
	EventTypes       []EventType `json:"eventTypes"`
	DescriptorWallet string      `json:"descriptorWallet"`
	StartBlockHeight int         `json:"startBlockHeight"`
}

Jump to

Keyboard shortcuts

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