hive-ruby 1.0.3 → 1.0.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: 8bf5d72142c42463a6146346f0bdd4e9943da776894b26f19a6bf3bac7416670
4
- data.tar.gz: a06c05f424bf354b792fc3a49dde1a064c1bd974a922c4a01ec9ef6281fc3611
3
+ metadata.gz: a77366c9d920510a88afe15e9923392a8a20098703c6a3741f4ddc3fde95ecb7
4
+ data.tar.gz: 50ab9c8576a44b57482aeae3aca48ed77cf3034edf5c0a51446cf7b7b52bc987
5
5
  SHA512:
6
- metadata.gz: fff041bd517d2101d0d84b521d17880b0bb7d641751bfa5a1c22529fd3e451290f28556830726ca02f38a40fa39e521bf55f852885374d93842a3c4f6bd1b7dc
7
- data.tar.gz: a6d4e6be972a57411d6c51894e5ba12c610496e06f4889f1e5c72493044c8fbcb1d5438b51d329209d66ce38fb88c165a6994dfa80c7f2ec2b6900f33763513a
6
+ metadata.gz: 4a5bb9e69a542d531159d0bbd7bf586d2cd58546804dcc1c26d67db31048acbf43aee1f55d946ff887066ecd0e4850740e99d5c60b6631ab93e7ded650a7ed84
7
+ data.tar.gz: fb05b4ee33e737f747a9f50a02488173631ba68c0576f415c51862db3da178dad4bf73b139f7598d20011fa51426e569fc5a2800f7940552e42c9e357aa5b4f7
data/hive-ruby.gemspec CHANGED
@@ -22,13 +22,13 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency 'minitest', '~> 5.14', '>= 5.10.3'
23
23
  spec.add_development_dependency 'minitest-line', '~> 0.6', '>= 0.6.4'
24
24
  spec.add_development_dependency 'minitest-proveit', '~> 1.0', '>= 1.0.0'
25
- spec.add_development_dependency 'webmock', '~> 3.3', '>= 3.3.0'
25
+ spec.add_development_dependency 'webmock', '~> 3.16', '>= 3.16.0'
26
26
  spec.add_development_dependency 'simplecov', '~> 0.15', '>= 0.15.1'
27
27
  spec.add_development_dependency 'vcr', '~> 6.0', '>= 4.0.0'
28
28
  spec.add_development_dependency 'yard', '~> 0.9', '>= 0.9.12'
29
29
  spec.add_development_dependency 'pry', '~> 0.11', '>= 0.11.3'
30
30
  spec.add_development_dependency 'awesome_print', '~> 1.8', '>= 1.8.0'
31
- spec.add_development_dependency 'irb', '~> 1.2', '>= 1.2.3'
31
+ spec.add_development_dependency 'irb', '~> 1.4', '>= 1.4.2'
32
32
 
33
33
  spec.add_dependency 'json', '~> 2.1', '>= 2.1.0'
34
34
  spec.add_dependency 'logging', '~> 2.2', '>= 2.2.0'
@@ -142,7 +142,7 @@ module Hive
142
142
  raise Hive::TransactionIndexDisabledError, "#{context}: #{error.message}", build_backtrace(error)
143
143
  end
144
144
 
145
- if error.message.include? 'is_valid_account_name'
145
+ if error.message.include?('Assert Exception:false: Account name ') && error.message.include?(' is not valid. Please follow the RFC 1035 rules.')
146
146
  raise Hive::InvalidAccountError, "#{context}: #{error.message}", build_backtrace(error)
147
147
  end
148
148
 
@@ -12,14 +12,17 @@ module Hive
12
12
  NETWORKS_HIVE_DEFAULT_NODE = 'https://api.openhive.network'
13
13
  # NETWORKS_HIVE_DEFAULT_NODE = 'https://anyx.io'
14
14
  # NETWORKS_HIVE_DEFAULT_NODE = 'http://anyx.io'
15
- # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.hivekings.com'
16
15
  # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.hive.blog'
17
16
  # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.openhive.network'
18
17
  # NETWORKS_HIVE_DEFAULT_NODE = 'https://techcoderx.com'
