Skip to content

Commit 3454e71

Browse files
committed
v0.25.0
1 parent 5f57af1 commit 3454e71

File tree

5 files changed

+42
-38
lines changed

5 files changed

+42
-38
lines changed

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: base
33
specs:
4-
stellar-base (0.24.0)
4+
stellar-base (0.25.0)
55
activesupport (>= 5.0.0, < 7.0)
66
base32 (>= 0.3.0, < 1.0)
77
digest-crc (>= 0.5.0, < 1.0)
@@ -11,11 +11,11 @@ PATH
1111
PATH
1212
remote: sdk
1313
specs:
14-
stellar-sdk (0.24.0)
14+
stellar-sdk (0.25.0)
1515
activesupport (>= 5.0.0, < 7.0)
1616
excon (>= 0.71.0, < 1.0)
1717
hyperclient (>= 0.7.0, < 1.0)
18-
stellar-base (= 0.24.0)
18+
stellar-base (= 0.25.0)
1919
toml-rb (>= 1.1.1, < 3.0)
2020

2121
GEM

base/CHANGELOG.md

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
As this project is pre 1.0, breaking changes may happen for minor version
88
bumps. 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))

base/lib/stellar/base/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Stellar
22
module Base
3-
VERSION = "0.24.0"
3+
VERSION = "0.25.0"
44
end
55
end

sdk/CHANGELOG.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7-
## [Unreleased](https://github.com/stellar/ruby-stellar-sdk/compare/v0.24.0...master)
7+
## [Unreleased](https://github.com/stellar/ruby-stellar-sdk/compare/v0.25.0...master)
8+
9+
## [0.25.0](https://github.com/stellar/ruby-stellar-sdk/compare/v0.24.0...0.25.0)
810
### Changed
911
- `Stellar::SEP10` is updated to comply with SEP10 v2.1.0
1012
- `build_challenge_tx` now accepts `domain` instead of `anchor_name`, using the
1113
old param name will now result in deprecation warning
12-
- `read_challenge_tx` correctly validates multi-op challenge transactions
13-
- `verify_challenge_tx_threshold` now expects simple `{'GA...' => weight, ... }` hash for `signers`
14+
- `read_challenge_tx` correctly validates multi-op challenge transactions
15+
- `verify_challenge_tx_threshold` now expects simple `{'GA...' => weight, ... }` hash for `signers`
1416
### Removed:
15-
- Deprecated `Stellar::SEP10.verify_challenge_tx` method is removed
17+
- Deprecated `Stellar::SEP10.verify_challenge_tx` method is removed
1618

1719
## [0.24.0](https://github.com/stellar/ruby-stellar-sdk/compare/v0.23.1...v0.24.0) - 2020-10-20
1820
- Protocol 14 support
@@ -29,7 +31,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2931
- Fee-Bump transactions ([CAP-0015](https://github.com/stellar/stellar-protocol/blob/master/core/cap-0015.md))
3032
- Multiplexed accounts ([CAP-0027](https://github.com/stellar/stellar-protocol/blob/master/core/cap-0027.md))
3133
- Fine-Grained control on trustline authorization ([CAP-0018](https://github.com/stellar/stellar-protocol/blob/master/core/cap-0018.md))
32-
34+
3335
## [0.8.0](https://github.com/stellar/ruby-stellar-sdk/compare/v0.7.0...v0.8.0)
3436
### Added
3537
- SEP-10 Multisig Support [#69](https://github.com/stellar/ruby-stellar-sdk/pull/69)

sdk/lib/stellar/sdk/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Stellar
22
module SDK
3-
VERSION = "0.24.0"
3+
VERSION = "0.25.0"
44
end
55
end

0 commit comments

Comments
 (0)