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 +4 -4
- data/lib/cardano_wallet/shelley.rb +13 -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: 74c9782cd3632fcc7dcfa508223f69a9a027870866bdb5d396c6148882e52fd6
|
4
|
+
data.tar.gz: caac73d294e60c1cf420494cb8642e920953671fd2c9934f8f94d8701a5f4b32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.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-
|
11
|
+
date: 2020-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|