-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improve txLog capabilities Add a function to refresh the status of the operations logged in the tx log Add timestamps to the tx logs Fix Dlt.publishDid function so it can publish holder and issuer DIDs * add issueCredential, revokeCredential and verifyCredential functionality to WalletService * Update src/main/kotlin/com/rootsid/wal/library/mongoimpl/document/BlockchainTxLogDocument.kt Co-authored-by: Rogelio Blanco <[email protected]> * fix issues with LocaleDateTime * remove storage identifier validation Co-authored-by: Rogelio Blanco <[email protected]>
- Loading branch information
1 parent
e02d29b
commit 7b68746
Showing
9 changed files
with
197 additions
and
96 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
8 changes: 6 additions & 2 deletions
8
src/main/kotlin/com/rootsid/wal/library/mongoimpl/document/BlockchainTxLogDocument.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 |
---|---|---|
@@ -1,19 +1,23 @@ | ||
package com.rootsid.wal.library.mongoimpl.document | ||
|
||
import com.rootsid.wal.library.utils.LocalDateTimeSerializer | ||
import com.rootsid.wal.library.wallet.model.BlockchainTxAction | ||
import com.rootsid.wal.library.wallet.model.BlockchainTxLog | ||
import io.iohk.atala.prism.api.models.AtalaOperationStatus | ||
import io.iohk.atala.prism.api.models.AtalaOperationStatusEnum | ||
import kotlinx.serialization.Serializable | ||
import java.time.LocalDateTime | ||
|
||
data class BlockchainTxLogDocument( | ||
override val _id: String, | ||
override val walletId: String, | ||
override val action: BlockchainTxAction, | ||
override var description: String? = null, | ||
@Serializable(with = LocalDateTimeSerializer::class) | ||
override val createdAt: LocalDateTime = LocalDateTime.now(), | ||
@Serializable(with = LocalDateTimeSerializer::class) | ||
override var updatedAt: LocalDateTime = LocalDateTime.now(), | ||
override var status: AtalaOperationStatusEnum = AtalaOperationStatus.PENDING_SUBMISSION, | ||
override var txId: String? = null, | ||
override var url: String? = null | ||
// val walletId: String | ||
// override var logEntries: MutableList<BlockchainTxLogEntry> = mutableListOf() | ||
) : BlockchainTxLog |
Oops, something went wrong.