mixin_bot 2.2.1 → 2.2.2
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 +6 -0
- data/lib/mixin_bot/transaction/decoder.rb +1 -1
- data/lib/mixin_bot/transaction/encoder.rb +4 -3
- data/lib/mixin_bot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a607209836b8c47fbcff727229f7ab93940f9b1dc5a99d4ab307345ffa952a0
|
|
4
|
+
data.tar.gz: aae920ac21d384f0a978b7e4a07e20df5c55cc6016cd7fbce1fa5231c638b742
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46937ef32ab9ada8e3218c682fbe36a4086f7688ed5cf21ed5ad5aab575f9e8d8fe65c45220748021194500b486a538a06ddaa4d653af6762d65744c0bff51f8
|
|
7
|
+
data.tar.gz: 4a6d552a0fc8476105cf553b79ab1f2c231db95acc4cedec9131cc805758c1a68fd9845bc819f5396a42c297b3caf20f119a57e9cd066ab37d7f1cb7de04edb5
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.2.2] - 2026-05-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Safe transfer raw encoding** — version 5 transactions now always encode and decode the references count (including `0000` when empty), matching the Mixin kernel and official Go/TS SDKs. Fixes `/safe/transaction/requests` rejection after the v2 transaction encoder refactor.
|
|
15
|
+
|
|
10
16
|
## [2.2.1] - 2026-05-24
|
|
11
17
|
|
|
12
18
|
### Changed
|
|
@@ -26,7 +26,7 @@ module MixinBot
|
|
|
26
26
|
|
|
27
27
|
decode_inputs
|
|
28
28
|
decode_outputs
|
|
29
|
-
decode_references if @tx.version >= Transaction::REFERENCES_TX_VERSION
|
|
29
|
+
decode_references if @tx.version >= Transaction::REFERENCES_TX_VERSION
|
|
30
30
|
|
|
31
31
|
extra_size = MixinBot.utils.decode_uint32 @buf.shift(4)
|
|
32
32
|
@tx.extra = @buf.shift(extra_size).pack('C*')
|
|
@@ -23,7 +23,7 @@ module MixinBot
|
|
|
23
23
|
|
|
24
24
|
bytes += encode_inputs
|
|
25
25
|
bytes += encode_outputs
|
|
26
|
-
bytes += encode_references if @tx.version >= Transaction::REFERENCES_TX_VERSION
|
|
26
|
+
bytes += encode_references if @tx.version >= Transaction::REFERENCES_TX_VERSION
|
|
27
27
|
|
|
28
28
|
extra_bytes = @tx.extra.bytes
|
|
29
29
|
raise InvalidTransactionFormatError, 'extra is too long' if extra_bytes.size > Transaction::MAX_EXTRA_SIZE
|
|
@@ -173,9 +173,10 @@ module MixinBot
|
|
|
173
173
|
def encode_references
|
|
174
174
|
bytes = []
|
|
175
175
|
|
|
176
|
-
|
|
176
|
+
references = Array(@tx.references)
|
|
177
|
+
bytes += MixinBot.utils.encode_uint16 references.size
|
|
177
178
|
|
|
178
|
-
|
|
179
|
+
references.each do |reference|
|
|
179
180
|
bytes += [reference].pack('H*').bytes
|
|
180
181
|
end
|
|
181
182
|
|
data/lib/mixin_bot/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mixin_bot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- an-lee
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|