service

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const JavaMaxIntValue = 2147483647

JavaMaxIntValue defines a value according to Java's max value of int.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientService

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

ClientService defines the interface of the client service.

func NewClientService

func NewClientService(c config.ClientConfig) (s ClientService, err error)

NewClientService creates ClientService instance.

func (ClientService) Close

func (s ClientService) Close()

Close shuts down underlying connections.

func (ClientService) ExecuteContract

func (s ClientService) ExecuteContract(
	id string,
	argument json.Object,
	functionArgument json.Object,
) (result model.ContractExecutionResult, err error)

ExecuteContract executes a registered contract.

func (ClientService) RegisterCertificate

func (s ClientService) RegisterCertificate() (err error)

RegisterCertificate registers the certificate in the client config to Ledger and Auditor.

func (ClientService) RegisterContract

func (s ClientService) RegisterContract(
	id string,
	name string,
	contractBytes []byte,
	properties json.Object,
) (err error)

RegisterContract registers contract to Scalar DL networks.

func (ClientService) ValidateLedger

func (s ClientService) ValidateLedger(args ...interface{}) (result model.LedgerValidationResult, err error)

ValidateLedger validates the specified asset between the specified ages.

Jump to

Keyboard shortcuts

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