cardano_wallet 0.3.6 → 0.3.7
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/cardano_wallet/shared.rb +19 -4
- 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: 43840673c63b02899e8bcdb4c28e088bb5a7a154dd322f59d1ab250f318d7a7c
|
4
|
+
data.tar.gz: 493f143440c24e484add14976c3ec92a70b72f15022f22166d8596e23c254c4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9076c4d8e5861439b5af3f7f981ccf633bfc3b8fb5b4a62596228ece4d2d13a3c3df9f8dfad6502c8735525fb0b07032e5d552c5242ca99b5ea39c704c2b19b8
|
7
|
+
data.tar.gz: 70629fd858e3a46d159a547c3735ab470a6797cbcf68645fb131646608d069fee41227627d78491872e03191be068cd9e00277845bbe2c433e4de37e0bceafc9
|
@@ -21,6 +21,21 @@ module CardanoWallet
|
|
21
21
|
def keys
|
22
22
|
Keys.new @opt
|
23
23
|
end
|
24
|
+
|
25
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Shared-Addresses
|
26
|
+
def addresses
|
27
|
+
Addresses.new @opt
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# API for Addresses
|
32
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Shared-Addresses
|
33
|
+
class Addresses < Base
|
34
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listSharedAddresses
|
35
|
+
def list(wid, query = {})
|
36
|
+
query_formatted = query.empty? ? '' : Utils.to_query(query)
|
37
|
+
self.class.get("/shared-wallets/#{wid}/addresses#{query_formatted}")
|
38
|
+
end
|
24
39
|
end
|
25
40
|
|
26
41
|
# API for Keys
|
@@ -46,10 +61,10 @@ module CardanoWallet
|
|
46
61
|
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Shared-Wallets
|
47
62
|
class Wallets < Base
|
48
63
|
# List all wallets
|
49
|
-
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/
|
50
|
-
|
51
|
-
|
52
|
-
|
64
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listSharedWallets
|
65
|
+
def list
|
66
|
+
self.class.get('/shared-wallets')
|
67
|
+
end
|
53
68
|
|
54
69
|
# Get wallet details
|
55
70
|
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getSharedWallet
|
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.7
|
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-05-
|
11
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|