eth 0.5.12 → 0.5.14

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.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/codeql.yml +1 -1
  3. data/.github/workflows/docs.yml +2 -2
  4. data/.github/workflows/spec.yml +5 -7
  5. data/CHANGELOG.md +39 -1
  6. data/Gemfile +8 -8
  7. data/LICENSE.txt +1 -1
  8. data/README.md +1 -3
  9. data/SECURITY.md +1 -1
  10. data/eth.gemspec +4 -1
  11. data/lib/eth/abi/decoder.rb +3 -4
  12. data/lib/eth/abi/encoder.rb +4 -5
  13. data/lib/eth/abi/event.rb +5 -1
  14. data/lib/eth/abi/packed/encoder.rb +196 -0
  15. data/lib/eth/abi/type.rb +12 -12
  16. data/lib/eth/abi.rb +27 -2
  17. data/lib/eth/address.rb +11 -1
  18. data/lib/eth/api.rb +96 -1
  19. data/lib/eth/chain.rb +63 -12
  20. data/lib/eth/client/http.rb +7 -3
  21. data/lib/eth/client/ipc.rb +1 -1
  22. data/lib/eth/client.rb +3 -3
  23. data/lib/eth/constant.rb +1 -1
  24. data/lib/eth/contract/event.rb +69 -16
  25. data/lib/eth/contract/function.rb +1 -1
  26. data/lib/eth/contract/function_input.rb +1 -1
  27. data/lib/eth/contract/function_output.rb +1 -1
  28. data/lib/eth/contract/initializer.rb +1 -1
  29. data/lib/eth/contract.rb +1 -1
  30. data/lib/eth/eip712.rb +3 -2
  31. data/lib/eth/ens/coin_type.rb +1 -1
  32. data/lib/eth/ens/resolver.rb +1 -1
  33. data/lib/eth/ens.rb +1 -1
  34. data/lib/eth/key/decrypter.rb +1 -1
  35. data/lib/eth/key/encrypter.rb +1 -1
  36. data/lib/eth/key.rb +1 -1
  37. data/lib/eth/rlp/decoder.rb +1 -1
  38. data/lib/eth/rlp/encoder.rb +1 -1
  39. data/lib/eth/rlp/sedes/big_endian_int.rb +1 -1
  40. data/lib/eth/rlp/sedes/binary.rb +1 -1
  41. data/lib/eth/rlp/sedes/list.rb +1 -1
  42. data/lib/eth/rlp/sedes.rb +1 -1
  43. data/lib/eth/rlp.rb +1 -1
  44. data/lib/eth/signature.rb +1 -1
  45. data/lib/eth/solidity.rb +1 -1
  46. data/lib/eth/tx/eip1559.rb +2 -2
  47. data/lib/eth/tx/eip2930.rb +2 -2
  48. data/lib/eth/tx/eip7702.rb +495 -0
  49. data/lib/eth/tx/legacy.rb +1 -1
  50. data/lib/eth/tx.rb +53 -2
  51. data/lib/eth/unit.rb +1 -1
  52. data/lib/eth/util.rb +6 -3
  53. data/lib/eth/version.rb +2 -2
  54. data/lib/eth.rb +1 -1
  55. metadata +20 -4
data/lib/eth/version.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2016-2023 The Ruby-Eth Contributors
1
+ # Copyright (c) 2016-2025 The Ruby-Eth Contributors
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ module Eth
22
22
  MINOR = 5.freeze
23
23
 
24
24
  # Defines the patch version of the {Eth} module.
25
- PATCH = 12.freeze
25
+ PATCH = 14.freeze
26
26
 
27
27
  # Defines the version string of the {Eth} module.
28
28
  VERSION = [MAJOR, MINOR, PATCH].join(".").freeze
data/lib/eth.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2016-2023 The Ruby-Eth Contributors
1
+ # Copyright (c) 2016-2025 The Ruby-Eth Contributors
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.12
4
+ version: 0.5.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Ellis
@@ -9,8 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-06-23 00:00:00.000000000 Z
12
+ date: 2025-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bigdecimal
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '3.1'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '3.1'
14
28
  - !ruby/object:Gem::Dependency
15
29
  name: forwardable
16
30
  requirement: !ruby/object:Gem::Requirement
@@ -137,6 +151,7 @@ files:
137
151
  - lib/eth/abi/decoder.rb
138
152
  - lib/eth/abi/encoder.rb
139
153
  - lib/eth/abi/event.rb
154
+ - lib/eth/abi/packed/encoder.rb
140
155
  - lib/eth/abi/type.rb
141
156
  - lib/eth/address.rb
142
157
  - lib/eth/api.rb
@@ -170,6 +185,7 @@ files:
170
185
  - lib/eth/tx.rb
171
186
  - lib/eth/tx/eip1559.rb
172
187
  - lib/eth/tx/eip2930.rb
188
+ - lib/eth/tx/eip7702.rb
173
189
  - lib/eth/tx/legacy.rb
174
190
  - lib/eth/unit.rb
175
191
  - lib/eth/util.rb
@@ -192,7 +208,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
192
208
  requirements:
193
209
  - - ">="
194
210
  - !ruby/object:Gem::Version
195
- version: '2.7'
211
+ version: '3.0'
196
212
  - - "<"
197
213
  - !ruby/object:Gem::Version
198
214
  version: '4.0'
@@ -202,7 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
218
  - !ruby/object:Gem::Version
203
219
  version: '0'
204
220
  requirements: []
205
- rubygems_version: 3.2.32
221
+ rubygems_version: 3.5.22
206
222
  signing_key:
207
223
  specification_version: 4
208
224
  summary: Ruby Ethereum library.