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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e03252209057d5605ab9020ce1ef5ff66f123c6de43039595fbcfeefcc93ceb
4
- data.tar.gz: 17be8811e28fa42f2b7dcc3f143d15d1f3b86ff186031c30dccbd71ee6487028
3
+ metadata.gz: c115a916adbed97481aa950e6c15a6e8609117a68549112dcc18d60300e47657
4
+ data.tar.gz: e3cd4ce44ea58b62349bc29e14faf51dfe3b6f69a4135c3dcf6e5575c26bbbfd
5
5
  SHA512:
6
- metadata.gz: 92fb3ce4f8d6083e03dce79d4a617b672d28c5952590b5ac9604ebd01352ed03d59e62aa3a42f6a1674800a10fa3e26355897dabebfde916a90c73a1e7471a94
7
- data.tar.gz: db0decbb39674070b8741ade621a3e1dd5d6fe8a8539dc13ceaac303bc7b86fc6304c13709caa9f5bfafaecde3f56468ceadbfe879f77243cc407f92716d3526
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
- payments_formatted = Utils.verify_param_is_hash!(deleg_action)
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 = {})
@@ -1,3 +1,3 @@
1
1
  module CardanoWallet
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  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.2.6
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-06 00:00:00.000000000 Z
11
+ date: 2020-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty