-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/1.2.0' into master
- Loading branch information
Showing
59 changed files
with
1,267 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...client/src/main/kotlin/com/wavesenterprise/sdk/node/client/blocking/alias/AliasService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.wavesenterprise.sdk.node.client.blocking.alias | ||
|
||
import com.wavesenterprise.sdk.node.domain.Address | ||
import com.wavesenterprise.sdk.node.domain.Alias | ||
import java.util.Optional | ||
|
||
interface AliasService { | ||
fun getAliasesByAddress(address: Address): List<Alias> | ||
fun getAddressByAlias(alias: Alias): Optional<Address> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
we-node-client-domain/src/main/kotlin/com/wavesenterprise/sdk/node/domain/address/Message.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.wavesenterprise.sdk.node.domain.address | ||
|
||
data class Message(val value: String) { | ||
companion object { | ||
@JvmStatic | ||
fun fromString(value: String): Message = | ||
Message(value) | ||
|
||
inline val String.message: Message get() = Message(this) | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...-domain/src/main/kotlin/com/wavesenterprise/sdk/node/domain/address/SignMessageRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.wavesenterprise.sdk.node.domain.address | ||
|
||
import com.wavesenterprise.sdk.node.domain.Password | ||
|
||
data class SignMessageRequest( | ||
val message: Message, | ||
val password: Password, | ||
) |
10 changes: 10 additions & 0 deletions
10
...domain/src/main/kotlin/com/wavesenterprise/sdk/node/domain/address/SignMessageResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.wavesenterprise.sdk.node.domain.address | ||
|
||
import com.wavesenterprise.sdk.node.domain.PublicKey | ||
import com.wavesenterprise.sdk.node.domain.Signature | ||
|
||
data class SignMessageResponse( | ||
val message: Message, | ||
val publicKey: PublicKey, | ||
val signature: Signature, | ||
) |
10 changes: 10 additions & 0 deletions
10
.../main/kotlin/com/wavesenterprise/sdk/node/domain/address/VerifyMessageSignatureRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.wavesenterprise.sdk.node.domain.address | ||
|
||
import com.wavesenterprise.sdk.node.domain.PublicKey | ||
import com.wavesenterprise.sdk.node.domain.Signature | ||
|
||
data class VerifyMessageSignatureRequest( | ||
val message: Message, | ||
val publicKey: PublicKey, | ||
val signature: Signature, | ||
) |
5 changes: 5 additions & 0 deletions
5
...main/kotlin/com/wavesenterprise/sdk/node/domain/address/VerifyMessageSignatureResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.wavesenterprise.sdk.node.domain.address | ||
|
||
data class VerifyMessageSignatureResponse( | ||
val valid: Boolean, | ||
) |
6 changes: 5 additions & 1 deletion
6
we-node-client-error/src/main/kotlin/com/wavesenterprise/sdk/node/exception/NodeErrorCode.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...c/main/kotlin/com/wavesenterprise/sdk/node/exception/specific/DataKeyNotExistException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.wavesenterprise.sdk.node.exception.specific | ||
|
||
import com.wavesenterprise.sdk.node.exception.NodeError | ||
import com.wavesenterprise.sdk.node.exception.NodeErrorInfoHolder | ||
import com.wavesenterprise.sdk.node.exception.NodeException | ||
|
||
class DataKeyNotExistException( | ||
override val nodeError: NodeError, | ||
override val cause: Exception, | ||
) : NodeException(cause), NodeErrorInfoHolder |
10 changes: 10 additions & 0 deletions
10
...c/main/kotlin/com/wavesenterprise/sdk/node/exception/specific/InvalidPasswordException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.wavesenterprise.sdk.node.exception.specific | ||
|
||
import com.wavesenterprise.sdk.node.exception.NodeError | ||
import com.wavesenterprise.sdk.node.exception.NodeErrorInfoHolder | ||
import com.wavesenterprise.sdk.node.exception.NodeException | ||
|
||
class InvalidPasswordException( | ||
override val nodeError: NodeError, | ||
override val cause: Exception, | ||
) : NodeException(cause), NodeErrorInfoHolder |
10 changes: 10 additions & 0 deletions
10
.../main/kotlin/com/wavesenterprise/sdk/node/exception/specific/InvalidPublicKeyException.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.wavesenterprise.sdk.node.exception.specific | ||
|
||
import com.wavesenterprise.sdk.node.exception.NodeError | ||
import com.wavesenterprise.sdk.node.exception.NodeErrorInfoHolder | ||
import com.wavesenterprise.sdk.node.exception.NodeException | ||
|
||
class InvalidPublicKeyException( | ||
override val nodeError: NodeError, | ||
override val cause: Exception, | ||
) : NodeException(cause), NodeErrorInfoHolder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
...n/com/wavesenterprise/sdk/node/client/grpc/blocking/address/AddressGrpcBlockingService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.wavesenterprise.sdk.node.client.grpc.blocking.address | ||
|
||
import com.wavesenterprise.sdk.node.client.blocking.address.AddressService | ||
import com.wavesenterprise.sdk.node.domain.Address | ||
import com.wavesenterprise.sdk.node.domain.DataEntry | ||
import com.wavesenterprise.sdk.node.domain.DataKey | ||
import com.wavesenterprise.sdk.node.domain.PublicKey | ||
import com.wavesenterprise.sdk.node.domain.address.SignMessageRequest | ||
import com.wavesenterprise.sdk.node.domain.address.SignMessageResponse | ||
import com.wavesenterprise.sdk.node.domain.address.VerifyMessageSignatureRequest | ||
import com.wavesenterprise.sdk.node.domain.address.VerifyMessageSignatureResponse | ||
import java.util.Optional | ||
|
||
class AddressGrpcBlockingService : AddressService { | ||
override fun getAddresses(): List<Address> { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun getAddressByPublicKey(publicKey: PublicKey): Address { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun getAddressValue(address: Address, key: DataKey): Optional<DataEntry> { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun getAddressValues(address: Address): List<DataEntry> { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun signMessage( | ||
address: Address, | ||
request: SignMessageRequest | ||
): SignMessageResponse { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun verifyMessageSignature( | ||
address: Address, | ||
request: VerifyMessageSignatureRequest | ||
): VerifyMessageSignatureResponse { | ||
TODO("Not yet implemented") | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...otlin/com/wavesenterprise/sdk/node/client/grpc/blocking/alias/AliasGrpcBlockingService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.wavesenterprise.sdk.node.client.grpc.blocking.alias | ||
|
||
import com.wavesenterprise.sdk.node.client.blocking.alias.AliasService | ||
import com.wavesenterprise.sdk.node.domain.Address | ||
import com.wavesenterprise.sdk.node.domain.Alias | ||
import java.util.Optional | ||
|
||
class AliasGrpcBlockingService : AliasService { | ||
override fun getAliasesByAddress(address: Address): List<Alias> { | ||
TODO("Not yet implemented") | ||
} | ||
|
||
override fun getAddressByAlias(alias: Alias): Optional<Address> { | ||
TODO("Not yet implemented") | ||
} | ||
} |
Oops, something went wrong.