mixin_bot 0.6.5 → 0.6.9
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/lib/mixin_bot/api/collectible.rb +5 -3
- data/lib/mixin_bot/utils.rb +1 -1
- 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: 2c8a71e3aaa9d7cd81d5bd0e6246ca5e00904665b2d9cb8163d0ec69354fc301
|
4
|
+
data.tar.gz: 446205c2de0bd8a716fbe1a0a9c23d72f0f73f6d2a029502f9971257f776e753
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1f70ef3b0c626476831cbdb949b660a8b4967f2936c8278ee9b458d32602b33cee02e8b12dbddad4dc9273d37bad20acf77fc0dffe937a2047239d91ab52948
|
7
|
+
data.tar.gz: a0e27a3702d094804646f9803718aa33244cd654f845c3eefbf570cfbaf7839da619d74aa074d04df2684dd9b426951b2dcea204a6b90aeccc09e543a989d3e8
|
@@ -107,7 +107,7 @@ module MixinBot
|
|
107
107
|
|
108
108
|
kwargs = kwargs.with_indifferent_access
|
109
109
|
collectible = kwargs['collectible']
|
110
|
-
raise "collectible is
|
110
|
+
raise "collectible is spent" if collectible['state'] == 'spent'
|
111
111
|
|
112
112
|
build_raw_transaction(
|
113
113
|
utxos: [collectible],
|
@@ -115,9 +115,11 @@ module MixinBot
|
|
115
115
|
senders_threshold: collectible['receivers_threshold'],
|
116
116
|
receivers: kwargs['receivers'],
|
117
117
|
receivers_threshold: kwargs['receivers_threshold'],
|
118
|
-
extra: kwargs[
|
118
|
+
extra: kwargs['nfo'],
|
119
119
|
amount: 1,
|
120
|
-
asset_mixin_id: NFT_ASSET_MIXIN_ID
|
120
|
+
asset_mixin_id: NFT_ASSET_MIXIN_ID,
|
121
|
+
access_token: kwargs['access_token'],
|
122
|
+
hint: kwargs['hint']
|
121
123
|
)
|
122
124
|
end
|
123
125
|
|
data/lib/mixin_bot/utils.rb
CHANGED
@@ -358,7 +358,7 @@ module MixinBot
|
|
358
358
|
bytes += [0x00, type]
|
359
359
|
|
360
360
|
# amount
|
361
|
-
amount_bytes = bytes_of (output['amount'].to_f * 1e8).
|
361
|
+
amount_bytes = bytes_of (output['amount'].to_f * 1e8).round
|
362
362
|
bytes += encode_int amount_bytes.size
|
363
363
|
bytes += amount_bytes
|
364
364
|
|
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: 0.6.
|
4
|
+
version: 0.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- an-lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|