cardano_wallet 0.2.2 → 0.2.3

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: b3d493df353517eb41d713b9b12973fadd1b56da5f17f8a15763181285d13a82
4
- data.tar.gz: 6848865dea8cd920f95d0268065293aba195e67e4cfd1b1324a62e355e119347
3
+ metadata.gz: 74c9782cd3632fcc7dcfa508223f69a9a027870866bdb5d396c6148882e52fd6
4
+ data.tar.gz: caac73d294e60c1cf420494cb8642e920953671fd2c9934f8f94d8701a5f4b32
5
5
  SHA512:
6
- metadata.gz: d02a807c61dad05dd08fc300990702a10ed631a25268735189772e4f54dabb411d4ab5d2688e10333b9d88558a881de1eaf1545cd3a9547cc29bf4f36116f909
7
- data.tar.gz: 4007b0db748e9f88244257e30a9a939dea56e213eec84fce632b603c1d2dbfb55e73222db8f13bb6ab6855e3aa0e8c5e3c575f6ce89d55d7cb51c063a5dffb45
6
+ metadata.gz: 0c97ede17011cbb192b1de47ee7048dbe3dd56b8fdbb98c304549da2de0cd54838783dba1987b7ff7bd5aba1f6800455b62449283e42e68eb05beaeed7abe63f
7
+ data.tar.gz: 04caba35632d0e15825414e6bf1680b50673a9c1e7e9c65a1bad4ed0e82a03af3ca17aa64fce28a7ddadaabd3a54716b9fb5cc8ca590be0b3cff17cb09cf1e80
@@ -165,6 +165,19 @@ module CardanoWallet
165
165
  :body => {:payments => payments_formatted}.to_json,
166
166
  :headers => { 'Content-Type' => 'application/json' })
167
167
  end
168
+
169
+ # Coin selection -> Delegation action
170
+ # @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/selectCoins
171
+ #
172
+ # @example
173
+ # random(wid, {action: "join", pool: "poolid"})
174
+ # random(wid, {action: "quit"})
175
+ def random_deleg(wid, deleg_action)
176
+ payments_formatted = Utils.verify_param_is_hash!(deleg_action)
177
+ self.class.post("/wallets/#{wid}/coin-selections/random",
178
+ :body => {:delegation_action => deleg_action}.to_json,
179
+ :headers => { 'Content-Type' => 'application/json' })
180
+ end
168
181
  end
169
182
 
170
183
  # API for Transactions
@@ -1,3 +1,3 @@
1
1
  module CardanoWallet
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
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.2
4
+ version: 0.2.3
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-10-15 00:00:00.000000000 Z
11
+ date: 2020-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty