cardano_wallet 0.3.16 → 0.3.17
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/shelley.rb +12 -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: 45b919d141b81daa489e6f718a8b61054f2b189d6fe541488d10171144b0217b
|
4
|
+
data.tar.gz: 5987eeea91e123379a648fc44a6feed0a87223987a2b1a4989f36c8975e26a1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dd7b9d3f29876effa91026ca884a8d955d44dfceda38ee9210fbbab583ba89002e288e6b656fecd74c983b6e6a76c56710d5b8911a76249f6ad9755805d6f82
|
7
|
+
data.tar.gz: e1eb83d8e47a102d99942f8f7d9c37b399430a3bc908acbbf6c6c4dd9a0d1ccdde2a0060b935cb79c8ccd8191dba42bab81bdeae6b0bfc95e008e951823f9df2
|
@@ -269,6 +269,18 @@ module CardanoWallet
|
|
269
269
|
headers: { 'Content-Type' => 'application/json' })
|
270
270
|
end
|
271
271
|
|
272
|
+
# Decode transaction
|
273
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/decodeTransaction
|
274
|
+
# @param wid [String] source wallet id
|
275
|
+
# @param transaction [String] CBOR base64|base16 encoded transaction
|
276
|
+
def decode(wid, transaction)
|
277
|
+
payload = {}
|
278
|
+
payload[:transaction] = transaction
|
279
|
+
self.class.post("/wallets/#{wid}/transactions-decode",
|
280
|
+
body: payload.to_json,
|
281
|
+
headers: { 'Content-Type' => 'application/json' })
|
282
|
+
end
|
283
|
+
|
272
284
|
# Construct transaction
|
273
285
|
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/constructTransaction
|
274
286
|
# @param wid [String] source wallet id
|
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.17
|
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-
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|