token_standard

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPageSize = int32(25)
	MaximumPageSize = int32(1024)
)

Variables

This section is empty.

Functions

func ActiveContractToDisclosedContract

func ActiveContractToDisclosedContract(activeContract *apiv2.ActiveContract, includeDebugFields bool) oapiTransferInstruction.DisclosedContract

Types

type Server

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

func NewServer

func NewServer(
	_ context.Context,
	logger zerolog.Logger,
	activeContractStore store.ActiveContractStoreInterface,
	instrumentHoldingStore store.InstrumentHoldingStoreInterface,
	cfg config.TokenStandardAPIConfig,
) (*Server, error)

func (Server) FilterContracts

func (s Server) FilterContracts(addresses []contracts.InstanceAddress) []contracts.InstanceAddress

func (Server) GetInstrument

func (s Server) GetInstrument(c *gin.Context, instrumentId string)

func (Server) GetRegistryInfo

func (s Server) GetRegistryInfo(c *gin.Context)

func (Server) GetTransferFactory

func (s Server) GetTransferFactory(c *gin.Context)

func (Server) GetTransferInstructionAcceptContext

func (s Server) GetTransferInstructionAcceptContext(c *gin.Context, transferInstructionId string)

func (Server) GetTransferInstructionRejectContext

func (s Server) GetTransferInstructionRejectContext(c *gin.Context, transferInstructionId string)

func (Server) GetTransferInstructionWithdrawContext

func (s Server) GetTransferInstructionWithdrawContext(c *gin.Context, transferInstructionId string)

func (Server) ListInstruments

func (s Server) ListInstruments(c *gin.Context, params oapiTokenMetadataV1.ListInstrumentsParams)

type TokenConfig

type TokenConfig struct {
	Type            config.TokenType
	RegistryAddress contracts.InstanceAddress
	TokenID         string
	TokenName       string
	TokenSymbol     string
}

Jump to

Keyboard shortcuts

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