19
- # NETWORKS_HIVE_DEFAULT_NODE = 'https://rpc.esteem.app'
18
+ # NETWORKS_HIVE_DEFAULT_NODE = 'https://rpc.ecency.com'
20
19
  # NETWORKS_HIVE_DEFAULT_NODE = 'https://hived.privex.io'
21
20
  # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.pharesim.me'
22
21
  # NETWORKS_HIVE_DEFAULT_NODE = 'https://rpc.ausbit.dev'
22
+ # NETWORKS_HIVE_DEFAULT_NODE = 'https://hived.emre.sh'
23
+ # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.deathwing.me'
24
+ # NETWORKS_HIVE_DEFAULT_NODE = 'https://api.c0ff33a.uk'
25
+ # NETWORKS_HIVE_DEFAULT_NODE = 'https://hive-api.arcange.eu'
23
26
 
24
27
  NETWORKS_TEST_CHAIN_ID = '46d82ab7d8db682eb1959aed0ada039a6d49afa1602491f93dde9cac3e8e6c32'
25
28
  NETWORKS_TEST_ADDRESS_PREFIX = 'TST'
data/lib/hive/fallback.rb CHANGED
@@ -8,7 +8,6 @@ module Hive::Fallback
8
8
  :get_block_header
9
9
  ],
10
10
  condenser_api: [
11
- :broadcast_block,
12
11
  :broadcast_transaction,
13
12
  :broadcast_transaction_synchronous,
14
13
  :get_account_count,
@@ -172,7 +171,6 @@ module Hive::Fallback
172
171
  :get_volume
173
172
  ],
174
173
  network_broadcast_api: [
175
- :broadcast_block,
176
174
  :broadcast_transaction
177
175
  ],
