stellar-base 0.0.18 → 0.0.19
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/generated/stellar-base-generated.rb +56 -102
- data/generated/stellar/account_entry.rb +18 -5
- data/generated/stellar/account_entry/ext.rb +24 -0
- data/generated/stellar/account_flags.rb +2 -2
- data/generated/stellar/account_merge_result.rb +2 -2
- data/generated/stellar/account_merge_result_code.rb +2 -2
- data/generated/stellar/allow_trust_op.rb +2 -2
- data/generated/stellar/allow_trust_op/currency.rb +2 -2
- data/generated/stellar/allow_trust_result.rb +2 -2
- data/generated/stellar/allow_trust_result_code.rb +2 -2
- data/generated/stellar/bucket_entry.rb +2 -2
- data/generated/stellar/bucket_entry_type.rb +2 -2
- data/generated/stellar/change_trust_op.rb +2 -2
- data/generated/stellar/change_trust_result.rb +2 -2
- data/generated/stellar/change_trust_result_code.rb +2 -2
- data/generated/stellar/claim_offer_atom.rb +2 -2
- data/generated/stellar/create_account_op.rb +2 -2
- data/generated/stellar/create_account_result.rb +2 -2
- data/generated/stellar/create_account_result_code.rb +10 -10
- data/generated/stellar/create_passive_offer_op.rb +2 -2
- data/generated/stellar/crypto_key_type.rb +20 -0
- data/generated/stellar/currency.rb +2 -2
- data/generated/stellar/currency/alpha_num.rb +2 -2
- data/generated/stellar/currency_type.rb +2 -2
- data/generated/stellar/decorated_signature.rb +6 -6
- data/generated/stellar/dont_have.rb +2 -2
- data/generated/stellar/envelope_type.rb +22 -0
- data/generated/stellar/error.rb +2 -2
- data/generated/stellar/hello.rb +10 -8
- data/generated/stellar/inflation_payout.rb +3 -3
- data/generated/stellar/inflation_result.rb +3 -3
- data/generated/stellar/inflation_result_code.rb +2 -2
- data/generated/stellar/ledger_entry.rb +2 -4
- data/generated/stellar/ledger_entry_change.rb +2 -2
- data/generated/stellar/ledger_entry_change_type.rb +2 -2
- data/generated/stellar/ledger_entry_type.rb +2 -2
- data/generated/stellar/ledger_header.rb +28 -12
- data/generated/stellar/ledger_header/ext.rb +24 -0
- data/generated/stellar/ledger_header_history_entry.rb +15 -2
- data/generated/stellar/ledger_header_history_entry/ext.rb +24 -0
- data/generated/stellar/ledger_key.rb +2 -2
- data/generated/stellar/ledger_key/account.rb +2 -2
- data/generated/stellar/ledger_key/offer.rb +2 -2
- data/generated/stellar/ledger_key/trust_line.rb +2 -2
- data/generated/stellar/ledger_upgrade.rb +27 -0
- data/generated/stellar/ledger_upgrade_type.rb +22 -0
- data/generated/stellar/manage_offer_effect.rb +2 -2
- data/generated/stellar/manage_offer_op.rb +2 -2
- data/generated/stellar/manage_offer_result.rb +2 -2
- data/generated/stellar/manage_offer_result_code.rb +25 -21
- data/generated/stellar/manage_offer_success_result.rb +2 -2
- data/generated/stellar/manage_offer_success_result/offer.rb +2 -2
- data/generated/stellar/memo.rb +2 -2
- data/generated/stellar/memo_type.rb +2 -2
- data/generated/stellar/message_type.rb +2 -2
- data/generated/stellar/offer_entry.rb +15 -2
- data/generated/stellar/offer_entry/ext.rb +24 -0
- data/generated/stellar/offer_entry_flags.rb +2 -2
- data/generated/stellar/operation.rb +4 -4
- data/generated/stellar/operation/body.rb +4 -4
- data/generated/stellar/operation_result.rb +2 -2
- data/generated/stellar/operation_result/tr.rb +2 -2
- data/generated/stellar/operation_result_code.rb +2 -2
- data/generated/stellar/operation_type.rb +2 -2
- data/generated/stellar/path_payment_op.rb +2 -2
- data/generated/stellar/path_payment_result.rb +2 -2
- data/generated/stellar/path_payment_result/success.rb +2 -2
- data/generated/stellar/path_payment_result_code.rb +23 -20
- data/generated/stellar/payment_op.rb +2 -2
- data/generated/stellar/payment_result.rb +2 -2
- data/generated/stellar/payment_result_code.rb +19 -15
- data/generated/stellar/peer_address.rb +2 -2
- data/generated/stellar/price.rb +2 -2
- data/generated/stellar/public_key.rb +23 -0
- data/generated/stellar/scp_ballot.rb +2 -2
- data/generated/stellar/scp_envelope.rb +2 -4
- data/generated/stellar/scp_nomination.rb +22 -0
- data/generated/stellar/scp_quorum_set.rb +4 -4
- data/generated/stellar/scp_statement.rb +33 -16
- data/generated/stellar/scp_statement/pledges.rb +38 -14
- data/generated/stellar/scp_statement/pledges/confirm.rb +28 -0
- data/generated/stellar/scp_statement/pledges/externalize.rb +28 -0
- data/generated/stellar/scp_statement/pledges/prepare.rb +14 -6
- data/generated/stellar/scp_statement_type.rb +10 -10
- data/generated/stellar/set_options_op.rb +11 -4
- data/generated/stellar/set_options_result.rb +2 -2
- data/generated/stellar/set_options_result_code.rb +16 -12
- data/generated/stellar/signer.rb +4 -4
- data/generated/stellar/simple_payment_result.rb +2 -2
- data/generated/stellar/stellar_message.rb +2 -2
- data/generated/stellar/stellar_value.rb +40 -0
- data/generated/stellar/stellar_value/ext.rb +24 -0
- data/generated/stellar/threshold_indexes.rb +26 -0
- data/generated/stellar/time_bounds.rb +2 -2
- data/generated/stellar/transaction.rb +17 -4
- data/generated/stellar/transaction/ext.rb +24 -0
- data/generated/stellar/transaction_envelope.rb +2 -2
- data/generated/stellar/transaction_history_entry.rb +15 -2
- data/generated/stellar/transaction_history_entry/ext.rb +24 -0
- data/generated/stellar/transaction_history_result_entry.rb +15 -2
- data/generated/stellar/transaction_history_result_entry/ext.rb +24 -0
- data/generated/stellar/transaction_meta.rb +2 -2
- data/generated/stellar/transaction_result.rb +12 -2
- data/generated/stellar/transaction_result/ext.rb +24 -0
- data/generated/stellar/transaction_result/result.rb +2 -2
- data/generated/stellar/transaction_result_code.rb +2 -2
- data/generated/stellar/transaction_result_pair.rb +2 -2
- data/generated/stellar/transaction_result_set.rb +4 -4
- data/generated/stellar/transaction_set.rb +4 -4
- data/generated/stellar/trust_line_entry.rb +15 -2
- data/generated/stellar/trust_line_entry/ext.rb +24 -0
- data/generated/stellar/trust_line_flags.rb +2 -2
- data/lib/stellar/base/version.rb +1 -1
- data/lib/stellar/currency.rb +1 -1
- data/lib/stellar/key_pair.rb +14 -5
- data/lib/stellar/operation.rb +7 -7
- data/lib/stellar/transaction.rb +15 -3
- data/lib/stellar/transaction_envelope.rb +1 -1
- data/ruby-stellar-base.gemspec +1 -1
- data/spec/lib/stellar/key_pair_spec.rb +40 -9
- data/spec/lib/stellar/transaction_envelope_spec.rb +2 -2
- data/spec/lib/stellar/transaction_spec.rb +6 -6
- data/tasks/xdr.rake +11 -8
- data/xdr/Stellar-SCP.x +87 -0
- data/xdr/Stellar-ledger-entries.x +80 -6
- data/xdr/Stellar-ledger.x +87 -8
- data/xdr/Stellar-overlay.x +3 -16
- data/xdr/Stellar-transaction.x +66 -39
- data/xdr/Stellar-types.x +17 -29
- data/xdr/StellarXDR.x +1 -1
- metadata +25 -7
- data/generated/stellar/stellar_ballot.rb +0 -22
- data/generated/stellar/stellar_ballot_value.rb +0 -22
- data/xdr/SCPXDR.x +0 -67
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This code was automatically generated using xdrgen
|
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
require 'xdr'
|
|
5
5
|
|
|
6
6
|
# === xdr source ============================================================
|
|
7
7
|
#
|
|
8
8
|
# struct
|
|
9
9
|
# {
|
|
10
|
-
#
|
|
11
|
-
# SCPBallot
|
|
10
|
+
# Hash quorumSetHash; // D
|
|
11
|
+
# SCPBallot ballot; // b
|
|
12
|
+
# SCPBallot* prepared; // p
|
|
13
|
+
# SCPBallot* preparedPrime; // p'
|
|
14
|
+
# uint32 nC; // n_c
|
|
15
|
+
# uint32 nP; // n_P
|
|
12
16
|
# }
|
|
13
17
|
#
|
|
14
18
|
# ===========================================================================
|
|
@@ -16,8 +20,12 @@ module Stellar
|
|
|
16
20
|
class SCPStatement
|
|
17
21
|
class Pledges
|
|
18
22
|
class Prepare < XDR::Struct
|
|
19
|
-
attribute :
|
|
20
|
-
attribute :
|
|
23
|
+
attribute :quorum_set_hash, Hash
|
|
24
|
+
attribute :ballot, SCPBallot
|
|
25
|
+
attribute :prepared, XDR::Option[SCPBallot]
|
|
26
|
+
attribute :prepared_prime, XDR::Option[SCPBallot]
|
|
27
|
+
attribute :n_c, Uint32
|
|
28
|
+
attribute :n_p, Uint32
|
|
21
29
|
end
|
|
22
30
|
end
|
|
23
31
|
end
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This code was automatically generated using xdrgen
|
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
require 'xdr'
|
|
5
5
|
|
|
6
6
|
# === xdr source ============================================================
|
|
7
7
|
#
|
|
8
8
|
# enum SCPStatementType
|
|
9
9
|
# {
|
|
10
|
-
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
13
|
-
#
|
|
10
|
+
# SCP_ST_PREPARE = 0,
|
|
11
|
+
# SCP_ST_CONFIRM = 1,
|
|
12
|
+
# SCP_ST_EXTERNALIZE = 2,
|
|
13
|
+
# SCP_ST_NOMINATE = 3
|
|
14
14
|
# };
|
|
15
15
|
#
|
|
16
16
|
# ===========================================================================
|
|
17
17
|
module Stellar
|
|
18
18
|
class SCPStatementType < XDR::Enum
|
|
19
|
-
member :
|
|
20
|
-
member :
|
|
21
|
-
member :
|
|
22
|
-
member :
|
|
19
|
+
member :scp_st_prepare, 0
|
|
20
|
+
member :scp_st_confirm, 1
|
|
21
|
+
member :scp_st_externalize, 2
|
|
22
|
+
member :scp_st_nominate, 3
|
|
23
23
|
|
|
24
24
|
seal
|
|
25
25
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This code was automatically generated using xdrgen
|
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
require 'xdr'
|
|
5
5
|
|
|
6
6
|
# === xdr source ============================================================
|
|
@@ -12,7 +12,11 @@ require 'xdr'
|
|
|
12
12
|
# uint32* clearFlags; // which flags to clear
|
|
13
13
|
# uint32* setFlags; // which flags to set
|
|
14
14
|
#
|
|
15
|
-
#
|
|
15
|
+
# // account threshold manipulation
|
|
16
|
+
# uint32* masterWeight; // weight of the master account
|
|
17
|
+
# uint32* lowThreshold;
|
|
18
|
+
# uint32* medThreshold;
|
|
19
|
+
# uint32* highThreshold;
|
|
16
20
|
#
|
|
17
21
|
# string32* homeDomain; // sets the home domain
|
|
18
22
|
#
|
|
@@ -27,7 +31,10 @@ module Stellar
|
|
|
27
31
|
attribute :inflation_dest, XDR::Option[AccountID]
|
|
28
32
|
attribute :clear_flags, XDR::Option[Uint32]
|
|
29
33
|
attribute :set_flags, XDR::Option[Uint32]
|
|
30
|
-
attribute :
|
|
34
|
+
attribute :master_weight, XDR::Option[Uint32]
|
|
35
|
+
attribute :low_threshold, XDR::Option[Uint32]
|
|
36
|
+
attribute :med_threshold, XDR::Option[Uint32]
|
|
37
|
+
attribute :high_threshold, XDR::Option[Uint32]
|
|
31
38
|
attribute :home_domain, XDR::Option[String32]
|
|
32
39
|
attribute :signer, XDR::Option[Signer]
|
|
33
40
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This code was automatically generated using xdrgen
|
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
require 'xdr'
|
|
5
5
|
|
|
6
6
|
# === xdr source ============================================================
|
|
@@ -13,21 +13,25 @@ require 'xdr'
|
|
|
13
13
|
# SET_OPTIONS_LOW_RESERVE = -1, // not enough funds to add a signer
|
|
14
14
|
# SET_OPTIONS_TOO_MANY_SIGNERS = -2, // max number of signers already reached
|
|
15
15
|
# SET_OPTIONS_BAD_FLAGS = -3, // invalid combination of clear/set flags
|
|
16
|
-
# SET_OPTIONS_INVALID_INFLATION = -4,
|
|
17
|
-
# SET_OPTIONS_CANT_CHANGE = -5,
|
|
18
|
-
# SET_OPTIONS_UNKNOWN_FLAG = -6
|
|
16
|
+
# SET_OPTIONS_INVALID_INFLATION = -4, // inflation account does not exist
|
|
17
|
+
# SET_OPTIONS_CANT_CHANGE = -5, // can no longer change this option
|
|
18
|
+
# SET_OPTIONS_UNKNOWN_FLAG = -6, // can't set an unknown flag
|
|
19
|
+
# SET_OPTIONS_THRESHOLD_OUT_OF_RANGE = -7, // bad value for weight/threshold
|
|
20
|
+
# SET_OPTIONS_BAD_SIGNER = -8 // signer cannot be masterkey
|
|
19
21
|
# };
|
|
20
22
|
#
|
|
21
23
|
# ===========================================================================
|
|
22
24
|
module Stellar
|
|
23
25
|
class SetOptionsResultCode < XDR::Enum
|
|
24
|
-
member :set_options_success,
|
|
25
|
-
member :set_options_low_reserve,
|
|
26
|
-
member :set_options_too_many_signers,
|
|
27
|
-
member :set_options_bad_flags,
|
|
28
|
-
member :set_options_invalid_inflation,
|
|
29
|
-
member :set_options_cant_change,
|
|
30
|
-
member :set_options_unknown_flag,
|
|
26
|
+
member :set_options_success, 0
|
|
27
|
+
member :set_options_low_reserve, -1
|
|
28
|
+
member :set_options_too_many_signers, -2
|
|
29
|
+
member :set_options_bad_flags, -3
|
|
30
|
+
member :set_options_invalid_inflation, -4
|
|
31
|
+
member :set_options_cant_change, -5
|
|
32
|
+
member :set_options_unknown_flag, -6
|
|
33
|
+
member :set_options_threshold_out_of_range, -7
|
|
34
|
+
member :set_options_bad_signer, -8
|
|
31
35
|
|
|
32
36
|
seal
|
|
33
37
|
end
|
data/generated/stellar/signer.rb
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This code was automatically generated using xdrgen
|
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
require 'xdr'
|
|
5
5
|
|
|
6
6
|
# === xdr source ============================================================
|
|
7
7
|
#
|
|
8
8
|
# struct Signer
|
|
9
9
|
# {
|
|
10
|
-
#
|
|
10
|
+
# AccountID pubKey;
|
|
11
11
|
# uint32 weight; // really only need 1byte
|
|
12
12
|
# };
|
|
13
13
|
#
|
|
14
14
|
# ===========================================================================
|
|
15
15
|
module Stellar
|
|
16
16
|
class Signer < XDR::Struct
|
|
17
|
-
attribute :pub_key,
|
|
17
|
+
attribute :pub_key, AccountID
|
|
18
18
|
attribute :weight, Uint32
|
|
19
19
|
end
|
|
20
20
|
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# This code was automatically generated using xdrgen
|
|
2
|
+
# DO NOT EDIT or your changes may be overwritten
|
|
3
|
+
|
|
4
|
+
require 'xdr'
|
|
5
|
+
|
|
6
|
+
# === xdr source ============================================================
|
|
7
|
+
#
|
|
8
|
+
# struct StellarValue
|
|
9
|
+
# {
|
|
10
|
+
# Hash txSetHash; // transaction set to apply to previous ledger
|
|
11
|
+
# uint64 closeTime; // network close time
|
|
12
|
+
#
|
|
13
|
+
# // upgrades to apply to the previous ledger (usually empty)
|
|
14
|
+
# // this is a vector of encoded 'LedgerUpgrade' so that nodes can drop
|
|
15
|
+
# // unknown steps during consensus if needed.
|
|
16
|
+
# // see notes below on 'LedgerUpgrade' for more detail
|
|
17
|
+
# UpgradeType upgrades<4>;
|
|
18
|
+
#
|
|
19
|
+
# // reserved for future use
|
|
20
|
+
# union switch (int v)
|
|
21
|
+
# {
|
|
22
|
+
# case 0:
|
|
23
|
+
# void;
|
|
24
|
+
# }
|
|
25
|
+
# ext;
|
|
26
|
+
# };
|
|
27
|
+
#
|
|
28
|
+
# ===========================================================================
|
|
29
|
+
module Stellar
|
|
30
|
+
class StellarValue < XDR::Struct
|
|
31
|
+
include XDR::Namespace
|
|
32
|
+
|
|
33
|
+
autoload :Ext
|
|
34
|
+
|
|
35
|
+
attribute :tx_set_hash, Hash
|
|
36
|
+
attribute :close_time, Uint64
|
|
37
|
+
attribute :upgrades, XDR::VarArray[UpgradeType, 4]
|
|
38
|
+
attribute :ext, Ext
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This code was automatically generated using xdrgen
|
|
2
|
+
# DO NOT EDIT or your changes may be overwritten
|
|
3
|
+
|
|
4
|
+
require 'xdr'
|
|
5
|
+
|
|
6
|
+
# === xdr source ============================================================
|
|
7
|
+
#
|
|
8
|
+
# union switch (int v)
|
|
9
|
+
# {
|
|
10
|
+
# case 0:
|
|
11
|
+
# void;
|
|
12
|
+
# }
|
|
13
|
+
#
|
|
14
|
+
# ===========================================================================
|
|
15
|
+
module Stellar
|
|
16
|
+
class StellarValue
|
|
17
|
+
class Ext < XDR::Union
|
|
18
|
+
switch_on XDR::Int, :v
|
|
19
|
+
|
|
20
|
+
switch 0
|
|
21
|
+
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# This code was automatically generated using xdrgen
|
|
2
|
+
# DO NOT EDIT or your changes may be overwritten
|
|
3
|
+
|
|
4
|
+
require 'xdr'
|
|
5
|
+
|
|
6
|
+
# === xdr source ============================================================
|
|
7
|
+
#
|
|
8
|
+
# enum ThresholdIndexes
|
|
9
|
+
# {
|
|
10
|
+
# THRESHOLD_MASTER_WEIGHT = 0,
|
|
11
|
+
# THRESHOLD_LOW = 1,
|
|
12
|
+
# THRESHOLD_MED = 2,
|
|
13
|
+
# THRESHOLD_HIGH = 3
|
|
14
|
+
# };
|
|
15
|
+
#
|
|
16
|
+
# ===========================================================================
|
|
17
|
+
module Stellar
|
|
18
|
+
class ThresholdIndexes < XDR::Enum
|
|
19
|
+
member :threshold_master_weight, 0
|
|
20
|
+
member :threshold_low, 1
|
|
21
|
+
member :threshold_med, 2
|
|
22
|
+
member :threshold_high, 3
|
|
23
|
+
|
|
24
|
+
seal
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This code was automatically generated using xdrgen
|
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
require 'xdr'
|
|
5
5
|
|
|
6
6
|
# === xdr source ============================================================
|
|
@@ -11,7 +11,7 @@ require 'xdr'
|
|
|
11
11
|
# AccountID sourceAccount;
|
|
12
12
|
#
|
|
13
13
|
# // the fee the sourceAccount will pay
|
|
14
|
-
#
|
|
14
|
+
# uint32 fee;
|
|
15
15
|
#
|
|
16
16
|
# // sequence number to consume in the account
|
|
17
17
|
# SequenceNumber seqNum;
|
|
@@ -22,16 +22,29 @@ require 'xdr'
|
|
|
22
22
|
# Memo memo;
|
|
23
23
|
#
|
|
24
24
|
# Operation operations<100>;
|
|
25
|
+
#
|
|
26
|
+
# // reserved for future use
|
|
27
|
+
# union switch (int v)
|
|
28
|
+
# {
|
|
29
|
+
# case 0:
|
|
30
|
+
# void;
|
|
31
|
+
# }
|
|
32
|
+
# ext;
|
|
25
33
|
# };
|
|
26
34
|
#
|
|
27
35
|
# ===========================================================================
|
|
28
36
|
module Stellar
|
|
29
37
|
class Transaction < XDR::Struct
|
|
38
|
+
include XDR::Namespace
|
|
39
|
+
|
|
40
|
+
autoload :Ext
|
|
41
|
+
|
|
30
42
|
attribute :source_account, AccountID
|
|
31
|
-
attribute :fee,
|
|
43
|
+
attribute :fee, Uint32
|
|
32
44
|
attribute :seq_num, SequenceNumber
|
|
33
45
|
attribute :time_bounds, XDR::Option[TimeBounds]
|
|
34
46
|
attribute :memo, Memo
|
|
35
47
|
attribute :operations, XDR::VarArray[Operation, 100]
|
|
48
|
+
attribute :ext, Ext
|
|
36
49
|
end
|
|
37
50
|
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This code was automatically generated using xdrgen
|
|
2
|
+
# DO NOT EDIT or your changes may be overwritten
|
|
3
|
+
|
|
4
|
+
require 'xdr'
|
|
5
|
+
|
|
6
|
+
# === xdr source ============================================================
|
|
7
|
+
#
|
|
8
|
+
# union switch (int v)
|
|
9
|
+
# {
|
|
10
|
+
# case 0:
|
|
11
|
+
# void;
|
|
12
|
+
# }
|
|
13
|
+
#
|
|
14
|
+
# ===========================================================================
|
|
15
|
+
module Stellar
|
|
16
|
+
class Transaction
|
|
17
|
+
class Ext < XDR::Union
|
|
18
|
+
switch_on XDR::Int, :v
|
|
19
|
+
|
|
20
|
+
switch 0
|
|
21
|
+
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This code was automatically generated using xdrgen
|
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
require 'xdr'
|
|
5
5
|
|
|
6
6
|
# === xdr source ============================================================
|
|
@@ -9,12 +9,25 @@ require 'xdr'
|
|
|
9
9
|
# {
|
|
10
10
|
# uint32 ledgerSeq;
|
|
11
11
|
# TransactionSet txSet;
|
|
12
|
+
#
|
|
13
|
+
# // reserved for future use
|
|
14
|
+
# union switch (int v)
|
|
15
|
+
# {
|
|
16
|
+
# case 0:
|
|
17
|
+
# void;
|
|
18
|
+
# }
|
|
19
|
+
# ext;
|
|
12
20
|
# };
|
|
13
21
|
#
|
|
14
22
|
# ===========================================================================
|
|
15
23
|
module Stellar
|
|
16
24
|
class TransactionHistoryEntry < XDR::Struct
|
|
25
|
+
include XDR::Namespace
|
|
26
|
+
|
|
27
|
+
autoload :Ext
|
|
28
|
+
|
|
17
29
|
attribute :ledger_seq, Uint32
|
|
18
30
|
attribute :tx_set, TransactionSet
|
|
31
|
+
attribute :ext, Ext
|
|
19
32
|
end
|
|
20
33
|
end
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This code was automatically generated using xdrgen
|
|
2
|
+
# DO NOT EDIT or your changes may be overwritten
|
|
3
|
+
|
|
4
|
+
require 'xdr'
|
|
5
|
+
|
|
6
|
+
# === xdr source ============================================================
|
|
7
|
+
#
|
|
8
|
+
# union switch (int v)
|
|
9
|
+
# {
|
|
10
|
+
# case 0:
|
|
11
|
+
# void;
|
|
12
|
+
# }
|
|
13
|
+
#
|
|
14
|
+
# ===========================================================================
|
|
15
|
+
module Stellar
|
|
16
|
+
class TransactionHistoryEntry
|
|
17
|
+
class Ext < XDR::Union
|
|
18
|
+
switch_on XDR::Int, :v
|
|
19
|
+
|
|
20
|
+
switch 0
|
|
21
|
+
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|