stellar-base 0.0.15 → 0.0.16
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/allow_trust_result_code.rb +4 -4
- data/generated/stellar/claim_offer_atom.rb +6 -2
- data/generated/stellar/operation.rb +2 -2
- data/generated/stellar/operation/body.rb +2 -2
- data/generated/stellar/operation_type.rb +2 -2
- data/generated/stellar/set_options_result_code.rb +2 -2
- data/lib/stellar/base/version.rb +1 -1
- data/xdr/Stellar-transaction.x +9 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96d6651ecee2afbc20de1481ef0c8fddab885693
|
4
|
+
data.tar.gz: e6653fa80f1e8ae7936b3a51d0ccbcc6a7392c2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a05f0fe07b39b3aa79fb0f1b82490faeb7bd875987da88d0fa84fac237f28e63a3421d2022468e7c5ad49862b889a6514eb0e7701d17e0b1bd3b9eea17dde84
|
7
|
+
data.tar.gz: cf88daa32fac7bfab7aa920d7595b3717e30de4e03a7ba4172acfdb5b8d5566d722d5d8f4fe58de0bda5955dc2727aa51227e448d085c3e55943d71f5675696f
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-06-
|
1
|
+
# Automatically generated on 2015-06-09T15:04:05-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -12,9 +12,9 @@ require 'xdr'
|
|
12
12
|
# // codes considered as "failure" for the operation
|
13
13
|
# ALLOW_TRUST_MALFORMED = -1, // currency is not CURRENCY_TYPE_ALPHANUM
|
14
14
|
# ALLOW_TRUST_NO_TRUST_LINE = -2, // trustor does not have a trustline
|
15
|
-
#
|
16
|
-
# ALLOW_TRUST_TRUST_NOT_REQUIRED = -3,
|
17
|
-
# ALLOW_TRUST_CANT_REVOKE = -4
|
15
|
+
# // source account does not require trust
|
16
|
+
# ALLOW_TRUST_TRUST_NOT_REQUIRED = -3,
|
17
|
+
# ALLOW_TRUST_CANT_REVOKE = -4 // source account can't revoke trust
|
18
18
|
# };
|
19
19
|
#
|
20
20
|
# ===========================================================================
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-
|
1
|
+
# Automatically generated on 2015-06-09T15:04:05-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -15,7 +15,9 @@ require 'xdr'
|
|
15
15
|
# Currency currencyClaimed;
|
16
16
|
# int64 amountClaimed;
|
17
17
|
#
|
18
|
-
# //
|
18
|
+
# // amount and currencysent to the owner
|
19
|
+
# Currency currencySend;
|
20
|
+
# int64 amountSend;
|
19
21
|
# };
|
20
22
|
#
|
21
23
|
# ===========================================================================
|
@@ -25,5 +27,7 @@ module Stellar
|
|
25
27
|
attribute :offer_id, Uint64
|
26
28
|
attribute :currency_claimed, Currency
|
27
29
|
attribute :amount_claimed, Int64
|
30
|
+
attribute :currency_send, Currency
|
31
|
+
attribute :amount_send, Int64
|
28
32
|
end
|
29
33
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-06-
|
1
|
+
# Automatically generated on 2015-06-09T15:04:05-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -22,7 +22,7 @@ require 'xdr'
|
|
22
22
|
# PathPaymentOp pathPaymentOp;
|
23
23
|
# case MANAGE_OFFER:
|
24
24
|
# ManageOfferOp manageOfferOp;
|
25
|
-
#
|
25
|
+
# case CREATE_PASSIVE_OFFER:
|
26
26
|
# CreatePassiveOfferOp createPassiveOfferOp;
|
27
27
|
# case SET_OPTIONS:
|
28
28
|
# SetOptionsOp setOptionsOp;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-06-
|
1
|
+
# Automatically generated on 2015-06-09T15:04:05-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -15,7 +15,7 @@ require 'xdr'
|
|
15
15
|
# PathPaymentOp pathPaymentOp;
|
16
16
|
# case MANAGE_OFFER:
|
17
17
|
# ManageOfferOp manageOfferOp;
|
18
|
-
#
|
18
|
+
# case CREATE_PASSIVE_OFFER:
|
19
19
|
# CreatePassiveOfferOp createPassiveOfferOp;
|
20
20
|
# case SET_OPTIONS:
|
21
21
|
# SetOptionsOp setOptionsOp;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-06-
|
1
|
+
# Automatically generated on 2015-06-09T15:04:05-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -11,7 +11,7 @@ require 'xdr'
|
|
11
11
|
# PAYMENT = 1,
|
12
12
|
# PATH_PAYMENT = 2,
|
13
13
|
# MANAGE_OFFER = 3,
|
14
|
-
#
|
14
|
+
# CREATE_PASSIVE_OFFER = 4,
|
15
15
|
# SET_OPTIONS = 5,
|
16
16
|
# CHANGE_TRUST = 6,
|
17
17
|
# ALLOW_TRUST = 7,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Automatically generated on 2015-06-
|
1
|
+
# Automatically generated on 2015-06-09T15:04:05-07:00
|
2
2
|
# DO NOT EDIT or your changes may be overwritten
|
3
3
|
|
4
4
|
require 'xdr'
|
@@ -15,7 +15,7 @@ require 'xdr'
|
|
15
15
|
# SET_OPTIONS_BAD_FLAGS = -3, // invalid combination of clear/set flags
|
16
16
|
# SET_OPTIONS_INVALID_INFLATION = -4, // inflation account does not exist
|
17
17
|
# SET_OPTIONS_CANT_CHANGE = -5, // can no longer change this option
|
18
|
-
# SET_OPTIONS_UNKNOWN_FLAG = -6
|
18
|
+
# SET_OPTIONS_UNKNOWN_FLAG = -6 // can't set an unknown flag
|
19
19
|
# };
|
20
20
|
#
|
21
21
|
# ===========================================================================
|
data/lib/stellar/base/version.rb
CHANGED
data/xdr/Stellar-transaction.x
CHANGED
@@ -19,7 +19,7 @@ enum OperationType
|
|
19
19
|
PAYMENT = 1,
|
20
20
|
PATH_PAYMENT = 2,
|
21
21
|
MANAGE_OFFER = 3,
|
22
|
-
|
22
|
+
CREATE_PASSIVE_OFFER = 4,
|
23
23
|
SET_OPTIONS = 5,
|
24
24
|
CHANGE_TRUST = 6,
|
25
25
|
ALLOW_TRUST = 7,
|
@@ -216,7 +216,7 @@ struct Operation
|
|
216
216
|
PathPaymentOp pathPaymentOp;
|
217
217
|
case MANAGE_OFFER:
|
218
218
|
ManageOfferOp manageOfferOp;
|
219
|
-
|
219
|
+
case CREATE_PASSIVE_OFFER:
|
220
220
|
CreatePassiveOfferOp createPassiveOfferOp;
|
221
221
|
case SET_OPTIONS:
|
222
222
|
SetOptionsOp setOptionsOp;
|
@@ -308,7 +308,9 @@ struct ClaimOfferAtom
|
|
308
308
|
Currency currencyClaimed;
|
309
309
|
int64 amountClaimed;
|
310
310
|
|
311
|
-
//
|
311
|
+
// amount and currencysent to the owner
|
312
|
+
Currency currencySend;
|
313
|
+
int64 amountSend;
|
312
314
|
};
|
313
315
|
|
314
316
|
/******* CreateAccount Result ********/
|
@@ -418,7 +420,6 @@ enum ManageOfferResultCode
|
|
418
420
|
MANAGE_OFFER_LOW_RESERVE = -9 // not enough funds to create a new Offer
|
419
421
|
};
|
420
422
|
|
421
|
-
|
422
423
|
enum ManageOfferEffect
|
423
424
|
{
|
424
425
|
MANAGE_OFFER_CREATED = 0,
|
@@ -462,7 +463,7 @@ enum SetOptionsResultCode
|
|
462
463
|
SET_OPTIONS_BAD_FLAGS = -3, // invalid combination of clear/set flags
|
463
464
|
SET_OPTIONS_INVALID_INFLATION = -4, // inflation account does not exist
|
464
465
|
SET_OPTIONS_CANT_CHANGE = -5, // can no longer change this option
|
465
|
-
SET_OPTIONS_UNKNOWN_FLAG = -6
|
466
|
+
SET_OPTIONS_UNKNOWN_FLAG = -6 // can't set an unknown flag
|
466
467
|
};
|
467
468
|
|
468
469
|
union SetOptionsResult switch (SetOptionsResultCode code)
|
@@ -503,9 +504,9 @@ enum AllowTrustResultCode
|
|
503
504
|
// codes considered as "failure" for the operation
|
504
505
|
ALLOW_TRUST_MALFORMED = -1, // currency is not CURRENCY_TYPE_ALPHANUM
|
505
506
|
ALLOW_TRUST_NO_TRUST_LINE = -2, // trustor does not have a trustline
|
506
|
-
|
507
|
-
ALLOW_TRUST_TRUST_NOT_REQUIRED = -3,
|
508
|
-
ALLOW_TRUST_CANT_REVOKE = -4
|
507
|
+
// source account does not require trust
|
508
|
+
ALLOW_TRUST_TRUST_NOT_REQUIRED = -3,
|
509
|
+
ALLOW_TRUST_CANT_REVOKE = -4 // source account can't revoke trust
|
509
510
|
};
|
510
511
|
|
511
512
|
union AllowTrustResult switch (AllowTrustResultCode code)
|