Skip to content

Commit

Permalink
fix: editorconfig for *.md and *.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nebolsin committed Oct 17, 2023
1 parent 13760a5 commit 466d181
Show file tree
Hide file tree
Showing 105 changed files with 270 additions and 270 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ insert_final_newline = true
[*.x]
indent_size = 4

[*.{rb,js,yml,yaml}]
[*.{rb,rake,js,json,yml,yaml,md}]
charset = utf-8
indent_size = 2
max_line_length = 120
46 changes: 23 additions & 23 deletions base/Stellar.x
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ enum SCValType
SCV_ADDRESS = 18,

// The following are the internal SCVal variants that are not
// exposed to the contracts.
// exposed to the contracts.
SCV_CONTRACT_INSTANCE = 19,

// SCV_LEDGER_KEY_CONTRACT_INSTANCE and SCV_LEDGER_KEY_NONCE are unique
Expand Down Expand Up @@ -444,7 +444,7 @@ struct ConfigSettingContractLedgerCostV0
int64 bucketListTargetSizeBytes;
// Fee per 1KB write when the bucket list is empty
int64 writeFee1KBBucketListLow;
// Fee per 1KB write when the bucket list has reached `bucketListTargetSizeBytes`
// Fee per 1KB write when the bucket list has reached `bucketListTargetSizeBytes`
int64 writeFee1KBBucketListHigh;
// Write fee multiplier for any additional data past the first `bucketListTargetSizeBytes`
uint32 bucketListWriteFeeGrowthFactor;
Expand Down Expand Up @@ -493,7 +493,7 @@ enum ContractCostType {
// Cost of a host function dispatch, not including the actual work done by
// the function nor the cost of VM invocation machinary
DispatchHostFunction = 5,
// Cost of visiting a host object from the host object storage. Exists to
// Cost of visiting a host object from the host object storage. Exists to
// make sure some baseline cost coverage, i.e. repeatly visiting objects
// by the guest will always incur some charges.
VisitObject = 6,
Expand Down Expand Up @@ -2076,7 +2076,7 @@ enum ContractIDPreimageType
CONTRACT_ID_PREIMAGE_FROM_ADDRESS = 0,
CONTRACT_ID_PREIMAGE_FROM_ASSET = 1
};

