Skip to content

Commit

Permalink
Add new line after module doc and format a function
Browse files Browse the repository at this point in the history
Co-authored-by: norn <keliumJU@users.noreply.github.com>
  • Loading branch information
juanmagiraldor committed Mar 16, 2023
1 parent 11ef347 commit ac5919c
Show file tree
Hide file tree
Showing 70 changed files with 70 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/xdr/contract/sc_host_auth_error_code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ defmodule StellarBase.XDR.SCHostAuthErrorCode do
defstruct [:identifier]

@spec new(type :: atom()) :: t()
def new(type \\ :HOST_AUTH_UNKNOWN_ERROR),
do: %__MODULE__{identifier: type}
def new(type \\ :HOST_AUTH_UNKNOWN_ERROR), do: %__MODULE__{identifier: type}

@impl true
def encode_xdr(%__MODULE__{identifier: type}) do
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/contract/sc_static.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.SCStatic do
@moduledoc """
Representation of Stellar `SCStatic` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/contract/sc_status_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.SCStatusType do
@moduledoc """
Representation of Stellar `SCStatusType` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/contract/sc_symbol.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.SCSymbol do
@moduledoc """
Representation of Stellar `SCSymbol` type.
"""

@behaviour XDR.Declaration

@type t :: %__MODULE__{value: String.t()}
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/contract/sc_val_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.SCValType do
@moduledoc """
Representation of Stellar `SCValType` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/account_entry_ext.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.AccountEntryExt do
@moduledoc """
Representation of Stellar `AccountEntryExt` type.
"""

@behaviour XDR.Declaration

alias StellarBase.XDR.{Void, AccountEntryExtensionV1}
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/account_entry_extension_v1_ext.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.AccountEntryExtensionV1Ext do
@moduledoc """
Representation of Stellar `AccountEntryExtensionV1Ext` type.
"""

@behaviour XDR.Declaration

alias StellarBase.XDR.{Void, AccountEntryExtensionV2}
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/account_entry_extension_v2_ext.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.AccountEntryExtensionV2Ext do
@moduledoc """
Representation of Stellar `AccountEntryExtensionV2Ext` type.
"""

@behaviour XDR.Declaration

alias StellarBase.XDR.{Void, AccountEntryExtensionV3}
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/account_flags.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.AccountFlags do
@moduledoc """
Representation of Stellar `AccountFlags` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/asset_code12.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.AssetCode12 do
@moduledoc """
Representation of Stellar `AssetCode12` type.
"""

@behaviour XDR.Declaration

@type t :: %__MODULE__{code: String.t(), length: non_neg_integer()}
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/asset_code4.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.AssetCode4 do
@moduledoc """
Representation of Stellar `AssetCode4` type.
"""

@behaviour XDR.Declaration

@type t :: %__MODULE__{code: String.t(), length: non_neg_integer()}
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/asset_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.AssetType do
@moduledoc """
Representation of Stellar `AssetType` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/claim_predicate_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.ClaimPredicateType do
@moduledoc """
Representation of Stellar `ClaimPredicateType` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/claimable_balance_entry_ext.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.ClaimableBalanceEntryExt do
@moduledoc """
Representation of Stellar `ClaimableBalanceEntryExt` type.
"""

@behaviour XDR.Declaration

alias StellarBase.XDR.{Void, ClaimableBalanceEntryExtV1}
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/claimable_balance_flags.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.ClaimableBalanceFlags do
@moduledoc """
Representation of Stellar `ClaimableBalanceFlags` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/claimable_balance_id_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.ClaimableBalanceIDType do
@moduledoc """
Representation of Stellar `ClaimableBalanceIDType` type.
"""

@behaviour XDR.Declaration

@declarations [CLAIMABLE_BALANCE_ID_TYPE_V0: 0]
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/claimant_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.ClaimantType do
@moduledoc """
Representation of Stellar `ClaimantType` type.
"""

@behaviour XDR.Declaration

@declarations [CLAIMANT_TYPE_V0: 0]
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/envelope_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.EnvelopeType do
@moduledoc """
Representation of Stellar `EnvelopeType` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/ledger_entry_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.LedgerEntryType do
@moduledoc """
Representation of Stellar `LedgerEntryType` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/liquidity_pool_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.LiquidityPoolType do
@moduledoc """
Representation of Stellar `LiquidityPoolType` type.
"""

@behaviour XDR.Declaration

@declarations [LIQUIDITY_POOL_CONSTANT_PRODUCT: 0]
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/offer_entry_flags.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.OfferEntryFlags do
@moduledoc """
Representation of Stellar `OfferEntryFlags` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/string28.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.String28 do
@moduledoc """
Representation of Stellar `String28` type.
"""

