cardano_wallet 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cardano_wallet/shared.rb +3 -2
- data/lib/cardano_wallet/shelley.rb +3 -2
- data/lib/cardano_wallet/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: 5c14cc02d6ed07e1806787d053ba1757012cf99210aba0aa4d24945319fea0eb
|
4
|
+
data.tar.gz: f6f4cf5ba6b44c8cce833d5718f8bb5bde56ba4067c426f4b16f7881d06f2a65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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,
|
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' })
|
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.
|
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-
|
11
|
+
date: 2021-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|