public interface ClientServiceHandler
Modifier and Type | Method and Description |
---|---|
com.scalar.dl.ledger.model.ContractExecutionResult |
executeContract(com.scalar.dl.rpc.ContractExecutionRequest request)
Executes the specified contract with the specified
ContractExecutionRequest . |
javax.json.JsonObject |
listContracts(com.scalar.dl.rpc.ContractsListingRequest request)
Retrieves a list of contracts with the specified
ContractsListingRequest . |
void |
registerCertificate(com.scalar.dl.rpc.CertificateRegistrationRequest request)
Registers the certificate with the specified
CertificateRegistrationRequest for digital
signature authentication. |
void |
registerContract(com.scalar.dl.rpc.ContractRegistrationRequest request)
Registers the contract with the specified
ContractRegistrationRequest . |
void |
registerFunction(com.scalar.dl.rpc.FunctionRegistrationRequest request)
Registers the function with the specified
FunctionRegistrationRequest . |
void |
registerSecret(com.scalar.dl.rpc.SecretRegistrationRequest request)
Registers the secret key with the specified
SecretRegistrationRequest for HMAC
authentication. |
com.scalar.dl.ledger.model.LedgerValidationResult |
validateLedger(com.scalar.dl.rpc.LedgerValidationRequest request)
Validates the specified asset in the ledger with the specified
LedgerValidationRequest . |
void registerCertificate(com.scalar.dl.rpc.CertificateRegistrationRequest request)
CertificateRegistrationRequest
for digital
signature authentication.request
- a CertificateRegistrationRequest
.ClientException
- if a request fails for some reasonvoid registerSecret(com.scalar.dl.rpc.SecretRegistrationRequest request)
SecretRegistrationRequest
for HMAC
authentication.request
- a SecretRegistrationRequest
.ClientException
- if a request fails for some reasonvoid registerFunction(com.scalar.dl.rpc.FunctionRegistrationRequest request)
FunctionRegistrationRequest
.request
- a FunctionRegistrationRequest
.ClientException
- if a request fails for some reasonvoid registerContract(com.scalar.dl.rpc.ContractRegistrationRequest request)
ContractRegistrationRequest
.request
- a ContractRegistrationRequest
.ClientException
- if a request fails for some reasonjavax.json.JsonObject listContracts(com.scalar.dl.rpc.ContractsListingRequest request)
ContractsListingRequest
.request
- a ContractsListingRequest
.JsonObject
ClientException
- if a request fails for some reasoncom.scalar.dl.ledger.model.ContractExecutionResult executeContract(com.scalar.dl.rpc.ContractExecutionRequest request)
ContractExecutionRequest
.request
- a ContractExecutionRequest
.ContractExecutionResult
ClientException
- if a request fails for some reasoncom.scalar.dl.ledger.model.LedgerValidationResult validateLedger(com.scalar.dl.rpc.LedgerValidationRequest request)
LedgerValidationRequest
.request
- a LedgerValidationRequest
.LedgerValidationResult
ClientException
- if a request fails for some reason