Skip to content

Commit

Permalink
Update xdr whitespace to match core
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bellamy committed May 25, 2021
1 parent 75cb8a3 commit faffa13
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions xdr/Stellar-transaction.x
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ struct CreatePassiveSellOfferOp
{
Asset selling; // A
Asset buying; // B
int64 amount; // amount taker gets. if set to 0, delete the offer
int64 amount; // amount taker gets
Price price; // cost of A in terms of B
};

Expand Down Expand Up @@ -241,7 +241,7 @@ struct AllowTrustOp
AccountID trustor;
AssetCode asset;

// 0, or any bitwise combination of the AUTHORIZED_* flags of TrustLineFlags
// One of 0, AUTHORIZED_FLAG, or AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG
uint32 authorize;
};

Expand Down Expand Up @@ -364,8 +364,7 @@ case REVOKE_SPONSORSHIP_SIGNER:
{
AccountID accountID;
SignerKey signerKey;
}
signer;
} signer;
};

/* Claws back an amount of an asset from an account
Expand Down Expand Up @@ -680,7 +679,7 @@ default:
enum PaymentResultCode
{
// codes considered as "success" for the operation
PAYMENT_SUCCESS = 0, // payment successfuly completed
PAYMENT_SUCCESS = 0, // payment successfully completed

// codes considered as "failure" for the operation
PAYMENT_MALFORMED = -1, // bad input
Expand Down Expand Up @@ -740,7 +739,8 @@ struct SimplePaymentResult
int64 amount;
};

union PathPaymentStrictReceiveResult switch (PathPaymentStrictReceiveResultCode code)
union PathPaymentStrictReceiveResult switch (
PathPaymentStrictReceiveResultCode code)
{
case PATH_PAYMENT_STRICT_RECEIVE_SUCCESS:
struct
Expand Down Expand Up @@ -908,7 +908,8 @@ enum SetOptionsResultCode
SET_OPTIONS_THRESHOLD_OUT_OF_RANGE = -7, // bad value for weight/threshold
SET_OPTIONS_BAD_SIGNER = -8, // signer cannot be masterkey
SET_OPTIONS_INVALID_HOME_DOMAIN = -9, // malformed home domain
SET_OPTIONS_AUTH_REVOCABLE_REQUIRED = -10 // auth revocable is required for clawback
SET_OPTIONS_AUTH_REVOCABLE_REQUIRED =
-10 // auth revocable is required for clawback
};

union SetOptionsResult switch (SetOptionsResultCode code)
Expand Down Expand Up @@ -986,7 +987,7 @@ enum AccountMergeResultCode
union AccountMergeResult switch (AccountMergeResultCode code)
{
case ACCOUNT_MERGE_SUCCESS:
int64 sourceAccountBalance; // how much got transfered from source account
int64 sourceAccountBalance; // how much got transferred from source account
default:
void;
};
Expand Down Expand Up @@ -1068,7 +1069,8 @@ enum CreateClaimableBalanceResultCode
CREATE_CLAIMABLE_BALANCE_UNDERFUNDED = -5
};

union CreateClaimableBalanceResult switch (CreateClaimableBalanceResultCode code)
union CreateClaimableBalanceResult switch (
CreateClaimableBalanceResultCode code)
{
case CREATE_CLAIMABLE_BALANCE_SUCCESS:
ClaimableBalanceID balanceID;
Expand Down Expand Up @@ -1110,7 +1112,8 @@ enum BeginSponsoringFutureReservesResultCode
BEGIN_SPONSORING_FUTURE_RESERVES_RECURSIVE = -3
};

union BeginSponsoringFutureReservesResult switch (BeginSponsoringFutureReservesResultCode code)
union BeginSponsoringFutureReservesResult switch (
BeginSponsoringFutureReservesResultCode code)
{
case BEGIN_SPONSORING_FUTURE_RESERVES_SUCCESS:
void;
Expand All @@ -1129,7 +1132,8 @@ enum EndSponsoringFutureReservesResultCode
END_SPONSORING_FUTURE_RESERVES_NOT_SPONSORED = -1
};

union EndSponsoringFutureReservesResult switch (EndSponsoringFutureReservesResultCode code)
union EndSponsoringFutureReservesResult switch (
EndSponsoringFutureReservesResultCode code)
{
case END_SPONSORING_FUTURE_RESERVES_SUCCESS:
void;
Expand Down Expand Up @@ -1194,7 +1198,8 @@ enum ClawbackClaimableBalanceResultCode
CLAWBACK_CLAIMABLE_BALANCE_NOT_CLAWBACK_ENABLED = -3
};

union ClawbackClaimableBalanceResult switch (ClawbackClaimableBalanceResultCode code)
union ClawbackClaimableBalanceResult switch (
ClawbackClaimableBalanceResultCode code)
{
case CLAWBACK_CLAIMABLE_BALANCE_SUCCESS:
void;
Expand Down Expand Up @@ -1309,7 +1314,7 @@ enum TransactionResultCode
txNO_ACCOUNT = -8, // source account not found
txINSUFFICIENT_FEE = -9, // fee is too small
txBAD_AUTH_EXTRA = -10, // unused signatures attached to transaction
txINTERNAL_ERROR = -11, // an unknown error occured
txINTERNAL_ERROR = -11, // an unknown error occurred

txNOT_SUPPORTED = -12, // transaction type not supported
txFEE_BUMP_INNER_FAILED = -13, // fee bump inner transaction failed
Expand Down

0 comments on commit faffa13

Please sign in to comment.