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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ab14eb3fd1f2187aa59672bb2b1ec7706e0e9a4baa099f3002753d516d405f2
4
- data.tar.gz: 1888a0bb071ffc1f0d0c691a5ae4405a9e4ffe9a0c7800c45553a523ced9170e
3
+ metadata.gz: 2c8a71e3aaa9d7cd81d5bd0e6246ca5e00904665b2d9cb8163d0ec69354fc301
4
+ data.tar.gz: 446205c2de0bd8a716fbe1a0a9c23d72f0f73f6d2a029502f9971257f776e753
5
5
  SHA512:
6
- metadata.gz: 9b08fc17724391cf02e75b8126dcfe1ef43800510df13be4f51d9c8dfe5ba7113b2a3ce696e258a1a13312fee274dc36ddf61d9d40271387f308fff31f9398e0
7
- data.tar.gz: 024e157e76f9bd96d92d265562dc2d1add40b2c7c6539e180a735125eb021d8f89c1eaa8c90ac01b684af1f47810d9aa83fe0c67c79252ad7e1b1d366a1f5f05
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 #{collectible['state']}" unless collectible['state'] == 'unspent'
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["nfo"],
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
 
@@ -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).to_i
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MixinBot
4
- VERSION = '0.6.5'
4
+ VERSION = '0.6.9'
5
5
  end
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.5
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-10-30 00:00:00.000000000 Z
11
+ date: 2021-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport