abiparser 0.1.1 → 0.1.2

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: 9f938a2858e7da14cc5a8b42f4691a93c4721cef9e271168de78535c64f70115
4
- data.tar.gz: 8450885be9f443548be957d0815bb31e3c56862f0368eb17f574ab176ea9e4b0
3
+ metadata.gz: a8c3444ce73a26479bc5a39156f1c4a4213dc8445e86b5411003335de8d468e6
4
+ data.tar.gz: 1d600bcd4c0d0f9fa6059cac6d3ec7ae6f9f4f27e94306d2af34d36b67f5d5ae
5
5
  SHA512:
6
- metadata.gz: bc52799f38979a1e8b77b21d711e0ff935510ce7988bdec34e5ad0a09a5dde8db522df3038808f165dcd4178051ef49f7f832d1b76fc9fac0ef5c4f3331fd92b
7
- data.tar.gz: 6a6d1e03041d70e7080c38ad3e534c5e57a0cd49af187c4a16dfe1f19ae7fa55d4c8a3068b12968dd64a3d23f3c08c8f4c5fd47ac96e83f9bc7da695e0dfef7b
6
+ metadata.gz: 191678ab0a6577f9ccfd35ddb27827962d323b613b113af5f96e7ca3e99c18483b1ef698ff8053d04cb90ea86cd1f32727ca8b96319e9df291ad86e5d404194d
7
+ data.tar.gz: 9853905ee95157f03e2fd4d74da4e4432fed384dc7c4ea1ef3aa37b9eb6b59c4390c9adc851a0d04c12d318620eadbc239abbbc2cf68f177dd23bfbb07a22eef
data/Rakefile CHANGED
@@ -22,7 +22,6 @@ Hoe.spec 'abiparser' do
22
22
  ['cocos'],
23
23
  ['bytes'],
24
24
  ['digest-lite'],
25
- ['abicoder'],
26
25
  ]
27
26
 
28
27
  self.licenses = ['Public Domain']
@@ -47,7 +47,8 @@ class Constructor
47
47
  end
48
48
 
49
49
 
50
- attr_reader :inputs, :input_types
50
+ attr_reader :inputs
51
+ ## :input_types
51
52
 
52
53
  def initialize( inputs: [],
53
54
  payable: false )
@@ -57,7 +58,7 @@ class Constructor
57
58
  ## parse inputs into types
58
59
  ## note: use "calculated" sig(nature) and NOT the type
59
60
  ## (differs for tuples, that is, types with components !!!)
60
- @input_types = @inputs.map {|param| Type.parse( param.sig ) }
61
+ ## @input_types = @inputs.map {|param| Type.parse( param.sig ) }
61
62
  end
62
63
 
63
64
 
@@ -54,8 +54,8 @@ class Function
54
54
 
55
55
 
56
56
  attr_reader :name,
57
- :inputs, :outputs,
58
- :input_types, :output_types
57
+ :inputs, :outputs
58
+ ## :input_types, :output_types
59
59
 
60
60
  def initialize( name,
61
61
  inputs: [],
@@ -73,14 +73,14 @@ class Function
73
73
  ## parse inputs & outputs into types
74
74
  ## note: use "calculated" sig(nature) and NOT the type
75
75
  ## (differs for tuples, that is, types with components !!!)
76
- @input_types = @inputs.map do |param|
77
- Type.parse( param.sig )
78
- end
79
- @output_types = @outputs.map do |param|
80
- ## pp param
81
- ## puts "sig: #{param.sig}"
82
- Type.parse( param.sig )
83
- end
76
+ ## @input_types = @inputs.map do |param|
77
+ ## Type.parse( param.sig )
78
+ ## end
79
+ ## @output_types = @outputs.map do |param|
80
+ ## ## pp param
81
+ ## ## puts "sig: #{param.sig}"
82
+ ## Type.parse( param.sig )
83
+ ## end
84
84
  end
85
85
 
86
86
 
@@ -2,7 +2,7 @@
2
2
  module ABIParser
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 1
5
+ PATCH = 2
6
6
  VERSION = [MAJOR,MINOR,PATCH].join('.')
7
7
 
8
8
  def self.version
data/lib/abiparser.rb CHANGED
@@ -36,7 +36,6 @@ def sig( bin )
36
36
  end
37
37
 
38
38
 
39
- require 'abicoder'
40
39
 
41
40
 
42
41
  ## our own code
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abiparser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-08 00:00:00.000000000 Z
11
+ date: 2023-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocos
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: abicoder
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rdoc
71
57
  requirement: !ruby/object:Gem::Requirement