cardano_wallet 0.3.18 → 0.3.19
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 +16 -1
- 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: 1f3553eac627012a6c1503cc9a95fe76c17685c4437f0cf2f2ca899c8f16e760
|
|
4
|
+
data.tar.gz: adf34dad29c5b8443afd31d88e7b7f1574958826730b1d0beaefa8609f9964da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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[:
|
|
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
|
|
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.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-
|
|
11
|
+
date: 2022-03-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|