cardano_wallet 0.3.18 → 0.3.19

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: 8c7ce08240e2c7224eba31a8a6aa0b7f928630a858be44aaad315a55c959c93b
4
- data.tar.gz: 50d698826b6104abba2f5f9aaaa938df83c647497880c181a87737e634431863
3
+ metadata.gz: 1f3553eac627012a6c1503cc9a95fe76c17685c4437f0cf2f2ca899c8f16e760
4
+ data.tar.gz: adf34dad29c5b8443afd31d88e7b7f1574958826730b1d0beaefa8609f9964da
5
5
  SHA512:
6
- metadata.gz: 87ae856018a68b179f880aebb094adb6de48cdd20e612fab3dd683d1ab5bfb557aeac4582f5151d6febcf3829dd86cc52766abab310485f27923c919f6f1bbf5
7
- data.tar.gz: 990e4bfb52027df1a8a92d63b4521a4ae3cdebda992825271c4a014e4a1e53cdd0fa379e38fe3f11b1e6e85f7e4ddcbe41f983d5512f1f730dfe2154c9fe0fd8
6
+ metadata.gz: 46594f10f0e1507601213fa770c92ee3bf7595e0ddc509d6d4a5733e6fd5d22a5a903cb5f613cf5d7bc3508518effc9440c22599331659d0eb4197f1f9b70a05
7
+ data.tar.gz: a0d46087763b83c37cffa91b88623faa3981b00eb8b249ebdc05ec3904f54299bf35ecc695a0bc5c46ad37fc05a53c9c3db7385360a168ee89b9ba91335dd66d
@@ -122,6 +122,21 @@ module CardanoWallet
122
122
  query_formatted = query.empty? ? '' : Utils.to_query(query)
123
123
  self.class.get("/wallets/#{wid}/keys#{query_formatted}")
124
124
  end
125
+
126
+ # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getPolicyKey
127
+ def get_policy_key(wid, query = {})
128
+ query_formatted = query.empty? ? '' : Utils.to_query(query)
129
+ self.class.get("/wallets/#{wid}/policy-key#{query_formatted}")
130
+ end
131
+
132
+ # @see https://input-output-hk.github.io/cardano-wallet/api/#operation/postPolicyKey
133
+ def create_policy_key(wid, passphrase, query = {})
134
+ query_formatted = query.empty? ? '' : Utils.to_query(query)
135
+ payload = { passphrase: passphrase }
136
+ self.class.post("/wallets/#{wid}/policy-key#{query_formatted}",
137
+ body: payload.to_json,
138
+ headers: { 'Content-Type' => 'application/json' })
139
+ end
125
140
  end
126
141
 
127
142
  # API for Wallets
@@ -301,7 +316,7 @@ module CardanoWallet
301
316
  payload[:payments] = payments if payments
302
317
  payload[:withdrawal] = withdrawal if withdrawal
303
318
  payload[:metadata] = metadata if metadata
304
- payload[:mint] = mint if mint
319
+ payload[:mint_burn] = mint if mint
305
320
  payload[:delegations] = delegations if delegations
306
321
  payload[:validity_interval] = validity_interval if validity_interval
307
322
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CardanoWallet
4
- VERSION = '0.3.18'
4
+ VERSION = '0.3.19'
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.18
4
+ version: 0.3.19
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-01-11 00:00:00.000000000 Z
11
+ date: 2022-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty