cardano_wallet 0.3.28 → 0.4.1

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: c0c786aa01e91885cd16eec71a342abd8b6c167333a31fa7295387034e419d12
4
- data.tar.gz: 072f86798b9627fad6271f8914d2f1acb0c66e0f883a98a90c445a76b5771e71
3
+ metadata.gz: 2818b4fc7a9045e2727ceaa830f1483c0d27944119c8b37c52b58d0135315808
4
+ data.tar.gz: 4885e446b178c89d1706a13d462b6f723a3fb00e39bb24493376e814a264d9c9
5
5
  SHA512:
6
- metadata.gz: dbacc44ddf77499f1beafc40a7a7fa5b1e74e8bb875ef8349b64f861348aa01ed07fdcb217f17ad0b4656850d7229a116a577dbd13af7af74d9b2e7b2219b494
7
- data.tar.gz: 00ef7d5428ffa310d08c13fa4ea12f49033d5fe8332033437b9dfd589ebb298579286006737b5d14ded83797cb410b4c5e22230dea05729885badc3da9e6b5cd
6
+ metadata.gz: 037bd53bedd96347389dd83036b3e9c604d6423b2d47efaf121c629a79a105066fcbebbdaa71a3eb6c9d47322694d21b5c16e0818c55f144023ec2b756b02f19
7
+ data.tar.gz: 21d117259928e6bfc8e0435cb999f06e97b14c9d8f069ada8cf4324b0952e68dd9bf201e40c51e91f779b157dd86a2ceed66ac951817106b8a28092d18f0c7e5
@@ -37,5 +37,5 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency 'rake', '~> 12.3'
38
38
  spec.add_development_dependency 'rspec', '~> 3.7'
39
39
  spec.add_development_dependency 'rubocop', '~> 1.11'
40
- spec.add_development_dependency 'simplecov'
40
+ spec.add_development_dependency 'simplecov', '~> 0.19.0'
41
41
  end
@@ -113,6 +113,23 @@ module CardanoWallet
113
113
  body: payload.to_json,
114
114
  headers: { 'Content-Type' => 'application/json' })
115
115
  end
116
+
117
+ # Get tx by id
118
+ # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getSharedTransaction
119
+ def get(wid, tx_id, query = {})
120
+ query_formatted = query.empty? ? '' : Utils.to_query(query)
121
+ self.class.get("/shared-wallets/#{wid}/transactions/#{tx_id}#{query_formatted}")
122
+ end
123
+
124
+ # List all wallet's transactions
125
+ # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listSharedTransactions
126
+ #
127
+ # @example
128
+ # list(wid, {start: "2012-09-25T10:15:00Z", order: "descending"})
129
+ def list(wid, query = {})
130
+ query_formatted = query.empty? ? '' : Utils.to_query(query)
131
+ self.class.get("/shared-wallets/#{wid}/transactions#{query_formatted}")
132
+ end
116
133
  end
117
134
 
118
135
  # API for Addresses
@@ -213,6 +230,16 @@ module CardanoWallet
213
230
  body: { cosigner => acc_pub_key }.to_json,
214
231
  headers: { 'Content-Type' => 'application/json' })
215
232
  end
233
+
234
+ # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getUTxOsStatistics
235
+ def utxo(wid)
236
+ self.class.get("/shared-wallets/#{wid}/statistics/utxos")
237
+ end
238
+
239
+ # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getWalletUtxoSnapshot
240
+ def utxo_snapshot(wid)
241
+ self.class.get("/shared-wallets/#{wid}/utxo")
242
+ end
216
243
  end
217
244
  end
218
245
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CardanoWallet
4
- VERSION = '0.3.28'
4
+ VERSION = '0.4.1'
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.28
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Stachyra
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-06 00:00:00.000000000 Z
11
+ date: 2023-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bip_mnemonic
@@ -98,16 +98,16 @@ dependencies:
98
98
  name: simplecov
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 0.19.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 0.19.0
111
111
  description: Ruby wrapper over cardano-wallet.
112
112
  email:
113
113
  - piotr.stachyra@gmail.com
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.3.7
168
+ rubygems_version: 3.3.26
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Ruby wrapper over cardano-wallet.