xdr/Stellar-transaction.x in stellar-base-0.0.15 vs xdr/Stellar-transaction.x in stellar-base-0.0.16

- old
+ new

@@ -17,11 +17,11 @@ { CREATE_ACCOUNT = 0, PAYMENT = 1, PATH_PAYMENT = 2, MANAGE_OFFER = 3, - CREATE_PASSIVE_OFFER = 4, + CREATE_PASSIVE_OFFER = 4, SET_OPTIONS = 5, CHANGE_TRUST = 6, ALLOW_TRUST = 7, ACCOUNT_MERGE = 8, INFLATION = 9 @@ -214,11 +214,11 @@ PaymentOp paymentOp; case PATH_PAYMENT: PathPaymentOp pathPaymentOp; case MANAGE_OFFER: ManageOfferOp manageOfferOp; - case CREATE_PASSIVE_OFFER: + case CREATE_PASSIVE_OFFER: CreatePassiveOfferOp createPassiveOfferOp; case SET_OPTIONS: SetOptionsOp setOptionsOp; case CHANGE_TRUST: ChangeTrustOp changeTrustOp; @@ -306,11 +306,13 @@ // amount and currency taken from the owner Currency currencyClaimed; int64 amountClaimed; - // should we also include the amount that the owner gets in return? + // amount and currencysent to the owner + Currency currencySend; + int64 amountSend; }; /******* CreateAccount Result ********/ enum CreateAccountResultCode @@ -416,11 +418,10 @@ MANAGE_OFFER_MISMATCH = -8, // currencies don't match offer MANAGE_OFFER_LOW_RESERVE = -9 // not enough funds to create a new Offer }; - enum ManageOfferEffect { MANAGE_OFFER_CREATED = 0, MANAGE_OFFER_UPDATED = 1, MANAGE_OFFER_DELETED = 2 @@ -460,11 +461,11 @@ SET_OPTIONS_LOW_RESERVE = -1, // not enough funds to add a signer SET_OPTIONS_TOO_MANY_SIGNERS = -2, // max number of signers already reached SET_OPTIONS_BAD_FLAGS = -3, // invalid combination of clear/set flags SET_OPTIONS_INVALID_INFLATION = -4, // inflation account does not exist SET_OPTIONS_CANT_CHANGE = -5, // can no longer change this option - SET_OPTIONS_UNKNOWN_FLAG = -6 // can't set an unknown flag + SET_OPTIONS_UNKNOWN_FLAG = -6 // can't set an unknown flag }; union SetOptionsResult switch (SetOptionsResultCode code) { case SET_OPTIONS_SUCCESS: @@ -501,12 +502,12 @@ // codes considered as "success" for the operation ALLOW_TRUST_SUCCESS = 0, // codes considered as "failure" for the operation ALLOW_TRUST_MALFORMED = -1, // currency is not CURRENCY_TYPE_ALPHANUM ALLOW_TRUST_NO_TRUST_LINE = -2, // trustor does not have a trustline - // source account does not require trust - ALLOW_TRUST_TRUST_NOT_REQUIRED = -3, - ALLOW_TRUST_CANT_REVOKE = -4 // source account can't revoke trust + // source account does not require trust + ALLOW_TRUST_TRUST_NOT_REQUIRED = -3, + ALLOW_TRUST_CANT_REVOKE = -4 // source account can't revoke trust }; union AllowTrustResult switch (AllowTrustResultCode code) { case ALLOW_TRUST_SUCCESS: