auction-ruby-base 0.1.1
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 +7 -0
- data/.gitignore +15 -0
- data/.travis.yml +15 -0
- data/.yardopts +8 -0
- data/CHANGELOG.md +58 -0
- data/CONTRIBUTING.md +48 -0
- data/Gemfile +15 -0
- data/Guardfile +5 -0
- data/LICENSE.txt +202 -0
- data/README.md +83 -0
- data/Rakefile +4 -0
- data/auction-ruby-base.gemspec +35 -0
- data/examples/create_account.rb +26 -0
- data/examples/low_level_transaction_post.rb +46 -0
- data/examples/mid_level_transaction_post.rb +33 -0
- data/examples/non_native_payment.rb +60 -0
- data/examples/offer.rb +75 -0
- data/examples/transaction_merge.rb +23 -0
- data/generated/stellar-base-generated.rb +174 -0
- data/generated/stellar/account_entry.rb +55 -0
- data/generated/stellar/account_entry/ext.rb +24 -0
- data/generated/stellar/account_flags.rb +31 -0
- data/generated/stellar/account_merge_result.rb +26 -0
- data/generated/stellar/account_merge_result_code.rb +30 -0
- data/generated/stellar/affirm_fail_op.rb +22 -0
- data/generated/stellar/affirm_fail_result.rb +25 -0
- data/generated/stellar/affirm_fail_result_code.rb +22 -0
- data/generated/stellar/affirm_pass_op.rb +24 -0
- data/generated/stellar/affirm_pass_result.rb +25 -0
- data/generated/stellar/affirm_pass_result_code.rb +22 -0
- data/generated/stellar/allow_trust_op.rb +38 -0
- data/generated/stellar/allow_trust_op/asset.rb +33 -0
- data/generated/stellar/allow_trust_result.rb +25 -0
- data/generated/stellar/allow_trust_result_code.rb +31 -0
- data/generated/stellar/asset.rb +47 -0
- data/generated/stellar/asset/alpha_num12.rb +22 -0
- data/generated/stellar/asset/alpha_num4.rb +22 -0
- data/generated/stellar/asset_type.rb +24 -0
- data/generated/stellar/auth.rb +20 -0
- data/generated/stellar/auth_cert.rb +22 -0
- data/generated/stellar/authenticated_message.rb +32 -0
- data/generated/stellar/authenticated_message/v0.rb +24 -0
- data/generated/stellar/bucket_entry.rb +28 -0
- data/generated/stellar/bucket_entry_type.rb +22 -0
- data/generated/stellar/change_trust_op.rb +22 -0
- data/generated/stellar/change_trust_result.rb +25 -0
- data/generated/stellar/change_trust_result_code.rb +31 -0
- data/generated/stellar/claim_offer_atom.rb +33 -0
- 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_bid_op.rb +20 -0
- data/generated/stellar/create_bid_result.rb +25 -0
- data/generated/stellar/create_bid_result_code.rb +22 -0
- data/generated/stellar/create_lot_op.rb +46 -0
- data/generated/stellar/create_lot_result.rb +25 -0
- data/generated/stellar/create_lot_result_code.rb +22 -0
- data/generated/stellar/create_passive_offer_op.rb +24 -0
- data/generated/stellar/crypto_key_type.rb +20 -0
- data/generated/stellar/curve25519_public.rb +18 -0
- data/generated/stellar/curve25519_secret.rb +18 -0
- data/generated/stellar/decorated_signature.rb +20 -0
- data/generated/stellar/dont_have.rb +20 -0
- data/generated/stellar/envelope_type.rb +24 -0
- data/generated/stellar/error.rb +20 -0
- data/generated/stellar/error_code.rb +28 -0
- data/generated/stellar/hello.rb +34 -0
- data/generated/stellar/hmac_sha256_key.rb +18 -0
- data/generated/stellar/hmac_sha256_mac.rb +18 -0
- data/generated/stellar/inflation_payout.rb +20 -0
- data/generated/stellar/inflation_result.rb +26 -0
- data/generated/stellar/inflation_result_code.rb +24 -0
- data/generated/stellar/ip_addr_type.rb +22 -0
- data/generated/stellar/ledger_entry.rb +52 -0
- data/generated/stellar/ledger_entry/data.rb +49 -0
- data/generated/stellar/ledger_entry/ext.rb +24 -0
- data/generated/stellar/ledger_entry_change.rb +35 -0
- data/generated/stellar/ledger_entry_change_type.rb +26 -0
- data/generated/stellar/ledger_entry_type.rb +32 -0
- data/generated/stellar/ledger_header.rb +69 -0
- data/generated/stellar/ledger_header/ext.rb +24 -0
- data/generated/stellar/ledger_header_history_entry.rb +33 -0
- data/generated/stellar/ledger_header_history_entry/ext.rb +24 -0
- data/generated/stellar/ledger_key.rb +87 -0
- data/generated/stellar/ledger_key/account.rb +20 -0
- data/generated/stellar/ledger_key/lot.rb +22 -0
- data/generated/stellar/ledger_key/message.rb +22 -0
- data/generated/stellar/ledger_key/offer.rb +22 -0
- data/generated/stellar/ledger_key/participant.rb +22 -0
- data/generated/stellar/ledger_key/proof.rb +22 -0
- data/generated/stellar/ledger_key/trust_line.rb +22 -0
- data/generated/stellar/ledger_scp_messages.rb +20 -0
- data/generated/stellar/ledger_upgrade.rb +31 -0
- data/generated/stellar/ledger_upgrade_type.rb +24 -0
- data/generated/stellar/lot_branch.rb +21 -0
- data/generated/stellar/lot_entry.rb +64 -0
- data/generated/stellar/lot_entry/ext.rb +24 -0
- data/generated/stellar/lot_type.rb +21 -0
- data/generated/stellar/manage_offer_effect.rb +24 -0
- data/generated/stellar/manage_offer_op.rb +28 -0
- data/generated/stellar/manage_offer_result.rb +26 -0
- data/generated/stellar/manage_offer_result_code.rb +50 -0
- data/generated/stellar/manage_offer_success_result.rb +34 -0
- data/generated/stellar/manage_offer_success_result/offer.rb +30 -0
- data/generated/stellar/memo.rb +38 -0
- data/generated/stellar/memo_type.rb +28 -0
- data/generated/stellar/message_entry.rb +38 -0
- data/generated/stellar/message_entry/ext.rb +24 -0
- data/generated/stellar/message_type.rb +51 -0
- data/generated/stellar/offer_entry.rb +49 -0
- data/generated/stellar/offer_entry/ext.rb +24 -0
- data/generated/stellar/offer_entry_flags.rb +21 -0
- data/generated/stellar/operation.rb +65 -0
- data/generated/stellar/operation/body.rb +88 -0
- data/generated/stellar/operation_meta.rb +18 -0
- data/generated/stellar/operation_result.rb +67 -0
- data/generated/stellar/operation_result/tr.rb +89 -0
- data/generated/stellar/operation_result_code.rb +25 -0
- data/generated/stellar/operation_type.rb +52 -0
- data/generated/stellar/participant_entry.rb +39 -0
- data/generated/stellar/participant_entry/ext.rb +24 -0
- data/generated/stellar/participant_state.rb +25 -0
- data/generated/stellar/path_payment_op.rb +32 -0
- data/generated/stellar/path_payment_result.rb +38 -0
- data/generated/stellar/path_payment_result/success.rb +22 -0
- data/generated/stellar/path_payment_result_code.rb +47 -0
- data/generated/stellar/payment_op.rb +22 -0
- data/generated/stellar/payment_result.rb +25 -0
- data/generated/stellar/payment_result_code.rb +41 -0
- data/generated/stellar/peer_address.rb +33 -0
- data/generated/stellar/peer_address/ip.rb +29 -0
- data/generated/stellar/price.rb +20 -0
- data/generated/stellar/proof_entry.rb +42 -0
- data/generated/stellar/proof_entry/ext.rb +24 -0
- data/generated/stellar/provide_proof_op.rb +24 -0
- data/generated/stellar/provide_proof_result.rb +25 -0
- data/generated/stellar/provide_proof_result_code.rb +22 -0
- data/generated/stellar/public_key.rb +23 -0
- data/generated/stellar/register_participant_op.rb +22 -0
- data/generated/stellar/register_participant_result.rb +25 -0
- data/generated/stellar/register_participant_result_code.rb +22 -0
- data/generated/stellar/scp_ballot.rb +20 -0
- data/generated/stellar/scp_envelope.rb +20 -0
- data/generated/stellar/scp_history_entry.rb +23 -0
- data/generated/stellar/scp_history_entry_v0.rb +20 -0
- data/generated/stellar/scp_nomination.rb +22 -0
- data/generated/stellar/scp_quorum_set.rb +22 -0
- data/generated/stellar/scp_statement.rb +58 -0
- data/generated/stellar/scp_statement/pledges.rb +63 -0
- data/generated/stellar/scp_statement/pledges/confirm.rb +30 -0
- data/generated/stellar/scp_statement/pledges/externalize.rb +26 -0
- data/generated/stellar/scp_statement/pledges/prepare.rb +32 -0
- data/generated/stellar/scp_statement_type.rb +26 -0
- data/generated/stellar/send_message_op.rb +22 -0
- data/generated/stellar/send_message_result.rb +25 -0
- data/generated/stellar/send_message_result_code.rb +22 -0
- data/generated/stellar/set_options_op.rb +41 -0
- data/generated/stellar/set_options_result.rb +25 -0
- data/generated/stellar/set_options_result_code.rb +40 -0
- data/generated/stellar/signer.rb +20 -0
- data/generated/stellar/simple_payment_result.rb +22 -0
- data/generated/stellar/stellar_message.rb +74 -0
- data/generated/stellar/stellar_value.rb +41 -0
- data/generated/stellar/stellar_value/ext.rb +24 -0
- data/generated/stellar/threshold_indexes.rb +26 -0
- data/generated/stellar/time_bounds.rb +20 -0
- data/generated/stellar/transaction.rb +50 -0
- data/generated/stellar/transaction/ext.rb +24 -0
- data/generated/stellar/transaction_envelope.rb +20 -0
- data/generated/stellar/transaction_history_entry.rb +33 -0
- data/generated/stellar/transaction_history_entry/ext.rb +24 -0
- data/generated/stellar/transaction_history_result_entry.rb +33 -0
- data/generated/stellar/transaction_history_result_entry/ext.rb +24 -0
- data/generated/stellar/transaction_meta.rb +23 -0
- data/generated/stellar/transaction_result.rb +43 -0
- data/generated/stellar/transaction_result/ext.rb +24 -0
- data/generated/stellar/transaction_result/result.rb +30 -0
- data/generated/stellar/transaction_result_code.rb +45 -0
- data/generated/stellar/transaction_result_pair.rb +20 -0
- data/generated/stellar/transaction_result_set.rb +18 -0
- data/generated/stellar/transaction_set.rb +20 -0
- data/generated/stellar/trust_line_entry.rb +41 -0
- data/generated/stellar/trust_line_entry/ext.rb +24 -0
- data/generated/stellar/trust_line_flags.rb +21 -0
- data/lib/stellar-base.rb +33 -0
- data/lib/stellar/account_flags.rb +28 -0
- data/lib/stellar/asset.rb +69 -0
- data/lib/stellar/base.rb +1 -0
- data/lib/stellar/base/version.rb +5 -0
- data/lib/stellar/convert.rb +32 -0
- data/lib/stellar/key_pair.rb +112 -0
- data/lib/stellar/networks.rb +45 -0
- data/lib/stellar/operation.rb +384 -0
- data/lib/stellar/path_payment_result.rb +17 -0
- data/lib/stellar/price.rb +32 -0
- data/lib/stellar/thresholds.rb +39 -0
- data/lib/stellar/transaction.rb +205 -0
- data/lib/stellar/transaction_envelope.rb +32 -0
- data/lib/stellar/util/continued_fraction.rb +96 -0
- data/lib/stellar/util/strkey.rb +43 -0
- data/spec/lib/stellar/account_flags_spec.rb +19 -0
- data/spec/lib/stellar/asset_spec.rb +45 -0
- data/spec/lib/stellar/convert_spec.rb +61 -0
- data/spec/lib/stellar/key_pair_spec.rb +238 -0
- data/spec/lib/stellar/networks_spec.rb +77 -0
- data/spec/lib/stellar/operation_spec.rb +13 -0
- data/spec/lib/stellar/path_payment_result_spec.rb +95 -0
- data/spec/lib/stellar/price_spec.rb +34 -0
- data/spec/lib/stellar/thresholds_spec.rb +62 -0
- data/spec/lib/stellar/transaction_envelope_spec.rb +93 -0
- data/spec/lib/stellar/transaction_spec.rb +83 -0
- data/spec/lib/stellar/util/strkey_spec.rb +46 -0
- data/spec/spec_helper.rb +16 -0
- data/spec/support/matchers/be_strkey.rb +9 -0
- data/spec/support/matchers/eq_bytes.rb +5 -0
- data/spec/support/matchers/have_length.rb +5 -0
- data/tasks/rspec.rake +6 -0
- data/tasks/travis.rake +1 -0
- data/tasks/xdr.rake +50 -0
- data/xdr/Stellar-SCP.x +86 -0
- data/xdr/Stellar-ledger-entries.x +351 -0
- data/xdr/Stellar-ledger.x +288 -0
- data/xdr/Stellar-overlay.x +146 -0
- data/xdr/Stellar-transaction.x +936 -0
- data/xdr/Stellar-types.x +55 -0
- metadata +495 -0
|
@@ -0,0 +1,33 @@
|
|
|
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 LedgerHeaderHistoryEntry
|
|
9
|
+
# {
|
|
10
|
+
# Hash hash;
|
|
11
|
+
# LedgerHeader header;
|
|
12
|
+
#
|
|
13
|
+
# // reserved for future use
|
|
14
|
+
# union switch (int v)
|
|
15
|
+
# {
|
|
16
|
+
# case 0:
|
|
17
|
+
# void;
|
|
18
|
+
# }
|
|
19
|
+
# ext;
|
|
20
|
+
# };
|
|
21
|
+
#
|
|
22
|
+
# ===========================================================================
|
|
23
|
+
module Stellar
|
|
24
|
+
class LedgerHeaderHistoryEntry < XDR::Struct
|
|
25
|
+
include XDR::Namespace
|
|
26
|
+
|
|
27
|
+
autoload :Ext
|
|
28
|
+
|
|
29
|
+
attribute :hash, Hash
|
|
30
|
+
attribute :header, LedgerHeader
|
|
31
|
+
attribute :ext, Ext
|
|
32
|
+
end
|
|
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 LedgerHeaderHistoryEntry
|
|
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,87 @@
|
|
|
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 LedgerKey switch (LedgerEntryType type)
|
|
9
|
+
# {
|
|
10
|
+
# case ACCOUNT:
|
|
11
|
+
# struct
|
|
12
|
+
# {
|
|
13
|
+
# AccountID accountID;
|
|
14
|
+
# } account;
|
|
15
|
+
#
|
|
16
|
+
# case TRUSTLINE:
|
|
17
|
+
# struct
|
|
18
|
+
# {
|
|
19
|
+
# AccountID accountID;
|
|
20
|
+
# Asset asset;
|
|
21
|
+
# } trustLine;
|
|
22
|
+
#
|
|
23
|
+
# case OFFER:
|
|
24
|
+
# struct
|
|
25
|
+
# {
|
|
26
|
+
# AccountID sellerID;
|
|
27
|
+
# uint64 offerID;
|
|
28
|
+
# } offer;
|
|
29
|
+
# case LOT:
|
|
30
|
+
# struct
|
|
31
|
+
# {
|
|
32
|
+
# AccountID organizerID;
|
|
33
|
+
# uint64 lotID;
|
|
34
|
+
# } lot;
|
|
35
|
+
# case PARTICIPANT:
|
|
36
|
+
# struct
|
|
37
|
+
# {
|
|
38
|
+
# AccountID accountID;
|
|
39
|
+
# uint64 lotID;
|
|
40
|
+
# } participant;
|
|
41
|
+
# case MESSAGE:
|
|
42
|
+
# struct
|
|
43
|
+
# {
|
|
44
|
+
# AccountID accountID;
|
|
45
|
+
# uint64 messageID;
|
|
46
|
+
# } message;
|
|
47
|
+
# case PROOF:
|
|
48
|
+
# struct
|
|
49
|
+
# {
|
|
50
|
+
# AccountID accountID;
|
|
51
|
+
# uint64 proofID;
|
|
52
|
+
# } proof;
|
|
53
|
+
#
|
|
54
|
+
# };
|
|
55
|
+
#
|
|
56
|
+
# ===========================================================================
|
|
57
|
+
module Stellar
|
|
58
|
+
class LedgerKey < XDR::Union
|
|
59
|
+
include XDR::Namespace
|
|
60
|
+
|
|
61
|
+
autoload :Account
|
|
62
|
+
autoload :TrustLine
|
|
63
|
+
autoload :Offer
|
|
64
|
+
autoload :Lot
|
|
65
|
+
autoload :Participant
|
|
66
|
+
autoload :Message
|
|
67
|
+
autoload :Proof
|
|
68
|
+
|
|
69
|
+
switch_on LedgerEntryType, :type
|
|
70
|
+
|
|
71
|
+
switch :account, :account
|
|
72
|
+
switch :trustline, :trust_line
|
|
73
|
+
switch :offer, :offer
|
|
74
|
+
switch :lot, :lot
|
|
75
|
+
switch :participant, :participant
|
|
76
|
+
switch :message, :message
|
|
77
|
+
switch :proof, :proof
|
|
78
|
+
|
|
79
|
+
attribute :account, Account
|
|
80
|
+
attribute :trust_line, TrustLine
|
|
81
|
+
attribute :offer, Offer
|
|
82
|
+
attribute :lot, Lot
|
|
83
|
+
attribute :participant, Participant
|
|
84
|
+
attribute :message, Message
|
|
85
|
+
attribute :proof, Proof
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
|
9
|
+
# {
|
|
10
|
+
# AccountID accountID;
|
|
11
|
+
# }
|
|
12
|
+
#
|
|
13
|
+
# ===========================================================================
|
|
14
|
+
module Stellar
|
|
15
|
+
class LedgerKey
|
|
16
|
+
class Account < XDR::Struct
|
|
17
|
+
attribute :account_id, AccountID
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
9
|
+
# {
|
|
10
|
+
# AccountID organizerID;
|
|
11
|
+
# uint64 lotID;
|
|
12
|
+
# }
|
|
13
|
+
#
|
|
14
|
+
# ===========================================================================
|
|
15
|
+
module Stellar
|
|
16
|
+
class LedgerKey
|
|
17
|
+
class Lot < XDR::Struct
|
|
18
|
+
attribute :organizer_id, AccountID
|
|
19
|
+
attribute :lot_id, Uint64
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
9
|
+
# {
|
|
10
|
+
# AccountID accountID;
|
|
11
|
+
# uint64 messageID;
|
|
12
|
+
# }
|
|
13
|
+
#
|
|
14
|
+
# ===========================================================================
|
|
15
|
+
module Stellar
|
|
16
|
+
class LedgerKey
|
|
17
|
+
class Message < XDR::Struct
|
|
18
|
+
attribute :account_id, AccountID
|
|
19
|
+
attribute :message_id, Uint64
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
9
|
+
# {
|
|
10
|
+
# AccountID sellerID;
|
|
11
|
+
# uint64 offerID;
|
|
12
|
+
# }
|
|
13
|
+
#
|
|
14
|
+
# ===========================================================================
|
|
15
|
+
module Stellar
|
|
16
|
+
class LedgerKey
|
|
17
|
+
class Offer < XDR::Struct
|
|
18
|
+
attribute :seller_id, AccountID
|
|
19
|
+
attribute :offer_id, Uint64
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
9
|
+
# {
|
|
10
|
+
# AccountID accountID;
|
|
11
|
+
# uint64 lotID;
|
|
12
|
+
# }
|
|
13
|
+
#
|
|
14
|
+
# ===========================================================================
|
|
15
|
+
module Stellar
|
|
16
|
+
class LedgerKey
|
|
17
|
+
class Participant < XDR::Struct
|
|
18
|
+
attribute :account_id, AccountID
|
|
19
|
+
attribute :lot_id, Uint64
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
9
|
+
# {
|
|
10
|
+
# AccountID accountID;
|
|
11
|
+
# uint64 proofID;
|
|
12
|
+
# }
|
|
13
|
+
#
|
|
14
|
+
# ===========================================================================
|
|
15
|
+
module Stellar
|
|
16
|
+
class LedgerKey
|
|
17
|
+
class Proof < XDR::Struct
|
|
18
|
+
attribute :account_id, AccountID
|
|
19
|
+
attribute :proof_id, Uint64
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
9
|
+
# {
|
|
10
|
+
# AccountID accountID;
|
|
11
|
+
# Asset asset;
|
|
12
|
+
# }
|
|
13
|
+
#
|
|
14
|
+
# ===========================================================================
|
|
15
|
+
module Stellar
|
|
16
|
+
class LedgerKey
|
|
17
|
+
class TrustLine < XDR::Struct
|
|
18
|
+
attribute :account_id, AccountID
|
|
19
|
+
attribute :asset, Asset
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
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 LedgerSCPMessages
|
|
9
|
+
# {
|
|
10
|
+
# uint32 ledgerSeq;
|
|
11
|
+
# SCPEnvelope messages<>;
|
|
12
|
+
# };
|
|
13
|
+
#
|
|
14
|
+
# ===========================================================================
|
|
15
|
+
module Stellar
|
|
16
|
+
class LedgerSCPMessages < XDR::Struct
|
|
17
|
+
attribute :ledger_seq, Uint32
|
|
18
|
+
attribute :messages, XDR::VarArray[SCPEnvelope]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
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 LedgerUpgrade switch (LedgerUpgradeType type)
|
|
9
|
+
# {
|
|
10
|
+
# case LEDGER_UPGRADE_VERSION:
|
|
11
|
+
# uint32 newLedgerVersion; // update ledgerVersion
|
|
12
|
+
# case LEDGER_UPGRADE_BASE_FEE:
|
|
13
|
+
# uint32 newBaseFee; // update baseFee
|
|
14
|
+
# case LEDGER_UPGRADE_MAX_TX_SET_SIZE:
|
|
15
|
+
# uint32 newMaxTxSetSize; // update maxTxSetSize
|
|
16
|
+
# };
|
|
17
|
+
#
|
|
18
|
+
# ===========================================================================
|
|
19
|
+
module Stellar
|
|
20
|
+
class LedgerUpgrade < XDR::Union
|
|
21
|
+
switch_on LedgerUpgradeType, :type
|
|
22
|
+
|
|
23
|
+
switch :ledger_upgrade_version, :new_ledger_version
|
|
24
|
+
switch :ledger_upgrade_base_fee, :new_base_fee
|
|
25
|
+
switch :ledger_upgrade_max_tx_set_size, :new_max_tx_set_size
|
|
26
|
+
|
|
27
|
+
attribute :new_ledger_version, Uint32
|
|
28
|
+
attribute :new_base_fee, Uint32
|
|
29
|
+
attribute :new_max_tx_set_size, Uint32
|
|
30
|
+
end
|
|
31
|
+
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
|
+
# enum LedgerUpgradeType
|
|
9
|
+
# {
|
|
10
|
+
# LEDGER_UPGRADE_VERSION = 1,
|
|
11
|
+
# LEDGER_UPGRADE_BASE_FEE = 2,
|
|
12
|
+
# LEDGER_UPGRADE_MAX_TX_SET_SIZE = 3
|
|
13
|
+
# };
|
|
14
|
+
#
|
|
15
|
+
# ===========================================================================
|
|
16
|
+
module Stellar
|
|
17
|
+
class LedgerUpgradeType < XDR::Enum
|
|
18
|
+
member :ledger_upgrade_version, 1
|
|
19
|
+
member :ledger_upgrade_base_fee, 2
|
|
20
|
+
member :ledger_upgrade_max_tx_set_size, 3
|
|
21
|
+
|
|
22
|
+
seal
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
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 LotBranch {
|
|
9
|
+
# AGRICULTURE = 1,
|
|
10
|
+
# LIVESTOCK = 2
|
|
11
|
+
# };
|
|
12
|
+
#
|
|
13
|
+
# ===========================================================================
|
|
14
|
+
module Stellar
|
|
15
|
+
class LotBranch < XDR::Enum
|
|
16
|
+
member :agriculture, 1
|
|
17
|
+
member :livestock, 2
|
|
18
|
+
|
|
19
|
+
seal
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
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 LotEntry
|
|
9
|
+
# {
|
|
10
|
+
# AccountID organizerID;
|
|
11
|
+
# uint64 lotID;
|
|
12
|
+
# string lotName<1000>;
|
|
13
|
+
# uint32 type;
|
|
14
|
+
# string32 lotCode;
|
|
15
|
+
# string lotAddress<1000>;
|
|
16
|
+
# uint32 lotBranch;
|
|
17
|
+
# string lotLocation<1000>;
|
|
18
|
+
# uint64 startPrice;
|
|
19
|
+
# uint64 bestPrice;
|
|
20
|
+
# uint32 minStep;
|
|
21
|
+
# uint32 maxStep;
|
|
22
|
+
# uint64 published;
|
|
23
|
+
# uint64 aucStarted;
|
|
24
|
+
# uint64 duration;
|
|
25
|
+
# uint64 pledge;
|
|
26
|
+
# AccountID publisherID;
|
|
27
|
+
# string details<1000>;
|
|
28
|
+
# // reserved for future use
|
|
29
|
+
# union switch (int v)
|
|
30
|
+
# {
|
|
31
|
+
# case 0:
|
|
32
|
+
# void;
|
|
33
|
+
# }
|
|
34
|
+
# ext;
|
|
35
|
+
# };
|
|
36
|
+
#
|
|
37
|
+
# ===========================================================================
|
|
38
|
+
module Stellar
|
|
39
|
+
class LotEntry < XDR::Struct
|
|
40
|
+
include XDR::Namespace
|
|
41
|
+
|
|
42
|
+
autoload :Ext
|
|
43
|
+
|
|
44
|
+
attribute :organizer_id, AccountID
|
|
45
|
+
attribute :lot_id, Uint64
|
|
46
|
+
attribute :lot_name, XDR::String[1000]
|
|
47
|
+
attribute :type, Uint32
|
|
48
|
+
attribute :lot_code, String32
|
|
49
|
+
attribute :lot_address, XDR::String[1000]
|
|
50
|
+
attribute :lot_branch, Uint32
|
|
51
|
+
attribute :lot_location, XDR::String[1000]
|
|
52
|
+
attribute :start_price, Uint64
|
|
53
|
+
attribute :best_price, Uint64
|
|
54
|
+
attribute :min_step, Uint32
|
|
55
|
+
attribute :max_step, Uint32
|
|
56
|
+
attribute :published, Uint64
|
|
57
|
+
attribute :auc_started, Uint64
|
|
58
|
+
attribute :duration, Uint64
|
|
59
|
+
attribute :pledge, Uint64
|
|
60
|
+
attribute :publisher_id, AccountID
|
|
61
|
+
attribute :details, XDR::String[1000]
|
|
62
|
+
attribute :ext, Ext
|
|
63
|
+
end
|
|
64
|
+
end
|