stellar-base 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/examples/create_account.rb +28 -0
- data/examples/low_level_transaction_post.rb +0 -6
- data/generated/stellar-base-generated.rb +13 -3
- data/generated/stellar/account_entry.rb +1 -1
- data/generated/stellar/account_flags.rb +1 -1
- data/generated/stellar/account_merge_result.rb +1 -1
- data/generated/stellar/account_merge_result_code.rb +1 -1
- data/generated/stellar/allow_trust_op.rb +1 -1
- data/generated/stellar/allow_trust_op/currency.rb +1 -1
- data/generated/stellar/allow_trust_result.rb +1 -1
- data/generated/stellar/allow_trust_result_code.rb +1 -1
- data/generated/stellar/bucket_entry.rb +1 -1
- data/generated/stellar/bucket_entry_type.rb +1 -1
- data/generated/stellar/change_trust_op.rb +1 -1
- data/generated/stellar/change_trust_result.rb +1 -1
- data/generated/stellar/change_trust_result_code.rb +1 -1
- data/generated/stellar/claim_offer_atom.rb +1 -1
- data/generated/stellar/create_account_op.rb +20 -0
- data/generated/stellar/create_account_result.rb +25 -0
- data/generated/stellar/create_account_result_code.rb +32 -0
- data/generated/stellar/create_offer_effect.rb +1 -1
- data/generated/stellar/create_offer_op.rb +1 -1
- data/generated/stellar/create_offer_result.rb +1 -1
- data/generated/stellar/create_offer_result_code.rb +1 -1
- data/generated/stellar/create_offer_success_result.rb +1 -1
- data/generated/stellar/create_offer_success_result/offer.rb +1 -1
- data/generated/stellar/currency.rb +1 -1
- data/generated/stellar/currency/alpha_num.rb +1 -1
- data/generated/stellar/currency_type.rb +1 -1
- data/generated/stellar/decorated_signature.rb +1 -1
- data/generated/stellar/dont_have.rb +1 -1
- data/generated/stellar/error.rb +1 -1
- data/generated/stellar/hello.rb +1 -1
- data/generated/stellar/inflation_payout.rb +1 -1
- data/generated/stellar/inflation_result.rb +1 -1
- data/generated/stellar/inflation_result_code.rb +1 -1
- data/generated/stellar/ledger_entry.rb +1 -1
- data/generated/stellar/ledger_entry_type.rb +1 -1
- data/generated/stellar/ledger_header.rb +1 -1
- data/generated/stellar/ledger_header_history_entry.rb +1 -1
- data/generated/stellar/ledger_key.rb +1 -1
- data/generated/stellar/ledger_key/account.rb +1 -1
- data/generated/stellar/ledger_key/offer.rb +1 -1
- data/generated/stellar/ledger_key/trust_line.rb +1 -1
- data/generated/stellar/memo.rb +11 -11
- data/generated/stellar/memo_type.rb +11 -11
- data/generated/stellar/message_type.rb +1 -1
- data/generated/stellar/offer_entry.rb +1 -1
- data/generated/stellar/operation.rb +5 -1
- data/generated/stellar/operation/body.rb +21 -13
- data/generated/stellar/operation_result.rb +5 -1
- data/generated/stellar/operation_result/tr.rb +23 -15
- data/generated/stellar/operation_result_code.rb +1 -1
- data/generated/stellar/operation_type.rb +19 -15
- data/generated/stellar/path_payment_op.rb +32 -0
- data/generated/stellar/path_payment_result.rb +34 -0
- data/generated/stellar/path_payment_result/success.rb +22 -0
- data/generated/stellar/path_payment_result_code.rb +40 -0
- data/generated/stellar/payment_op.rb +1 -9
- data/generated/stellar/payment_result.rb +1 -5
- data/generated/stellar/payment_result_code.rb +3 -11
- data/generated/stellar/peer_address.rb +1 -1
- data/generated/stellar/price.rb +1 -1
- data/generated/stellar/scp_ballot.rb +1 -1
- data/generated/stellar/scp_envelope.rb +1 -1
- data/generated/stellar/scp_quorum_set.rb +1 -1
- data/generated/stellar/scp_statement.rb +1 -1
- data/generated/stellar/scp_statement/pledges.rb +1 -1
- data/generated/stellar/scp_statement/pledges/prepare.rb +1 -1
- data/generated/stellar/scp_statement_type.rb +1 -1
- data/generated/stellar/set_options_op.rb +1 -1
- data/generated/stellar/set_options_result.rb +1 -1
- data/generated/stellar/set_options_result_code.rb +1 -1
- data/generated/stellar/signer.rb +1 -1
- data/generated/stellar/simple_payment_result.rb +1 -1
- data/generated/stellar/stellar_ballot.rb +1 -1
- data/generated/stellar/stellar_ballot_value.rb +1 -1
- data/generated/stellar/stellar_message.rb +1 -1
- data/generated/stellar/time_bounds.rb +20 -0
- data/generated/stellar/transaction.rb +5 -7
- data/generated/stellar/transaction_envelope.rb +1 -1
- data/generated/stellar/transaction_history_entry.rb +1 -1
- data/generated/stellar/transaction_history_result_entry.rb +1 -1
- data/generated/stellar/transaction_meta.rb +1 -1
- data/generated/stellar/transaction_result.rb +1 -1
- data/generated/stellar/transaction_result/result.rb +1 -1
- data/generated/stellar/transaction_result_code.rb +21 -19
- data/generated/stellar/transaction_result_pair.rb +1 -1
- data/generated/stellar/transaction_result_set.rb +1 -1
- data/generated/stellar/transaction_set.rb +1 -1
- data/generated/stellar/trust_line_entry.rb +1 -1
- data/generated/stellar/trust_line_flags.rb +1 -1
- data/lib/stellar/base/version.rb +1 -1
- data/lib/stellar/operation.rb +18 -3
- data/lib/stellar/payment_op.rb +0 -3
- data/lib/stellar/transaction.rb +7 -3
- data/spec/lib/stellar/transaction_spec.rb +1 -3
- data/xdr/Stellar-transaction.x +146 -55
- metadata +11 -3
- data/generated/stellar/payment_success_multi_result.rb +0 -20
data/generated/stellar/memo.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-05-
|
1
|
+
# Automatically generated on 2015-05-13T15:00:04-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -7,15 +7,15 @@ require 'xdr'
|
|
7
7
|
#
|
8
8
|
# union Memo switch (MemoType type)
|
9
9
|
# {
|
10
|
-
# case
|
10
|
+
# case MEMO_NONE:
|
11
11
|
# void;
|
12
|
-
# case
|
12
|
+
# case MEMO_TEXT:
|
13
13
|
# string text<28>;
|
14
|
-
# case
|
14
|
+
# case MEMO_ID:
|
15
15
|
# uint64 id;
|
16
|
-
# case
|
16
|
+
# case MEMO_HASH:
|
17
17
|
# Hash hash; // the hash of what to pull from the content server
|
18
|
-
# case
|
18
|
+
# case MEMO_RETURN:
|
19
19
|
# Hash retHash; // the hash of the tx you are rejecting
|
20
20
|
# };
|
21
21
|
#
|
@@ -24,11 +24,11 @@ module Stellar
|
|
24
24
|
class Memo < XDR::Union
|
25
25
|
switch_on MemoType, :type
|
26
26
|
|
27
|
-
switch :
|
28
|
-
switch :
|
29
|
-
switch :
|
30
|
-
switch :
|
31
|
-
switch :
|
27
|
+
switch :memo_none
|
28
|
+
switch :memo_text, :text
|
29
|
+
switch :memo_id, :id
|
30
|
+
switch :memo_hash, :hash
|
31
|
+
switch :memo_return, :ret_hash
|
32
32
|
|
33
33
|
attribute :text, XDR::String[28]
|
34
34
|
attribute :id, Uint64
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-05-
|
1
|
+
# Automatically generated on 2015-05-13T15:00:04-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -7,21 +7,21 @@ require 'xdr'
|
|
7
7
|
#
|
8
8
|
# enum MemoType
|
9
9
|
# {
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
10
|
+
# MEMO_NONE = 0,
|
11
|
+
# MEMO_TEXT = 1,
|
12
|
+
# MEMO_ID = 2,
|
13
|
+
# MEMO_HASH = 3,
|
14
|
+
# MEMO_RETURN = 4
|
15
15
|
# };
|
16
16
|
#
|
17
17
|
# ===========================================================================
|
18
18
|
module Stellar
|
19
19
|
class MemoType < XDR::Enum
|
20
|
-
member :
|
21
|
-
member :
|
22
|
-
member :
|
23
|
-
member :
|
24
|
-
member :
|
20
|
+
member :memo_none, 0
|
21
|
+
member :memo_text, 1
|
22
|
+
member :memo_id, 2
|
23
|
+
member :memo_hash, 3
|
24
|
+
member :memo_return, 4
|
25
25
|
|
26
26
|
seal
|
27
27
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-05-
|
1
|
+
# Automatically generated on 2015-05-13T15:00:04-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -14,8 +14,12 @@ require 'xdr'
|
|
14
14
|
#
|
15
15
|
# union switch (OperationType type)
|
16
16
|
# {
|
17
|
+
# case CREATE_ACCOUNT:
|
18
|
+
# CreateAccountOp createAccountOp;
|
17
19
|
# case PAYMENT:
|
18
20
|
# PaymentOp paymentOp;
|
21
|
+
# case PATH_PAYMENT:
|
22
|
+
# PathPaymentOp pathPaymentOp;
|
19
23
|
# case CREATE_OFFER:
|
20
24
|
# CreateOfferOp createOfferOp;
|
21
25
|
# case SET_OPTIONS:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-05-
|
1
|
+
# Automatically generated on 2015-05-13T15:00:04-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -7,8 +7,12 @@ require 'xdr'
|
|
7
7
|
#
|
8
8
|
# union switch (OperationType type)
|
9
9
|
# {
|
10
|
+
# case CREATE_ACCOUNT:
|
11
|
+
# CreateAccountOp createAccountOp;
|
10
12
|
# case PAYMENT:
|
11
13
|
# PaymentOp paymentOp;
|
14
|
+
# case PATH_PAYMENT:
|
15
|
+
# PathPaymentOp pathPaymentOp;
|
12
16
|
# case CREATE_OFFER:
|
13
17
|
# CreateOfferOp createOfferOp;
|
14
18
|
# case SET_OPTIONS:
|
@@ -29,20 +33,24 @@ module Stellar
|
|
29
33
|
class Body < XDR::Union
|
30
34
|
switch_on OperationType, :type
|
31
35
|
|
32
|
-
switch :
|
33
|
-
switch :
|
34
|
-
switch :
|
35
|
-
switch :
|
36
|
-
switch :
|
37
|
-
switch :
|
36
|
+
switch :create_account, :create_account_op
|
37
|
+
switch :payment, :payment_op
|
38
|
+
switch :path_payment, :path_payment_op
|
39
|
+
switch :create_offer, :create_offer_op
|
40
|
+
switch :set_options, :set_options_op
|
41
|
+
switch :change_trust, :change_trust_op
|
42
|
+
switch :allow_trust, :allow_trust_op
|
43
|
+
switch :account_merge, :destination
|
38
44
|
switch :inflation
|
39
45
|
|
40
|
-
attribute :
|
41
|
-
attribute :
|
42
|
-
attribute :
|
43
|
-
attribute :
|
44
|
-
attribute :
|
45
|
-
attribute :
|
46
|
+
attribute :create_account_op, CreateAccountOp
|
47
|
+
attribute :payment_op, PaymentOp
|
48
|
+
attribute :path_payment_op, PathPaymentOp
|
49
|
+
attribute :create_offer_op, CreateOfferOp
|
50
|
+
attribute :set_options_op, SetOptionsOp
|
51
|
+
attribute :change_trust_op, ChangeTrustOp
|
52
|
+
attribute :allow_trust_op, AllowTrustOp
|
53
|
+
attribute :destination, Uint256
|
46
54
|
end
|
47
55
|
end
|
48
56
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-05-
|
1
|
+
# Automatically generated on 2015-05-13T15:00:04-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -10,8 +10,12 @@ require 'xdr'
|
|
10
10
|
# case opINNER:
|
11
11
|
# union switch (OperationType type)
|
12
12
|
# {
|
13
|
+
# case CREATE_ACCOUNT:
|
14
|
+
# CreateAccountResult createAccountResult;
|
13
15
|
# case PAYMENT:
|
14
16
|
# PaymentResult paymentResult;
|
17
|
+
# case PATH_PAYMENT:
|
18
|
+
# PathPaymentResult pathPaymentResult;
|
15
19
|
# case CREATE_OFFER:
|
16
20
|
# CreateOfferResult createOfferResult;
|
17
21
|
# case SET_OPTIONS:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-05-
|
1
|
+
# Automatically generated on 2015-05-13T15:00:04-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -7,8 +7,12 @@ require 'xdr'
|
|
7
7
|
#
|
8
8
|
# union switch (OperationType type)
|
9
9
|
# {
|
10
|
+
# case CREATE_ACCOUNT:
|
11
|
+
# CreateAccountResult createAccountResult;
|
10
12
|
# case PAYMENT:
|
11
13
|
# PaymentResult paymentResult;
|
14
|
+
# case PATH_PAYMENT:
|
15
|
+
# PathPaymentResult pathPaymentResult;
|
12
16
|
# case CREATE_OFFER:
|
13
17
|
# CreateOfferResult createOfferResult;
|
14
18
|
# case SET_OPTIONS:
|
@@ -29,21 +33,25 @@ module Stellar
|
|
29
33
|
class Tr < XDR::Union
|
30
34
|
switch_on OperationType, :type
|
31
35
|
|
32
|
-
switch :
|
33
|
-
switch :
|
34
|
-
switch :
|
35
|
-
switch :
|
36
|
-
switch :
|
37
|
-
switch :
|
38
|
-
switch :
|
36
|
+
switch :create_account, :create_account_result
|
37
|
+
switch :payment, :payment_result
|
38
|
+
switch :path_payment, :path_payment_result
|
39
|
+
switch :create_offer, :create_offer_result
|
40
|
+
switch :set_options, :set_options_result
|
41
|
+
switch :change_trust, :change_trust_result
|
42
|
+
switch :allow_trust, :allow_trust_result
|
43
|
+
switch :account_merge, :account_merge_result
|
44
|
+
switch :inflation, :inflation_result
|
39
45
|
|
40
|
-
attribute :
|
41
|
-
attribute :
|
42
|
-
attribute :
|
43
|
-
attribute :
|
44
|
-
attribute :
|
45
|
-
attribute :
|
46
|
-
attribute :
|
46
|
+
attribute :create_account_result, CreateAccountResult
|
47
|
+
attribute :payment_result, PaymentResult
|
48
|
+
attribute :path_payment_result, PathPaymentResult
|
49
|
+
attribute :create_offer_result, CreateOfferResult
|
50
|
+
attribute :set_options_result, SetOptionsResult
|
51
|
+
attribute :change_trust_result, ChangeTrustResult
|
52
|
+
attribute :allow_trust_result, AllowTrustResult
|
53
|
+
attribute :account_merge_result, AccountMergeResult
|
54
|
+
attribute :inflation_result, InflationResult
|
47
55
|
end
|
48
56
|
end
|
49
57
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-05-
|
1
|
+
# Automatically generated on 2015-05-13T15:00:04-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -7,25 +7,29 @@ require 'xdr'
|
|
7
7
|
#
|
8
8
|
# enum OperationType
|
9
9
|
# {
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
10
|
+
# CREATE_ACCOUNT = 0,
|
11
|
+
# PAYMENT = 1,
|
12
|
+
# PATH_PAYMENT = 2,
|
13
|
+
# CREATE_OFFER = 3,
|
14
|
+
# SET_OPTIONS = 4,
|
15
|
+
# CHANGE_TRUST = 5,
|
16
|
+
# ALLOW_TRUST = 6,
|
17
|
+
# ACCOUNT_MERGE = 7,
|
18
|
+
# INFLATION = 8
|
17
19
|
# };
|
18
20
|
#
|
19
21
|
# ===========================================================================
|
20
22
|
module Stellar
|
21
23
|
class OperationType < XDR::Enum
|
22
|
-
member :
|
23
|
-
member :
|
24
|
-
member :
|
25
|
-
member :
|
26
|
-
member :
|
27
|
-
member :
|
28
|
-
member :
|
24
|
+
member :create_account, 0
|
25
|
+
member :payment, 1
|
26
|
+
member :path_payment, 2
|
27
|
+
member :create_offer, 3
|
28
|
+
member :set_options, 4
|
29
|
+
member :change_trust, 5
|
30
|
+
member :allow_trust, 6
|
31
|
+
member :account_merge, 7
|
32
|
+
member :inflation, 8
|
29
33
|
|
30
34
|
seal
|
31
35
|
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Automatically generated on 2015-05-13T15:00:04-07:00
|
2
|
+
# DO NOT EDIT or your changes may be overwritten
|
3
|
+
|
4
|
+
require 'xdr'
|
5
|
+
|
6
|
+
# === xdr source ============================================================
|
7
|
+
#
|
8
|
+
# struct PathPaymentOp
|
9
|
+
# {
|
10
|
+
# Currency sendCurrency; // currency we pay with
|
11
|
+
# int64 sendMax; // the maximum amount of sendCurrency to
|
12
|
+
# // send (excluding fees).
|
13
|
+
# // The operation will fail if can't be met
|
14
|
+
#
|
15
|
+
# AccountID destination; // recipient of the payment
|
16
|
+
# Currency destCurrency; // what they end up with
|
17
|
+
# int64 destAmount; // amount they end up with
|
18
|
+
#
|
19
|
+
# Currency path<5>; // additional hops it must go through to get there
|
20
|
+
# };
|
21
|
+
#
|
22
|
+
# ===========================================================================
|
23
|
+
module Stellar
|
24
|
+
class PathPaymentOp < XDR::Struct
|
25
|
+
attribute :send_currency, Currency
|
26
|
+
attribute :send_max, Int64
|
27
|
+
attribute :destination, AccountID
|
28
|
+
attribute :dest_currency, Currency
|
29
|
+
attribute :dest_amount, Int64
|
30
|
+
attribute :path, XDR::VarArray[Currency, 5]
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Automatically generated on 2015-05-13T15:00:04-07:00
|
2
|
+
# DO NOT EDIT or your changes may be overwritten
|
3
|
+
|
4
|
+
require 'xdr'
|
5
|
+
|
6
|
+
# === xdr source ============================================================
|
7
|
+
#
|
8
|
+
# union PathPaymentResult switch (PathPaymentResultCode code)
|
9
|
+
# {
|
10
|
+
# case PATH_PAYMENT_SUCCESS:
|
11
|
+
# struct
|
12
|
+
# {
|
13
|
+
# ClaimOfferAtom offers<>;
|
14
|
+
# SimplePaymentResult last;
|
15
|
+
# } success;
|
16
|
+
# default:
|
17
|
+
# void;
|
18
|
+
# };
|
19
|
+
#
|
20
|
+
# ===========================================================================
|
21
|
+
module Stellar
|
22
|
+
class PathPaymentResult < XDR::Union
|
23
|
+
include XDR::Namespace
|
24
|
+
|
25
|
+
autoload :Success
|
26
|
+
|
27
|
+
switch_on PathPaymentResultCode, :code
|
28
|
+
|
29
|
+
switch :path_payment_success, :success
|
30
|
+
switch :default
|
31
|
+
|
32
|
+
attribute :success, Success
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Automatically generated on 2015-05-13T15:00:04-07:00
|
2
|
+
# DO NOT EDIT or your changes may be overwritten
|
3
|
+
|
4
|
+
require 'xdr'
|
5
|
+
|
6
|
+
# === xdr source ============================================================
|
7
|
+
#
|
8
|
+
# struct
|
9
|
+
# {
|
10
|
+
# ClaimOfferAtom offers<>;
|
11
|
+
# SimplePaymentResult last;
|
12
|
+
# }
|
13
|
+
#
|
14
|
+
# ===========================================================================
|
15
|
+
module Stellar
|
16
|
+
class PathPaymentResult
|
17
|
+
class Success < XDR::Struct
|
18
|
+
attribute :offers, XDR::VarArray[ClaimOfferAtom]
|
19
|
+
attribute :last, SimplePaymentResult
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# Automatically generated on 2015-05-13T15:00:04-07:00
|
2
|
+
# DO NOT EDIT or your changes may be overwritten
|
3
|
+
|
4
|
+
require 'xdr'
|
5
|
+
|
6
|
+
# === xdr source ============================================================
|
7
|
+
#
|
8
|
+
# enum PathPaymentResultCode
|
9
|
+
# {
|
10
|
+
# // codes considered as "success" for the operation
|
11
|
+
# PATH_PAYMENT_SUCCESS = 0, // success
|
12
|
+
#
|
13
|
+
# // codes considered as "failure" for the operation
|
14
|
+
# PATH_PAYMENT_MALFORMED = -1, // bad input
|
15
|
+
# PATH_PAYMENT_UNDERFUNDED = -2, // not enough funds in source account
|
16
|
+
# PATH_PAYMENT_NO_DESTINATION = -3, // destination account does not exist
|
17
|
+
# PATH_PAYMENT_NO_TRUST = -4, // destination missing a trust line for currency
|
18
|
+
# PATH_PAYMENT_NOT_AUTHORIZED =
|
19
|
+
# -5, // destination not authorized to hold currency
|
20
|
+
# PATH_PAYMENT_LINE_FULL = -6, // destination would go above their limit
|
21
|
+
# PATH_PAYMENT_TOO_FEW_OFFERS = -7, // not enough offers to satisfy path
|
22
|
+
# PATH_PAYMENT_OVER_SENDMAX = -8 // could not satisfy sendmax
|
23
|
+
# };
|
24
|
+
#
|
25
|
+
# ===========================================================================
|
26
|
+
module Stellar
|
27
|
+
class PathPaymentResultCode < XDR::Enum
|
28
|
+
member :path_payment_success, 0
|
29
|
+
member :path_payment_malformed, -1
|
30
|
+
member :path_payment_underfunded, -2
|
31
|
+
member :path_payment_no_destination, -3
|
32
|
+
member :path_payment_no_trust, -4
|
33
|
+
member :path_payment_not_authorized, -5
|
34
|
+
member :path_payment_line_full, -6
|
35
|
+
member :path_payment_too_few_offers, -7
|
36
|
+
member :path_payment_over_sendmax, -8
|
37
|
+
|
38
|
+
seal
|
39
|
+
end
|
40
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-05-
|
1
|
+
# Automatically generated on 2015-05-13T15:00:04-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -10,12 +10,6 @@ require 'xdr'
|
|
10
10
|
# AccountID destination; // recipient of the payment
|
11
11
|
# Currency currency; // what they end up with
|
12
12
|
# int64 amount; // amount they end up with
|
13
|
-
#
|
14
|
-
# // payment over path
|
15
|
-
# Currency path<5>; // what hops it must go through to get there
|
16
|
-
# int64 sendMax; // the maximum amount of the source currency (==path[0]) to
|
17
|
-
# // send (excluding fees).
|
18
|
-
# // The operation will fail if can't be met
|
19
13
|
# };
|
20
14
|
#
|
21
15
|
# ===========================================================================
|
@@ -24,7 +18,5 @@ module Stellar
|
|
24
18
|
attribute :destination, AccountID
|
25
19
|
attribute :currency, Currency
|
26
20
|
attribute :amount, Int64
|
27
|
-
attribute :path, XDR::VarArray[Currency, 5]
|
28
|
-
attribute :send_max, Int64
|
29
21
|
end
|
30
22
|
end
|