cardano_wallet 0.3.19 → 0.3.20

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: 1f3553eac627012a6c1503cc9a95fe76c17685c4437f0cf2f2ca899c8f16e760
4
- data.tar.gz: adf34dad29c5b8443afd31d88e7b7f1574958826730b1d0beaefa8609f9964da
3
+ metadata.gz: 14c547e38f46a65fec1d75bdf6d629881ef9aa6238cc8512171f39150a515b80
4
+ data.tar.gz: ef6cb57c23cd9521fbb1303efb61a73c6149b3c4e2c0fa990ccf94892ddcf71b
5
5
  SHA512:
6
- metadata.gz: 46594f10f0e1507601213fa770c92ee3bf7595e0ddc509d6d4a5733e6fd5d22a5a903cb5f613cf5d7bc3508518effc9440c22599331659d0eb4197f1f9b70a05
7
- data.tar.gz: a0d46087763b83c37cffa91b88623faa3981b00eb8b249ebdc05ec3904f54299bf35ecc695a0bc5c46ad37fc05a53c9c3db7385360a168ee89b9ba91335dd66d
6
+ metadata.gz: c2d655e969090373c0b86e2e27363e1e564d86c9456f4384d75ad7acd74e207a96ba52e09f3b9fbc6f4b0825ddb58a5c1283cbb497bed5d6b5f8266811ac5c19
7
+ data.tar.gz: 6e3afa0d08cc69033db5c2a01fa332bcd9ac4e4cff1d849731ce16559ead31db69aaa040e09a0992d6877be9cc51000abd2c2d3e57e126d26099c6c68b4fc736
@@ -137,6 +137,14 @@ module CardanoWallet
137
137
  body: payload.to_json,
138
138
  headers: { 'Content-Type' => 'application/json' })
139
139
  end
140
+
141
+ # @see https://input-output-hk.github.io/cardano-wallet/api/#operation/postPolicyId
142
+ def create_policy_id(wid, policy_script_template)
143
+ payload = { policy_script_template: policy_script_template }
144
+ self.class.post("/wallets/#{wid}/policy-id",
145
+ body: payload.to_json,
146
+ headers: { 'Content-Type' => 'application/json' })
147
+ end
140
148
  end
141
149
 
142
150
  # API for Wallets
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CardanoWallet
4
- VERSION = '0.3.19'
4
+ VERSION = '0.3.20'
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.19
4
+ version: 0.3.20
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-03-30 00:00:00.000000000 Z
11
+ date: 2022-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty