-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContractService.kt
24 lines (22 loc) · 1.39 KB
/
ContractService.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.wavesenterprise.sdk.node.client.blocking.contract
import com.wavesenterprise.sdk.node.domain.DataEntry
import com.wavesenterprise.sdk.node.domain.TxId
import com.wavesenterprise.sdk.node.domain.contract.ConnectionRequest
import com.wavesenterprise.sdk.node.domain.contract.ContractId
import com.wavesenterprise.sdk.node.domain.contract.ContractInfo
import com.wavesenterprise.sdk.node.domain.contract.ContractTransactionResponse
import com.wavesenterprise.sdk.node.domain.contract.ContractTxStatus
import com.wavesenterprise.sdk.node.domain.contract.ExecutionErrorRequest
import com.wavesenterprise.sdk.node.domain.contract.ExecutionSuccessRequest
import com.wavesenterprise.sdk.node.domain.contract.keys.ContractKeyRequest
import com.wavesenterprise.sdk.node.domain.contract.keys.ContractKeysRequest
import java.util.Optional
interface ContractService {
fun connect(connectionRequest: ConnectionRequest): Sequence<ContractTransactionResponse>
fun commitExecutionSuccess(executionSuccessRequest: ExecutionSuccessRequest)
fun commitExecutionError(executionErrorRequest: ExecutionErrorRequest)
fun getContractKeys(contractKeysRequest: ContractKeysRequest): List<DataEntry>
fun getContractKey(contractKeyRequest: ContractKeyRequest): Optional<DataEntry>
fun getContractInfo(contractId: ContractId): Optional<ContractInfo>
fun getContractTxStatus(txId: TxId): List<ContractTxStatus>
}