cardano_wallet 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f149bd85ed1c3a010b17f066f6c8a8e246206b0d4d8850d407119a85f41c13c8
4
- data.tar.gz: f93405819fda7d70f52ba8f9012388b872705eec927f2d8d0b33bed7a89cf465
3
+ metadata.gz: 43840673c63b02899e8bcdb4c28e088bb5a7a154dd322f59d1ab250f318d7a7c
4
+ data.tar.gz: 493f143440c24e484add14976c3ec92a70b72f15022f22166d8596e23c254c4f
5
5
  SHA512:
6
- metadata.gz: 8bb6a4745be667c10ae3d9d9710156c6ae596d4ebd6c1314e379b0e30d62c73f2bc4640e9b6925d17eac8dbdd71da50cf820a156c92b484349068beb30c53450
7
- data.tar.gz: a18defeaa4668b984d98b6518857855297215935bf20a6df293800356bd8db4e2fae694eef28b35b31cedd41d8bd2925013e1c415e1e50710a4391ae9293cf9b
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/listWallets
50
- # def list
51
- # self.class.get('/shared-wallets')
52
- # end
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CardanoWallet
4
- VERSION = '0.3.6'
4
+ VERSION = '0.3.7'
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.6
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-13 00:00:00.000000000 Z
11
+ date: 2021-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty