mixin_bot 0.7.4 → 0.7.5
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/multisig.rb +2 -2
- data/lib/mixin_bot/api/transaction.rb +4 -4
- data/lib/mixin_bot/api/transfer.rb +2 -2
- data/lib/mixin_bot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 23af5863a68c97bd37e6705a5b5f7adc1b3c099bb8e79c4277da68a49ded3d0c
|
|
4
|
+
data.tar.gz: 4655c5fc41b38484c1290d0112bb6df40a2bb9ae523a1f0918b283b956576f8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3bfea134e43216a0220b662466cbcece9efa6e8df7743489327d9f12f5d2d80282621ad929b2c6e20f0614b7a823125b1dd0bdca0d560fdb2336cfa16a6ea2c
|
|
7
|
+
data.tar.gz: 0d02653b4863e23235e35363e78e1b3bcea95c51d9aacdf543d2660d9c6e814f1b26661ac11049360cee5c786fbcf6bfd33efc83108979b5eb6b37b84dc70727
|
|
@@ -100,7 +100,7 @@ module MixinBot
|
|
|
100
100
|
path = '/payments'
|
|
101
101
|
payload = {
|
|
102
102
|
asset_id: kwargs[:asset_id],
|
|
103
|
-
amount: kwargs[:amount].
|
|
103
|
+
amount: format('%.8f', kwargs[:amount].to_d.to_r),
|
|
104
104
|
trace_id: kwargs[:trace_id] || SecureRandom.uuid,
|
|
105
105
|
memo: kwargs[:memo],
|
|
106
106
|
opponent_multisig: {
|
|
@@ -223,7 +223,7 @@ module MixinBot
|
|
|
223
223
|
def build_output(receivers:, index:, amount:, threshold:, hint: nil)
|
|
224
224
|
_output = create_output receivers: receivers, index: index, hint: hint
|
|
225
225
|
{
|
|
226
|
-
amount: amount.to_d.
|
|
226
|
+
amount: format('%.8f', amount.to_d.to_r),
|
|
227
227
|
script: build_threshold_script(threshold),
|
|
228
228
|
mask: _output['mask'],
|
|
229
229
|
keys: _output['keys']
|
|
@@ -10,7 +10,7 @@ module MixinBot
|
|
|
10
10
|
asset_id = options[:asset_id]
|
|
11
11
|
receivers = options[:receivers]
|
|
12
12
|
threshold = options[:threshold]
|
|
13
|
-
amount = options[:amount].
|
|
13
|
+
amount = options[:amount].to_d
|
|
14
14
|
memo = options[:memo]
|
|
15
15
|
trace_id = options[:trace_id] || SecureRandom.uuid
|
|
16
16
|
encrypted_pin = options[:encrypted_pin] || encrypt_pin(pin)
|
|
@@ -23,7 +23,7 @@ module MixinBot
|
|
|
23
23
|
threshold: threshold
|
|
24
24
|
},
|
|
25
25
|
pin: encrypted_pin,
|
|
26
|
-
amount: format('%.8f', amount),
|
|
26
|
+
amount: format('%.8f', amount.to_r),
|
|
27
27
|
trace_id: trace_id,
|
|
28
28
|
memo: memo
|
|
29
29
|
}
|
|
@@ -40,7 +40,7 @@ module MixinBot
|
|
|
40
40
|
|
|
41
41
|
asset_id = options[:asset_id]
|
|
42
42
|
opponent_key = options[:opponent_key]
|
|
43
|
-
amount = options[:amount].
|
|
43
|
+
amount = options[:amount].to_d
|
|
44
44
|
memo = options[:memo]
|
|
45
45
|
trace_id = options[:trace_id] || SecureRandom.uuid
|
|
46
46
|
encrypted_pin = options[:encrypted_pin] || encrypt_pin(pin)
|
|
@@ -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: format('%.8f', amount),
|
|
53
|
+
amount: format('%.8f', amount.to_r),
|
|
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_d
|
|
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: format('%.8f', amount),
|
|
22
|
+
amount: format('%.8f', amount.to_r),
|
|
23
23
|
trace_id: trace_id,
|
|
24
24
|
memo: memo
|
|
25
25
|
}
|
data/lib/mixin_bot/version.rb
CHANGED