validators_app_ruby 1.0.0.pre → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c89330eeb681aa1a95f35231cad1864b73f0eb60052edfd56023147e8c17fdae
4
- data.tar.gz: 93f5c1fe5ed43e7836c0a9c14b9e377f9135899ab96767295784433d7b14c947
3
+ metadata.gz: 9187c086ff51ce1614eb461018da9c8271d9882b467a7bd1da04a176e2b9a1db
4
+ data.tar.gz: 7e3100e0f0482d63fca11984d106e2081171381d8854e197323adb97f3e1ae1d
5
5
  SHA512:
6
- metadata.gz: 6b94f47e28ce30f70a5a15fbf8a64ee1bc3baebc7ab51dea0c45af7665240c7f7e7a1128d576e91dea7c0dd8ff7d542da585028ac574462398fccea0fdbc958b
7
- data.tar.gz: 76d99a7e2a1d9f580f6fbef5d1b0cc2f3d5f12f77ee9114eec7b47f63b7c3766accb0e1097c4b7fcb658b85d716296d9886ea7ce29b38a982c8537b1e1405a18
6
+ metadata.gz: cb41202454e873ed4ce4bced363e705ebfbd16a8b4a1d757671ffa01c1f48d6432bf5989263d8e8c124f17b788c71d6c9b2128ec8b1104187515b7aca283fe22
7
+ data.tar.gz: cfdd283abbd6488ab39f6ce844912dd8bbe50f9ccb12039f034ada2231121d807569221fcf13880020e6d94b2ad93290820ef3cd6ed496a2ee0ce5f87ab124a6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validators_app_ruby (1.0.0.pre)
4
+ validators_app_ruby (1.0.0)
5
5
  httparty (~> 0.20)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -7,7 +7,7 @@ This gem helps to utilize the validators.app API.
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'validators-app-ruby'
10
+ gem 'validators_app_ruby'
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -40,7 +40,9 @@ Example:
40
40
 
41
41
  ```ruby
42
42
  client = ValidatorsAppRuby.new(token: "your_api_token")
43
- client.get_validators(network: "testnet", order: "score")
43
+ response = client.get_validators(network: "testnet", order: "score")
44
+ response.body # response in json format
45
+ response.parsed_response # response as a ruby hash
44
46
 
45
47
  # returns a list of validators from testnet ordered by score
46
48
  ```
@@ -55,61 +57,59 @@ client = ValidatorsAppRuby.new(token: "your_api_token")
55
57
 
56
58
  client.get_ping
57
59
 
60
+
58
61
  # Validators List
59
62
  # The Validators endpoint will return a list of validators for the requested network.
60
63
 
61
64
  client.get_validators(
62
- network: "testnet",
65
+ network: "mainnet",
63
66
  order: "score",
64
67
  limit: 100,
65
68
  page: 1,
66
- q: "example"
69
+ q: "Block Logic"
67
70
  )
68
71
 
72
+
69
73
  # Validator Detail
70
74
  # The Validators endpoint will return a single validator for the requested network and account.
71
75
 
72
76
  client.get_validators(
73
- network: "testnet",
74
- id: "validator_account",
77
+ network: "mainnet",
78
+ id: "DDnAqxJVFo2GVTujibHt5cjevHMSE9bo8HJaydHoshdp",
75
79
  with_history: true
76
80
  )
77
81
 
82
+
78
83
  # Validator Block Production History
79
84
  # The Validator Block History endpoint will return a history of block production stats for the requested network and account.
80
85
 
81
- client.get_validator_block_history(
82
- network: "testnet",
83
- id: "validator_account"
84
- )
86
+ client.get_validator_block_history(network: "testnet", id: "DDnAqxJVFo2GVTujibHt5cjevHMSE9bo8HJaydHoshdp")
87
+
85
88
 
86
89
  # Epoch Index
87
90
  # The Epoch endpoint will return all epoch data.
88
91
 
89
- client.get_epochs(
90
- network: "testnet",
91
- per: 10,
92
- page: 2
93
- )
92
+ client.get_epochs(network: "testnet", per: 10, page: 2)
93
+
94
94
 
95
95
  # Commission Change Index
96
96
  # The Commission Change endpoint will return all the changes in commission for a given period of time.
97
97
 
98
98
  client.get_commission_changes(
99
- network: "testnet",
99
+ network: "mainnet",
100
100
  date_from: DateTime.now - 30.days,
101
101
  date_to: DateTime.now,
102
102
  per: 100,
103
103
  page: 1,
104
- query: "example"
104
+ query: "Block Logic"
105
105
  )
106
106
 
107
+
107
108
  # Stake Pools
108
109
  # The Stake Pools endpoint will return all the stake pools.
109
110
 
110
- client.get_stake_pools(
111
- network: "testnet"
112
- )
111
+ client.get_stake_pools(network: "testnet")
112
+
113
113
 
114
114
  # Stake Accounts
115
115
  # The Stake Accounts endpoint will return all the stake accounts grouped by vote accounts.
@@ -122,6 +122,7 @@ client.get_stake_accounts(
122
122
  page: 1
123
123
  )
124
124
 
125
+
125
126
  # Ping Thing Post
126
127
  # The Ping Thing Post endpoint allows you to push information about transaction times.
127
128
 
@@ -136,6 +137,7 @@ client.post_ping_thing(
136
137
  transaction_type: "transfer"
137
138
  )
138
139
 
140
+
139
141
  # Ping Thing Post Batch
140
142
  # The Ping Thing Batch endpoint allows you to push multiple transaction informations at once.
141
143
 
@@ -154,14 +156,12 @@ client.post_ping_thing_batch(
154
156
  ]
155
157
  )
156
158
 
159
+
157
160
  # Ping Thing List
158
161
  # This Ping Thing List endpoint will return a list of pings for the requested network.
159
162
 
160
- client.get_ping_thing(
161
- network: "testnet",
162
- limit: 100,
163
- page: 1
164
- )
163
+ client.get_ping_thing(network: "testnet", limit: 100, page: 1)
164
+
165
165
 
166
166
  # Sol Prices
167
167
  # The Sol Prices endpoind will return prices gathered from multiple exchanges.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ValidatorsAppRubyVersion
4
- VERSION = "1.0.0.pre"
4
+ VERSION = "1.0.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validators_app_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BlockLogic team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-30 00:00:00.000000000 Z
11
+ date: 2022-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -107,9 +107,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
107
  version: 2.3.0
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ">"
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: 1.3.1
112
+ version: '0'
113
113
  requirements: []
114
114
  rubygems_version: 3.0.9
115
115
  signing_key: