cronos_explorer 0.2.0 → 0.2.3

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: 79c4ae9221343ccb2c32c3ca7f0e4f1f8145a040d4fd4e34ee83980238a808a6
4
- data.tar.gz: 379356bf6e5a28cbc5379d8d0abe77f94e1a25976f145ba7ff2b895a7d663c7d
3
+ metadata.gz: '01897ec2fe724b2d85d9117e4bb92935122a4964bb5149dae0fdf30773514b25'
4
+ data.tar.gz: 575fccd9f9db8058b564331ed67ca1025183768ccff435d795ebadfa68fb3b39
5
5
  SHA512:
6
- metadata.gz: 257561ff4d9be691802b4bdae9e23ba1271c2afd479cac55cfb0b8ef337c3b3191f4b554b7b79ed64ba8c71a939d15ad9fb96281e8ec2b2a85a58adf77f63cfa
7
- data.tar.gz: 555152d9efcb316558bc447a5b581c9fcce38bed81db49df0b45ed099318e1d2980f0476e7c2ba229dcc9168678bce91e28b47972b1ca88630c4d9a11dc7685e
6
+ metadata.gz: c4190a5a01ff62a9e8b458a58c27c027a5447ea0bf95b463378628bf324ef272ecdaad4b96d5f9d08c869dadefcfab516c966eb2426540e28399c4816b697ee3
7
+ data.tar.gz: 7174decc48d9fef1b918499c7dbfb0d9feb64fc3d750da37d6a176f808a3a9bcd8664fc7484490eafdbb107bf7eb7d14d61cb8083e05250c6519dadda8e0e8d4
data/Gemfile.lock CHANGED
@@ -1,24 +1,43 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cronos_explorer (0.2.0)
5
- faraday (~> 2.0)
4
+ cronos_explorer (0.2.3)
5
+ faraday (~> 1.0)
6
6
  oj (~> 3.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- faraday (2.2.0)
12
- faraday-net_http (~> 2.0)
11
+ faraday (1.10.0)
12
+ faraday-em_http (~> 1.0)
13
+ faraday-em_synchrony (~> 1.0)
14
+ faraday-excon (~> 1.1)
15
+ faraday-httpclient (~> 1.0)
16
+ faraday-multipart (~> 1.0)
17
+ faraday-net_http (~> 1.0)
18
+ faraday-net_http_persistent (~> 1.0)
19
+ faraday-patron (~> 1.0)
20
+ faraday-rack (~> 1.0)
21
+ faraday-retry (~> 1.0)
13
22
  ruby2_keywords (>= 0.0.4)
14
- faraday-net_http (2.0.1)
23
+ faraday-em_http (1.0.0)
24
+ faraday-em_synchrony (1.0.0)
25
+ faraday-excon (1.1.0)
26
+ faraday-httpclient (1.0.1)
27
+ faraday-multipart (1.0.3)
28
+ multipart-post (>= 1.2, < 3)
29
+ faraday-net_http (1.0.1)
30
+ faraday-net_http_persistent (1.2.0)
31
+ faraday-patron (1.0.0)
32
+ faraday-rack (1.0.0)
33
+ faraday-retry (1.0.3)
15
34
  minitest (5.15.0)
35
+ multipart-post (2.1.1)
16
36
  oj (3.13.11)
17
37
  rake (13.0.6)
18
38
  ruby2_keywords (0.0.5)
19
39
 
20
40
  PLATFORMS
21
- x86_64-darwin-19
22
41
  x86_64-darwin-20
23
42
 
24
43
  DEPENDENCIES
@@ -28,4 +47,4 @@ DEPENDENCIES
28
47
  rake (~> 13.0)
29
48
 
30
49
  BUNDLED WITH
31
- 2.2.28
50
+ 2.2.19
data/README.md CHANGED
@@ -28,23 +28,8 @@ Or install it yourself as:
28
28
  CronosExplorer.net = 'testnet3' or CronosExplorer.net = 'main' (default)
29
29
  ```
30
30
 
31
- ```ruby
32
- CronosExplorer::Blocks.eth_block_number
33
-
34
- CronosExplorer::Contracts.listcontracts
35
-
36
- CronosExplorer::Accounts.eth_get_balance(@address)
37
- CronosExplorer::Accounts.balance(@address)
38
- CronosExplorer::Accounts.txlist(@address, starttimestamp)
39
- CronosExplorer::Accounts.tokenbalance(@contractaddress, @address)
40
-
41
- CronosExplorer::Transactions.gettxinfo(@txhash)
42
- CronosExplorer::Transactions.gettxreceiptstatus(@txhash)
43
- CronosExplorer::Transactions.getstatus(@txhash)
44
-
45
- CronosExplorer::Tokens.getToken(@contractaddress)
46
-
47
- CronosExplorer::Contracts.listcontracts
31
+ ```test
32
+ ruby test/*
48
33
  ```
49
34
 
50
35
  ## Development
@@ -35,8 +35,8 @@ module CronosExplorer
35
35
  end
36
36
 
37
37
  # Get token transfer events by address. Up to a maximum of 10,000 token transfer events. Also available through a GraphQL 'token_transfers' query.
38
- def tokentx(address)
39
- hash = DEFAULT_HASH.merge(action: 'tokentx', address: address)
38
+ def tokentx(address, startblock, sort='desc')
39
+ hash = DEFAULT_HASH.merge(action: 'tokentx', address: address, startblock: startblock, sort: sort)
40
40
 
41
41
  Request.get hash
42
42
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CronosExplorer
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cronos_explorer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - dave
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-09 00:00:00.000000000 Z
11
+ date: 2022-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.0'
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.0'
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: oj
29
29
  requirement: !ruby/object:Gem::Requirement