registry

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package registry implements the Splice Registry API for external wallet integration.

It exposes contract discovery endpoints that allow wallets like Canton Loop to obtain TransferFactory contract IDs and CreatedEventBlobs for explicit contract disclosure during Splice-standard token transfers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler serves the Splice Registry API endpoints.

func NewHandler

func NewHandler(tokenClient token.Token, logger *zap.Logger) *Handler

NewHandler creates a registry handler.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles POST requests and returns the active TransferFactory contract.

type TransferFactoryResponse

type TransferFactoryResponse struct {
	ContractID       string                   `json:"contract_id"`
	CreatedEventBlob string                   `json:"created_event_blob"`
	TemplateID       token.TemplateIdentifier `json:"template_id"`
}

TransferFactoryResponse is the JSON body returned by the transfer-factory endpoint.

Jump to

Keyboard shortcuts

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