harmony-api 0.1.3 → 0.1.4

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: a791e91f0d85db68948698f39978e0755c8d7ea87c651c53b46a92108ec41cd1
4
- data.tar.gz: 6c2be4817ad70e4036f1d4c8b9fc3a3331ead5898d871affe62da53c465a8329
3
+ metadata.gz: 147064a327f188184bf9b36f7ee51eef9ba82b4705259f9b2d934299c4884bf3
4
+ data.tar.gz: b9392d02cfd5d06eab9a721e2c18087b621560c917beeb8e05b149de0605746b
5
5
  SHA512:
6
- metadata.gz: 15cc179f9e1fe5966630a27d4f819e3ecdd265febfbbcedf56a6eaa77b24ae6645982d631c345eba9d94d0fcda120ea973dd7a956a2e5a897414032873299325
7
- data.tar.gz: dd3282020d57d77d866c5a56c169789e6e54fbc0cd4a99dfe2a680522db8b653d598434e87c3a86a6d849ee47c3799e2dd86ace3f61b439f6b60047a1487ae12
6
+ metadata.gz: a4e31320d98b1b92abcda8de1e155ed6362e535376fd7355f00f4223df1eb56a9af84eff0573b590f7bc12481ad9d1b379c771adaa4be2411f7d119f982d79fa
7
+ data.tar.gz: eba48ec9f983bf8637ca26fc417b3cfde1b08063327f7e15f412f5977c23cfd909c380fadea71bba82928de91390ba226565357dd5b161fa3d36aa8be1fbcc0c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- harmony-api (0.1.2)
4
+ harmony-api (0.1.4)
5
5
  faraday
6
6
  faraday_middleware
7
7
 
@@ -22,6 +22,7 @@ module Harmony
22
22
  params = [hash, Harmony::Api::Utilities.int_to_hex(index)]
23
23
  response(post('getStakingTransactionByBlockHashAndIndex', params: params))
24
24
  end
25
+
25
26
  end
26
27
  end
27
28
  end
@@ -34,16 +34,18 @@ module Harmony
34
34
  def get_transactions_history(address, page_index: 0, page_size: 1000, full_txs: false, tx_type: :all, order: :asc)
35
35
  params = [
36
36
  {
37
- 'address' => address,
37
+ 'address' => address,
38
38
  'pageIndex' => page_index,
39
- 'pageIndex' => page_size,
40
- 'fullTx' => full_txs,
41
- 'txType' => tx_type.to_s.upcase,
42
- 'order' => order.to_s.upcase
39
+ 'pageSize' => page_size,
40
+ 'fullTx' => full_txs,
41
+ 'txType' => tx_type.to_s.upcase,
42
+ 'order' => order.to_s.upcase
43
43
  }
44
44
  ]
45
+
45
46
  response(post('getTransactionsHistory', params: params))
46
47
  end
48
+
47
49
  end
48
50
  end
49
51
  end
@@ -1,5 +1,5 @@
1
1
  module Harmony
2
2
  module Api
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harmony-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Johnsson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-23 00:00:00.000000000 Z
11
+ date: 2020-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday