cardano_wallet 0.3.28 → 0.4.0

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: c0c786aa01e91885cd16eec71a342abd8b6c167333a31fa7295387034e419d12
4
- data.tar.gz: 072f86798b9627fad6271f8914d2f1acb0c66e0f883a98a90c445a76b5771e71
3
+ metadata.gz: ff6a6b64dbaa80f7564f05e29c28068676945ff5bca968563ae764720af2d5b8
4
+ data.tar.gz: a1aa9f10c95dba5d28c749859b43b0756c6bf94ee0035dacc987b2a233b8e0bc
5
5
  SHA512:
6
- metadata.gz: dbacc44ddf77499f1beafc40a7a7fa5b1e74e8bb875ef8349b64f861348aa01ed07fdcb217f17ad0b4656850d7229a116a577dbd13af7af74d9b2e7b2219b494
7
- data.tar.gz: 00ef7d5428ffa310d08c13fa4ea12f49033d5fe8332033437b9dfd589ebb298579286006737b5d14ded83797cb410b4c5e22230dea05729885badc3da9e6b5cd
6
+ metadata.gz: 8b00a425a276b3a2428672484fa0fe301e140ab0ae65c88fc45f7ea3e8b0f8889f20d4f1f04de0d0171fb3ebb9ba43b95cf8f54c9a5469102256d89bda05a376
7
+ data.tar.gz: 642380a8b7e87106f1b6f6cf4437a4a7079ebc5d696977764eac4a025b9abd1fcfac066ef8dc7d2629bed24c0d4d3788517f34e71ad47d24ee032a54cf4ba1b1
@@ -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
@@ -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.0'
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.0
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: 2022-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bip_mnemonic