/// <summary>
 /// Initializes a new instance of the <see cref="InlineResponse2003" /> class.
 /// </summary>
 /// <param name="total">total (required).</param>
 /// <param name="scale">scale (required).</param>
 /// <param name="distribution">distribution (required).</param>
 public InlineResponse2003(WalletswalletIdpaymentfeesAmount total = default(WalletswalletIdpaymentfeesAmount), ScaleEnum scale = default(ScaleEnum), Dictionary <string, int?> distribution = default(Dictionary <string, int?>))
 {
     // to ensure "total" is required (not null)
     if (total == null)
     {
         throw new InvalidDataException("total is a required property for InlineResponse2003 and cannot be null");
     }
     else
     {
         this.Total = total;
     }
     // to ensure "scale" is required (not null)
     if (scale == null)
     {
         throw new InvalidDataException("scale is a required property for InlineResponse2003 and cannot be null");
     }
     else
     {
         this.Scale = scale;
     }
     // to ensure "distribution" is required (not null)
     if (distribution == null)
     {
         throw new InvalidDataException("distribution is a required property for InlineResponse2003 and cannot be null");
     }
     else
     {
         this.Distribution = distribution;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiCoinSelectionChange" /> class.
 /// </summary>
 /// <param name="address">address (required).</param>
 /// <param name="amount">amount (required).</param>
 /// <param name="assets">A flat list of assets..</param>
 /// <param name="derivationPath">A path for deriving a child key from a parent key. (required).</param>
 public ApiCoinSelectionChange(string address = default(string), WalletswalletIdpaymentfeesAmount amount = default(WalletswalletIdpaymentfeesAmount), List <WalletsAssetsAvailable> assets = default(List <WalletsAssetsAvailable>), List <string> derivationPath = default(List <string>))
 {
     // to ensure "address" is required (not null)
     if (address == null)
     {
         throw new InvalidDataException("address is a required property for ApiCoinSelectionChange and cannot be null");
     }
     else
     {
         this.Address = address;
     }
     // to ensure "amount" is required (not null)
     if (amount == null)
     {
         throw new InvalidDataException("amount is a required property for ApiCoinSelectionChange and cannot be null");
     }
     else
     {
         this.Amount = amount;
     }
     // to ensure "derivationPath" is required (not null)
     if (derivationPath == null)
     {
         throw new InvalidDataException("derivationPath is a required property for ApiCoinSelectionChange and cannot be null");
     }
     else
     {
         this.DerivationPath = derivationPath;
     }
     this.Assets = assets;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiCoinSelectionInputs" /> class.
 /// </summary>
 /// <param name="address">address (required).</param>
 /// <param name="amount">amount (required).</param>
 /// <param name="assets">A flat list of assets..</param>
 /// <param name="id">A unique identifier for this transaction (required).</param>
 /// <param name="derivationPath">A path for deriving a child key from a parent key. (required).</param>
 /// <param name="index">index (required).</param>
 public ApiCoinSelectionInputs(string address = default(string), WalletswalletIdpaymentfeesAmount amount = default(WalletswalletIdpaymentfeesAmount), List <WalletsAssetsAvailable> assets = default(List <WalletsAssetsAvailable>), string id = default(string), List <string> derivationPath = default(List <string>), int?index = default(int?))
 {
     // to ensure "address" is required (not null)
     if (address == null)
     {
         throw new InvalidDataException("address is a required property for ApiCoinSelectionInputs and cannot be null");
     }
     else
     {
         this.Address = address;
     }
     // to ensure "amount" is required (not null)
     if (amount == null)
     {
         throw new InvalidDataException("amount is a required property for ApiCoinSelectionInputs and cannot be null");
     }
     else
     {
         this.Amount = amount;
     }
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new InvalidDataException("id is a required property for ApiCoinSelectionInputs and cannot be null");
     }
     else
     {
         this.Id = id;
     }
     // to ensure "derivationPath" is required (not null)
     if (derivationPath == null)
     {
         throw new InvalidDataException("derivationPath is a required property for ApiCoinSelectionInputs and cannot be null");
     }
     else
     {
         this.DerivationPath = derivationPath;
     }
     // to ensure "index" is required (not null)
     if (index == null)
     {
         throw new InvalidDataException("index is a required property for ApiCoinSelectionInputs and cannot be null");
     }
     else
     {
         this.Index = index;
     }
     this.Assets = assets;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InlineResponse202" /> class.
 /// </summary>
 /// <param name="estimatedMin">estimatedMin (required).</param>
 /// <param name="estimatedMax">estimatedMax (required).</param>
 /// <param name="minimumCoins">A list of minimum coin values that each output in a payment must satisfy. The values themselves depends on two things:    - (a) Some updatable protocol parameters fixed by the network.   - (b) The nature of the outputs (i.e. the kind of assets it includes).  The list is a direct 1:1 mapping of the requested outputs. Said differently, it has the **same number of items** and **items are ordered in the same way** as **requested outputs** are ordered. In the case where there&#x27;s no explicitly requested outputs (e.g. when calculating fee for delegation), this list is empty.  For example, an output containing only &#x60;Ada&#x60; may require to be of at least &#x60;1 Ada&#x60;. An output containing only an hypothetical &#x60;AppleCoin&#x60; may require to also carry a minimum of &#x60;1.2 Ada&#x60;. Note that no matter what, a minimum coin value is always given in Lovelace / Ada.  &gt; ℹ️ This mechanism is used by the protocol to protect against flooding of the network with worthless assets. By requiring a minimum coin value to every UTxO, they are given an intrinsic value indexed itself on the value of Ada.  (required).</param>
 /// <param name="deposit">deposit (required).</param>
 public InlineResponse202(WalletswalletIdpaymentfeesAmount estimatedMin = default(WalletswalletIdpaymentfeesAmount), WalletswalletIdpaymentfeesAmount estimatedMax = default(WalletswalletIdpaymentfeesAmount), List <WalletswalletIdpaymentfeesAmount> minimumCoins = default(List <WalletswalletIdpaymentfeesAmount>), WalletswalletIdpaymentfeesAmount deposit = default(WalletswalletIdpaymentfeesAmount))
 {
     // to ensure "estimatedMin" is required (not null)
     if (estimatedMin == null)
     {
         throw new InvalidDataException("estimatedMin is a required property for InlineResponse202 and cannot be null");
     }
     else
     {
         this.EstimatedMin = estimatedMin;
     }
     // to ensure "estimatedMax" is required (not null)
     if (estimatedMax == null)
     {
         throw new InvalidDataException("estimatedMax is a required property for InlineResponse202 and cannot be null");
     }
     else
     {
         this.EstimatedMax = estimatedMax;
     }
     // to ensure "minimumCoins" is required (not null)
     if (minimumCoins == null)
     {
         throw new InvalidDataException("minimumCoins is a required property for InlineResponse202 and cannot be null");
     }
     else
     {
         this.MinimumCoins = minimumCoins;
     }
     // to ensure "deposit" is required (not null)
     if (deposit == null)
     {
         throw new InvalidDataException("deposit is a required property for InlineResponse202 and cannot be null");
     }
     else
     {
         this.Deposit = deposit;
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WalletswalletIdpaymentfeesPayments" /> class.
 /// </summary>
 /// <param name="address">address (required).</param>
 /// <param name="amount">amount (required).</param>
 /// <param name="assets">A flat list of assets..</param>
 public WalletswalletIdpaymentfeesPayments(string address = default(string), WalletswalletIdpaymentfeesAmount amount = default(WalletswalletIdpaymentfeesAmount), List <WalletsAssetsAvailable> assets = default(List <WalletsAssetsAvailable>))
 {
     // to ensure "address" is required (not null)
     if (address == null)
     {
         throw new InvalidDataException("address is a required property for WalletswalletIdpaymentfeesPayments and cannot be null");
     }
     else
     {
         this.Address = address;
     }
     // to ensure "amount" is required (not null)
     if (amount == null)
     {
         throw new InvalidDataException("amount is a required property for WalletswalletIdpaymentfeesPayments and cannot be null");
     }
     else
     {
         this.Amount = amount;
     }
     this.Assets = assets;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WalletswalletIdtransactionsInputs" /> class.
 /// </summary>
 /// <param name="address">address.</param>
 /// <param name="amount">amount.</param>
 /// <param name="assets">A flat list of assets..</param>
 /// <param name="id">A unique identifier for this transaction (required).</param>
 /// <param name="index">index (required).</param>
 public WalletswalletIdtransactionsInputs(string address = default(string), WalletswalletIdpaymentfeesAmount amount = default(WalletswalletIdpaymentfeesAmount), List <WalletsAssetsAvailable> assets = default(List <WalletsAssetsAvailable>), string id = default(string), int?index = default(int?))
 {
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new InvalidDataException("id is a required property for WalletswalletIdtransactionsInputs and cannot be null");
     }
     else
     {
         this.Id = id;
     }
     // to ensure "index" is required (not null)
     if (index == null)
     {
         throw new InvalidDataException("index is a required property for WalletswalletIdtransactionsInputs and cannot be null");
     }
     else
     {
         this.Index = index;
     }
     this.Address = address;
     this.Amount  = amount;
     this.Assets  = assets;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiTransaction" /> class.
 /// </summary>
 /// <param name="id">A unique identifier for this transaction (required).</param>
 /// <param name="amount">amount (required).</param>
 /// <param name="fee">fee (required).</param>
 /// <param name="deposit">deposit (required).</param>
 /// <param name="insertedAt">insertedAt.</param>
 /// <param name="expiresAt">expiresAt.</param>
 /// <param name="pendingSince">pendingSince.</param>
 /// <param name="depth">depth.</param>
 /// <param name="direction">direction (required).</param>
 /// <param name="inputs">A list of transaction inputs.  &#x60;assets&#x60; and &#x60;address&#x60; are always present for &#x60;outgoing&#x60; transactions but generally absent for &#x60;incoming&#x60; transactions. This information is present on the Cardano explorer, but is not tracked by the wallet.  (required).</param>
 /// <param name="outputs">A list of target outputs (required).</param>
 /// <param name="withdrawals">A list of withdrawals from stake addresses. (required).</param>
 /// <param name="mint">&lt;p&gt;status: &lt;strong&gt;⚠ under development&lt;/strong&gt;&lt;/p&gt;  _This field is not implemented yet, and will always be empty._  Assets minted (created) or unminted (destroyed)  This amount contributes to the total transaction value.  Positive values denote creation of assets and negative values denote the reverse.  (required).</param>
 /// <param name="status">Current transaction status.    &#x60;&#x60;&#x60;          *- -- -- -- --*          *- -- -- -- -- --*          |         |- -- -- -- -- -&gt;  EXPIRED  |          |         |  (ttl)   *- -- -- -- -- --*   - -- -- --&gt; PENDING |          |         &lt;- -- -- -- -- -- -- -- -*          |         |                |          *- -- -- -- --*            (rollback)               |                     |          (in ledger)          *- -- -- -- -- --*               |               |           |               *- -- -- -- -- -- -- --&gt; IN_LEDGER |                               |           |                               *- -- -- -- -- --*   &#x60;&#x60;&#x60;  (required).</param>
 /// <param name="metadata">**⚠️ WARNING ⚠️**  _Please note that metadata provided in a transaction will be stored on the blockchain forever. Make sure not to include any sensitive data, in particular personally identifiable information (PII)._  Extra application data attached to the transaction.  Cardano allows users and developers to embed their own authenticated metadata when submitting transactions. Metadata can be expressed as a JSON object with some restrictions:  1. All top-level keys must be integers between &#x60;0&#x60; and &#x60;2^64 - 1&#x60;.  2. Each metadata value is tagged with its type.  3. Strings must be at most 64 bytes when UTF-8 encoded.  4. Bytestrings are hex-encoded, with a maximum length of 64 bytes.  Metadata aren&#x27;t stored as JSON on the Cardano blockchain but are instead stored using a compact binary encoding (CBOR).  The binary encoding of metadata values supports three simple types:  * Integers in the range &#x60;-(2^64 - 1)&#x60; to &#x60;2^64 - 1&#x60; * Strings (UTF-8 encoded) * Bytestrings  And two compound types:  * Lists of metadata values * Mappings from metadata values to metadata values  It is possible to transform any JSON object into this schema.  However, if your application uses floating point values, they will need to be converted somehow, according to your requirements. Likewise for &#x60;null&#x60; or &#x60;bool&#x60; values. When reading metadata from chain, be aware that integers may exceed the javascript numeric range, and may need special \&quot;bigint\&quot; parsing. .</param>
 public ApiTransaction(string id = default(string), WalletswalletIdtransactionsAmount amount = default(WalletswalletIdtransactionsAmount), WalletswalletIdpaymentfeesAmount fee = default(WalletswalletIdpaymentfeesAmount), WalletswalletIdpaymentfeesAmount deposit = default(WalletswalletIdpaymentfeesAmount), WalletswalletIdtransactionsInsertedAt insertedAt = default(WalletswalletIdtransactionsInsertedAt), WalletswalletIdtransactionsExpiresAt expiresAt = default(WalletswalletIdtransactionsExpiresAt), WalletswalletIdtransactionsPendingSince pendingSince = default(WalletswalletIdtransactionsPendingSince), WalletswalletIdtransactionsDepth depth = default(WalletswalletIdtransactionsDepth), DirectionEnum direction = default(DirectionEnum), List <WalletswalletIdtransactionsInputs> inputs = default(List <WalletswalletIdtransactionsInputs>), List <WalletswalletIdpaymentfeesPayments> outputs = default(List <WalletswalletIdpaymentfeesPayments>), List <WalletswalletIdtransactionsWithdrawals> withdrawals = default(List <WalletswalletIdtransactionsWithdrawals>), List <WalletswalletIdtransactionsMint> mint = default(List <WalletswalletIdtransactionsMint>), StatusEnum status = default(StatusEnum), Dictionary <string, TransactionMetadataValue> metadata = default(Dictionary <string, TransactionMetadataValue>))
 {
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new InvalidDataException("id is a required property for ApiTransaction and cannot be null");
     }
     else
     {
         this.Id = id;
     }
     // to ensure "amount" is required (not null)
     if (amount == null)
     {
         throw new InvalidDataException("amount is a required property for ApiTransaction and cannot be null");
     }
     else
     {
         this.Amount = amount;
     }
     // to ensure "fee" is required (not null)
     if (fee == null)
     {
         throw new InvalidDataException("fee is a required property for ApiTransaction and cannot be null");
     }
     else
     {
         this.Fee = fee;
     }
     // to ensure "deposit" is required (not null)
     if (deposit == null)
     {
         throw new InvalidDataException("deposit is a required property for ApiTransaction and cannot be null");
     }
     else
     {
         this.Deposit = deposit;
     }
     // to ensure "direction" is required (not null)
     if (direction == null)
     {
         throw new InvalidDataException("direction is a required property for ApiTransaction and cannot be null");
     }
     else
     {
         this.Direction = direction;
     }
     // to ensure "inputs" is required (not null)
     if (inputs == null)
     {
         throw new InvalidDataException("inputs is a required property for ApiTransaction and cannot be null");
     }
     else
     {
         this.Inputs = inputs;
     }
     // to ensure "outputs" is required (not null)
     if (outputs == null)
     {
         throw new InvalidDataException("outputs is a required property for ApiTransaction and cannot be null");
     }
     else
     {
         this.Outputs = outputs;
     }
     // to ensure "withdrawals" is required (not null)
     if (withdrawals == null)
     {
         throw new InvalidDataException("withdrawals is a required property for ApiTransaction and cannot be null");
     }
     else
     {
         this.Withdrawals = withdrawals;
     }
     // to ensure "mint" is required (not null)
     if (mint == null)
     {
         throw new InvalidDataException("mint is a required property for ApiTransaction and cannot be null");
     }
     else
     {
         this.Mint = mint;
     }
     // to ensure "status" is required (not null)
     if (status == null)
     {
         throw new InvalidDataException("status is a required property for ApiTransaction and cannot be null");
     }
     else
     {
         this.Status = status;
     }
     this.InsertedAt   = insertedAt;
     this.ExpiresAt    = expiresAt;
     this.PendingSince = pendingSince;
     this.Depth        = depth;
     this.Metadata     = metadata;
 }
Exemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApiCoinSelectionWithdrawals" /> class.
 /// </summary>
 /// <param name="stakeAddress">stakeAddress (required).</param>
 /// <param name="derivationPath">A path for deriving a child key from a parent key. (required).</param>
 /// <param name="amount">amount (required).</param>
 public ApiCoinSelectionWithdrawals(string stakeAddress = default(string), List <string> derivationPath = default(List <string>), WalletswalletIdpaymentfeesAmount amount = default(WalletswalletIdpaymentfeesAmount))
 {
     // to ensure "stakeAddress" is required (not null)
     if (stakeAddress == null)
     {
         throw new InvalidDataException("stakeAddress is a required property for ApiCoinSelectionWithdrawals and cannot be null");
     }
     else
     {
         this.StakeAddress = stakeAddress;
     }
     // to ensure "derivationPath" is required (not null)
     if (derivationPath == null)
     {
         throw new InvalidDataException("derivationPath is a required property for ApiCoinSelectionWithdrawals and cannot be null");
     }
     else
     {
         this.DerivationPath = derivationPath;
     }
     // to ensure "amount" is required (not null)
     if (amount == null)
     {
         throw new InvalidDataException("amount is a required property for ApiCoinSelectionWithdrawals and cannot be null");
     }
     else
     {
         this.Amount = amount;
     }
 }
Exemplo n.º 9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InlineResponse20013" /> class.
 /// </summary>
 /// <param name="genesisBlockHash">The hash of genesis block (required).</param>
 /// <param name="blockchainStartTime">blockchainStartTime (required).</param>
 /// <param name="slotLength">slotLength (required).</param>
 /// <param name="epochLength">epochLength (required).</param>
 /// <param name="securityParameter">securityParameter (required).</param>
 /// <param name="activeSlotCoefficient">activeSlotCoefficient (required).</param>
 /// <param name="decentralizationLevel">decentralizationLevel (required).</param>
 /// <param name="desiredPoolNumber">desiredPoolNumber (required).</param>
 /// <param name="minimumUtxoValue">minimumUtxoValue (required).</param>
 /// <param name="eras">eras (required).</param>
 public InlineResponse20013(string genesisBlockHash = default(string), string blockchainStartTime = default(string), ApiNetworkParametersSlotLength slotLength = default(ApiNetworkParametersSlotLength), ApiNetworkParametersEpochLength epochLength = default(ApiNetworkParametersEpochLength), WalletsTipHeight securityParameter = default(WalletsTipHeight), ApiNetworkParametersActiveSlotCoefficient activeSlotCoefficient = default(ApiNetworkParametersActiveSlotCoefficient), ApiNetworkParametersActiveSlotCoefficient decentralizationLevel = default(ApiNetworkParametersActiveSlotCoefficient), int?desiredPoolNumber = default(int?), WalletswalletIdpaymentfeesAmount minimumUtxoValue = default(WalletswalletIdpaymentfeesAmount), ApiNetworkParametersEras eras = default(ApiNetworkParametersEras))
 {
     // to ensure "genesisBlockHash" is required (not null)
     if (genesisBlockHash == null)
     {
         throw new InvalidDataException("genesisBlockHash is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.GenesisBlockHash = genesisBlockHash;
     }
     // to ensure "blockchainStartTime" is required (not null)
     if (blockchainStartTime == null)
     {
         throw new InvalidDataException("blockchainStartTime is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.BlockchainStartTime = blockchainStartTime;
     }
     // to ensure "slotLength" is required (not null)
     if (slotLength == null)
     {
         throw new InvalidDataException("slotLength is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.SlotLength = slotLength;
     }
     // to ensure "epochLength" is required (not null)
     if (epochLength == null)
     {
         throw new InvalidDataException("epochLength is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.EpochLength = epochLength;
     }
     // to ensure "securityParameter" is required (not null)
     if (securityParameter == null)
     {
         throw new InvalidDataException("securityParameter is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.SecurityParameter = securityParameter;
     }
     // to ensure "activeSlotCoefficient" is required (not null)
     if (activeSlotCoefficient == null)
     {
         throw new InvalidDataException("activeSlotCoefficient is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.ActiveSlotCoefficient = activeSlotCoefficient;
     }
     // to ensure "decentralizationLevel" is required (not null)
     if (decentralizationLevel == null)
     {
         throw new InvalidDataException("decentralizationLevel is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.DecentralizationLevel = decentralizationLevel;
     }
     // to ensure "desiredPoolNumber" is required (not null)
     if (desiredPoolNumber == null)
     {
         throw new InvalidDataException("desiredPoolNumber is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.DesiredPoolNumber = desiredPoolNumber;
     }
     // to ensure "minimumUtxoValue" is required (not null)
     if (minimumUtxoValue == null)
     {
         throw new InvalidDataException("minimumUtxoValue is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.MinimumUtxoValue = minimumUtxoValue;
     }
     // to ensure "eras" is required (not null)
     if (eras == null)
     {
         throw new InvalidDataException("eras is a required property for InlineResponse20013 and cannot be null");
     }
     else
     {
         this.Eras = eras;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WalletswalletIdtransactionsWithdrawals" /> class.
 /// </summary>
 /// <param name="stakeAddress">stakeAddress (required).</param>
 /// <param name="amount">amount (required).</param>
 public WalletswalletIdtransactionsWithdrawals(string stakeAddress = default(string), WalletswalletIdpaymentfeesAmount amount = default(WalletswalletIdpaymentfeesAmount))
 {
     // to ensure "stakeAddress" is required (not null)
     if (stakeAddress == null)
     {
         throw new InvalidDataException("stakeAddress is a required property for WalletswalletIdtransactionsWithdrawals and cannot be null");
     }
     else
     {
         this.StakeAddress = stakeAddress;
     }
     // to ensure "amount" is required (not null)
     if (amount == null)
     {
         throw new InvalidDataException("amount is a required property for WalletswalletIdtransactionsWithdrawals and cannot be null");
     }
     else
     {
         this.Amount = amount;
     }
 }