-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from cardano-community/revisiting-after-major-…
…update Revisiting after major update
- Loading branch information
Showing
24 changed files
with
640 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System.Runtime.Serialization; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace CardanoSharp.Koios.Client.Contracts | ||
{ | ||
[DataContract] | ||
public class AccountUtxo: AddressTransaction | ||
{ | ||
[DataMember] | ||
[JsonPropertyName("tx_index")] | ||
public uint TxIndex { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("address")] | ||
public string? Address { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("value")] | ||
public string? Value { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("stake_address")] | ||
public string? StakeAddress { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("payment_cred")] | ||
public string? PaymentCred { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("datum_hash")] | ||
public string? DatumHash { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("inline_datum")] | ||
public InlineDatum? InlineDatum { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("asset_list")] | ||
public AssetListInformation[]? AssetList { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("reference_script")] | ||
public ReferenceScript? ReferenceScript { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("is_spent")] | ||
public bool IsSpent { get; set; } | ||
} | ||
} |
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,13 @@ | ||
using System.Runtime.Serialization; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace CardanoSharp.Koios.Client.Contracts | ||
{ | ||
[DataContract] | ||
public class AddressUtxo: Utxo | ||
{ | ||
[DataMember] | ||
[JsonPropertyName("is_spent")] | ||
public bool IsSpent { get; set; } | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System.Runtime.Serialization; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace CardanoSharp.Koios.Client.Contracts | ||
{ | ||
[DataContract] | ||
public class AssetTokenRegistry | ||
{ | ||
[DataMember] | ||
[JsonPropertyName("policy_id")] | ||
public string? PolicyId { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("asset_name")] | ||
public string? AssetName { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("asset_name_ascii")] | ||
public string? AssetNameAscii { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("ticker")] | ||
public string? Ticker { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("description")] | ||
public string? Description { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("url")] | ||
public string? Url { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("logo")] | ||
public string? Logo { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("decimals")] | ||
public uint? Decimals { get; set; } | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.Runtime.Serialization; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace CardanoSharp.Koios.Client.Contracts | ||
{ | ||
[DataContract] | ||
public class BlockInformation: Block | ||
{ | ||
[DataMember] | ||
[JsonPropertyName("op_cert")] | ||
public string? OpCert { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("total_output")] | ||
public string? TotalOutput { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("total_fees")] | ||
public string? TotalFees { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("num_confirmations")] | ||
public uint? NumConfirmations { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("parent_hash")] | ||
public string? ParentHash { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("child_hash")] | ||
public string? ChildHash { get; set; } | ||
} | ||
} |
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
29 changes: 29 additions & 0 deletions
29
CardanoSharp.Koios.Client/Contracts/ParamUpdateProposal.cs
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,29 @@ | ||
using System.Runtime.Serialization; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace CardanoSharp.Koios.Client.Contracts | ||
{ | ||
[DataContract] | ||
public class ParamUpdateProposal | ||
{ | ||
[DataMember] | ||
[JsonPropertyName("tx_hash")] | ||
public string? TxHash { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("block_height")] | ||
public uint BlockHeight { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("block_time")] | ||
public uint BlockTime { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("epoch_no")] | ||
public uint EpochNo { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("data")] | ||
public object Data { get; set; } | ||
} | ||
} |
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,25 @@ | ||
using System.Runtime.Serialization; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace CardanoSharp.Koios.Client.Contracts | ||
{ | ||
[DataContract] | ||
public class PolicyAsset | ||
{ | ||
[DataMember] | ||
[JsonPropertyName("asset_name")] | ||
public string? AssetName { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("fingerprint")] | ||
public string? Fingerprint { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("total_supply")] | ||
public string? TotalSupply { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("decimals")] | ||
public uint? Decimals { get; set; } | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System.Runtime.Serialization; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace CardanoSharp.Koios.Client.Contracts | ||
{ | ||
[DataContract] | ||
public class ReserveWithdrawal | ||
{ | ||
[DataMember] | ||
[JsonPropertyName("tx_hash")] | ||
public string? TxHash { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("block_height")] | ||
public uint BlockHeight { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("block_hash")] | ||
public string? BlockHash { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("amount")] | ||
public string? Amount { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("epoch_no")] | ||
public uint EpochNo { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("epoch_slot")] | ||
public uint EpochSlot { get; set; } | ||
|
||
[DataMember] | ||
[JsonPropertyName("stake_address")] | ||
public string? StakeAddress { get; set; } | ||
} | ||
} |
Oops, something went wrong.