@behaviour XDR.Declaration

@type t :: %__MODULE__{value: String.t()}
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/string32.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.String32 do
@moduledoc """
Representation of Stellar `String32` type.
"""

@behaviour XDR.Declaration

@type t :: %__MODULE__{value: String.t()}
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/string64.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.String64 do
@moduledoc """
Representation of Stellar `String64` type.
"""

@behaviour XDR.Declaration

@type t :: %__MODULE__{value: String.t()}
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/threshold_indexes.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.ThresholdIndexes do
@moduledoc """
Representation of Stellar `ThresholdIndexes` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/trust_line_entry_ext.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.TrustLineEntryExt do
@moduledoc """
Representation of Stellar `TrustLineEntryExt` type.
"""

@behaviour XDR.Declaration

alias StellarBase.XDR.{Void, TrustLineEntryExtV1}
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/trust_line_entry_ext_v1_ext.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.TrustLineEntryExtV1Ext do
@moduledoc """
Representation of Stellar `TrustLineEntryExtV1Ext` type.
"""

@behaviour XDR.Declaration

alias StellarBase.XDR.{Void, TrustLineEntryExtV2}
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/ledger_entries/trust_line_flags.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.TrustLineFlags do
@moduledoc """
Representation of Stellar `TrustLineFlags` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/transactions/claim_atom_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.ClaimAtomType do
@moduledoc """
Representation of Stellar `ClaimAtomType` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/transactions/memo_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.MemoType do
@moduledoc """
Representation of Stellar `MemoType` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/transactions/operation_result_code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.OperationResultCode do
@moduledoc """
Representation of Stellar `OperationResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/transactions/operation_type.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.OperationType do
@moduledoc """
Representation of Stellar `OperationType` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.AccountMergeResultCode do
@moduledoc """
Representation of Stellar `AccountMergeResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/transactions/operations/allow_trust_result_code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.AllowTrustResultCode do
@moduledoc """
Representation of Stellar `AllowTrustResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.BeginSponsoringFutureReservesResultCode do
@moduledoc """
Representation of Stellar `BeginSponsoringFutureReservesResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.BumpSequenceResultCode do
@moduledoc """
Representation of Stellar `BumpSequenceResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.ChangeTrustResultCode do
@moduledoc """
Representation of Stellar `ChangeTrustResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.ClaimClaimableBalanceResultCode do
@moduledoc """
Representation of Stellar `ClaimClaimableBalanceResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.ClawbackClaimableBalanceResultCode do
@moduledoc """
Representation of Stellar `ClawbackClaimableBalanceResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/transactions/operations/clawback_result_code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.ClawbackResultCode do
@moduledoc """
Representation of Stellar `ClawbackResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.CreateAccountResultCode do
@moduledoc """
Representation of Stellar `CreateAccountResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.CreateClaimableBalanceResultCode do
@moduledoc """
Representation of Stellar `CreateClaimableBalanceResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.EndSponsoringFutureReservesResultCode do
@moduledoc """
Representation of Stellar `EndSponsoringFutureReservesResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/transactions/operations/inflation_result_code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.InflationResultCode do
@moduledoc """
Representation of Stellar `InflationResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.LiquidityPoolDepositResultCode do
@moduledoc """
Representation of Stellar `LiquidityPoolDepositResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.LiquidityPoolWithdrawResultCode do
@moduledoc """
Representation of Stellar `LiquidityPoolWithdrawResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.ManageBuyOfferResultCode do
@moduledoc """
Representation of Stellar `ManageBuyOfferResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/transactions/operations/manage_data_result_code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.ManageDataResultCode do
@moduledoc """
Representation of Stellar `ManageDataResultCode` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
1 change: 1 addition & 0 deletions lib/xdr/transactions/operations/manage_offer_effect.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ defmodule StellarBase.XDR.Operations.ManageOfferEffect do
@moduledoc """
Representation of Stellar `ManageOfferEffect` type.
"""

@behaviour XDR.Declaration

@declarations [
Expand Down
Loading

0 comments on commit ac5919c

Please sign in to comment.