-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: serialize API3 reports and send to the blockchain
- Loading branch information
Mateusz Czeladka
committed
Jan 15, 2025
1 parent
a34074b
commit 2917c9e
Showing
13 changed files
with
600 additions
and
93 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
12 changes: 12 additions & 0 deletions
12
...ardanofoundation/lob/app/blockchain_publisher/domain/core/API1BlockchainTransactions.java
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,12 @@ | ||
package org.cardanofoundation.lob.app.blockchain_publisher.domain.core; | ||
|
||
import org.cardanofoundation.lob.app.blockchain_publisher.domain.entity.txs.TransactionEntity; | ||
|
||
import java.util.Set; | ||
|
||
public record API1BlockchainTransactions(String organisationId, | ||
Set<TransactionEntity> submittedTransactions, | ||
Set<TransactionEntity> remainingTransactions, | ||
long creationSlot, | ||
byte[] serialisedTxData) { | ||
} |
8 changes: 8 additions & 0 deletions
8
...cardanofoundation/lob/app/blockchain_publisher/domain/core/API3BlockchainTransaction.java
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 org.cardanofoundation.lob.app.blockchain_publisher.domain.core; | ||
|
||
import org.cardanofoundation.lob.app.blockchain_publisher.domain.entity.reports.ReportEntity; | ||
|
||
public record API3BlockchainTransaction(ReportEntity report, | ||
long creationSlot, | ||
byte[] serialisedTxData) { | ||
} |
12 changes: 0 additions & 12 deletions
12
...rg/cardanofoundation/lob/app/blockchain_publisher/domain/core/BlockchainTransactions.java
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...nofoundation/lob/app/blockchain_publisher/domain/core/SerializedCardanoL1Transaction.java
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 org.cardanofoundation.lob.app.blockchain_publisher.domain.core; | ||
|
||
public record SerializedCardanoL1Transaction(byte[] txBytes, | ||
byte[] metadataCbor, | ||
String metadataJson) { } |
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
Oops, something went wrong.