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 +4 -4
- data/Manifest.txt +0 -1
- data/lib/abiparser/version.rb +1 -1
- data/lib/abiparser.rb +0 -2
- metadata +2 -3
- data/lib/abiparser/export/interface.rb +0 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a9e9d6e7fd96f5cc50bf046151754aec1d11ab4a4df53bb9efe8c7a3cf237ba
|
4
|
+
data.tar.gz: ef846c87b232b62ff1df5cc482a6bcdf729ef2a0ad91e97366f0a403cdbe9182
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b80f5b2331c82b00c3fa887d6b12df87b04559c73f17c867708e68e691d31ea3415bbe91ef621e287be3a21ad11465f9bedde695f40588e5fd666bfec015075
|
7
|
+
data.tar.gz: 7c6d57732d945ce73e68994804946237a443dc7ae0cb3268b53917021e9a1774b2a862e300344478cdb8544bc3de58c3895dacdc3805713236a9eea909ab7b6e
|
data/Manifest.txt
CHANGED
data/lib/abiparser/version.rb
CHANGED
data/lib/abiparser.rb
CHANGED
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.
|
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-
|
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
|