@@ -7,12 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77As this project is pre 1.0, breaking changes may happen for minor version
88bumps. A breaking change will get clearly notified in this log.
99
10- ## [ Unreleased] ( https://github.com/stellar/ruby-stellar-sdk/compare/v0.24.0...master )
10+ ## [ Unreleased] ( https://github.com/stellar/ruby-stellar-sdk/compare/v0.25.0...master )
11+
12+ ## [ 0.25.0] ( https://github.com/stellar/ruby-stellar-sdk/compare/v0.24.0...v0.25.0 ) - 2020-10-30
1113### Added
1214- ` MuxedAccount ` implements ` #to_keypair ` conversion protocol
13- - ` MuxedAccount ` correctly responds to ` #address ` with strkey encoded public key
15+ - ` MuxedAccount ` correctly responds to ` #address ` with strkey encoded public key
1416### Fixed
15- - ` Transaction::V0#source_account ` now properly returns ` MuxedAccount ` instead of raw bytes
17+ - ` Transaction::V0#source_account ` now properly returns ` MuxedAccount ` instead of raw bytes
1618
1719## [ 0.24.0] ( https://github.com/stellar/ruby-stellar-sdk/compare/v0.23.1...v0.24.0 ) - 2020-10-20
1820### Added
@@ -22,74 +24,74 @@ bumps. A breaking change will get clearly notified in this log.
2224 - Add [ CAP-23 Two-Part Payments] ( https://github.com/stellar/stellar-protocol/blob/master/core/cap-0023.md ) support
2325 - Add ClaimPredicate DSL methods which help with creation of claim predicates.
2426 ``` ruby
25- # use class-level helpers to create simple predicates
27+ # use class-level helpers to create simple predicates
2628 unconditional = Stellar ::ClaimPredicate .unconditional
2729 before_rel_time = Stellar ::ClaimPredicate .before_relative_time(1 .hour)
2830 before_abs_time = Stellar ::ClaimPredicate .before_absolute_time(Date .tomorrow.beginning_of_day)
29-
31+
3032 # negate predicates using `~` unary operator
3133 ~ predicate # same as predicate.not
32-
34+
3335 # build complex predicates using `&` and `|` infix operators
3436 predicate & other_predicate # same as `predicate.and(other_predicate)`
3537 predicate | other_predicate # same as `predicate.or(other_predicate)`
36-
37- # quickly define complex predicates using `.compose` class method with the block
38+
39+ # quickly define complex predicates using `.compose` class method with the block
3840 unconditional = Stellar ::ClaimPredicate .compose { }
39- complex = Stellar ::ClaimPredicate .compose do
40- before_relative_time(1 .week) & ~ before_relative_time(10 .seconds) |
41+ complex = Stellar ::ClaimPredicate .compose do
42+ before_relative_time(1 .week) & ~ before_relative_time(10 .seconds) |
4143 end
42-
43- # here's what building this predicate would look like without DSL
44+
45+ # here's what building this predicate would look like without DSL
4446 complex = Stellar ::ClaimPredicate .new (
45- Stellar ::ClaimPredicateType ::AND ,
47+ Stellar ::ClaimPredicateType ::AND ,
4648 Stellar ::ClaimPredicate .new (
4749 Stellar ::ClaimPredicateType ::BEFORE_RELATIVE_TIME , 7 * 24 * 60 * 60
48- ),
50+ ),
4951 Stellar ::ClaimPredicate .new (
5052 Stellar ::ClaimPredicateType ::NOT , Stellar ::ClaimPredicate .new (
5153 Stellar ::ClaimPredicateType ::BEFORE_RELATIVE_TIME , 10
5254 )
5355 )
5456 )
55-
57+
5658 ```
5759 - Extend Operation with ` create_claimable_balance` and ` claim_claimable_balance` helpers
5860 - Add Claimant and ClaimPredicate DSL methods to reduce the noise.
5961 ` ` ` ruby
6062 include Stellar::DSL
61-
63+
6264 sender = KeyPair('S....')
6365 recipient = 'G....'
64-
66+
6567 op = Operation.create_claimable_balance(
6668 asset: Stellar::Asset.native,
6769 amount: 100,
6870 claimants: [
6971 Claimant(recipient) { after(10.seconds) & before(1.week) },
70- Claimant(sender), # allow unconditional claim-back
72+ Claimant(sender), # allow unconditional claim-back
7173 ]
7274 )
7375 ])
7476 ` ` `
7577 - Add simple predicate evaluation feature so that developers can sanity- check their predicates
7678 ` ` ` ruby
7779 include Stellar::DSL
78-
80+
7981 predicate = ClaimPredicate { before_relative_time(1.week) & ~before_relative_time(10.seconds) }
80-
82+
8183 # predicate.evaluate(balance_creation_time, claim_evaluation_time)
8284 predicate.evaluate("2020-10-20 09:00:00", "2020-10-20 09:00:05") # => false
8385 predicate.evaluate("2020-10-20 09:00:00", "2020-10-20 09:01:00") # => true
8486 predicate.evaluate("2020-10-20 09:00:00", "2020-10-27 08:50:00") # => true
85-
87+
8688 # you can also pass an instance of ActiveSupport::Duration as a second parameter, in this case
87- # it works as a relative offset from ` balance_creation_time`
89+ # it works as a relative offset from ` balance_creation_time`
8890 predicate.evaluate("2020-10-20 09:00:00", 1.week + 1.second) # => false
89-
91+
9092 # it is effectively the same as
91- predicate.evaluate("2020-10-20 09:00:00", "2020-10-27 09:00:01") # => false
92- ` ` `
93+ predicate.evaluate("2020-10-20 09:00:00", "2020-10-27 09:00:01") # => false
94+ ` ` `
9395 - Add [CAP - 33 Sponsored Reserves ](https: // github.com/ stellar/ stellar- protocol/ blob/ master/ core/ cap- 0033 .md) support
9496 - Extend the operation class with helpers that allow sponsoring reserves and also revoke sponsorships.
9597 - ` Operation.begin_sponsoring_future_reserves`
@@ -100,20 +102,20 @@ bumps. A breaking change will get clearly notified in this log.
100102 - ` Operation.revoke_sponsorship(account_id:, data_name:)`
101103 - ` Operation.revoke_sponsorship(account_id:, balance_id:)`
102104 - ` Operation.revoke_sponsorship(account_id:, signer:)`
103-
105+
104106
105107# # [0.23.1](https://github.com/stellar/ruby-stellar-sdk/compare/v0.23.0...v0.23.1) - 2020-06-18
106108# ## Added
107109- Transaction builder now builds V1 transactions
108110- FeeBumpTransaction can wrap V0 transaction
109-
111+
110112# # [0.23.0](https://github.com/stellar/ruby-stellar-sdk/compare/v0.22.0...v0.23.0) - 2020-06-11
111113# ## Added
112114- Stellar Protocol 13 support
113115 - Fee - Bump transactions ([CAP - 0015 ](https: // github.com/ stellar/ stellar- protocol/ blob/ master/ core/ cap- 0015 .md))
114116 - Multiplexed accounts ([CAP - 0027 ](https: // github.com/ stellar/ stellar- protocol/ blob/ master/ core/ cap- 0027 .md))
115117 - Fine - Grained control on trustline authorization ([CAP - 0018 ](https: // github.com/ stellar/ stellar- protocol/ blob/ master/ core/ cap- 0018 .md))
116-
118+
117119# # [0.22.0](https://github.com/stellar/ruby-stellar-base/compare/v0.21.0...v0.22.0) - 2020-03-26
118120# ## Added
119121- Add TransactionBuilder ([# 54](https://github.com/stellar/ruby-stellar-base/issues/54))
0 commit comments