cardano_wallet 0.2.6 → 0.2.7
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 +19 -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: c115a916adbed97481aa950e6c15a6e8609117a68549112dcc18d60300e47657
|
4
|
+
data.tar.gz: e3cd4ce44ea58b62349bc29e14faf51dfe3b6f69a4135c3dcf6e5575c26bbbfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d2f7768e00ead4a2cf7b7b463dc3bdea8ac5794dc4a7ef3604dcd31c1663052c2493b382f100acaf9f5dcf1afb996c68da2e74f5720022d70126864a2d26e03
|
7
|
+
data.tar.gz: 0e353d9082d2f22cce803ab1f38de10a364dbbb936b6f720a93aaaa88584cf326b9d2d969b0fce495cd9cabefe8118be0e5aec5600ed4083d5748aa273153e48
|
@@ -202,7 +202,7 @@ module CardanoWallet
|
|
202
202
|
# random(wid, {action: "join", pool: "poolid"})
|
203
203
|
# random(wid, {action: "quit"})
|
204
204
|
def random_deleg(wid, deleg_action)
|
205
|
-
|
205
|
+
Utils.verify_param_is_hash!(deleg_action)
|
206
206
|
self.class.post("/wallets/#{wid}/coin-selections/random",
|
207
207
|
:body => {:delegation_action => deleg_action}.to_json,
|
208
208
|
:headers => { 'Content-Type' => 'application/json' })
|
@@ -289,6 +289,24 @@ module CardanoWallet
|
|
289
289
|
super
|
290
290
|
end
|
291
291
|
|
292
|
+
# Stake pools maintenance actions
|
293
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postMaintenanceAction
|
294
|
+
#
|
295
|
+
# @example
|
296
|
+
# maintenance_action({ "maintenance_action": "gc_stake_pools" })
|
297
|
+
def trigger_maintenance_actions(action = {})
|
298
|
+
Utils.verify_param_is_hash!(action)
|
299
|
+
self.class.post("/stake-pools/maintenance-actions",
|
300
|
+
:body => action.to_json,
|
301
|
+
:headers => { 'Content-Type' => 'application/json' } )
|
302
|
+
end
|
303
|
+
|
304
|
+
# Metdata GC Status
|
305
|
+
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/getMaintenanceActions
|
306
|
+
def view_maintenance_actions
|
307
|
+
self.class.get("/stake-pools/maintenance-actions")
|
308
|
+
end
|
309
|
+
|
292
310
|
# List all stake pools
|
293
311
|
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/listStakePools
|
294
312
|
def list(stake = {})
|
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.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Stachyra
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|