neorequests

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package neorequests provides on-chain service request dispatch.

Index

Constants

View Source
const (
	ServiceID   = "neorequests"
	ServiceName = "NeoRequests Service"
	Version     = "1.0.0"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Marble *marble.Marble
	DB     database.RepositoryInterface

	RequestsRepo  neorequestsupabase.RepositoryInterface
	EventListener *chain.EventListener
	TxProxy       txproxytypes.Invoker
	ChainClient   *chain.Client

	ServiceGatewayAddress string
	AppRegistryAddress    string
	PaymentHubAddress     string
	NeoVRFURL             string
	NeoOracleURL          string
	NeoComputeURL         string
	ScriptsBaseURL        string // Base URL for loading TEE scripts (e.g., https://cdn.miniapps.neo.org)

	HTTPClient     *http.Client
	ChainID        string
	MaxResultBytes int
	MaxErrorLen    int
	RNGResultMode  string
	TxWait         bool

	EnforceAppRegistry      bool
	RequireManifestContract bool
	AppRegistryCacheSeconds int
	StatsRollupInterval     time.Duration
	OnchainUsage            bool
	OnchainTxUsage          bool
	RequestIndexTTL         time.Duration
}

Config holds NeoRequests service configuration.

type Service

type Service struct {
	*commonservice.BaseService
	// contains filtered or unexported fields
}

Service implements the NeoRequests service.

func New

func New(cfg Config) (*Service, error)

New creates a new NeoRequests service.

Jump to

Keyboard shortcuts

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