stellar-base 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e177f7099ce8a48b3e1b3c2376647563ed4460b3
4
- data.tar.gz: f4cbbd3ae2ae21e5d35d1cffc8eb65fb7f611d58
3
+ metadata.gz: 96d6651ecee2afbc20de1481ef0c8fddab885693
4
+ data.tar.gz: e6653fa80f1e8ae7936b3a51d0ccbcc6a7392c2a
5
5
  SHA512:
6
- metadata.gz: 35b56daffab1e769f3b0ff5259a303f82e0d4ffaaf7272853d98026653f8e0a9da695a027434026758e6cdd44468ff7a1c50a5e47a621a60930f1b97a0f8c3e7
7
- data.tar.gz: 67a831ead3527468d5cdf104e806c6c987dd241be0179c61a3e9b891e571017f4cc2576e52d7ee22501edefb851453108f41aa9237842263ef4fb48b77fbafe5
6
+ metadata.gz: 5a05f0fe07b39b3aa79fb0f1b82490faeb7bd875987da88d0fa84fac237f28e63a3421d2022468e7c5ad49862b889a6514eb0e7701d17e0b1bd3b9eea17dde84
7
+ data.tar.gz: cf88daa32fac7bfab7aa920d7595b3717e30de4e03a7ba4172acfdb5b8d5566d722d5d8f4fe58de0bda5955dc2727aa51227e448d085c3e55943d71f5675696f
@@ -1,4 +1,4 @@
1
- # Automatically generated on 2015-06-08T11:39:15-07:00
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
- # // 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
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-05-13T15:00:04-07:00
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
- # // should we also include the amount that the owner gets in return?
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-08T11:39:15-07:00
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
- # case CREATE_PASSIVE_OFFER:
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-08T11:39:15-07:00
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
- # case CREATE_PASSIVE_OFFER:
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-08T11:39:14-07:00
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
- # CREATE_PASSIVE_OFFER = 4,
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-08T11:39:15-07:00
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 // can't set an unknown flag
18
+ # SET_OPTIONS_UNKNOWN_FLAG = -6 // can't set an unknown flag
19
19
  # };
20
20
  #
21
21
  # ===========================================================================
@@ -1,5 +1,5 @@
1
1
  module Stellar
2
2
  module Base
3
- VERSION = "0.0.15"
3
+ VERSION = "0.0.16"
4
4
  end
5
5
  end
@@ -19,7 +19,7 @@ enum OperationType
19
19
  PAYMENT = 1,
20
20
  PATH_PAYMENT = 2,
21
21
  MANAGE_OFFER = 3,
22
- CREATE_PASSIVE_OFFER = 4,
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
- case CREATE_PASSIVE_OFFER:
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
- // should we also include the amount that the owner gets in return?
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 // can't set an unknown flag
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
- // source account does not require trust
507
- ALLOW_TRUST_TRUST_NOT_REQUIRED = -3,
508
- ALLOW_TRUST_CANT_REVOKE = -4 // source account can't revoke trust
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stellar-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Fleckenstein