cardano_wallet 0.3.28 → 0.4.0
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 +17 -0
- 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: ff6a6b64dbaa80f7564f05e29c28068676945ff5bca968563ae764720af2d5b8
|
4
|
+
data.tar.gz: a1aa9f10c95dba5d28c749859b43b0756c6bf94ee0035dacc987b2a233b8e0bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2022-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bip_mnemonic
|