models

package
v0.0.0-...-827b95a Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtobufAny

type ProtobufAny struct {

	// at type
	AtType string `json:"@type,omitempty"`

	// protobuf any
	ProtobufAny map[string]interface{} `json:"-"`
}

ProtobufAny protobuf any

swagger:model protobufAny

func (*ProtobufAny) ContextValidate

func (m *ProtobufAny) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this protobuf any based on context it is used

func (*ProtobufAny) MarshalBinary

func (m *ProtobufAny) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (ProtobufAny) MarshalJSON

func (m ProtobufAny) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with additional properties into a JSON object

func (*ProtobufAny) UnmarshalBinary

func (m *ProtobufAny) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProtobufAny) UnmarshalJSON

func (m *ProtobufAny) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object with additional properties from JSON

func (*ProtobufAny) Validate

func (m *ProtobufAny) Validate(formats strfmt.Registry) error

Validate validates this protobuf any

type RPCStatus

type RPCStatus struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*ProtobufAny `json:"details"`

	// message
	Message string `json:"message,omitempty"`
}

RPCStatus rpc status

swagger:model rpcStatus

func (*RPCStatus) ContextValidate

func (m *RPCStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this rpc status based on the context it is used

func (*RPCStatus) MarshalBinary

func (m *RPCStatus) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RPCStatus) UnmarshalBinary

func (m *RPCStatus) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RPCStatus) Validate

func (m *RPCStatus) Validate(formats strfmt.Registry) error

Validate validates this rpc status

type V1DeleteNostrRecipientRequest

type V1DeleteNostrRecipientRequest struct {

	// vtxos
	Vtxos []*V1SignedVtxoOutpoint `json:"vtxos"`
}

V1DeleteNostrRecipientRequest v1 delete nostr recipient request

swagger:model v1DeleteNostrRecipientRequest

func (*V1DeleteNostrRecipientRequest) ContextValidate

