cardano_wallet 0.1.4 → 0.1.5
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/.github/workflows/nightly.yml +1 -1
- data/.github/workflows/tests.yml +1 -1
- data/lib/cardano_wallet/shelley.rb +5 -4
- 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: df0d8f6569ab3be773efe025fa14ec11e90fdfc9a51a08817182ec99de86eaec
|
4
|
+
data.tar.gz: 4ce00832c57f2afea0c2019d7772f8037b5fb4523e1f8f3be5aa3dfb4040a6d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97f5be475f2b18c6344e619fb33866a41d0449baf6801820aacc3123a0390195d4ed29a3d253b9b4e9004c6cd96246100a4b9df4a7ec54cb7e4ace3e37beeac8
|
7
|
+
data.tar.gz: e38d3564c8d28a01cc585ffbf3bf38d061f498301f26c1464aa9703bc927f18230af5bd3dbd27600a2b27b91a6dadc4059b6c91875a2dd2394951ded48af8cc2
|
data/.github/workflows/tests.yml
CHANGED
@@ -195,17 +195,18 @@ module CardanoWallet
|
|
195
195
|
# @param wid [String] source wallet id
|
196
196
|
# @param passphrase [String] source wallet's passphrase
|
197
197
|
# @param payments [Hash] addres, amount pair
|
198
|
+
# @param q [Hash] query param (currently only withdrawRewards = true | false)
|
198
199
|
#
|
199
200
|
# @example
|
200
|
-
# create(wid, passphrase, {addr1: 1000000})
|
201
|
-
def create(wid, passphrase, payments)
|
201
|
+
# create(wid, passphrase, {addr1: 1000000}, q)
|
202
|
+
def create(wid, passphrase, payments, q = {})
|
202
203
|
payments_formatted = Utils.format_payments(payments)
|
203
|
-
|
204
|
+
q.empty? ? query = '' : query = Utils.to_query(q)
|
205
|
+
self.class.post("/wallets/#{wid}/transactions#{query}",
|
204
206
|
:body => { :payments => payments_formatted,
|
205
207
|
:passphrase => passphrase
|
206
208
|
}.to_json,
|
207
209
|
:headers => { 'Content-Type' => 'application/json' } )
|
208
|
-
|
209
210
|
end
|
210
211
|
|
211
212
|
# Estimate fees for transaction
|
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.1.
|
4
|
+
version: 0.1.5
|
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-06
|
11
|
+
date: 2020-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|