peatio-decredcoin 2.1.2 → 3.0.0

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: bdd4576af52bb55c83e9efa792861342290f34b717255a4a166e2dfbcc025ddd
4
- data.tar.gz: 7960d3c91a761780b13f3f4b37c2687ca4aa0d0c9968701e3a82537f0a598eb6
3
+ metadata.gz: a29cfc88f36b57a5541a40f2870e49ce4dfbf941ab162e143b878db47d6fdf2e
4
+ data.tar.gz: 703d9426bb8a02ed9f163421cf6dd7760329a972533765122d7e41eabaec3087
5
5
  SHA512:
6
- metadata.gz: dfa5b3e27be8ea8f4709215fce0ff8024f40a87bf076532af0a82fa9156143eafbde825387f5125c645a6cf1dc684c75caa25121373b39c0c733d70641e55694
7
- data.tar.gz: '08e8497ee99301a6f6c459350e2281245a545f0d6a796de20bf790711193299725dd99e3f0d3157deeb6d260acbd8daad5ced9cc6e725a8e6c5021a94db79a1f'
6
+ metadata.gz: aa8874c7a3afc6bfb0ed5dbae2b282470685df738a2e2d2e2258dd47966341a0da5e718cadaea6d4975d8e5b233f5e1532ab4c05a6de9d0304db8a027ef89d57
7
+ data.tar.gz: 7e763b8ffd44599f93fc1cc0a85035adc65d9801e3b5b4b8bf56c5984fc158d0be38eed564db3253a084711c4418a40ed26313d8dfa8971e69638ca168a6279b
@@ -1,5 +1,5 @@
1
1
  module Peatio
2
2
  module Decredcoin
3
- VERSION = "2.1.2".freeze
3
+ VERSION = "3.0.0".freeze
4
4
  end
5
5
  end
@@ -31,13 +31,21 @@ module Peatio
31
31
  raise Peatio::Wallet::ClientError, e
32
32
  end
33
33
 
34
- def create_transaction!(transaction, options = {})
34
+
35
+
36
+ def unlock_wallet!(passphrase, timeout = 15)
35
37
  # unlock wallet for 10 seconds
36
38
  client.json_rpc(:walletpassphrase,
37
39
  [
38
- options[:passphrase],
39
- options[:seconds]
40
+ passphrase,
41
+ timeout
40
42
  ])
43
+ rescue Decredcoin::Client::Error => e
44
+ raise Peatio::Wallet::ClientError, e
45
+ end
46
+
47
+
48
+ def create_transaction!(transaction, options = {})
41
49
  # create a transaction
42
50
  txid = client.json_rpc(:sendtoaddress,
43
51
  [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: peatio-decredcoin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anuj Dhiman