stellar-base 0.23.0.rc1 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +249 -0
- data/README.md +0 -3
- data/generated/stellar-base-generated.rb +29 -1
- data/generated/stellar/account_entry.rb +3 -13
- data/generated/stellar/account_entry/ext.rb +2 -16
- data/generated/stellar/account_entry_extension_v1.rb +32 -0
- data/generated/stellar/account_entry_extension_v1/ext.rb +28 -0
- data/generated/stellar/account_entry_extension_v2.rb +34 -0
- data/generated/stellar/{account_entry/ext/v1 → account_entry_extension_v2}/ext.rb +8 -12
- data/generated/stellar/account_merge_result_code.rb +3 -1
- data/generated/stellar/begin_sponsoring_future_reserves_op.rb +18 -0
- data/generated/stellar/begin_sponsoring_future_reserves_result.rb +25 -0
- data/generated/stellar/begin_sponsoring_future_reserves_result_code.rb +29 -0
- data/generated/stellar/claim_claimable_balance_op.rb +18 -0
- data/generated/stellar/claim_claimable_balance_result.rb +25 -0
- data/generated/stellar/claim_claimable_balance_result_code.rb +31 -0
- data/generated/stellar/claim_predicate.rb +43 -0
- data/generated/stellar/claim_predicate_type.rb +30 -0
- data/generated/stellar/claimable_balance_entry.rb +44 -0
- data/generated/stellar/claimable_balance_entry/ext.rb +24 -0
- data/generated/stellar/claimable_balance_id.rb +23 -0
- data/generated/stellar/claimable_balance_id_type.rb +20 -0
- data/generated/stellar/claimant.rb +31 -0
- data/generated/stellar/claimant/v0.rb +22 -0
- data/generated/stellar/claimant_type.rb +20 -0
- data/generated/stellar/create_claimable_balance_op.rb +22 -0
- data/generated/stellar/create_claimable_balance_result.rb +27 -0
- data/generated/stellar/create_claimable_balance_result_code.rb +30 -0
- data/generated/stellar/end_sponsoring_future_reserves_result.rb +25 -0
- data/generated/stellar/end_sponsoring_future_reserves_result_code.rb +25 -0
- data/generated/stellar/envelope_type.rb +3 -1
- data/generated/stellar/inner_transaction_result.rb +2 -1
- data/generated/stellar/inner_transaction_result/result.rb +3 -1
- data/generated/stellar/ledger_entry.rb +4 -0
- data/generated/stellar/ledger_entry/data.rb +12 -8
- data/generated/stellar/ledger_entry/ext.rb +4 -0
- data/generated/stellar/ledger_entry_extension_v1.rb +30 -0
- data/generated/stellar/ledger_entry_extension_v1/ext.rb +24 -0
- data/generated/stellar/ledger_entry_type.rb +7 -5
- data/generated/stellar/ledger_key.rb +17 -8
- data/generated/stellar/ledger_key/claimable_balance.rb +20 -0
- data/generated/stellar/operation.rb +10 -0
- data/generated/stellar/operation/body.rb +45 -26
- data/generated/stellar/operation_id.rb +32 -0
- data/generated/stellar/operation_id/id.rb +24 -0
- data/generated/stellar/operation_result.rb +10 -0
- data/generated/stellar/operation_result/tr.rb +48 -28
- data/generated/stellar/operation_result_code.rb +3 -1
- data/generated/stellar/operation_type.rb +25 -15
- data/generated/stellar/path_payment_strict_receive_result.rb +2 -1
- data/generated/stellar/revoke_sponsorship_op.rb +36 -0
- data/generated/stellar/revoke_sponsorship_op/signer.rb +22 -0
- data/generated/stellar/revoke_sponsorship_result.rb +25 -0
- data/generated/stellar/revoke_sponsorship_result_code.rb +31 -0
- data/generated/stellar/revoke_sponsorship_type.rb +22 -0
- data/generated/stellar/transaction_result_code.rb +4 -2
- data/lib/stellar-base.rb +15 -5
- data/lib/stellar/account_flags.rb +1 -1
- data/lib/stellar/{version.rb → base/version.rb} +1 -1
- data/lib/stellar/claim_predicate.rb +198 -0
- data/lib/stellar/compat.rb +2 -11
- data/lib/stellar/dsl.rb +85 -0
- data/lib/stellar/ext/xdr.rb +49 -0
- data/lib/stellar/key_pair.rb +43 -35
- data/lib/stellar/ledger_key.rb +30 -0
- data/lib/stellar/networks.rb +12 -12
- data/lib/stellar/operation.rb +58 -1
- data/lib/stellar/price.rb +11 -2
- data/lib/stellar/transaction.rb +16 -166
- data/lib/stellar/transaction_builder.rb +35 -18
- data/lib/stellar/transaction_envelope.rb +3 -29
- data/lib/stellar/transaction_v0.rb +12 -0
- data/lib/stellar/util/strkey.rb +6 -6
- metadata +166 -35
- data/generated/stellar/account_entry/ext/v1.rb +0 -34
- data/lib/stellar/util/continued_fraction.rb +0 -96
@@ -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
|
+
# ClaimableBalanceID balanceID;
|
11
|
+
# }
|
12
|
+
#
|
13
|
+
# ===========================================================================
|
14
|
+
module Stellar
|
15
|
+
class LedgerKey
|
16
|
+
class ClaimableBalance < XDR::Struct
|
17
|
+
attribute :balance_id, ClaimableBalanceID
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -42,6 +42,16 @@ require 'xdr'
|
|
42
42
|
# ManageBuyOfferOp manageBuyOfferOp;
|
43
43
|
# case PATH_PAYMENT_STRICT_SEND:
|
44
44
|
# PathPaymentStrictSendOp pathPaymentStrictSendOp;
|
45
|
+
# case CREATE_CLAIMABLE_BALANCE:
|
46
|
+
# CreateClaimableBalanceOp createClaimableBalanceOp;
|
47
|
+
# case CLAIM_CLAIMABLE_BALANCE:
|
48
|
+
# ClaimClaimableBalanceOp claimClaimableBalanceOp;
|
49
|
+
# case BEGIN_SPONSORING_FUTURE_RESERVES:
|
50
|
+
# BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp;
|
51
|
+
# case END_SPONSORING_FUTURE_RESERVES:
|
52
|
+
# void;
|
53
|
+
# case REVOKE_SPONSORSHIP:
|
54
|
+
# RevokeSponsorshipOp revokeSponsorshipOp;
|
45
55
|
# }
|
46
56
|
# body;
|
47
57
|
# };
|
@@ -35,6 +35,16 @@ require 'xdr'
|
|
35
35
|
# ManageBuyOfferOp manageBuyOfferOp;
|
36
36
|
# case PATH_PAYMENT_STRICT_SEND:
|
37
37
|
# PathPaymentStrictSendOp pathPaymentStrictSendOp;
|
38
|
+
# case CREATE_CLAIMABLE_BALANCE:
|
39
|
+
# CreateClaimableBalanceOp createClaimableBalanceOp;
|
40
|
+
# case CLAIM_CLAIMABLE_BALANCE:
|
41
|
+
# ClaimClaimableBalanceOp claimClaimableBalanceOp;
|
42
|
+
# case BEGIN_SPONSORING_FUTURE_RESERVES:
|
43
|
+
# BeginSponsoringFutureReservesOp beginSponsoringFutureReservesOp;
|
44
|
+
# case END_SPONSORING_FUTURE_RESERVES:
|
45
|
+
# void;
|
46
|
+
# case REVOKE_SPONSORSHIP:
|
47
|
+
# RevokeSponsorshipOp revokeSponsorshipOp;
|
38
48
|
# }
|
39
49
|
#
|
40
50
|
# ===========================================================================
|
@@ -43,34 +53,43 @@ module Stellar
|
|
43
53
|
class Body < XDR::Union
|
44
54
|
switch_on OperationType, :type
|
45
55
|
|
46
|
-
switch :create_account,
|
47
|
-
switch :payment,
|
48
|
-
switch :path_payment_strict_receive,
|
49
|
-
switch :manage_sell_offer,
|
50
|
-
switch :create_passive_sell_offer,
|
51
|
-
switch :set_options,
|
52
|
-
switch :change_trust,
|
53
|
-
switch :allow_trust,
|
54
|
-
switch :account_merge,
|
56
|
+
switch :create_account, :create_account_op
|
57
|
+
switch :payment, :payment_op
|
58
|
+
switch :path_payment_strict_receive, :path_payment_strict_receive_op
|
59
|
+
switch :manage_sell_offer, :manage_sell_offer_op
|
60
|
+
switch :create_passive_sell_offer, :create_passive_sell_offer_op
|
61
|
+
switch :set_options, :set_options_op
|
62
|
+
switch :change_trust, :change_trust_op
|
63
|
+
switch :allow_trust, :allow_trust_op
|
64
|
+
switch :account_merge, :destination
|
55
65
|
switch :inflation
|
56
|
-
switch :manage_data,
|
57
|
-
switch :bump_sequence,
|
58
|
-
switch :manage_buy_offer,
|
59
|
-
switch :path_payment_strict_send,
|
66
|
+
switch :manage_data, :manage_data_op
|
67
|
+
switch :bump_sequence, :bump_sequence_op
|
68
|
+
switch :manage_buy_offer, :manage_buy_offer_op
|
69
|
+
switch :path_payment_strict_send, :path_payment_strict_send_op
|
70
|
+
switch :create_claimable_balance, :create_claimable_balance_op
|
71
|
+
switch :claim_claimable_balance, :claim_claimable_balance_op
|
72
|
+
switch :begin_sponsoring_future_reserves, :begin_sponsoring_future_reserves_op
|
73
|
+
switch :end_sponsoring_future_reserves
|
74
|
+
switch :revoke_sponsorship, :revoke_sponsorship_op
|
60
75
|
|
61
|
-
attribute :create_account_op,
|
62
|
-
attribute :payment_op,
|
63
|
-
attribute :path_payment_strict_receive_op,
|
64
|
-
attribute :manage_sell_offer_op,
|
65
|
-
attribute :create_passive_sell_offer_op,
|
66
|
-
attribute :set_options_op,
|
67
|
-
attribute :change_trust_op,
|
68
|
-
attribute :allow_trust_op,
|
69
|
-
attribute :destination,
|
70
|
-
attribute :manage_data_op,
|
71
|
-
attribute :bump_sequence_op,
|
72
|
-
attribute :manage_buy_offer_op,
|
73
|
-
attribute :path_payment_strict_send_op,
|
76
|
+
attribute :create_account_op, CreateAccountOp
|
77
|
+
attribute :payment_op, PaymentOp
|
78
|
+
attribute :path_payment_strict_receive_op, PathPaymentStrictReceiveOp
|
79
|
+
attribute :manage_sell_offer_op, ManageSellOfferOp
|
80
|
+
attribute :create_passive_sell_offer_op, CreatePassiveSellOfferOp
|
81
|
+
attribute :set_options_op, SetOptionsOp
|
82
|
+
attribute :change_trust_op, ChangeTrustOp
|
83
|
+
attribute :allow_trust_op, AllowTrustOp
|
84
|
+
attribute :destination, MuxedAccount
|
85
|
+
attribute :manage_data_op, ManageDataOp
|
86
|
+
attribute :bump_sequence_op, BumpSequenceOp
|
87
|
+
attribute :manage_buy_offer_op, ManageBuyOfferOp
|
88
|
+
attribute :path_payment_strict_send_op, PathPaymentStrictSendOp
|
89
|
+
attribute :create_claimable_balance_op, CreateClaimableBalanceOp
|
90
|
+
attribute :claim_claimable_balance_op, ClaimClaimableBalanceOp
|
91
|
+
attribute :begin_sponsoring_future_reserves_op, BeginSponsoringFutureReservesOp
|
92
|
+
attribute :revoke_sponsorship_op, RevokeSponsorshipOp
|
74
93
|
end
|
75
94
|
end
|
76
95
|
end
|
@@ -0,0 +1,32 @@
|
|
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 OperationID switch (EnvelopeType type)
|
9
|
+
# {
|
10
|
+
# case ENVELOPE_TYPE_OP_ID:
|
11
|
+
# struct
|
12
|
+
# {
|
13
|
+
# MuxedAccount sourceAccount;
|
14
|
+
# SequenceNumber seqNum;
|
15
|
+
# uint32 opNum;
|
16
|
+
# } id;
|
17
|
+
# };
|
18
|
+
#
|
19
|
+
# ===========================================================================
|
20
|
+
module Stellar
|
21
|
+
class OperationID < XDR::Union
|
22
|
+
include XDR::Namespace
|
23
|
+
|
24
|
+
autoload :Id
|
25
|
+
|
26
|
+
switch_on EnvelopeType, :type
|
27
|
+
|
28
|
+
switch :envelope_type_op_id, :id
|
29
|
+
|
30
|
+
attribute :id, Id
|
31
|
+
end
|
32
|
+
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
|
+
# struct
|
9
|
+
# {
|
10
|
+
# MuxedAccount sourceAccount;
|
11
|
+
# SequenceNumber seqNum;
|
12
|
+
# uint32 opNum;
|
13
|
+
# }
|
14
|
+
#
|
15
|
+
# ===========================================================================
|
16
|
+
module Stellar
|
17
|
+
class OperationID
|
18
|
+
class Id < XDR::Struct
|
19
|
+
attribute :source_account, MuxedAccount
|
20
|
+
attribute :seq_num, SequenceNumber
|
21
|
+
attribute :op_num, Uint32
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -38,6 +38,16 @@ require 'xdr'
|
|
38
38
|
# ManageBuyOfferResult manageBuyOfferResult;
|
39
39
|
# case PATH_PAYMENT_STRICT_SEND:
|
40
40
|
# PathPaymentStrictSendResult pathPaymentStrictSendResult;
|
41
|
+
# case CREATE_CLAIMABLE_BALANCE:
|
42
|
+
# CreateClaimableBalanceResult createClaimableBalanceResult;
|
43
|
+
# case CLAIM_CLAIMABLE_BALANCE:
|
44
|
+
# ClaimClaimableBalanceResult claimClaimableBalanceResult;
|
45
|
+
# case BEGIN_SPONSORING_FUTURE_RESERVES:
|
46
|
+
# BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult;
|
47
|
+
# case END_SPONSORING_FUTURE_RESERVES:
|
48
|
+
# EndSponsoringFutureReservesResult endSponsoringFutureReservesResult;
|
49
|
+
# case REVOKE_SPONSORSHIP:
|
50
|
+
# RevokeSponsorshipResult revokeSponsorshipResult;
|
41
51
|
# }
|
42
52
|
# tr;
|
43
53
|
# default:
|
@@ -35,6 +35,16 @@ require 'xdr'
|
|
35
35
|
# ManageBuyOfferResult manageBuyOfferResult;
|
36
36
|
# case PATH_PAYMENT_STRICT_SEND:
|
37
37
|
# PathPaymentStrictSendResult pathPaymentStrictSendResult;
|
38
|
+
# case CREATE_CLAIMABLE_BALANCE:
|
39
|
+
# CreateClaimableBalanceResult createClaimableBalanceResult;
|
40
|
+
# case CLAIM_CLAIMABLE_BALANCE:
|
41
|
+
# ClaimClaimableBalanceResult claimClaimableBalanceResult;
|
42
|
+
# case BEGIN_SPONSORING_FUTURE_RESERVES:
|
43
|
+
# BeginSponsoringFutureReservesResult beginSponsoringFutureReservesResult;
|
44
|
+
# case END_SPONSORING_FUTURE_RESERVES:
|
45
|
+
# EndSponsoringFutureReservesResult endSponsoringFutureReservesResult;
|
46
|
+
# case REVOKE_SPONSORSHIP:
|
47
|
+
# RevokeSponsorshipResult revokeSponsorshipResult;
|
38
48
|
# }
|
39
49
|
#
|
40
50
|
# ===========================================================================
|
@@ -43,35 +53,45 @@ module Stellar
|
|
43
53
|
class Tr < XDR::Union
|
44
54
|
switch_on OperationType, :type
|
45
55
|
|
46
|
-
switch :create_account,
|
47
|
-
switch :payment,
|
48
|
-
switch :path_payment_strict_receive,
|
49
|
-
switch :manage_sell_offer,
|
50
|
-
switch :create_passive_sell_offer,
|
51
|
-
switch :set_options,
|
52
|
-
switch :change_trust,
|
53
|
-
switch :allow_trust,
|
54
|
-
switch :account_merge,
|
55
|
-
switch :inflation,
|
56
|
-
switch :manage_data,
|
57
|
-
switch :bump_sequence,
|
58
|
-
switch :manage_buy_offer,
|
59
|
-
switch :path_payment_strict_send,
|
56
|
+
switch :create_account, :create_account_result
|
57
|
+
switch :payment, :payment_result
|
58
|
+
switch :path_payment_strict_receive, :path_payment_strict_receive_result
|
59
|
+
switch :manage_sell_offer, :manage_sell_offer_result
|
60
|
+
switch :create_passive_sell_offer, :create_passive_sell_offer_result
|
61
|
+
switch :set_options, :set_options_result
|
62
|
+
switch :change_trust, :change_trust_result
|
63
|
+
switch :allow_trust, :allow_trust_result
|
64
|
+
switch :account_merge, :account_merge_result
|
65
|
+
switch :inflation, :inflation_result
|
66
|
+
switch :manage_data, :manage_data_result
|
67
|
+
switch :bump_sequence, :bump_seq_result
|
68
|
+
switch :manage_buy_offer, :manage_buy_offer_result
|
69
|
+
switch :path_payment_strict_send, :path_payment_strict_send_result
|
70
|
+
switch :create_claimable_balance, :create_claimable_balance_result
|
71
|
+
switch :claim_claimable_balance, :claim_claimable_balance_result
|
72
|
+
switch :begin_sponsoring_future_reserves, :begin_sponsoring_future_reserves_result
|
73
|
+
switch :end_sponsoring_future_reserves, :end_sponsoring_future_reserves_result
|
74
|
+
switch :revoke_sponsorship, :revoke_sponsorship_result
|
60
75
|
|
61
|
-
attribute :create_account_result,
|
62
|
-
attribute :payment_result,
|
63
|
-
attribute :path_payment_strict_receive_result,
|
64
|
-
attribute :manage_sell_offer_result,
|
65
|
-
attribute :create_passive_sell_offer_result,
|
66
|
-
attribute :set_options_result,
|
67
|
-
attribute :change_trust_result,
|
68
|
-
attribute :allow_trust_result,
|
69
|
-
attribute :account_merge_result,
|
70
|
-
attribute :inflation_result,
|
71
|
-
attribute :manage_data_result,
|
72
|
-
attribute :bump_seq_result,
|
73
|
-
attribute :manage_buy_offer_result,
|
74
|
-
attribute :path_payment_strict_send_result,
|
76
|
+
attribute :create_account_result, CreateAccountResult
|
77
|
+
attribute :payment_result, PaymentResult
|
78
|
+
attribute :path_payment_strict_receive_result, PathPaymentStrictReceiveResult
|
79
|
+
attribute :manage_sell_offer_result, ManageSellOfferResult
|
80
|
+
attribute :create_passive_sell_offer_result, ManageSellOfferResult
|
81
|
+
attribute :set_options_result, SetOptionsResult
|
82
|
+
attribute :change_trust_result, ChangeTrustResult
|
83
|
+
attribute :allow_trust_result, AllowTrustResult
|
84
|
+
attribute :account_merge_result, AccountMergeResult
|
85
|
+
attribute :inflation_result, InflationResult
|
86
|
+
attribute :manage_data_result, ManageDataResult
|
87
|
+
attribute :bump_seq_result, BumpSequenceResult
|
88
|
+
attribute :manage_buy_offer_result, ManageBuyOfferResult
|
89
|
+
attribute :path_payment_strict_send_result, PathPaymentStrictSendResult
|
90
|
+
attribute :create_claimable_balance_result, CreateClaimableBalanceResult
|
91
|
+
attribute :claim_claimable_balance_result, ClaimClaimableBalanceResult
|
92
|
+
attribute :begin_sponsoring_future_reserves_result, BeginSponsoringFutureReservesResult
|
93
|
+
attribute :end_sponsoring_future_reserves_result, EndSponsoringFutureReservesResult
|
94
|
+
attribute :revoke_sponsorship_result, RevokeSponsorshipResult
|
75
95
|
end
|
76
96
|
end
|
77
97
|
end
|
@@ -13,7 +13,8 @@ require 'xdr'
|
|
13
13
|
# opNO_ACCOUNT = -2, // source account was not found
|
14
14
|
# opNOT_SUPPORTED = -3, // operation not supported at this time
|
15
15
|
# opTOO_MANY_SUBENTRIES = -4, // max number of subentries already reached
|
16
|
-
# opEXCEEDED_WORK_LIMIT = -5
|
16
|
+
# opEXCEEDED_WORK_LIMIT = -5, // operation did too much work
|
17
|
+
# opTOO_MANY_SPONSORING = -6 // account is sponsoring too many entries
|
17
18
|
# };
|
18
19
|
#
|
19
20
|
# ===========================================================================
|
@@ -25,6 +26,7 @@ module Stellar
|
|
25
26
|
member :op_not_supported, -3
|
26
27
|
member :op_too_many_subentries, -4
|
27
28
|
member :op_exceeded_work_limit, -5
|
29
|
+
member :op_too_many_sponsoring, -6
|
28
30
|
|
29
31
|
seal
|
30
32
|
end
|
@@ -20,26 +20,36 @@ require 'xdr'
|
|
20
20
|
# MANAGE_DATA = 10,
|
21
21
|
# BUMP_SEQUENCE = 11,
|
22
22
|
# MANAGE_BUY_OFFER = 12,
|
23
|
-
# PATH_PAYMENT_STRICT_SEND = 13
|
23
|
+
# PATH_PAYMENT_STRICT_SEND = 13,
|
24
|
+
# CREATE_CLAIMABLE_BALANCE = 14,
|
25
|
+
# CLAIM_CLAIMABLE_BALANCE = 15,
|
26
|
+
# BEGIN_SPONSORING_FUTURE_RESERVES = 16,
|
27
|
+
# END_SPONSORING_FUTURE_RESERVES = 17,
|
28
|
+
# REVOKE_SPONSORSHIP = 18
|
24
29
|
# };
|
25
30
|
#
|
26
31
|
# ===========================================================================
|
27
32
|
module Stellar
|
28
33
|
class OperationType < XDR::Enum
|
29
|
-
member :create_account,
|
30
|
-
member :payment,
|
31
|
-
member :path_payment_strict_receive,
|
32
|
-
member :manage_sell_offer,
|
33
|
-
member :create_passive_sell_offer,
|
34
|
-
member :set_options,
|
35
|
-
member :change_trust,
|
36
|
-
member :allow_trust,
|
37
|
-
member :account_merge,
|
38
|
-
member :inflation,
|
39
|
-
member :manage_data,
|
40
|
-
member :bump_sequence,
|
41
|
-
member :manage_buy_offer,
|
42
|
-
member :path_payment_strict_send,
|
34
|
+
member :create_account, 0
|
35
|
+
member :payment, 1
|
36
|
+
member :path_payment_strict_receive, 2
|
37
|
+
member :manage_sell_offer, 3
|
38
|
+
member :create_passive_sell_offer, 4
|
39
|
+
member :set_options, 5
|
40
|
+
member :change_trust, 6
|
41
|
+
member :allow_trust, 7
|
42
|
+
member :account_merge, 8
|
43
|
+
member :inflation, 9
|
44
|
+
member :manage_data, 10
|
45
|
+
member :bump_sequence, 11
|
46
|
+
member :manage_buy_offer, 12
|
47
|
+
member :path_payment_strict_send, 13
|
48
|
+
member :create_claimable_balance, 14
|
49
|
+
member :claim_claimable_balance, 15
|
50
|
+
member :begin_sponsoring_future_reserves, 16
|
51
|
+
member :end_sponsoring_future_reserves, 17
|
52
|
+
member :revoke_sponsorship, 18
|
43
53
|
|
44
54
|
seal
|
45
55
|
end
|
@@ -5,7 +5,8 @@ require 'xdr'
|
|
5
5
|
|
6
6
|
# === xdr source ============================================================
|
7
7
|
#
|
8
|
-
# union PathPaymentStrictReceiveResult switch (
|
8
|
+
# union PathPaymentStrictReceiveResult switch (
|
9
|
+
# PathPaymentStrictReceiveResultCode code)
|
9
10
|
# {
|
10
11
|
# case PATH_PAYMENT_STRICT_RECEIVE_SUCCESS:
|
11
12
|
# struct
|
@@ -0,0 +1,36 @@
|
|
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 RevokeSponsorshipOp switch (RevokeSponsorshipType type)
|
9
|
+
# {
|
10
|
+
# case REVOKE_SPONSORSHIP_LEDGER_ENTRY:
|
11
|
+
# LedgerKey ledgerKey;
|
12
|
+
# case REVOKE_SPONSORSHIP_SIGNER:
|
13
|
+
# struct
|
14
|
+
# {
|
15
|
+
# AccountID accountID;
|
16
|
+
# SignerKey signerKey;
|
17
|
+
# }
|
18
|
+
# signer;
|
19
|
+
# };
|
20
|
+
#
|
21
|
+
# ===========================================================================
|
22
|
+
module Stellar
|
23
|
+
class RevokeSponsorshipOp < XDR::Union
|
24
|
+
include XDR::Namespace
|
25
|
+
|
26
|
+
autoload :Signer
|
27
|
+
|
28
|
+
switch_on RevokeSponsorshipType, :type
|
29
|
+
|
30
|
+
switch :revoke_sponsorship_ledger_entry, :ledger_key
|
31
|
+
switch :revoke_sponsorship_signer, :signer
|
32
|
+
|
33
|
+
attribute :ledger_key, LedgerKey
|
34
|
+
attribute :signer, Signer
|
35
|
+
end
|
36
|
+
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
|
+
# SignerKey signerKey;
|
12
|
+
# }
|
13
|
+
#
|
14
|
+
# ===========================================================================
|
15
|
+
module Stellar
|
16
|
+
class RevokeSponsorshipOp
|
17
|
+
class Signer < XDR::Struct
|
18
|
+
attribute :account_id, AccountID
|
19
|
+
attribute :signer_key, SignerKey
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,25 @@
|
|
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 RevokeSponsorshipResult switch (RevokeSponsorshipResultCode code)
|
9
|
+
# {
|
10
|
+
# case REVOKE_SPONSORSHIP_SUCCESS:
|
11
|
+
# void;
|
12
|
+
# default:
|
13
|
+
# void;
|
14
|
+
# };
|
15
|
+
#
|
16
|
+
# ===========================================================================
|
17
|
+
module Stellar
|
18
|
+
class RevokeSponsorshipResult < XDR::Union
|
19
|
+
switch_on RevokeSponsorshipResultCode, :code
|
20
|
+
|
21
|
+
switch :revoke_sponsorship_success
|
22
|
+
switch :default
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|