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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17ae7a59007ca84a6d8e72a27aa27e5caf3d06392760cbb9a148bafdb85a174a
4
- data.tar.gz: 716c172249989ba3e18984b1decb7b22be01b76197528f5671a0ba48f2948681
3
+ metadata.gz: df0d8f6569ab3be773efe025fa14ec11e90fdfc9a51a08817182ec99de86eaec
4
+ data.tar.gz: 4ce00832c57f2afea0c2019d7772f8037b5fb4523e1f8f3be5aa3dfb4040a6d6
5
5
  SHA512:
6
- metadata.gz: 819b043669d707e770e17ccb2abdd3a8e24e16e5fd64d2ee288fbecc2c668955415172e8b8b7ea67717dba9aaa5dbb91fbd3771577d7b92355d577e2158ef96e
7
- data.tar.gz: 4a8b7ca55f536b52320d2834ad23ebd1b27a075a17a180415afc0458b1aadc694478a058a5557fec9b41f0019e628e0667098d9a5419ba3db8167f6b4bb83b01
6
+ metadata.gz: 97f5be475f2b18c6344e619fb33866a41d0449baf6801820aacc3123a0390195d4ed29a3d253b9b4e9004c6cd96246100a4b9df4a7ec54cb7e4ace3e37beeac8
7
+ data.tar.gz: e38d3564c8d28a01cc585ffbf3bf38d061f498301f26c1464aa9703bc927f18230af5bd3dbd27600a2b27b91a6dadc4059b6c91875a2dd2394951ded48af8cc2
@@ -31,4 +31,4 @@ jobs:
31
31
  CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
32
32
  NETWORK: testnet
33
33
  WALLET: dev-master-shelley
34
- NODE: master
34
+ NODE: 1.14.2
@@ -38,4 +38,4 @@ jobs:
38
38
  CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
39
39
  NETWORK: testnet
40
40
  WALLET: dev-master-shelley
41
- NODE: master
41
+ NODE: 1.14.2
@@ -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
- self.class.post("/wallets/#{wid}/transactions",
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
@@ -1,3 +1,3 @@
1
1
  module CardanoWallet
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
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.1.4
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-26 00:00:00.000000000 Z
11
+ date: 2020-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty