stellar-base 0.30.0 → 0.31.0
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/CHANGELOG.md +11 -0
- data/lib/stellar/transaction_builder.rb +3 -17
- data/lib/stellar/version.rb +1 -1
- metadata +10 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aec1ef3949346ac5f45c7337753938f2ca424566e8b630429bc3c645a9184f06
|
4
|
+
data.tar.gz: 6657ae69d9d257cda03a58c65fb8e20308f04826f384d7e7ca4e73e6d3308c8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c63bdf6d1a0d9d201c73d56be579e0850cf749a9553d5a7b99b4fd75f8ec2b485a88963946fb2832e58da1fbd0819af8cbf0ae863728580849bd80dfbb236c0
|
7
|
+
data.tar.gz: f808809b911435a72ae55e540ea275e4b3a1b8bd7e492ca2be365c0eaf8a96d26d6c90e8859dc55307499e1dab61c3108a2c9777413a904816c2a8300f2f1070
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
7
|
As this project is pre 1.0, breaking changes may happen for minor version
|
8
8
|
bumps. A breaking change will get clearly notified in this log.
|
9
9
|
|
10
|
+
## [0.31.0](https://github.com/astroband/ruby-stellar-sdk/compare/v0.30.0...v0.31.0) (2022-02-20)
|
11
|
+
|
12
|
+
### ⚠ BREAKING CHANGES
|
13
|
+
* unconditionally use muxed accounts in tx builder (#250)
|
14
|
+
|
15
|
+
### Features
|
16
|
+
* unconditionally use muxed accounts in tx builder ([#250](https://github.com/astroband/ruby-stellar-sdk/issues/250)) ([8537fa7](https://github.com/astroband/ruby-stellar-sdk/commit/8537fa7a0520816c895a5cec93b7c27de86de172))
|
17
|
+
|
18
|
+
### Bug Fixes
|
19
|
+
* correctly serialize manage data op with empty value ([#258](https://github.com/astroband/ruby-stellar-sdk/issues/258)) ([dea0bac](https://github.com/astroband/ruby-stellar-sdk/commit/dea0bac129fc7e886c0ef42cd5eff5c3e150917f))
|
20
|
+
|
10
21
|
## [0.30.0](https://www.github.com/astroband/ruby-stellar-sdk/compare/v0.29.0...v0.30.0) (2021-10-14)
|
11
22
|
|
12
23
|
### Added
|
@@ -16,7 +16,7 @@ module Stellar
|
|
16
16
|
op = Operation.send(
|
17
17
|
method_name,
|
18
18
|
**kwargs.except(
|
19
|
-
:source_account, :sequence_number, :base_fee, :time_bounds, :memo
|
19
|
+
:source_account, :sequence_number, :base_fee, :time_bounds, :memo
|
20
20
|
)
|
21
21
|
)
|
22
22
|
|
@@ -34,7 +34,6 @@ module Stellar
|
|
34
34
|
base_fee: 100,
|
35
35
|
time_bounds: nil,
|
36
36
|
memo: nil,
|
37
|
-
enable_muxed_accounts: false,
|
38
37
|
**_ # ignore any additional parameters without errors
|
39
38
|
)
|
40
39
|
raise ArgumentError, "Bad :sequence_number" unless sequence_number.is_a?(Integer) && sequence_number >= 0
|
@@ -45,7 +44,6 @@ module Stellar
|
|
45
44
|
@sequence_number = sequence_number
|
46
45
|
@base_fee = base_fee
|
47
46
|
@time_bounds = time_bounds
|
48
|
-
@enable_muxed_accounts = enable_muxed_accounts
|
49
47
|
|
50
48
|
set_timeout(0) if time_bounds.nil?
|
51
49
|
|
@@ -63,7 +61,7 @@ module Stellar
|
|
63
61
|
end
|
64
62
|
|
65
63
|
attrs = {
|
66
|
-
source_account:
|
64
|
+
source_account: @source_account.muxed_account,
|
67
65
|
fee: @base_fee * @operations.length,
|
68
66
|
seq_num: @sequence_number,
|
69
67
|
time_bounds: @time_bounds,
|
@@ -94,7 +92,7 @@ module Stellar
|
|
94
92
|
end
|
95
93
|
|
96
94
|
Stellar::FeeBumpTransaction.new(
|
97
|
-
fee_source:
|
95
|
+
fee_source: @source_account.muxed_account,
|
98
96
|
fee: @base_fee * (inner_ops.length + 1),
|
99
97
|
inner_tx: Stellar::FeeBumpTransaction::InnerTx.new(:envelope_type_tx, inner_txe.v1!),
|
100
98
|
ext: Stellar::FeeBumpTransaction::Ext.new(0)
|
@@ -166,17 +164,5 @@ module Stellar
|
|
166
164
|
raise ArgumentError, "Bad :memo"
|
167
165
|
end
|
168
166
|
end
|
169
|
-
|
170
|
-
def source_muxed_account
|
171
|
-
if with_muxed_accounts?
|
172
|
-
@source_account.muxed_account
|
173
|
-
else
|
174
|
-
@source_account.base_account
|
175
|
-
end
|
176
|
-
end
|
177
|
-
|
178
|
-
def with_muxed_accounts?
|
179
|
-
@enable_muxed_accounts
|
180
|
-
end
|
181
167
|
end
|
182
168
|
end
|
data/lib/stellar/version.rb
CHANGED
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.
|
4
|
+
version: 0.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Fleckenstein
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2022-02-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 5.0.0
|
22
22
|
- - "<"
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: '
|
24
|
+
version: '8.0'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: 5.0.0
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '8.0'
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: base32
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 3.0.
|
101
|
+
version: 3.0.3
|
102
102
|
- - "<"
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '4.0'
|
@@ -108,66 +108,10 @@ dependencies:
|
|
108
108
|
requirements:
|
109
109
|
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 3.0.
|
111
|
+
version: 3.0.3
|
112
112
|
- - "<"
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '4.0'
|
115
|
-
- !ruby/object:Gem::Dependency
|
116
|
-
name: bundler
|
117
|
-
requirement: !ruby/object:Gem::Requirement
|
118
|
-
requirements:
|
119
|
-
- - "~>"
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version: '2.0'
|
122
|
-
type: :development
|
123
|
-
prerelease: false
|
124
|
-
version_requirements: !ruby/object:Gem::Requirement
|
125
|
-
requirements:
|
126
|
-
- - "~>"
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: '2.0'
|
129
|
-
- !ruby/object:Gem::Dependency
|
130
|
-
name: rake
|
131
|
-
requirement: !ruby/object:Gem::Requirement
|
132
|
-
requirements:
|
133
|
-
- - "~>"
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
version: '13'
|
136
|
-
type: :development
|
137
|
-
prerelease: false
|
138
|
-
version_requirements: !ruby/object:Gem::Requirement
|
139
|
-
requirements:
|
140
|
-
- - "~>"
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: '13'
|
143
|
-
- !ruby/object:Gem::Dependency
|
144
|
-
name: rspec
|
145
|
-
requirement: !ruby/object:Gem::Requirement
|
146
|
-
requirements:
|
147
|
-
- - "~>"
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '3.9'
|
150
|
-
type: :development
|
151
|
-
prerelease: false
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
requirements:
|
154
|
-
- - "~>"
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
version: '3.9'
|
157
|
-
- !ruby/object:Gem::Dependency
|
158
|
-
name: rspec-its
|
159
|
-
requirement: !ruby/object:Gem::Requirement
|
160
|
-
requirements:
|
161
|
-
- - "~>"
|
162
|
-
- !ruby/object:Gem::Version
|
163
|
-
version: '1.3'
|
164
|
-
type: :development
|
165
|
-
prerelease: false
|
166
|
-
version_requirements: !ruby/object:Gem::Requirement
|
167
|
-
requirements:
|
168
|
-
- - "~>"
|
169
|
-
- !ruby/object:Gem::Version
|
170
|
-
version: '1.3'
|
171
115
|
description: |
|
172
116
|
The stellar-base library is the lowest-level stellar helper library. It consists of classes to read, write,
|
173
117
|
hash, and sign the xdr structures that are used in stellar-core.
|
@@ -477,11 +421,11 @@ licenses:
|
|
477
421
|
- Apache-2.0
|
478
422
|
metadata:
|
479
423
|
bug_tracker_uri: https://github.com/astroband/ruby-stellar-sdk/issues
|
480
|
-
changelog_uri: https://github.com/astroband/ruby-stellar-sdk/blob/v0.
|
481
|
-
documentation_uri: https://rubydoc.info/gems/stellar-base/0.
|
424
|
+
changelog_uri: https://github.com/astroband/ruby-stellar-sdk/blob/v0.31.0/base/CHANGELOG.md
|
425
|
+
documentation_uri: https://rubydoc.info/gems/stellar-base/0.31.0/
|
482
426
|
github_repo: ssh://github.com/astroband/ruby-stellar-sdk
|
483
427
|
homepage_uri: https://github.com/astroband/ruby-stellar-sdk/tree/main/base
|
484
|
-
source_code_uri: https://github.com/astroband/ruby-stellar-sdk/tree/v0.
|
428
|
+
source_code_uri: https://github.com/astroband/ruby-stellar-sdk/tree/v0.31.0/base
|
485
429
|
post_install_message:
|
486
430
|
rdoc_options: []
|
487
431
|
require_paths:
|
@@ -498,7 +442,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
498
442
|
- !ruby/object:Gem::Version
|
499
443
|
version: '0'
|
500
444
|
requirements: []
|
501
|
-
rubygems_version: 3.
|
445
|
+
rubygems_version: 3.3.5
|
502
446
|
signing_key:
|
503
447
|
specification_version: 4
|
504
448
|
summary: 'Stellar client library: XDR'
|