178
176
  rc_api: [
@@ -10,30 +10,30 @@ module Hive
10
10
  IDS = [
11
11
  :vote_operation,
12
12
  :comment_operation,
13
-
13
+
14
14
  :transfer_operation,
15
15
  :transfer_to_vesting_operation,
16
16
  :withdraw_vesting_operation,
17
-
17
+
18
18
  :limit_order_create_operation,
19
19
  :limit_order_cancel_operation,
20
-
20
+
21
21
  :feed_publish_operation,
22
22
  :convert_operation,
23
-
23
+
24
24
  :account_create_operation,
25
25
  :account_update_operation,
26
-
26
+
27
27
  :witness_update_operation,
28
28
  :account_witness_vote_operation,
29
29
  :account_witness_proxy_operation,
30
-
30
+
31
31
  :pow_operation,
32
-
32
+
33
33
  :custom_operation,
34
-
35
- :report_over_production_operation,
36
-
34
+
35
+ :witness_block_approve_operation,
36
+
37
37
  :delete_comment_operation,
38
38
  :custom_json_operation,
39
39
  :comment_options_operation,
@@ -65,16 +65,18 @@ module Hive
65
65
  :update_proposal_votes_operation,
66
66
  :remove_proposal_operation,
67
67
  :update_proposal_operation,
68
+ :collateralized_convert_operation,
69
+ :recurrent_transfer_operation,
68
70
 
69
71
  # SMT operations
70
72
  :claim_reward_balance2_operation,
71
-
73
+
72
74
  :smt_setup_operation,
73
75
  :smt_setup_emissions_operation,
74
76
  :smt_set_setup_parameters_operation,
75
77
  :smt_set_runtime_parameters_operation,
76
78
  :smt_create_operation,
77
- :smt_contribute_operation
79
+ :smt_contribute_operation,
78
80
  ] + VIRTUAL_OP_IDS = [
79
81
  # virtual operations below this point
80
82
  :fill_convert_request_operation,
@@ -94,14 +96,30 @@ module Hive
94
96
  :producer_reward_operation,
95
97
  :clear_null_account_balance_operation,
96
98
  :proposal_pay_operation,
97
- :sps_fund_operation,
99
+ :dhf_funding_operation,
98
100
  :hardfork_hive_operation,
99
101
  :hardfork_hive_restore_operation,
100
102
  :delayed_voting_operation,
101
103
  :consolidate_treasury_balance_operation,
102
104
  :effective_comment_vote_operation,
103
105
  :ineffective_delete_comment_operation,
104
- :sps_convert_operation
106
+ :dhf_conversion_operation,
107
+ :expired_account_notification_operation,
108
+ :changed_recovery_account_operation,
109
+ :transfer_to_vesting_completed_operation,
110
+ :pow_reward_operation,
111
+ :vesting_shares_split_operation,
112
+ :account_created_operation,
113
+ :fill_collateralized_convert_request_operation,
114
+ :system_warning_operation,
115
+ :fill_recurrent_transfer_operation,
116
+ :failed_recurrent_transfer_operation,
117
+ :limit_order_cancelled_operation,
118
+ :producer_missed_operation,
119
+ :proposal_fee_operation,
120
+ :collateralized_convert_immediate_conversion_operation,
121
+ :escrow_approved_operation,
122
+ :escrow_rejected_operation
105
123
  ]
106
124
 
107
125
  def self.op_id(op)
data/lib/hive/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Hive
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.5'
3
3
  AGENT_ID = "hive-ruby/#{VERSION}"
4
4
  end
data/lib/hive.rb CHANGED
@@ -84,7 +84,7 @@ module Hive
84
84
  super unless const.to_s.end_with? 'Api'
85
85
 
86
86
  api = api_classes[const]
87
- api ||= Api.clone(freeze: true) rescue Api.clone
87
+ api ||= Api.clone(freeze: false) rescue Api.clone
88
88
  api.api_name = const
89
89
  api_classes[const] = api
90
90
  end
data/logo.png ADDED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hive-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Martin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-23 00:00:00.000000000 Z
11
+ date: 2022-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -116,20 +116,20 @@ dependencies:
116
116
  requirements:
117
117
  - - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 3.3.0
119
+ version: 3.16.0
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: '3.3'
122
+ version: '3.16'
123
123
  type: :development
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - ">="
128
128
  - !ruby/object:Gem::Version
129
- version: 3.3.0
129
+ version: 3.16.0
130
130
  - - "~>"
131
131
  - !ruby/object:Gem::Version
132
- version: '3.3'
132
+ version: '3.16'
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: simplecov
135
135
  requirement: !ruby/object:Gem::Requirement
@@ -236,20 +236,20 @@ dependencies:
236
236
  requirements:
237
237
  - - "~>"
238
238
  - !ruby/object:Gem::Version
239
- version: '1.2'
239
+ version: '1.4'
240
240
  - - ">="
241
241
  - !ruby/object:Gem::Version
242
- version: 1.2.3
242
+ version: 1.4.2
243
243
  type: :development
244
244
  prerelease: false
245
245
  version_requirements: !ruby/object:Gem::Requirement
246
246
  requirements:
247
247
  - - "~>"
248
248
  - !ruby/object:Gem::Version
249
- version: '1.2'
249
+ version: '1.4'
250
250
  - - ">="
251
251
  - !ruby/object:Gem::Version
252
- version: 1.2.3
252
+ version: 1.4.2
253
253
  - !ruby/object:Gem::Dependency
254
254
  name: json
255
255
  requirement: !ruby/object:Gem::Requirement
@@ -476,11 +476,12 @@ files:
476
476
  - lib/hive/type/base_type.rb
477
477
  - lib/hive/utils.rb
478
478
  - lib/hive/version.rb
479
+ - logo.png
479
480
  homepage: https://gitlab.syncad.com/hive/hive-ruby
480
481
  licenses:
481
482
  - MIT
482
483
  metadata: {}
483
- post_install_message:
484
+ post_install_message:
484
485
  rdoc_options: []
485
486
  require_paths:
486
487
  - lib
@@ -495,8 +496,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
495
496
  - !ruby/object:Gem::Version
496
497
  version: '0'
497
498
  requirements: []
498
- rubygems_version: 3.0.8
499
- signing_key:
499
+ rubygems_version: 3.0.9
500
+ signing_key:
500
501
  specification_version: 4
501
502
  summary: Hive Ruby Client
502
503
  test_files: []