-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
72 additions
and
6 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
66 changes: 66 additions & 0 deletions
66
src/main/java/rest/koios/client/backend/api/transactions/model/CollateralOutput.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,66 @@ | ||
package rest.koios.client.backend.api.transactions.model; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
import rest.koios.client.backend.api.base.common.InlineDatum; | ||
import rest.koios.client.backend.api.base.common.ReferenceScript; | ||
|
||
/** | ||
* Collateral Output | ||
*/ | ||
@Getter | ||
@Setter | ||
@ToString | ||
@NoArgsConstructor | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public class CollateralOutput { | ||
|
||
/** | ||
* A Cardano payment/base address for transaction's input/output UTxO | ||
*/ | ||
private TxPaymentAddress paymentAddr; | ||
|
||
/** | ||
* A Cardano staking address (reward account, bech32 encoded) for transaction's input/output UTxO | ||
*/ | ||
private String stakeAddr; | ||
|
||
/** | ||
* Hash of this transaction | ||
*/ | ||
private String txHash; | ||
|
||
/** | ||
* Index of output UTxO | ||
*/ | ||
private Integer txIndex; | ||
|
||
/** | ||
* Total sum on the output address | ||
*/ | ||
private String value; | ||
|
||
/** | ||
* Hash of datum (if any) connected to UTxO | ||
*/ | ||
private String datumHash; | ||
|
||
/** | ||
* Allows datums to be attached to UTxO (CIP-32) | ||
*/ | ||
private InlineDatum inlineDatum; | ||
|
||
/** | ||
* Allow reference scripts to be used to satisfy script requirements during validation, rather than requiring the spending transaction to do so. (CIP-33) | ||
*/ | ||
private ReferenceScript referenceScript; | ||
|
||
/** | ||
* assets included in input/output UTxO | ||
*/ | ||
private String assetList; | ||
} |
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