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 +4 -4
- data/lib/cardano_wallet/shelley.rb +8 -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: 14c547e38f46a65fec1d75bdf6d629881ef9aa6238cc8512171f39150a515b80
|
4
|
+
data.tar.gz: ef6cb57c23cd9521fbb1303efb61a73c6149b3c4e2c0fa990ccf94892ddcf71b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.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-
|
11
|
+
date: 2022-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|