abiparser 0.1.2 → 0.1.3

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: a8c3444ce73a26479bc5a39156f1c4a4213dc8445e86b5411003335de8d468e6
4
- data.tar.gz: 1d600bcd4c0d0f9fa6059cac6d3ec7ae6f9f4f27e94306d2af34d36b67f5d5ae
3
+ metadata.gz: 8a9e9d6e7fd96f5cc50bf046151754aec1d11ab4a4df53bb9efe8c7a3cf237ba
4
+ data.tar.gz: ef846c87b232b62ff1df5cc482a6bcdf729ef2a0ad91e97366f0a403cdbe9182
5
5
  SHA512:
6
- metadata.gz: 191678ab0a6577f9ccfd35ddb27827962d323b613b113af5f96e7ca3e99c18483b1ef698ff8053d04cb90ea86cd1f32727ca8b96319e9df291ad86e5d404194d
7
- data.tar.gz: 9853905ee95157f03e2fd4d74da4e4432fed384dc7c4ea1ef3aa37b9eb6b59c4390c9adc851a0d04c12d318620eadbc239abbbc2cf68f177dd23bfbb07a22eef
6
+ metadata.gz: 8b80f5b2331c82b00c3fa887d6b12df87b04559c73f17c867708e68e691d31ea3415bbe91ef621e287be3a21ad11465f9bedde695f40588e5fd666bfec015075
7
+ data.tar.gz: 7c6d57732d945ce73e68994804946237a443dc7ae0cb3268b53917021e9a1774b2a862e300344478cdb8544bc3de58c3895dacdc3805713236a9eea909ab7b6e
data/Manifest.txt CHANGED
@@ -5,7 +5,6 @@ Rakefile
5
5
  lib/abiparser.rb
6
6
  lib/abiparser/constructor.rb
7
7
  lib/abiparser/contract.rb
8
- lib/abiparser/export/interface.rb
9
8
  lib/abiparser/function.rb
10
9
  lib/abiparser/interface.rb
11
10
  lib/abiparser/param.rb
@@ -2,7 +2,7 @@
2
2
  module ABIParser
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 2
5
+ PATCH = 3
6
6
  VERSION = [MAJOR,MINOR,PATCH].join('.')
7
7
 
8
8
  def self.version
data/lib/abiparser.rb CHANGED
@@ -48,8 +48,6 @@ require_relative 'abiparser/utils'
48
48
  require_relative 'abiparser/contract'
49
49
  require_relative 'abiparser/interface'
50
50
 
51
- require_relative 'abiparser/export/interface'
52
-
53
51
 
54
52
 
55
53
 
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.2
4
+ version: 0.1.3
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-09 00:00:00.000000000 Z
11
+ date: 2023-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocos
@@ -103,7 +103,6 @@ files:
103
103
  - lib/abiparser.rb
104
104
  - lib/abiparser/constructor.rb
105
105
  - lib/abiparser/contract.rb
106
- - lib/abiparser/export/interface.rb
107
106
  - lib/abiparser/function.rb
108
107
  - lib/abiparser/interface.rb
109
108
  - lib/abiparser/param.rb
@@ -1,56 +0,0 @@
1
- module ABI
2
- class Contract
3
-
4
-
5
- def generate_interface( name: ) ## interface declarations
6
- buf = ''
7
- buf << "interface #{name} {"
8
-
9
-
10
- # include constructor - why? why not?
11
- #
12
- # if @ctor
13
- # buf << "\n"
14
- # buf << "// Constructor\n"
15
- # buf << "#{@ctor.decl}\n"
16
- # end
17
-
18
- if payable_functions.size > 0
19
- buf << "\n"
20
- buf << "// #{payable_functions.size} Payable Function(s)\n"
21
- payable_functions.each do |func|
22
- buf << "#{func.decl}\n"
23
- end
24
- end
25
-
26
- if transact_functions.size > 0
27
- buf << "\n"
28
- buf << "// #{transact_functions.size} Transact Functions(s)\n"
29
- transact_functions.each do |func|
30
- buf << "#{func.decl}\n"
31
- end
32
- end
33
-
34
- if query_functions.size > 0
35
- buf << "\n"
36
- buf << "// #{query_functions.size} Query Functions(s)\n"
37
- query_functions.each do |func|
38
- buf << "#{func.decl}\n"
39
- end
40
- end
41
-
42
- if helper_functions.size > 0
43
- buf << "\n"
44
- buf << "// #{helper_functions.size} Helper Functions(s)\n\n"
45
- helper_functions.each do |func|
46
- buf << "#{func.decl}\n"
47
- end
48
- end
49
-
50
- buf << "}\n"
51
- buf
52
- end
53
-
54
-
55
- end ## class Contract
56
- end ## module ABI