mixin_bot 0.4.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mixin_bot/api.rb +1 -1
- data/lib/mixin_bot/api/multisig.rb +2 -2
- data/lib/mixin_bot/api/transaction.rb +2 -2
- data/lib/mixin_bot/api/transfer.rb +2 -2
- 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: c746194faff682c2e72eac0cd3673986c9ecf02fd4bbbc7a07afc114f9594646
|
4
|
+
data.tar.gz: e33d157e155c857cfe2eff5c78150ac2e1c10f1b48f9925474d0cd09f5664581
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b73cf7f7a56f9b982de773c5b4158ff00a72e09938d6b06398b0595eea9a58095874eddfe26f9407e4c2e887e8b9f05ee3a33b7222fe71efe6b592c21be41c8
|
7
|
+
data.tar.gz: 372982bdcd9d1bb1ba5be676d0f195e2eaa9a4a7205b50736b589da0890d41f78db6ce153f9bd11a2b84cc545c456388ed584c19762f8e8a1a13e362e86e04a0
|
data/lib/mixin_bot/api.rb
CHANGED
@@ -197,7 +197,7 @@ module MixinBot
|
|
197
197
|
threshold: threshold,
|
198
198
|
state: 'unspent',
|
199
199
|
access_token: access_token
|
200
|
-
).filter(
|
200
|
+
)['data'].filter(
|
201
201
|
&lambda { |utxo|
|
202
202
|
utxo['asset_id'] == kwargs[:asset_id]
|
203
203
|
}
|
@@ -255,7 +255,7 @@ module MixinBot
|
|
255
255
|
extra: extra
|
256
256
|
}
|
257
257
|
|
258
|
-
|
258
|
+
tx.to_json
|
259
259
|
end
|
260
260
|
|
261
261
|
def str_to_bin(str)
|
@@ -23,7 +23,7 @@ module MixinBot
|
|
23
23
|
threshold: threshold
|
24
24
|
},
|
25
25
|
pin: encrypted_pin,
|
26
|
-
amount: amount
|
26
|
+
amount: format('%.8f', amount),
|
27
27
|
trace_id: trace_id,
|
28
28
|
memo: memo
|
29
29
|
}
|
@@ -50,7 +50,7 @@ module MixinBot
|
|
50
50
|
asset_id: asset_id,
|
51
51
|
opponent_key: opponent_key,
|
52
52
|
pin: encrypted_pin,
|
53
|
-
amount: amount
|
53
|
+
amount: format('%.8f', amount),
|
54
54
|
trace_id: trace_id,
|
55
55
|
memo: memo
|
56
56
|
}
|
@@ -9,7 +9,7 @@ module MixinBot
|
|
9
9
|
|
10
10
|
asset_id = options[:asset_id]
|
11
11
|
opponent_id = options[:opponent_id]
|
12
|
-
amount = options[:amount]
|
12
|
+
amount = options[:amount].to_f
|
13
13
|
memo = options[:memo]
|
14
14
|
trace_id = options[:trace_id] || SecureRandom.uuid
|
15
15
|
encrypted_pin = options[:encrypted_pin] || encrypt_pin(pin)
|
@@ -19,7 +19,7 @@ module MixinBot
|
|
19
19
|
asset_id: asset_id,
|
20
20
|
opponent_id: opponent_id,
|
21
21
|
pin: encrypted_pin,
|
22
|
-
amount: amount
|
22
|
+
amount: format('%.8f', amount),
|
23
23
|
trace_id: trace_id,
|
24
24
|
memo: memo
|
25
25
|
}
|
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.
|
4
|
+
version: 0.5.1
|
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-06-
|
11
|
+
date: 2021-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|