cardano_wallet 0.3.16 → 0.3.17

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: 8fa0c383ca96ba2ca8b2293d2754578a41aabc2db26617ca51f0519d662b0820
4
- data.tar.gz: 36a2ca1a5a76837978ae826e7d285ac53ab24eccf13678489d9f5383e0695592
3
+ metadata.gz: 45b919d141b81daa489e6f718a8b61054f2b189d6fe541488d10171144b0217b
4
+ data.tar.gz: 5987eeea91e123379a648fc44a6feed0a87223987a2b1a4989f36c8975e26a1d
5
5
  SHA512:
6
- metadata.gz: 92abce3f9b08f24e9be3138236eb346ab2c992b61b8c4182bc4dbeae02fa572708de671b56d3dbef1ac1bb589bf4ee878369967da05e8c6d8b020de125668a0f
7
- data.tar.gz: 9fc6f2d60b340f6cb9161a34d33b2b4b97c49cac0a4ba670c8b5d69dc2e901abed986acdda5f1d5de6e459755b47c2bf61a17161b744271311b9f9d8c530478a
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CardanoWallet
4
- VERSION = '0.3.16'
4
+ VERSION = '0.3.17'
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.16
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-10-15 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty