ledger

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToRecord

func ConvertToRecord(data any) *v2.Record

func MapToStruct

func MapToStruct(data map[string]interface{}, target interface{}) error

func MapToValue

func MapToValue(v interface{}) *v2.Value

MapToValue exposes the internal any->Value conversion (useful for choice args later).

func NewCommandCompletionClient

func NewCommandCompletionClient(conn *grpc.ClientConn) *commandCompletion

func NewCommandServiceClient

func NewCommandServiceClient(conn *grpc.ClientConn) *commandService

func NewCommandSubmissionClient

func NewCommandSubmissionClient(conn *grpc.ClientConn) *commandSubmission

func NewEventQueryClient

func NewEventQueryClient(conn *grpc.ClientConn) *eventQuery

func NewPackageServiceClient

func NewPackageServiceClient(conn *grpc.ClientConn) *packageService

func NewStateServiceClient

func NewStateServiceClient(conn *grpc.ClientConn) *stateService

func NewUpdateServiceClient

func NewUpdateServiceClient(conn *grpc.ClientConn) *updateService

func NewVersionServiceClient

func NewVersionServiceClient(conn *grpc.ClientConn) *versionService

func RecordToStruct

func RecordToStruct(data interface{}, target interface{}) error

Types

type CommandCompletion

type CommandCompletion interface {
	CompletionStream(ctx context.Context, req *model.CompletionStreamRequest) (<-chan *model.CompletionStreamResponse, <-chan error)
}

type CommandService

type CommandService interface {
	SubmitAndWait(ctx context.Context, req *model.SubmitAndWaitRequest) (*model.SubmitAndWaitResponse, error)
	// New method added to interface
	SubmitAndWaitForTransaction(ctx context.Context, req *model.SubmitAndWaitRequest) (*model.SubmitAndWaitForTransactionResponse, error)
}

type CommandSubmission

type CommandSubmission interface {
	Submit(ctx context.Context, req *model.SubmitRequest) (*model.SubmitResponse, error)
}

type EventQuery

type EventQuery interface {
	GetEventsByContractID(ctx context.Context, req *model.GetEventsByContractIDRequest) (*model.GetEventsByContractIDResponse, error)
}

type InteractiveSubmissionService

type InteractiveSubmissionService interface {
	PrepareSubmission(ctx context.Context, req *model.PrepareSubmissionRequest) (*model.PrepareSubmissionResponse, error)
	ExecuteSubmission(ctx context.Context, req *model.ExecuteSubmissionRequest) (*model.ExecuteSubmissionResponse, error)
	GetPreferredPackageVersion(ctx context.Context, req *model.GetPreferredPackageVersionRequest) (*model.GetPreferredPackageVersionResponse, error)
}

func NewInteractiveSubmissionServiceClient

func NewInteractiveSubmissionServiceClient(conn *grpc.ClientConn) InteractiveSubmissionService

type UpdateService

type UpdateService interface {
	GetUpdates(ctx context.Context, req *model.GetUpdatesRequest) (<-chan *model.GetUpdatesResponse, <-chan error)
	GetUpdateById(ctx context.Context, req *model.GetUpdateByIDRequest) (*model.GetUpdateResponse, error)
	GetTransactionByID(ctx context.Context, req *model.GetTransactionByIDRequest) (*model.GetTransactionResponse, error)
	GetTransactionByOffset(ctx context.Context, req *model.GetTransactionByOffsetRequest) (*model.GetTransactionResponse, error)
}

type VersionService

type VersionService interface {
	GetLedgerAPIVersion(ctx context.Context, req *model.GetLedgerAPIVersionRequest) (*model.GetLedgerAPIVersionResponse, error)
}

Jump to

Keyboard shortcuts

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