union ContractIDPreimage switch (ContractIDPreimageType type)
{
case CONTRACT_ID_PREIMAGE_FROM_ADDRESS:
Expand Down Expand Up @@ -2135,7 +2135,7 @@ struct SorobanAddressCredentials
{
SCAddress address;
int64 nonce;
uint32 signatureExpirationLedger;
uint32 signatureExpirationLedger;
SCVal signature;
};

Expand All @@ -2155,7 +2155,7 @@ case SOROBAN_CREDENTIALS_ADDRESS:

/* Unit of authorization data for Soroban.
Represents an authorization for executing the tree of authorized contract
Represents an authorization for executing the tree of authorized contract
and/or host function calls by the user defined by `credentials`.
*/
struct SorobanAuthorizationEntry
Expand Down Expand Up @@ -2280,7 +2280,7 @@ case ENVELOPE_TYPE_POOL_REVOKE_OP_ID:
struct
{
AccountID sourceAccount;
SequenceNumber seqNum;
SequenceNumber seqNum;
uint32 opNum;
PoolID liquidityPoolID;
Asset asset;
Expand Down Expand Up @@ -2396,11 +2396,11 @@ struct LedgerFootprint
// Resource limits for a Soroban transaction.
// The transaction will fail if it exceeds any of these limits.
struct SorobanResources
{
{
// The ledger footprint of the transaction.
LedgerFootprint footprint;
// The maximum number of instructions this transaction can use
uint32 instructions;
uint32 instructions;

// The maximum number of bytes this transaction can read from ledger
uint32 readBytes;
Expand Down Expand Up @@ -4041,7 +4041,7 @@ struct DiagnosticEvent
ContractEvent event;
};

struct SorobanTransactionMeta
struct SorobanTransactionMeta
{
ExtensionPoint ext;

Expand All @@ -4064,11 +4064,11 @@ struct TransactionMetaV3
OperationMeta operations<>; // meta for each operation
LedgerEntryChanges txChangesAfter; // tx level changes after operations are
// applied if any
SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for
SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for
// Soroban transactions).
};

// This is in Stellar-ledger.x to due to a circular dependency
// This is in Stellar-ledger.x to due to a circular dependency
struct InvokeHostFunctionSuccessPreImage
{
SCVal returnValue;
Expand Down Expand Up @@ -4591,30 +4591,30 @@ namespace stellar
union StoredTransactionSet switch (int v)
{
case 0:
TransactionSet txSet;
TransactionSet txSet;
case 1:
GeneralizedTransactionSet generalizedTxSet;
GeneralizedTransactionSet generalizedTxSet;
};

struct PersistedSCPStateV0
{
SCPEnvelope scpEnvelopes<>;
SCPQuorumSet quorumSets<>;
StoredTransactionSet txSets<>;
SCPEnvelope scpEnvelopes<>;
SCPQuorumSet quorumSets<>;
StoredTransactionSet txSets<>;
};

struct PersistedSCPStateV1
{
// Tx sets are saved separately
SCPEnvelope scpEnvelopes<>;
SCPQuorumSet quorumSets<>;
// Tx sets are saved separately
SCPEnvelope scpEnvelopes<>;
SCPQuorumSet quorumSets<>;
};

union PersistedSCPState switch (int v)
{
case 0:
PersistedSCPStateV0 v0;
PersistedSCPStateV0 v0;
case 1:
PersistedSCPStateV1 v1;
PersistedSCPStateV1 v1;
};
}
}
8 changes: 4 additions & 4 deletions base/generated/stellar/account_entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
# // drives the reserve
# AccountID* inflationDest; // Account to vote for during inflation
# uint32 flags; // see AccountFlags
#
#
# string32 homeDomain; // can be used for reverse federation and memo lookup
#
#
# // fields used for signatures
# // thresholds stores unsigned bytes: [weight of master|low|medium|high]
# Thresholds thresholds;
#
#
# Signer signers<MAX_SIGNERS>; // possible signers for this account
#
#
# // reserved for future use
# union switch (int v)
# {
Expand Down
2 changes: 1 addition & 1 deletion base/generated/stellar/account_entry_extension_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# struct AccountEntryExtensionV1
# {
# Liabilities liabilities;
#
#
# union switch (int v)
# {
# case 0:
Expand Down
2 changes: 1 addition & 1 deletion base/generated/stellar/account_entry_extension_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# uint32 numSponsored;
# uint32 numSponsoring;
# SponsorshipDescriptor signerSponsoringIDs<MAX_SIGNERS>;
#
#
# union switch (int v)
# {
# case 0:
Expand Down
4 changes: 2 additions & 2 deletions base/generated/stellar/account_entry_extension_v3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
# // We can use this to add more fields, or because it is first, to
# // change AccountEntryExtensionV3 into a union.
# ExtensionPoint ext;
#
#
# // Ledger number at which `seqNum` took on its present value.
# uint32 seqLedger;
#
#
# // Time at which `seqNum` took on its present value.
# TimePoint seqTime;
# };
Expand Down
2 changes: 1 addition & 1 deletion base/generated/stellar/account_flags.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# enum AccountFlags
# { // masks for each flag
#
#
# // Flags set on issuer accounts
# // TrustLines are created with authorized set to "false" requiring
# // the issuer to set it for each TrustLine
Expand Down
2 changes: 1 addition & 1 deletion base/generated/stellar/allow_trust_op.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# {
# AccountID trustor;
# AssetCode asset;
#
#
# // One of 0, AUTHORIZED_FLAG, or AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG
# uint32 authorize;
# };
Expand Down
6 changes: 3 additions & 3 deletions base/generated/stellar/asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
# {
# case ASSET_TYPE_NATIVE: // Not credit
# void;
#
#
# case ASSET_TYPE_CREDIT_ALPHANUM4:
# AlphaNum4 alphaNum4;
#
#
# case ASSET_TYPE_CREDIT_ALPHANUM12:
# AlphaNum12 alphaNum12;
#
#
# // add other asset types here in the future
# };
#
Expand Down
4 changes: 2 additions & 2 deletions base/generated/stellar/asset_code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# {
# case ASSET_TYPE_CREDIT_ALPHANUM4:
# AssetCode4 assetCode4;
#
#
# case ASSET_TYPE_CREDIT_ALPHANUM12:
# AssetCode12 assetCode12;
#
#
# // add other asset types here in the future
# };
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# {
# // codes considered as "success" for the operation
# BEGIN_SPONSORING_FUTURE_RESERVES_SUCCESS = 0,
#
#
# // codes considered as "failure" for the operation
# BEGIN_SPONSORING_FUTURE_RESERVES_MALFORMED = -1,
# BEGIN_SPONSORING_FUTURE_RESERVES_ALREADY_SPONSORED = -2,
Expand Down
2 changes: 1 addition & 1 deletion base/generated/stellar/bucket_entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# case LIVEENTRY:
# case INITENTRY:
# LedgerEntry liveEntry;
#
#
# case DEADENTRY:
# LedgerKey deadEntry;
# case METAENTRY:
Expand Down
2 changes: 1 addition & 1 deletion base/generated/stellar/bucket_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# {
# // Indicates the protocol version used to create / merge this bucket.
# uint32 ledgerVersion;
#
#
# // reserved for future use
# union switch (int v)
# {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# {
# // codes considered as "success" for the operation
# BUMP_FOOTPRINT_EXPIRATION_SUCCESS = 0,
#
#
# // codes considered as "failure" for the operation
# BUMP_FOOTPRINT_EXPIRATION_MALFORMED = -1,
# BUMP_FOOTPRINT_EXPIRATION_RESOURCE_LIMIT_EXCEEDED = -2,
Expand Down
8 changes: 4 additions & 4 deletions base/generated/stellar/change_trust_asset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
# {
# case ASSET_TYPE_NATIVE: // Not credit
# void;
#
#
# case ASSET_TYPE_CREDIT_ALPHANUM4:
# AlphaNum4 alphaNum4;
#
#
# case ASSET_TYPE_CREDIT_ALPHANUM12:
# AlphaNum12 alphaNum12;
#
#
# case ASSET_TYPE_POOL_SHARE:
# LiquidityPoolParameters liquidityPool;
#
#
# // add other asset types here in the future
# };
#
Expand Down
2 changes: 1 addition & 1 deletion base/generated/stellar/change_trust_op.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# struct ChangeTrustOp
# {
# ChangeTrustAsset line;
#
#
# // if limit is set to 0, deletes the trust line
# int64 limit;
# };
Expand Down
4 changes: 2 additions & 2 deletions base/generated/stellar/claim_liquidity_atom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
# struct ClaimLiquidityAtom
# {
# PoolID liquidityPoolID;
#
#
# // amount and asset taken from the pool
# Asset assetSold;
# int64 amountSold;
#
#
# // amount and asset sent to the pool
# Asset assetBought;
# int64 amountBought;
Expand Down
4 changes: 2 additions & 2 deletions base/generated/stellar/claim_offer_atom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
# // emitted to identify the offer
# AccountID sellerID; // Account that owns the offer
# int64 offerID;
#
#
# // amount and asset taken from the owner
# Asset assetSold;
# int64 amountSold;
#
#
# // amount and asset sent to the owner
# Asset assetBought;
# int64 amountBought;
Expand Down
4 changes: 2 additions & 2 deletions base/generated/stellar/claim_offer_atom_v0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
# // emitted to identify the offer
# uint256 sellerEd25519; // Account that owns the offer
# int64 offerID;
#
#
# // amount and asset taken from the owner
# Asset assetSold;
# int64 amountSold;
#
#
# // amount and asset sent to the owner
# Asset assetBought;
# int64 amountBought;
Expand Down
8 changes: 4 additions & 4 deletions base/generated/stellar/claimable_balance_entry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
# {
# // Unique identifier for this ClaimableBalanceEntry
# ClaimableBalanceID balanceID;
#
#
# // List of claimants with associated predicate
# Claimant claimants<10>;
#
#
# // Any asset including native
# Asset asset;
#
#
# // Amount of asset
# int64 amount;
#
#
# // reserved for future use
# union switch (int v)
# {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# void;
# }
# ext;
#
#
# uint32 flags; // see ClaimableBalanceFlags
# };
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# {
# // codes considered as "success" for the operation
# CLAWBACK_CLAIMABLE_BALANCE_SUCCESS = 0,
#
#
# // codes considered as "failure" for the operation
# CLAWBACK_CLAIMABLE_BALANCE_DOES_NOT_EXIST = -1,
# CLAWBACK_CLAIMABLE_BALANCE_NOT_ISSUER = -2,
Expand Down

0 comments on commit 466d181

Please sign in to comment.