cardano_wallet 0.3.10 → 0.3.11

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: f384a2f90f9d7d8ccf03a093933b5b1f415be587ab3ac32a607e509c3530e7f8
4
- data.tar.gz: 21e513675aa00c5a6d26dc34d049ea127b46f75d0d31d695871b2dd0cc9dcf7d
3
+ metadata.gz: 5c14cc02d6ed07e1806787d053ba1757012cf99210aba0aa4d24945319fea0eb
4
+ data.tar.gz: f6f4cf5ba6b44c8cce833d5718f8bb5bde56ba4067c426f4b16f7881d06f2a65
5
5
  SHA512:
6
- metadata.gz: bbc9038c4cfc5358bce078b4f224ae1a5fe446d049f691eb084b80c70d4a3eb14807acc39792e1ed6b93604603ba2cfc8d46640b66c7fd3c84d42653422ffbed
7
- data.tar.gz: afc8b07a4e04d33038ffc0f41a24ec525f93a4f98216c394b4279c327e4ee075b2037a978d859fae40405cc26c511cbb7daf95197a7928ef678e68bb5b79e8b5
6
+ metadata.gz: 582a9a4b01270bb7cba2689b2b9eee63ed605918c28ba1f982b293dabd3804607e424340cefd07c86b83a59b5ffdbecaa9ddac55c4ae630a338fc4294c113079
7
+ data.tar.gz: b6e0ca9ecfb84d3be28c617e298d5029cf81c74624420de6ee11a34817775087fe8660f67867fd4e51e57695669138100a0d47e3efb6f1b3589611d2cb5b3302
@@ -49,8 +49,9 @@ module CardanoWallet
49
49
  end
50
50
 
51
51
  # @see https://input-output-hk.github.io/cardano-wallet/api/#operation/postAccountKeyShared
52
- def create_acc_public_key(wid, index, pass, format)
53
- payload = { passphrase: pass, format: format }
52
+ def create_acc_public_key(wid, index, payload)
53
+ # payload = { passphrase: pass, format: format }
54
+ Utils.verify_param_is_hash!(payload)
54
55
  self.class.post("/shared-wallets/#{wid}/keys/#{index}",
55
56
  body: payload.to_json,
56
57
  headers: { 'Content-Type' => 'application/json' })
@@ -93,8 +93,9 @@ module CardanoWallet
93
93
  end
94
94
 
95
95
  # @see https://input-output-hk.github.io/cardano-wallet/api/#operation/postAccountKey
96
- def create_acc_public_key(wid, index, pass, format)
97
- payload = { passphrase: pass, format: format }
96
+ def create_acc_public_key(wid, index, payload)
97
+ # payload = { passphrase: pass, format: format, purpose: purpose }
98
+ Utils.verify_param_is_hash!(payload)
98
99
  self.class.post("/wallets/#{wid}/keys/#{index}",
99
100
  body: payload.to_json,
100
101
  headers: { 'Content-Type' => 'application/json' })
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CardanoWallet
4
- VERSION = '0.3.10'
4
+ VERSION = '0.3.11'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cardano_wallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Stachyra
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-02 00:00:00.000000000 Z
11
+ date: 2021-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty