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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 56f79358358d26e68027ea6b56550b0b580a9a5d
|
|
4
|
+
data.tar.gz: bd47fe192b385a85305fee6368bb18b3f17e00a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fd275cdcdea2c430ddcb61cf58beeb971349dbabb2b13f25c068610abff901fa717ff8d020383dab3dfd0d83467de7e3b7da3ceb058a027b4e4108299fce97e6
|
|
7
|
+
data.tar.gz: 7527f920fa9448f8f6e73ac87b181b2b8bb6bf847fa1afb20a7019179aa5257c5d667668906ca6f2bfa2e429a76f9816fa83c8398fcb679e332386c1ddfd77b8
|
|
@@ -1,94 +1,50 @@
|
|
|
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
|
module Stellar
|
|
7
7
|
include XDR::Namespace
|
|
8
8
|
|
|
9
|
-
Signature = XDR::Opaque[64]
|
|
10
9
|
Hash = XDR::Opaque[32]
|
|
11
10
|
Uint256 = XDR::Opaque[32]
|
|
12
11
|
Uint32 = XDR::UnsignedInt
|
|
12
|
+
Int32 = XDR::Int
|
|
13
13
|
Uint64 = XDR::UnsignedHyper
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
autoload :SCPStatement
|
|
22
|
-
autoload :SCPEnvelope
|
|
23
|
-
autoload :SCPQuorumSet
|
|
14
|
+
Int64 = XDR::Hyper
|
|
15
|
+
autoload :CryptoKeyType
|
|
16
|
+
autoload :PublicKey
|
|
17
|
+
Signature = XDR::VarOpaque[64]
|
|
18
|
+
SignatureHint = XDR::Opaque[4]
|
|
19
|
+
NodeID = PublicKey
|
|
24
20
|
end
|
|
25
21
|
module Stellar
|
|
26
22
|
include XDR::Namespace
|
|
27
23
|
|
|
24
|
+
AccountID = PublicKey
|
|
25
|
+
Thresholds = XDR::Opaque[4]
|
|
26
|
+
String32 = XDR::String[32]
|
|
27
|
+
SequenceNumber = Uint64
|
|
28
|
+
autoload :CurrencyType
|
|
29
|
+
autoload :Currency
|
|
30
|
+
autoload :Price
|
|
31
|
+
autoload :ThresholdIndexes
|
|
28
32
|
autoload :LedgerEntryType
|
|
29
|
-
|
|
30
33
|
autoload :Signer
|
|
31
|
-
|
|
32
34
|
autoload :AccountFlags
|
|
33
|
-
|
|
34
35
|
autoload :AccountEntry
|
|
35
|
-
|
|
36
36
|
autoload :TrustLineFlags
|
|
37
|
-
|
|
38
37
|
autoload :TrustLineEntry
|
|
39
|
-
|
|
40
38
|
autoload :OfferEntryFlags
|
|
41
|
-
|
|
42
39
|
autoload :OfferEntry
|
|
43
|
-
|
|
44
40
|
autoload :LedgerEntry
|
|
45
|
-
|
|
46
|
-
module Stellar
|
|
47
|
-
include XDR::Namespace
|
|
48
|
-
|
|
49
|
-
autoload :LedgerHeader
|
|
50
|
-
|
|
51
|
-
autoload :LedgerKey
|
|
52
|
-
|
|
53
|
-
autoload :BucketEntryType
|
|
54
|
-
|
|
55
|
-
autoload :BucketEntry
|
|
56
|
-
|
|
57
|
-
autoload :TransactionSet
|
|
58
|
-
autoload :TransactionResultPair
|
|
59
|
-
autoload :TransactionResultSet
|
|
60
|
-
autoload :TransactionHistoryEntry
|
|
61
|
-
autoload :TransactionHistoryResultEntry
|
|
62
|
-
autoload :LedgerHeaderHistoryEntry
|
|
63
|
-
|
|
64
|
-
autoload :LedgerEntryChangeType
|
|
65
|
-
|
|
66
|
-
autoload :LedgerEntryChange
|
|
67
|
-
|
|
68
|
-
autoload :TransactionMeta
|
|
69
|
-
end
|
|
70
|
-
module Stellar
|
|
71
|
-
include XDR::Namespace
|
|
72
|
-
|
|
73
|
-
autoload :StellarBallotValue
|
|
74
|
-
autoload :StellarBallot
|
|
75
|
-
autoload :Error
|
|
76
|
-
autoload :Hello
|
|
77
|
-
autoload :PeerAddress
|
|
78
|
-
|
|
79
|
-
autoload :MessageType
|
|
80
|
-
|
|
81
|
-
autoload :DontHave
|
|
82
|
-
|
|
83
|
-
autoload :StellarMessage
|
|
41
|
+
autoload :EnvelopeType
|
|
84
42
|
end
|
|
85
43
|
module Stellar
|
|
86
44
|
include XDR::Namespace
|
|
87
45
|
|
|
88
46
|
autoload :DecoratedSignature
|
|
89
|
-
|
|
90
47
|
autoload :OperationType
|
|
91
|
-
|
|
92
48
|
autoload :CreateAccountOp
|
|
93
49
|
autoload :PaymentOp
|
|
94
50
|
autoload :PathPaymentOp
|
|
@@ -98,84 +54,82 @@ module Stellar
|
|
|
98
54
|
autoload :ChangeTrustOp
|
|
99
55
|
autoload :AllowTrustOp
|
|
100
56
|
autoload :Operation
|
|
101
|
-
|
|
102
57
|
autoload :MemoType
|
|
103
|
-
|
|
104
58
|
autoload :Memo
|
|
105
|
-
|
|
106
59
|
autoload :TimeBounds
|
|
107
60
|
autoload :Transaction
|
|
108
61
|
autoload :TransactionEnvelope
|
|
109
62
|
autoload :ClaimOfferAtom
|
|
110
|
-
|
|
111
63
|
autoload :CreateAccountResultCode
|
|
112
|
-
|
|
113
64
|
autoload :CreateAccountResult
|
|
114
|
-
|
|
115
65
|
autoload :PaymentResultCode
|
|
116
|
-
|
|
117
66
|
autoload :PaymentResult
|
|
118
|
-
|
|
119
67
|
autoload :PathPaymentResultCode
|
|
120
|
-
|
|
121
68
|
autoload :SimplePaymentResult
|
|
122
|
-
|
|
123
69
|
autoload :PathPaymentResult
|
|
124
|
-
|
|
125
70
|
autoload :ManageOfferResultCode
|
|
126
71
|
autoload :ManageOfferEffect
|
|
127
|
-
|
|
128
72
|
autoload :ManageOfferSuccessResult
|
|
129
|
-
|
|
130
73
|
autoload :ManageOfferResult
|
|
131
|
-
|
|
132
74
|
autoload :SetOptionsResultCode
|
|
133
|
-
|
|
134
75
|
autoload :SetOptionsResult
|
|
135
|
-
|
|
136
76
|
autoload :ChangeTrustResultCode
|
|
137
|
-
|
|
138
77
|
autoload :ChangeTrustResult
|
|
139
|
-
|
|
140
78
|
autoload :AllowTrustResultCode
|
|
141
|
-
|
|
142
79
|
autoload :AllowTrustResult
|
|
143
|
-
|
|
144
80
|
autoload :AccountMergeResultCode
|
|
145
|
-
|
|
146
81
|
autoload :AccountMergeResult
|
|
147
|
-
|
|
148
82
|
autoload :InflationResultCode
|
|
149
|
-
|
|
150
83
|
autoload :InflationPayout
|
|
151
|
-
|
|
152
84
|
autoload :InflationResult
|
|
153
|
-
|
|
154
85
|
autoload :OperationResultCode
|
|
155
|
-
|
|
156
86
|
autoload :OperationResult
|
|
157
|
-
|
|
158
87
|
autoload :TransactionResultCode
|
|
159
|
-
|
|
160
88
|
autoload :TransactionResult
|
|
161
89
|
end
|
|
162
90
|
module Stellar
|
|
163
91
|
include XDR::Namespace
|
|
164
92
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
autoload :
|
|
93
|
+
UpgradeType = XDR::VarOpaque[128]
|
|
94
|
+
autoload :StellarValue
|
|
95
|
+
autoload :LedgerHeader
|
|
96
|
+
autoload :LedgerUpgradeType
|
|
97
|
+
autoload :LedgerUpgrade
|
|
98
|
+
autoload :LedgerKey
|
|
99
|
+
autoload :BucketEntryType
|
|
100
|
+
autoload :BucketEntry
|
|
101
|
+
MAX_TX_PER_LEDGER = 5000
|
|
102
|
+
autoload :TransactionSet
|
|
103
|
+
autoload :TransactionResultPair
|
|
104
|
+
autoload :TransactionResultSet
|
|
105
|
+
autoload :TransactionHistoryEntry
|
|
106
|
+
autoload :TransactionHistoryResultEntry
|
|
107
|
+
autoload :LedgerHeaderHistoryEntry
|
|
108
|
+
autoload :LedgerEntryChangeType
|
|
109
|
+
autoload :LedgerEntryChange
|
|
110
|
+
autoload :TransactionMeta
|
|
111
|
+
end
|
|
112
|
+
module Stellar
|
|
113
|
+
include XDR::Namespace
|
|
176
114
|
|
|
177
|
-
autoload :
|
|
115
|
+
autoload :Error
|
|
116
|
+
autoload :Hello
|
|
117
|
+
autoload :PeerAddress
|
|
118
|
+
autoload :MessageType
|
|
119
|
+
autoload :DontHave
|
|
120
|
+
autoload :StellarMessage
|
|
121
|
+
end
|
|
122
|
+
module Stellar
|
|
123
|
+
include XDR::Namespace
|
|
178
124
|
end
|
|
179
125
|
module Stellar
|
|
180
126
|
include XDR::Namespace
|
|
127
|
+
|
|
128
|
+
Value = XDR::VarOpaque[]
|
|
129
|
+
autoload :SCPBallot
|
|
130
|
+
autoload :SCPStatementType
|
|
131
|
+
autoload :SCPNomination
|
|
132
|
+
autoload :SCPStatement
|
|
133
|
+
autoload :SCPEnvelope
|
|
134
|
+
autoload :SCPQuorumSet
|
|
181
135
|
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 ============================================================
|
|
@@ -15,26 +15,39 @@ require 'xdr'
|
|
|
15
15
|
# AccountID* inflationDest; // Account to vote during inflation
|
|
16
16
|
# uint32 flags; // see AccountFlags
|
|
17
17
|
#
|
|
18
|
+
# string32 homeDomain; // can be used for reverse federation and memo lookup
|
|
19
|
+
#
|
|
18
20
|
# // fields used for signatures
|
|
19
21
|
# // thresholds stores unsigned bytes: [weight of master|low|medium|high]
|
|
20
22
|
# Thresholds thresholds;
|
|
21
23
|
#
|
|
22
|
-
# string32 homeDomain; // can be used for reverse federation and memo lookup
|
|
23
|
-
#
|
|
24
24
|
# Signer signers<20>; // possible signers for this account
|
|
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 AccountEntry < XDR::Struct
|
|
38
|
+
include XDR::Namespace
|
|
39
|
+
|
|
40
|
+
autoload :Ext
|
|
41
|
+
|
|
30
42
|
attribute :account_id, AccountID
|
|
31
43
|
attribute :balance, Int64
|
|
32
44
|
attribute :seq_num, SequenceNumber
|
|
33
45
|
attribute :num_sub_entries, Uint32
|
|
34
46
|
attribute :inflation_dest, XDR::Option[AccountID]
|
|
35
47
|
attribute :flags, Uint32
|
|
36
|
-
attribute :thresholds, Thresholds
|
|
37
48
|
attribute :home_domain, String32
|
|
49
|
+
attribute :thresholds, Thresholds
|
|
38
50
|
attribute :signers, XDR::VarArray[Signer, 20]
|
|
51
|
+
attribute :ext, Ext
|
|
39
52
|
end
|
|
40
53
|
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 AccountEntry
|
|
17
|
+
class Ext < XDR::Union
|
|
18
|
+
switch_on XDR::Int, :v
|
|
19
|
+
|
|
20
|
+
switch 0
|
|
21
|
+
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|