Skip to content

Commit

Permalink
Revert "protob: remove source_account from Stellar messages"
Browse files Browse the repository at this point in the history
This reverts commit 51eeb0e.
  • Loading branch information
prusnak committed Jul 10, 2018
1 parent 7358ab1 commit 32850a6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions protob/messages-stellar.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ message StellarAddress {
message StellarSignTx {
repeated uint32 address_n = 2; // BIP-32 path. For compatibility with other wallets, must be m/44'/148'/index'
optional string network_passphrase = 3; // passphrase for signing messages on the destination network
optional string source_account = 4; // source account address
optional uint32 fee = 5; // Fee (in stroops) for the transaction
optional uint64 sequence_number = 6; // transaction sequence number
optional uint32 timebounds_start = 8; // unix timestamp (client must truncate this to 32 bytes)
Expand Down Expand Up @@ -90,6 +91,7 @@ message StellarTxOpRequest {
* @next StellarSignedTx
*/
message StellarPaymentOp {
optional string source_account = 1; // (optional) source account address
optional string destination_account = 2; // destination account address
optional StellarAssetType asset = 3; // asset involved in the operation
optional sint64 amount = 4; // amount of the given asset to pay
Expand All @@ -102,6 +104,7 @@ message StellarPaymentOp {
* @next StellarSignedTx
*/
message StellarCreateAccountOp {
optional string source_account = 1; // (optional) source account address
optional string new_account = 2; // account address to create
optional sint64 starting_balance = 3; // initial starting balance for the new account
}
Expand All @@ -113,6 +116,7 @@ message StellarCreateAccountOp {
* @next StellarSignedTx
*/
message StellarPathPaymentOp {
optional string source_account = 1; // (optional) source address
optional StellarAssetType send_asset = 2;
optional sint64 send_max = 3;
optional string destination_account = 4;
Expand All @@ -128,6 +132,7 @@ message StellarPathPaymentOp {
* @next StellarSignedTx
*/
message StellarManageOfferOp {
optional string source_account = 1; // (optional) source account address
optional StellarAssetType selling_asset = 2;
optional StellarAssetType buying_asset = 3;
optional sint64 amount = 4;
Expand All @@ -143,6 +148,7 @@ message StellarManageOfferOp {
* @next StellarSignedTx
*/
message StellarCreatePassiveOfferOp {
optional string source_account = 1; // (optional) source account address
optional StellarAssetType selling_asset = 2;
optional StellarAssetType buying_asset = 3;
optional sint64 amount = 4;
Expand All @@ -157,6 +163,7 @@ message StellarCreatePassiveOfferOp {
* @next StellarSignedTx
*/
message StellarSetOptionsOp {
optional string source_account = 1; // (optional) source account address
optional string inflation_destination_account = 2; // (optional) inflation destination address
optional uint32 clear_flags = 3;
optional uint32 set_flags = 4;
Expand All @@ -177,6 +184,7 @@ message StellarSetOptionsOp {
* @next StellarSignedTx
*/
message StellarChangeTrustOp {
optional string source_account = 1; // (optional) source account address
optional StellarAssetType asset = 2;
optional uint64 limit = 3;
}
Expand All @@ -188,6 +196,7 @@ message StellarChangeTrustOp {
* @next StellarSignedTx
*/
message StellarAllowTrustOp {
optional string source_account = 1; // (optional) source account address
optional string trusted_account = 2; // The account being allowed to hold the asset
optional uint32 asset_type = 3; // 1 = 4-character, 2 = 12-character
optional string asset_code = 4; // human-readable asset code
Expand All @@ -201,6 +210,7 @@ message StellarAllowTrustOp {
* @next StellarSignedTx
*/
message StellarAccountMergeOp {
optional string source_account = 1; // (optional) source account address
optional string destination_account = 2; // destination account address
}

Expand All @@ -211,6 +221,7 @@ message StellarAccountMergeOp {
* @next StellarSignedTx
*/
message StellarManageDataOp {
optional string source_account = 1; // (optional) source account address
optional string key = 2;
optional bytes value = 3; // 64 bytes of arbitrary data
}
Expand All @@ -222,6 +233,7 @@ message StellarManageDataOp {
* @next StellarSignedTx
*/
message StellarBumpSequenceOp {
optional string source_account = 1; // (optional) source account address
optional uint64 bump_to = 2; // new sequence number
}

Expand Down

0 comments on commit 32850a6

Please sign in to comment.