Skip to content

Commit

Permalink
Add support to list wallets in service class
Browse files Browse the repository at this point in the history
- Add a new method to list wallets
- Upgrade some libraries versions
  • Loading branch information
rogelio-blanco committed Aug 27, 2022
1 parent 624cf62 commit 3cca139
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "com.rootsid.wal"
version = "2.0.0"
version = "2.0.1"
java.sourceCompatibility = JavaVersion.VERSION_11

repositories {
Expand All @@ -30,8 +30,8 @@ dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")

implementation("org.jetbrains.kotlin:kotlin-stdlib:1.6.10")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-native-mt")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4-native-mt")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3")
implementation("org.litote.kmongo:kmongo:4.5.0")

// needed for cryptography primitives implementation
Expand All @@ -54,7 +54,7 @@ dependencies {
implementation("org.didcommx:peerdid:0.3.0")

// Test
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.0")
}

publishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ class WalletService(private val walletStorage: WalletStorage, private val dlt: D
return walletStorage.insert(WalletDocument(id, BytesOps.bytesToHex(seed)))
}

/**
* List wallets
*/
fun listWallets(): List<Wallet> {
return walletStorage.list()
}

/**
* Get wallet by id
*
Expand Down

0 comments on commit 3cca139

Please sign in to comment.