func (m *V1DeleteNostrRecipientRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 delete nostr recipient request based on the context it is used

func (*V1DeleteNostrRecipientRequest) MarshalBinary

func (m *V1DeleteNostrRecipientRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1DeleteNostrRecipientRequest) UnmarshalBinary

func (m *V1DeleteNostrRecipientRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1DeleteNostrRecipientRequest) Validate

func (m *V1DeleteNostrRecipientRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 delete nostr recipient request

type V1DeleteNostrRecipientResponse

type V1DeleteNostrRecipientResponse interface{}

V1DeleteNostrRecipientResponse v1 delete nostr recipient response

swagger:model v1DeleteNostrRecipientResponse

type V1GetBoardingAddressRequest

type V1GetBoardingAddressRequest struct {

	// pubkey
	Pubkey string `json:"pubkey,omitempty"`
}

V1GetBoardingAddressRequest v1 get boarding address request

swagger:model v1GetBoardingAddressRequest

func (*V1GetBoardingAddressRequest) ContextValidate

func (m *V1GetBoardingAddressRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 get boarding address request based on context it is used

func (*V1GetBoardingAddressRequest) MarshalBinary

func (m *V1GetBoardingAddressRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GetBoardingAddressRequest) UnmarshalBinary

func (m *V1GetBoardingAddressRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GetBoardingAddressRequest) Validate

func (m *V1GetBoardingAddressRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 get boarding address request

type V1GetBoardingAddressResponse

type V1GetBoardingAddressResponse struct {

	// address
	Address string `json:"address,omitempty"`

	// descriptor
	Descriptor string `json:"descriptor,omitempty"`

	// tapscripts
	Tapscripts *V1Tapscripts `json:"tapscripts,omitempty"`
}

V1GetBoardingAddressResponse v1 get boarding address response

swagger:model v1GetBoardingAddressResponse

func (*V1GetBoardingAddressResponse) ContextValidate

func (m *V1GetBoardingAddressResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 get boarding address response based on the context it is used

func (*V1GetBoardingAddressResponse) MarshalBinary

func (m *V1GetBoardingAddressResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GetBoardingAddressResponse) UnmarshalBinary

func (m *V1GetBoardingAddressResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GetBoardingAddressResponse) Validate

func (m *V1GetBoardingAddressResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 get boarding address response

type V1GetEventStreamResponse

type V1GetEventStreamResponse struct {

	// round failed
	RoundFailed *V1RoundFailed `json:"roundFailed,omitempty"`

	// round finalization
	RoundFinalization *V1RoundFinalizationEvent `json:"roundFinalization,omitempty"`

	// round finalized
	RoundFinalized *V1RoundFinalizedEvent `json:"roundFinalized,omitempty"`

	// round signing
	RoundSigning *V1RoundSigningEvent `json:"roundSigning,omitempty"`

	// round signing nonces generated
	RoundSigningNoncesGenerated *V1RoundSigningNoncesGeneratedEvent `json:"roundSigningNoncesGenerated,omitempty"`
}

V1GetEventStreamResponse v1 get event stream response

swagger:model v1GetEventStreamResponse

func (*V1GetEventStreamResponse) ContextValidate

func (m *V1GetEventStreamResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 get event stream response based on the context it is used

func (*V1GetEventStreamResponse) MarshalBinary

func (m *V1GetEventStreamResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GetEventStreamResponse) UnmarshalBinary

func (m *V1GetEventStreamResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GetEventStreamResponse) Validate

func (m *V1GetEventStreamResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 get event stream response

type V1GetInfoResponse

type V1GetInfoResponse struct {

	// boarding descriptor template
	BoardingDescriptorTemplate string `json:"boardingDescriptorTemplate,omitempty"`

	// dust
	Dust string `json:"dust,omitempty"`

	// forfeit address
	ForfeitAddress string `json:"forfeitAddress,omitempty"`

	// market hour
	MarketHour *V1MarketHour `json:"marketHour,omitempty"`

	// network
	Network string `json:"network,omitempty"`

	// pubkey
	Pubkey string `json:"pubkey,omitempty"`

	// round interval
	RoundInterval string `json:"roundInterval,omitempty"`

	// round lifetime
	RoundLifetime string `json:"roundLifetime,omitempty"`

	// unilateral exit delay
	UnilateralExitDelay string `json:"unilateralExitDelay,omitempty"`

	// vtxo descriptor templates
	VtxoDescriptorTemplates []string `json:"vtxoDescriptorTemplates"`
}

V1GetInfoResponse v1 get info response

swagger:model v1GetInfoResponse

func (*V1GetInfoResponse) ContextValidate

func (m *V1GetInfoResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 get info response based on the context it is used

func (*V1GetInfoResponse) MarshalBinary

func (m *V1GetInfoResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GetInfoResponse) UnmarshalBinary

func (m *V1GetInfoResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GetInfoResponse) Validate

func (m *V1GetInfoResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 get info response

type V1GetRoundByIDResponse

type V1GetRoundByIDResponse struct {

	// round
	Round *V1Round `json:"round,omitempty"`
}

V1GetRoundByIDResponse v1 get round by Id response

swagger:model v1GetRoundByIdResponse

func (*V1GetRoundByIDResponse) ContextValidate

func (m *V1GetRoundByIDResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 get round by Id response based on the context it is used

func (*V1GetRoundByIDResponse) MarshalBinary

func (m *V1GetRoundByIDResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GetRoundByIDResponse) UnmarshalBinary

func (m *V1GetRoundByIDResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GetRoundByIDResponse) Validate

func (m *V1GetRoundByIDResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 get round by Id response

type V1GetRoundResponse

type V1GetRoundResponse struct {

	// round
	Round *V1Round `json:"round,omitempty"`
}

V1GetRoundResponse v1 get round response

swagger:model v1GetRoundResponse

func (*V1GetRoundResponse) ContextValidate

func (m *V1GetRoundResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 get round response based on the context it is used

func (*V1GetRoundResponse) MarshalBinary

func (m *V1GetRoundResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GetRoundResponse) UnmarshalBinary

func (m *V1GetRoundResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GetRoundResponse) Validate

func (m *V1GetRoundResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 get round response

type V1GetTransactionsStreamResponse

type V1GetTransactionsStreamResponse struct {

	// redeem
	Redeem *V1RedeemTransaction `json:"redeem,omitempty"`

	// round
	Round *V1RoundTransaction `json:"round,omitempty"`
}

V1GetTransactionsStreamResponse v1 get transactions stream response

swagger:model v1GetTransactionsStreamResponse

func (*V1GetTransactionsStreamResponse) ContextValidate

func (m *V1GetTransactionsStreamResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 get transactions stream response based on the context it is used

func (*V1GetTransactionsStreamResponse) MarshalBinary

func (m *V1GetTransactionsStreamResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1GetTransactionsStreamResponse) UnmarshalBinary

func (m *V1GetTransactionsStreamResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1GetTransactionsStreamResponse) Validate

Validate validates this v1 get transactions stream response

type V1Input

type V1Input struct {

	// descriptor
	Descriptor string `json:"descriptor,omitempty"`

	// outpoint
	Outpoint *V1Outpoint `json:"outpoint,omitempty"`

	// tapscripts
	Tapscripts *V1Tapscripts `json:"tapscripts,omitempty"`
}

V1Input v1 input

swagger:model v1Input

func (*V1Input) ContextValidate

func (m *V1Input) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 input based on the context it is used

func (*V1Input) MarshalBinary

func (m *V1Input) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Input) UnmarshalBinary

func (m *V1Input) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Input) Validate

func (m *V1Input) Validate(formats strfmt.Registry) error

Validate validates this v1 input

type V1ListVtxosResponse

type V1ListVtxosResponse struct {

	// spendable vtxos
	SpendableVtxos []*V1Vtxo `json:"spendableVtxos"`

	// spent vtxos
	SpentVtxos []*V1Vtxo `json:"spentVtxos"`
}

V1ListVtxosResponse v1 list vtxos response

swagger:model v1ListVtxosResponse

func (*V1ListVtxosResponse) ContextValidate

func (m *V1ListVtxosResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 list vtxos response based on the context it is used

func (*V1ListVtxosResponse) MarshalBinary

func (m *V1ListVtxosResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1ListVtxosResponse) UnmarshalBinary

func (m *V1ListVtxosResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1ListVtxosResponse) Validate

func (m *V1ListVtxosResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 list vtxos response

type V1MarketHour

type V1MarketHour struct {

	// next end time
	// Format: date-time
	NextEndTime strfmt.DateTime `json:"nextEndTime,omitempty"`

	// next start time
	// Format: date-time
	NextStartTime strfmt.DateTime `json:"nextStartTime,omitempty"`

	// period
	Period string `json:"period,omitempty"`

	// round interval
	RoundInterval string `json:"roundInterval,omitempty"`
}

V1MarketHour v1 market hour

swagger:model v1MarketHour

func (*V1MarketHour) ContextValidate

func (m *V1MarketHour) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 market hour based on context it is used

func (*V1MarketHour) MarshalBinary

func (m *V1MarketHour) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1MarketHour) UnmarshalBinary

func (m *V1MarketHour) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1MarketHour) Validate

func (m *V1MarketHour) Validate(formats strfmt.Registry) error

Validate validates this v1 market hour

type V1Node

type V1Node struct {

	// parent txid
	ParentTxid string `json:"parentTxid,omitempty"`

	// tx
	Tx string `json:"tx,omitempty"`

	// txid
	Txid string `json:"txid,omitempty"`
}

V1Node v1 node

swagger:model v1Node

func (*V1Node) ContextValidate

func (m *V1Node) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 node based on context it is used

func (*V1Node) MarshalBinary

func (m *V1Node) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Node) UnmarshalBinary

func (m *V1Node) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Node) Validate

func (m *V1Node) Validate(formats strfmt.Registry) error

Validate validates this v1 node

type V1Outpoint

type V1Outpoint struct {

	// txid
	Txid string `json:"txid,omitempty"`

	// vout
	Vout int64 `json:"vout,omitempty"`
}

V1Outpoint v1 outpoint

swagger:model v1Outpoint

func (*V1Outpoint) ContextValidate

func (m *V1Outpoint) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 outpoint based on context it is used

func (*V1Outpoint) MarshalBinary

func (m *V1Outpoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Outpoint) UnmarshalBinary

func (m *V1Outpoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Outpoint) Validate

func (m *V1Outpoint) Validate(formats strfmt.Registry) error

Validate validates this v1 outpoint

type V1Output

type V1Output struct {

	// onchain or off-chain
	Address string `json:"address,omitempty"`

	// Amount to send in satoshis.
	Amount string `json:"amount,omitempty"`
}

V1Output v1 output

swagger:model v1Output

func (*V1Output) ContextValidate

func (m *V1Output) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 output based on context it is used

func (*V1Output) MarshalBinary

func (m *V1Output) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Output) UnmarshalBinary

func (m *V1Output) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Output) Validate

func (m *V1Output) Validate(formats strfmt.Registry) error

Validate validates this v1 output

type V1OwnershipProof

type V1OwnershipProof struct {

	// control block
	ControlBlock string `json:"controlBlock,omitempty"`

	// script
	Script string `json:"script,omitempty"`

	// VTXO outpoint signed with script's secret key
	Signature string `json:"signature,omitempty"`
}

V1OwnershipProof This message is used to prove to the server that the user controls the vtxo without revealing the whole VTXO taproot tree.

swagger:model v1OwnershipProof

func (*V1OwnershipProof) ContextValidate

func (m *V1OwnershipProof) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 ownership proof based on context it is used

func (*V1OwnershipProof) MarshalBinary

func (m *V1OwnershipProof) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1OwnershipProof) UnmarshalBinary

func (m *V1OwnershipProof) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1OwnershipProof) Validate

func (m *V1OwnershipProof) Validate(formats strfmt.Registry) error

Validate validates this v1 ownership proof

type V1PingResponse

type V1PingResponse interface{}

V1PingResponse v1 ping response

swagger:model v1PingResponse

type V1RedeemTransaction

type V1RedeemTransaction struct {

	// spendable vtxos
	SpendableVtxos []*V1Vtxo `json:"spendableVtxos"`

	// spent vtxos
	SpentVtxos []*V1Outpoint `json:"spentVtxos"`

	// txid
	Txid string `json:"txid,omitempty"`
}

V1RedeemTransaction v1 redeem transaction

swagger:model v1RedeemTransaction

func (*V1RedeemTransaction) ContextValidate

func (m *V1RedeemTransaction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 redeem transaction based on the context it is used

func (*V1RedeemTransaction) MarshalBinary

func (m *V1RedeemTransaction) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RedeemTransaction) UnmarshalBinary

func (m *V1RedeemTransaction) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RedeemTransaction) Validate

func (m *V1RedeemTransaction) Validate(formats strfmt.Registry) error

Validate validates this v1 redeem transaction

type V1RegisterInputsForNextRoundRequest

type V1RegisterInputsForNextRoundRequest struct {

	// ephemeral pubkey
	EphemeralPubkey string `json:"ephemeralPubkey,omitempty"`

	// inputs
	Inputs []*V1Input `json:"inputs"`

	// notes
	Notes []string `json:"notes"`
}

V1RegisterInputsForNextRoundRequest v1 register inputs for next round request

swagger:model v1RegisterInputsForNextRoundRequest

func (*V1RegisterInputsForNextRoundRequest) ContextValidate

func (m *V1RegisterInputsForNextRoundRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 register inputs for next round request based on the context it is used

func (*V1RegisterInputsForNextRoundRequest) MarshalBinary

func (m *V1RegisterInputsForNextRoundRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RegisterInputsForNextRoundRequest) UnmarshalBinary

func (m *V1RegisterInputsForNextRoundRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RegisterInputsForNextRoundRequest) Validate

Validate validates this v1 register inputs for next round request

type V1RegisterInputsForNextRoundResponse

type V1RegisterInputsForNextRoundResponse struct {

	// request Id
	RequestID string `json:"requestId,omitempty"`
}

V1RegisterInputsForNextRoundResponse v1 register inputs for next round response

swagger:model v1RegisterInputsForNextRoundResponse

func (*V1RegisterInputsForNextRoundResponse) ContextValidate

func (m *V1RegisterInputsForNextRoundResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 register inputs for next round response based on context it is used

func (*V1RegisterInputsForNextRoundResponse) MarshalBinary

func (m *V1RegisterInputsForNextRoundResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RegisterInputsForNextRoundResponse) UnmarshalBinary

func (m *V1RegisterInputsForNextRoundResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RegisterInputsForNextRoundResponse) Validate

Validate validates this v1 register inputs for next round response

type V1RegisterOutputsForNextRoundRequest

type V1RegisterOutputsForNextRoundRequest struct {

	// List of receivers for to convert to leaves in the next VTXO tree.
	Outputs []*V1Output `json:"outputs"`

	// request Id
	RequestID string `json:"requestId,omitempty"`
}

V1RegisterOutputsForNextRoundRequest v1 register outputs for next round request

swagger:model v1RegisterOutputsForNextRoundRequest

func (*V1RegisterOutputsForNextRoundRequest) ContextValidate

func (m *V1RegisterOutputsForNextRoundRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 register outputs for next round request based on the context it is used

func (*V1RegisterOutputsForNextRoundRequest) MarshalBinary

func (m *V1RegisterOutputsForNextRoundRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RegisterOutputsForNextRoundRequest) UnmarshalBinary

func (m *V1RegisterOutputsForNextRoundRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RegisterOutputsForNextRoundRequest) Validate

Validate validates this v1 register outputs for next round request

type V1RegisterOutputsForNextRoundResponse

type V1RegisterOutputsForNextRoundResponse interface{}

V1RegisterOutputsForNextRoundResponse v1 register outputs for next round response

swagger:model v1RegisterOutputsForNextRoundResponse

type V1Round

type V1Round struct {

	// connectors
	Connectors []string `json:"connectors"`

	// end
	End string `json:"end,omitempty"`

	// forfeit txs
	ForfeitTxs []string `json:"forfeitTxs"`

	// id
	ID string `json:"id,omitempty"`

	// round tx
	RoundTx string `json:"roundTx,omitempty"`

	// stage
	Stage *V1RoundStage `json:"stage,omitempty"`

	// start
	Start string `json:"start,omitempty"`

	// vtxo tree
	VtxoTree *V1Tree `json:"vtxoTree,omitempty"`
}

V1Round v1 round

swagger:model v1Round

func (*V1Round) ContextValidate

func (m *V1Round) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 round based on the context it is used

func (*V1Round) MarshalBinary

func (m *V1Round) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Round) UnmarshalBinary

func (m *V1Round) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Round) Validate

func (m *V1Round) Validate(formats strfmt.Registry) error

Validate validates this v1 round

type V1RoundFailed

type V1RoundFailed struct {

	// id
	ID string `json:"id,omitempty"`

	// reason
	Reason string `json:"reason,omitempty"`
}

V1RoundFailed v1 round failed

swagger:model v1RoundFailed

func (*V1RoundFailed) ContextValidate

func (m *V1RoundFailed) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 round failed based on context it is used

func (*V1RoundFailed) MarshalBinary

func (m *V1RoundFailed) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RoundFailed) UnmarshalBinary

func (m *V1RoundFailed) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RoundFailed) Validate

func (m *V1RoundFailed) Validate(formats strfmt.Registry) error

Validate validates this v1 round failed

type V1RoundFinalizationEvent

type V1RoundFinalizationEvent struct {

	// connectors
	Connectors []string `json:"connectors"`

	// id
	ID string `json:"id,omitempty"`

	// min relay fee rate
	MinRelayFeeRate string `json:"minRelayFeeRate,omitempty"`

	// round tx
	RoundTx string `json:"roundTx,omitempty"`

	// vtxo tree
	VtxoTree *V1Tree `json:"vtxoTree,omitempty"`
}

V1RoundFinalizationEvent v1 round finalization event

swagger:model v1RoundFinalizationEvent

func (*V1RoundFinalizationEvent) ContextValidate

func (m *V1RoundFinalizationEvent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 round finalization event based on the context it is used

func (*V1RoundFinalizationEvent) MarshalBinary

func (m *V1RoundFinalizationEvent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RoundFinalizationEvent) UnmarshalBinary

func (m *V1RoundFinalizationEvent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RoundFinalizationEvent) Validate

func (m *V1RoundFinalizationEvent) Validate(formats strfmt.Registry) error

Validate validates this v1 round finalization event

type V1RoundFinalizedEvent

type V1RoundFinalizedEvent struct {

	// id
	ID string `json:"id,omitempty"`

	// round txid
	RoundTxid string `json:"roundTxid,omitempty"`
}

V1RoundFinalizedEvent v1 round finalized event

swagger:model v1RoundFinalizedEvent

func (*V1RoundFinalizedEvent) ContextValidate

func (m *V1RoundFinalizedEvent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 round finalized event based on context it is used

func (*V1RoundFinalizedEvent) MarshalBinary

func (m *V1RoundFinalizedEvent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RoundFinalizedEvent) UnmarshalBinary

func (m *V1RoundFinalizedEvent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RoundFinalizedEvent) Validate

func (m *V1RoundFinalizedEvent) Validate(formats strfmt.Registry) error

Validate validates this v1 round finalized event

type V1RoundSigningEvent

type V1RoundSigningEvent struct {

	// cosigners pubkeys
	CosignersPubkeys []string `json:"cosignersPubkeys"`

	// id
	ID string `json:"id,omitempty"`

	// unsigned round tx
	UnsignedRoundTx string `json:"unsignedRoundTx,omitempty"`

	// unsigned vtxo tree
	UnsignedVtxoTree *V1Tree `json:"unsignedVtxoTree,omitempty"`
}

V1RoundSigningEvent v1 round signing event

swagger:model v1RoundSigningEvent

func (*V1RoundSigningEvent) ContextValidate

func (m *V1RoundSigningEvent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 round signing event based on the context it is used

func (*V1RoundSigningEvent) MarshalBinary

func (m *V1RoundSigningEvent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RoundSigningEvent) UnmarshalBinary

func (m *V1RoundSigningEvent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RoundSigningEvent) Validate

func (m *V1RoundSigningEvent) Validate(formats strfmt.Registry) error

Validate validates this v1 round signing event

type V1RoundSigningNoncesGeneratedEvent

type V1RoundSigningNoncesGeneratedEvent struct {

	// id
	ID string `json:"id,omitempty"`

	// tree nonces
	TreeNonces string `json:"treeNonces,omitempty"`
}

V1RoundSigningNoncesGeneratedEvent v1 round signing nonces generated event

swagger:model v1RoundSigningNoncesGeneratedEvent

func (*V1RoundSigningNoncesGeneratedEvent) ContextValidate

func (m *V1RoundSigningNoncesGeneratedEvent) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 round signing nonces generated event based on context it is used

func (*V1RoundSigningNoncesGeneratedEvent) MarshalBinary

func (m *V1RoundSigningNoncesGeneratedEvent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RoundSigningNoncesGeneratedEvent) UnmarshalBinary

func (m *V1RoundSigningNoncesGeneratedEvent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RoundSigningNoncesGeneratedEvent) Validate

Validate validates this v1 round signing nonces generated event

type V1RoundStage

type V1RoundStage string

V1RoundStage v1 round stage

swagger:model v1RoundStage

const (

	// V1RoundStageROUNDSTAGEUNSPECIFIED captures enum value "ROUND_STAGE_UNSPECIFIED"
	V1RoundStageROUNDSTAGEUNSPECIFIED V1RoundStage = "ROUND_STAGE_UNSPECIFIED"

	// V1RoundStageROUNDSTAGEREGISTRATION captures enum value "ROUND_STAGE_REGISTRATION"
	V1RoundStageROUNDSTAGEREGISTRATION V1RoundStage = "ROUND_STAGE_REGISTRATION"

	// V1RoundStageROUNDSTAGEFINALIZATION captures enum value "ROUND_STAGE_FINALIZATION"
	V1RoundStageROUNDSTAGEFINALIZATION V1RoundStage = "ROUND_STAGE_FINALIZATION"

	// V1RoundStageROUNDSTAGEFINALIZED captures enum value "ROUND_STAGE_FINALIZED"
	V1RoundStageROUNDSTAGEFINALIZED V1RoundStage = "ROUND_STAGE_FINALIZED"

	// V1RoundStageROUNDSTAGEFAILED captures enum value "ROUND_STAGE_FAILED"
	V1RoundStageROUNDSTAGEFAILED V1RoundStage = "ROUND_STAGE_FAILED"
)

func NewV1RoundStage

func NewV1RoundStage(value V1RoundStage) *V1RoundStage

func (V1RoundStage) ContextValidate

func (m V1RoundStage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 round stage based on context it is used

func (V1RoundStage) Pointer

func (m V1RoundStage) Pointer() *V1RoundStage

Pointer returns a pointer to a freshly-allocated V1RoundStage.

func (V1RoundStage) Validate

func (m V1RoundStage) Validate(formats strfmt.Registry) error

Validate validates this v1 round stage

type V1RoundTransaction

type V1RoundTransaction struct {

	// claimed boarding utxos
	ClaimedBoardingUtxos []*V1Outpoint `json:"claimedBoardingUtxos"`

	// spendable vtxos
	SpendableVtxos []*V1Vtxo `json:"spendableVtxos"`

	// spent vtxos
	SpentVtxos []*V1Outpoint `json:"spentVtxos"`

	// txid
	Txid string `json:"txid,omitempty"`
}

V1RoundTransaction v1 round transaction

swagger:model v1RoundTransaction

func (*V1RoundTransaction) ContextValidate

func (m *V1RoundTransaction) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 round transaction based on the context it is used

func (*V1RoundTransaction) MarshalBinary

func (m *V1RoundTransaction) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1RoundTransaction) UnmarshalBinary

func (m *V1RoundTransaction) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1RoundTransaction) Validate

func (m *V1RoundTransaction) Validate(formats strfmt.Registry) error

Validate validates this v1 round transaction

type V1SetNostrRecipientRequest

type V1SetNostrRecipientRequest struct {

	// nostr recipient
	NostrRecipient string `json:"nostrRecipient,omitempty"`

	// vtxos
	Vtxos []*V1SignedVtxoOutpoint `json:"vtxos"`
}

V1SetNostrRecipientRequest v1 set nostr recipient request

swagger:model v1SetNostrRecipientRequest

func (*V1SetNostrRecipientRequest) ContextValidate

func (m *V1SetNostrRecipientRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 set nostr recipient request based on the context it is used

func (*V1SetNostrRecipientRequest) MarshalBinary

func (m *V1SetNostrRecipientRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SetNostrRecipientRequest) UnmarshalBinary

func (m *V1SetNostrRecipientRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SetNostrRecipientRequest) Validate

func (m *V1SetNostrRecipientRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 set nostr recipient request

type V1SetNostrRecipientResponse

type V1SetNostrRecipientResponse interface{}

V1SetNostrRecipientResponse v1 set nostr recipient response

swagger:model v1SetNostrRecipientResponse

type V1SignedVtxoOutpoint

type V1SignedVtxoOutpoint struct {

	// outpoint
	Outpoint *V1Outpoint `json:"outpoint,omitempty"`

	// proof
	Proof *V1OwnershipProof `json:"proof,omitempty"`
}

V1SignedVtxoOutpoint v1 signed vtxo outpoint

swagger:model v1SignedVtxoOutpoint

func (*V1SignedVtxoOutpoint) ContextValidate

func (m *V1SignedVtxoOutpoint) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 signed vtxo outpoint based on the context it is used

func (*V1SignedVtxoOutpoint) MarshalBinary

func (m *V1SignedVtxoOutpoint) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SignedVtxoOutpoint) UnmarshalBinary

func (m *V1SignedVtxoOutpoint) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SignedVtxoOutpoint) Validate

func (m *V1SignedVtxoOutpoint) Validate(formats strfmt.Registry) error

Validate validates this v1 signed vtxo outpoint

type V1SubmitRedeemTxRequest

type V1SubmitRedeemTxRequest struct {

	// redeem tx
	RedeemTx string `json:"redeemTx,omitempty"`
}

V1SubmitRedeemTxRequest v1 submit redeem tx request

swagger:model v1SubmitRedeemTxRequest

func (*V1SubmitRedeemTxRequest) ContextValidate

func (m *V1SubmitRedeemTxRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 submit redeem tx request based on context it is used

func (*V1SubmitRedeemTxRequest) MarshalBinary

func (m *V1SubmitRedeemTxRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SubmitRedeemTxRequest) UnmarshalBinary

func (m *V1SubmitRedeemTxRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SubmitRedeemTxRequest) Validate

func (m *V1SubmitRedeemTxRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 submit redeem tx request

type V1SubmitRedeemTxResponse

type V1SubmitRedeemTxResponse struct {

	// signed redeem tx
	SignedRedeemTx string `json:"signedRedeemTx,omitempty"`
}

V1SubmitRedeemTxResponse v1 submit redeem tx response

swagger:model v1SubmitRedeemTxResponse

func (*V1SubmitRedeemTxResponse) ContextValidate

func (m *V1SubmitRedeemTxResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 submit redeem tx response based on context it is used

func (*V1SubmitRedeemTxResponse) MarshalBinary

func (m *V1SubmitRedeemTxResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SubmitRedeemTxResponse) UnmarshalBinary

func (m *V1SubmitRedeemTxResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SubmitRedeemTxResponse) Validate

func (m *V1SubmitRedeemTxResponse) Validate(formats strfmt.Registry) error

Validate validates this v1 submit redeem tx response

type V1SubmitSignedForfeitTxsRequest

type V1SubmitSignedForfeitTxsRequest struct {

	// Forfeit txs signed by the user.
	SignedForfeitTxs []string `json:"signedForfeitTxs"`

	// The user has to sign also the round tx if he registerd a boarding UTXO.
	SignedRoundTx string `json:"signedRoundTx,omitempty"`
}

V1SubmitSignedForfeitTxsRequest v1 submit signed forfeit txs request

swagger:model v1SubmitSignedForfeitTxsRequest

func (*V1SubmitSignedForfeitTxsRequest) ContextValidate

func (m *V1SubmitSignedForfeitTxsRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 submit signed forfeit txs request based on context it is used

func (*V1SubmitSignedForfeitTxsRequest) MarshalBinary

func (m *V1SubmitSignedForfeitTxsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SubmitSignedForfeitTxsRequest) UnmarshalBinary

func (m *V1SubmitSignedForfeitTxsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SubmitSignedForfeitTxsRequest) Validate

Validate validates this v1 submit signed forfeit txs request

type V1SubmitSignedForfeitTxsResponse

type V1SubmitSignedForfeitTxsResponse interface{}

V1SubmitSignedForfeitTxsResponse v1 submit signed forfeit txs response

swagger:model v1SubmitSignedForfeitTxsResponse

type V1SubmitTreeNoncesRequest

type V1SubmitTreeNoncesRequest struct {

	// pubkey
	Pubkey string `json:"pubkey,omitempty"`

	// round Id
	RoundID string `json:"roundId,omitempty"`

	// tree nonces
	TreeNonces string `json:"treeNonces,omitempty"`
}

V1SubmitTreeNoncesRequest v1 submit tree nonces request

swagger:model v1SubmitTreeNoncesRequest

func (*V1SubmitTreeNoncesRequest) ContextValidate

func (m *V1SubmitTreeNoncesRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 submit tree nonces request based on context it is used

func (*V1SubmitTreeNoncesRequest) MarshalBinary

func (m *V1SubmitTreeNoncesRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SubmitTreeNoncesRequest) UnmarshalBinary

func (m *V1SubmitTreeNoncesRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SubmitTreeNoncesRequest) Validate

func (m *V1SubmitTreeNoncesRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 submit tree nonces request

type V1SubmitTreeNoncesResponse

type V1SubmitTreeNoncesResponse interface{}

V1SubmitTreeNoncesResponse v1 submit tree nonces response

swagger:model v1SubmitTreeNoncesResponse

type V1SubmitTreeSignaturesRequest

type V1SubmitTreeSignaturesRequest struct {

	// pubkey
	Pubkey string `json:"pubkey,omitempty"`

	// round Id
	RoundID string `json:"roundId,omitempty"`

	// tree signatures
	TreeSignatures string `json:"treeSignatures,omitempty"`
}

V1SubmitTreeSignaturesRequest v1 submit tree signatures request

swagger:model v1SubmitTreeSignaturesRequest

func (*V1SubmitTreeSignaturesRequest) ContextValidate

func (m *V1SubmitTreeSignaturesRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 submit tree signatures request based on context it is used

func (*V1SubmitTreeSignaturesRequest) MarshalBinary

func (m *V1SubmitTreeSignaturesRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1SubmitTreeSignaturesRequest) UnmarshalBinary

func (m *V1SubmitTreeSignaturesRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1SubmitTreeSignaturesRequest) Validate

func (m *V1SubmitTreeSignaturesRequest) Validate(formats strfmt.Registry) error

Validate validates this v1 submit tree signatures request

type V1SubmitTreeSignaturesResponse

type V1SubmitTreeSignaturesResponse interface{}

V1SubmitTreeSignaturesResponse v1 submit tree signatures response

swagger:model v1SubmitTreeSignaturesResponse

type V1Tapscripts

type V1Tapscripts struct {

	// scripts
	Scripts []string `json:"scripts"`
}

V1Tapscripts v1 tapscripts

swagger:model v1Tapscripts

func (*V1Tapscripts) ContextValidate

func (m *V1Tapscripts) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this v1 tapscripts based on context it is used

func (*V1Tapscripts) MarshalBinary

func (m *V1Tapscripts) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Tapscripts) UnmarshalBinary

func (m *V1Tapscripts) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Tapscripts) Validate

func (m *V1Tapscripts) Validate(formats strfmt.Registry) error

Validate validates this v1 tapscripts

type V1Tree

type V1Tree struct {

	// levels
	Levels []*V1TreeLevel `json:"levels"`
}

V1Tree v1 tree

swagger:model v1Tree

func (*V1Tree) ContextValidate

func (m *V1Tree) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 tree based on the context it is used

func (*V1Tree) MarshalBinary

func (m *V1Tree) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Tree) UnmarshalBinary

func (m *V1Tree) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Tree) Validate

func (m *V1Tree) Validate(formats strfmt.Registry) error

Validate validates this v1 tree

type V1TreeLevel

type V1TreeLevel struct {

	// nodes
	Nodes []*V1Node `json:"nodes"`
}

V1TreeLevel v1 tree level

swagger:model v1TreeLevel

func (*V1TreeLevel) ContextValidate

func (m *V1TreeLevel) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 tree level based on the context it is used

func (*V1TreeLevel) MarshalBinary

func (m *V1TreeLevel) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1TreeLevel) UnmarshalBinary

func (m *V1TreeLevel) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1TreeLevel) Validate

func (m *V1TreeLevel) Validate(formats strfmt.Registry) error

Validate validates this v1 tree level

type V1Vtxo

type V1Vtxo struct {

	// amount
	Amount string `json:"amount,omitempty"`

	// created at
	CreatedAt string `json:"createdAt,omitempty"`

	// expire at
	ExpireAt string `json:"expireAt,omitempty"`

	// is pending
	IsPending bool `json:"isPending,omitempty"`

	// outpoint
	Outpoint *V1Outpoint `json:"outpoint,omitempty"`

	// pubkey
	Pubkey string `json:"pubkey,omitempty"`

	// redeem tx
	RedeemTx string `json:"redeemTx,omitempty"`

	// round txid
	RoundTxid string `json:"roundTxid,omitempty"`

	// spent
	Spent bool `json:"spent,omitempty"`

	// spent by
	SpentBy string `json:"spentBy,omitempty"`

	// swept
	Swept bool `json:"swept,omitempty"`
}

V1Vtxo v1 vtxo

swagger:model v1Vtxo

func (*V1Vtxo) ContextValidate

func (m *V1Vtxo) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this v1 vtxo based on the context it is used

func (*V1Vtxo) MarshalBinary

func (m *V1Vtxo) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*V1Vtxo) UnmarshalBinary

func (m *V1Vtxo) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*V1Vtxo) Validate

func (m *V1Vtxo) Validate(formats strfmt.Registry) error

Validate validates this v1 vtxo

Jump to

Keyboard shortcuts

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