Current section

40 Versions

Jump to

Compare versions

5 files changed
+320 additions
-124 deletions
  @@ -1,7 +1,7 @@
1 1 {<<"app">>,<<"abi">>}.
2 2 {<<"build_tools">>,[<<"mix">>]}.
3 3 {<<"description">>,<<"Ethereum's ABI Interface">>}.
4 - {<<"elixir">>,<<"~> 1.7">>}.
4 + {<<"elixir">>,<<"~> 1.12">>}.
5 5 {<<"files">>,
6 6 [<<"lib">>,<<"lib/abi">>,<<"lib/abi/math.ex">>,<<"lib/abi/type_decoder.ex">>,
7 7 <<"lib/abi/parser.ex">>,<<"lib/abi/function_selector.ex">>,
  @@ -18,10 +18,10 @@
18 18 {<<"name">>,<<"jason">>},
19 19 {<<"optional">>,false},
20 20 {<<"repository">>,<<"hexpm">>},
21 - {<<"requirement">>,<<"~> 1.1">>}],
22 - [{<<"app">>,<<"keccakf1600">>},
23 - {<<"name">>,<<"keccakf1600_orig">>},
21 + {<<"requirement">>,<<"~> 1.2">>}],
22 + [{<<"app">>,<<"ex_sha3">>},
23 + {<<"name">>,<<"ex_sha3">>},
24 24 {<<"optional">>,false},
25 25 {<<"repository">>,<<"hexpm">>},
26 - {<<"requirement">>,<<"~> 2.0.0">>}]]}.
27 - {<<"version">>,<<"0.1.17">>}.
26 + {<<"requirement">>,<<"~> 0.1">>}]]}.
27 + {<<"version">>,<<"0.1.18">>}.
  @@ -41,6 +41,6 @@ defmodule ABI.Math do
41 41 """
42 42 @spec kec(binary()) :: binary()
43 43 def kec(data) do
44 - :keccakf1600.sha3_256(data)
44 + ExSha3.keccak_256(data)
45 45 end
46 46 end
  @@ -4,8 +4,8 @@ defmodule ABI.Mixfile do
4 4 def project do
5 5 [
6 6 app: :abi,
7 - version: "0.1.17",
8 - elixir: "~> 1.7",
7 + version: "0.1.18",
8 + elixir: "~> 1.12",
9 9 description: "Ethereum's ABI Interface",
10 10 package: [
11 11 maintainers: ["Geoffrey Hayes", "Mason Fischer"],
  @@ -28,11 +28,9 @@ defmodule ABI.Mixfile do
28 28 # Run "mix help deps" to learn about dependencies.
29 29 defp deps do
30 30 [
31 - {:credo, "~> 1.0.0-rc1", only: [:dev, :test], runtime: false},
32 - {:ex_doc, "~> 0.19", only: :dev, runtime: false},
33 - {:dialyxir, "~> 1.0.0-rc.4", only: [:dev, :test], runtime: false},
34 - {:jason, "~> 1.1"},
35 - {:keccakf1600, "~> 2.0.0", hex: :keccakf1600_orig}
31 + {:ex_doc, "~> 0.28.4", only: :dev, runtime: false},
32 + {:jason, "~> 1.2"},
33 + {:ex_sha3, "~> 0.1"},
36 34 ]
37 35 end
38 36 end
  @@ -1,4 +1,4 @@
1 - -file("/usr/local/Cellar/erlang/22.2.7/lib/erlang/lib/parsetools-2.1.8/include/leexinc.hrl", 0).
1 + -file("/opt/homebrew/Cellar/erlang/24.2.1/lib/erlang/lib/parsetools-2.3.2/include/leexinc.hrl", 0).
2 2 %% The source of this file is part of leex distribution, as such it
3 3 %% has the same Copyright as the other files in the leex
4 4 %% distribution. The Copyright is defined in the accompanying file
  @@ -14,7 +14,7 @@
14 14 %% User code. This is placed here to allow extra attributes.
15 15 -file("src/ethereum_abi_lexer.xrl", 21).
16 16
17 - -file("/usr/local/Cellar/erlang/22.2.7/lib/erlang/lib/parsetools-2.1.8/include/leexinc.hrl", 14).
17 + -file("/opt/homebrew/Cellar/erlang/24.2.1/lib/erlang/lib/parsetools-2.3.2/include/leexinc.hrl", 14).
18 18
19 19 format_error({illegal,S}) -> ["illegal characters ",io_lib:write_string(S)];
20 20 format_error({user,S}) -> S.
  @@ -866,4 +866,4 @@ yyaction_8(TokenLine) ->
866 866 yyaction_9() ->
867 867 skip_token .
868 868
869 - -file("/usr/local/Cellar/erlang/22.2.7/lib/erlang/lib/parsetools-2.1.8/include/leexinc.hrl", 313).
869 + -file("/opt/homebrew/Cellar/erlang/24.2.1/lib/erlang/lib/parsetools-2.3.2/include/leexinc.hrl", 313).
  @@ -27,11 +27,11 @@ juxt_type(bytes, M) when M > 0, M =< 32 -> {bytes, M}.
27 27 double_juxt_type(fixed, 'x', M, N) when M >= 0, M =< 256, (M rem 8) =:= 0, N > 0, N =< 80 -> {fixed, M, N};
28 28 double_juxt_type(ufixed, 'x', M, N) when M >= 0, M =< 256, (M rem 8) =:= 0, N > 0, N =< 80 -> {ufixed, M, N}.
29 29
30 - -file("/usr/local/Cellar/erlang/22.2.7/lib/erlang/lib/parsetools-2.1.8/include/yeccpre.hrl", 0).
30 + -file("/opt/homebrew/Cellar/erlang/24.2.1/lib/erlang/lib/parsetools-2.3.2/include/yeccpre.hrl", 0).
31 31 %%
32 32 %% %CopyrightBegin%
33 33 %%
34 - %% Copyright Ericsson AB 1996-2018. All Rights Reserved.
34 + %% Copyright Ericsson AB 1996-2021. All Rights Reserved.
35 35 %%
36 36 %% Licensed under the Apache License, Version 2.0 (the "License");
37 37 %% you may not use this file except in compliance with the License.
  @@ -55,15 +55,15 @@ double_juxt_type(ufixed, 'x', M, N) when M >= 0, M =< 256, (M rem 8) =:= 0, N >
55 55
56 56 -spec parse(Tokens :: list()) -> yecc_ret().
57 57 parse(Tokens) ->
58 - yeccpars0(Tokens, {no_func, no_line}, 0, [], []).
58 + yeccpars0(Tokens, {no_func, no_location}, 0, [], []).
59 59
60 60 -spec parse_and_scan({function() | {atom(), atom()}, [_]}
61 61 | {atom(), atom(), [_]}) -> yecc_ret().
62 62 parse_and_scan({F, A}) ->
63 - yeccpars0([], {{F, A}, no_line}, 0, [], []);
63 + yeccpars0([], {{F, A}, no_location}, 0, [], []);
64 64 parse_and_scan({M, F, A}) ->
65 65 Arity = length(A),
66 - yeccpars0([], {{fun M:F/Arity, A}, no_line}, 0, [], []).
66 + yeccpars0([], {{fun M:F/Arity, A}, no_location}, 0, [], []).
67 67
68 68 -spec format_error(any()) -> [char() | list()].
69 69 format_error(Message) ->
  @@ -77,9 +77,9 @@ format_error(Message) ->
77 77 %% To be used in grammar files to throw an error message to the parser
78 78 %% toplevel. Doesn't have to be exported!
79 79 -compile({nowarn_unused_function, return_error/2}).
80 - -spec return_error(integer(), any()) -> no_return().
81 - return_error(Line, Message) ->
82 - throw({error, {Line, ?MODULE, Message}}).
80 + -spec return_error(erl_anno:location(), any()) -> no_return().
81 + return_error(Location, Message) ->
82 + throw({error, {Location, ?MODULE, Message}}).
83 83
84 84 -define(CODE_VERSION, "1.4").
85 85
  @@ -94,7 +94,7 @@ yeccpars0(Tokens, Tzr, State, States, Vstack) ->
94 94 catch _:_ -> erlang:raise(error, Error, Stacktrace)
95 95 end;
96 96 %% Probably thrown from return_error/2:
97 - throw: {error, {_Line, ?MODULE, _M}} = Error ->
97 + throw: {error, {_Location, ?MODULE, _M}} = Error ->
98 98 Error
99 99 end.
100 100
  @@ -111,22 +111,22 @@ yecc_error_type(function_clause, [{?MODULE,F,ArityOrArgs,_} | _]) ->
111 111
112 112 yeccpars1([Token | Tokens], Tzr, State, States, Vstack) ->
113 113 yeccpars2(State, element(1, Token), States, Vstack, Token, Tokens, Tzr);
114 - yeccpars1([], {{F, A},_Line}, State, States, Vstack) ->
114 + yeccpars1([], {{F, A},_Location}, State, States, Vstack) ->
115 115 case apply(F, A) of
116 - {ok, Tokens, Endline} ->
117 - yeccpars1(Tokens, {{F, A}, Endline}, State, States, Vstack);
118 - {eof, Endline} ->
119 - yeccpars1([], {no_func, Endline}, State, States, Vstack);
120 - {error, Descriptor, _Endline} ->
116 + {ok, Tokens, EndLocation} ->
117 + yeccpars1(Tokens, {{F, A}, EndLocation}, State, States, Vstack);
118 + {eof, EndLocation} ->
119 + yeccpars1([], {no_func, EndLocation}, State, States, Vstack);
120 + {error, Descriptor, _EndLocation} ->
121 121 {error, Descriptor}
122 122 end;
123 - yeccpars1([], {no_func, no_line}, State, States, Vstack) ->
123 + yeccpars1([], {no_func, no_location}, State, States, Vstack) ->
124 124 Line = 999999,
125 125 yeccpars2(State, '$end', States, Vstack, yecc_end(Line), [],
126 126 {no_func, Line});
127 - yeccpars1([], {no_func, Endline}, State, States, Vstack) ->
128 - yeccpars2(State, '$end', States, Vstack, yecc_end(Endline), [],
129 - {no_func, Endline}).
127 + yeccpars1([], {no_func, EndLocation}, State, States, Vstack) ->
128 + yeccpars2(State, '$end', States, Vstack, yecc_end(EndLocation), [],
129 + {no_func, EndLocation}).
130 130
131 131 %% yeccpars1/7 is called from generated code.
132 132 %%
  @@ -137,21 +137,19 @@ yeccpars1([], {no_func, Endline}, State, States, Vstack) ->
137 137 yeccpars1(State1, State, States, Vstack, Token0, [Token | Tokens], Tzr) ->
138 138 yeccpars2(State, element(1, Token), [State1 | States],
139 139 [Token0 | Vstack], Token, Tokens, Tzr);
140 - yeccpars1(State1, State, States, Vstack, Token0, [], {{_F,_A}, _Line}=Tzr) ->
140 + yeccpars1(State1, State, States, Vstack, Token0, [], {{_F,_A}, _Location}=Tzr) ->
141 141 yeccpars1([], Tzr, State, [State1 | States], [Token0 | Vstack]);
142 - yeccpars1(State1, State, States, Vstack, Token0, [], {no_func, no_line}) ->
143 - Line = yecctoken_end_location(Token0),
142 + yeccpars1(State1, State, States, Vstack, Token0, [], {no_func, no_location}) ->
143 + Location = yecctoken_end_location(Token0),
144 144 yeccpars2(State, '$end', [State1 | States], [Token0 | Vstack],
145 - yecc_end(Line), [], {no_func, Line});
146 - yeccpars1(State1, State, States, Vstack, Token0, [], {no_func, Line}) ->
145 + yecc_end(Location), [], {no_func, Location});
146 + yeccpars1(State1, State, States, Vstack, Token0, [], {no_func, Location}) ->
147 147 yeccpars2(State, '$end', [State1 | States], [Token0 | Vstack],
148 - yecc_end(Line), [], {no_func, Line}).
148 + yecc_end(Location), [], {no_func, Location}).
149 149
150 150 %% For internal use only.
151 - yecc_end({Line,_Column}) ->
152 - {'$end', Line};
153 - yecc_end(Line) ->
154 - {'$end', Line}.
151 + yecc_end(Location) ->
152 + {'$end', Location}.
155 153
156 154 yecctoken_end_location(Token) ->
157 155 try erl_anno:end_location(element(2, Token)) of
  @@ -180,28 +178,38 @@ yecctoken_location(Token) ->
180 178 end.
181 179
182 180 -compile({nowarn_unused_function, yecctoken2string/1}).
183 - yecctoken2string({atom, _, A}) -> io_lib:write_atom(A);
184 - yecctoken2string({integer,_,N}) -> io_lib:write(N);
185 - yecctoken2string({float,_,F}) -> io_lib:write(F);
186 - yecctoken2string({char,_,C}) -> io_lib:write_char(C);
187 - yecctoken2string({var,_,V}) -> io_lib:format("~s", [V]);
188 - yecctoken2string({string,_,S}) -> io_lib:write_string(S);
189 - yecctoken2string({reserved_symbol, _, A}) -> io_lib:write(A);
190 - yecctoken2string({_Cat, _, Val}) -> io_lib:format("~tp", [Val]);
191 - yecctoken2string({dot, _}) -> "'.'";
192 - yecctoken2string({'$end', _}) -> [];
193 - yecctoken2string({Other, _}) when is_atom(Other) ->
181 + yecctoken2string(Token) ->
182 + try
183 + yecctoken2string1(Token)
184 + catch
185 + _:_ ->
186 + io_lib:format("~tp", [Token])
187 + end.
188 +
189 + -compile({nowarn_unused_function, yecctoken2string1/1}).
190 + yecctoken2string1({atom, _, A}) -> io_lib:write_atom(A);
191 + yecctoken2string1({integer,_,N}) -> io_lib:write(N);
192 + yecctoken2string1({float,_,F}) -> io_lib:write(F);
193 + yecctoken2string1({char,_,C}) -> io_lib:write_char(C);
194 + yecctoken2string1({var,_,V}) -> io_lib:format("~s", [V]);
195 + yecctoken2string1({string,_,S}) -> io_lib:write_string(S);
196 + yecctoken2string1({reserved_symbol, _, A}) -> io_lib:write(A);
197 + yecctoken2string1({_Cat, _, Val}) -> io_lib:format("~tp", [Val]);
198 + yecctoken2string1({dot, _}) -> "'.'";
199 + yecctoken2string1({'$end', _}) -> [];
200 + yecctoken2string1({Other, _}) when is_atom(Other) ->
194 201 io_lib:write_atom(Other);
195 - yecctoken2string(Other) ->
202 + yecctoken2string1(Other) ->
196 203 io_lib:format("~tp", [Other]).
197 204
198 205 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
199 206
200 207
201 208
202 - -file("src/ethereum_abi_parser.erl", 202).
209 + -file("src/ethereum_abi_parser.erl", 209).
203 210
204 211 -dialyzer({nowarn_function, yeccpars2/7}).
212 + -compile({nowarn_unused_function, yeccpars2/7}).
205 213 yeccpars2(0=S, Cat, Ss, Stack, T, Ts, Tzr) ->
206 214 yeccpars2_0(S, Cat, Ss, Stack, T, Ts, Tzr);
207 215 %% yeccpars2(1=S, Cat, Ss, Stack, T, Ts, Tzr) ->
  @@ -317,6 +325,7 @@ yeccpars2_0(S, Cat, Ss, Stack, T, Ts, Tzr) ->
317 325 yeccpars2_cont_0(S, Cat, Ss, Stack, T, Ts, Tzr).
318 326
319 327 -dialyzer({nowarn_function, yeccpars2_0/7}).
328 + -compile({nowarn_unused_function, yeccpars2_0/7}).
320 329 yeccpars2_cont_0(S, digits, Ss, Stack, T, Ts, Tzr) ->
321 330 yeccpars1(S, 9, Ss, Stack, T, Ts, Tzr);
322 331 yeccpars2_cont_0(S, letters, Ss, Stack, T, Ts, Tzr) ->
  @@ -327,23 +336,32 @@ yeccpars2_cont_0(_, _, _, _, T, _, _) ->
327 336 yeccerror(T).
328 337
329 338 -dialyzer({nowarn_function, yeccpars2_1/7}).
339 + -compile({nowarn_unused_function, yeccpars2_1/7}).
330 340 yeccpars2_1(S, '->', Ss, Stack, T, Ts, Tzr) ->
331 341 yeccpars1(S, 42, Ss, Stack, T, Ts, Tzr);
332 342 yeccpars2_1(_, _, _, _, T, _, _) ->
333 343 yeccerror(T).
334 344
345 + -dialyzer({nowarn_function, yeccpars2_2/7}).
346 + -compile({nowarn_unused_function, yeccpars2_2/7}).
335 347 yeccpars2_2(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
336 348 NewStack = yeccpars2_2_(Stack),
337 349 yeccgoto_dispatch(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
338 350
351 + -dialyzer({nowarn_function, yeccpars2_3/7}).
352 + -compile({nowarn_unused_function, yeccpars2_3/7}).
339 353 yeccpars2_3(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
340 354 NewStack = yeccpars2_3_(Stack),
341 355 yeccgoto_dispatch(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
342 356
357 + -dialyzer({nowarn_function, yeccpars2_4/7}).
358 + -compile({nowarn_unused_function, yeccpars2_4/7}).
343 359 yeccpars2_4(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
344 360 NewStack = yeccpars2_4_(Stack),
345 361 yeccgoto_identifier(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
346 362
363 + -dialyzer({nowarn_function, yeccpars2_5/7}).
364 + -compile({nowarn_unused_function, yeccpars2_5/7}).
347 365 yeccpars2_5(S, digits, Ss, Stack, T, Ts, Tzr) ->
348 366 yeccpars1(S, 9, Ss, Stack, T, Ts, Tzr);
349 367 yeccpars2_5(S, letters, Ss, Stack, T, Ts, Tzr) ->
  @@ -355,12 +373,14 @@ yeccpars2_5(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
355 373 yeccgoto_identifier_parts(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
356 374
357 375 -dialyzer({nowarn_function, yeccpars2_6/7}).
376 + -compile({nowarn_unused_function, yeccpars2_6/7}).
358 377 yeccpars2_6(S, '(', Ss, Stack, T, Ts, Tzr) ->
359 378 yeccpars1(S, 38, Ss, Stack, T, Ts, Tzr);
360 379 yeccpars2_6(_, _, _, _, T, _, _) ->
361 380 yeccerror(T).
362 381
363 382 -dialyzer({nowarn_function, yeccpars2_7/7}).
383 + -compile({nowarn_unused_function, yeccpars2_7/7}).
364 384 yeccpars2_7(_S, '$end', _Ss, Stack, _T, _Ts, _Tzr) ->
365 385 {ok, hd(Stack)};
366 386 yeccpars2_7(_, _, _, _, T, _, _) ->
  @@ -371,6 +391,8 @@ yeccpars2_8(S, ')', Ss, Stack, T, Ts, Tzr) ->
371 391 yeccpars2_8(S, Cat, Ss, Stack, T, Ts, Tzr) ->
372 392 yeccpars2_11(S, Cat, Ss, Stack, T, Ts, Tzr).
373 393
394 + -dialyzer({nowarn_function, yeccpars2_9/7}).
395 + -compile({nowarn_unused_function, yeccpars2_9/7}).
374 396 yeccpars2_9(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
375 397 NewStack = yeccpars2_9_(Stack),
376 398 yeccgoto_identifier_part(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
  @@ -381,6 +403,7 @@ yeccpars2_10(S, Cat, Ss, Stack, T, Ts, Tzr) ->
381 403 yeccpars2_cont_0(S, Cat, Ss, Stack, T, Ts, Tzr).
382 404
383 405 -dialyzer({nowarn_function, yeccpars2_11/7}).
406 + -compile({nowarn_unused_function, yeccpars2_11/7}).
384 407 yeccpars2_11(S, '(', Ss, Stack, T, Ts, Tzr) ->
385 408 yeccpars1(S, 17, Ss, Stack, T, Ts, Tzr);
386 409 yeccpars2_11(S, typename, Ss, Stack, T, Ts, Tzr) ->
  @@ -388,38 +411,54 @@ yeccpars2_11(S, typename, Ss, Stack, T, Ts, Tzr) ->
388 411 yeccpars2_11(_, _, _, _, T, _, _) ->
389 412 yeccerror(T).
390 413
414 + -dialyzer({nowarn_function, yeccpars2_12/7}).
415 + -compile({nowarn_unused_function, yeccpars2_12/7}).
391 416 yeccpars2_12(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
392 417 NewStack = yeccpars2_12_(Stack),
393 418 yeccgoto_identifier_part(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
394 419
420 + -dialyzer({nowarn_function, yeccpars2_13/7}).
421 + -compile({nowarn_unused_function, yeccpars2_13/7}).
395 422 yeccpars2_13(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
396 423 NewStack = yeccpars2_13_(Stack),
397 424 yeccgoto_identifier_part(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
398 425
426 + -dialyzer({nowarn_function, yeccpars2_14/7}).
427 + -compile({nowarn_unused_function, yeccpars2_14/7}).
399 428 yeccpars2_14(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
400 429 [_|Nss] = Ss,
401 430 NewStack = yeccpars2_14_(Stack),
402 431 yeccgoto_dispatch(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
403 432
433 + -dialyzer({nowarn_function, yeccpars2_15/7}).
434 + -compile({nowarn_unused_function, yeccpars2_15/7}).
404 435 yeccpars2_15(S, '[', Ss, Stack, T, Ts, Tzr) ->
405 436 yeccpars1(S, 30, Ss, Stack, T, Ts, Tzr);
406 437 yeccpars2_15(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
407 - yeccgoto_type_with_subscripts(hd(Ss), Cat, Ss, Stack, T, Ts, Tzr).
438 + NewStack = yeccpars2_15_(Stack),
439 + yeccgoto_type_with_subscripts(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
408 440
441 + -dialyzer({nowarn_function, yeccpars2_16/7}).
442 + -compile({nowarn_unused_function, yeccpars2_16/7}).
409 443 yeccpars2_16(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
410 - yeccgoto_type(hd(Ss), Cat, Ss, Stack, T, Ts, Tzr).
444 + NewStack = yeccpars2_16_(Stack),
445 + yeccgoto_type(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
411 446
412 447 yeccpars2_17(S, ')', Ss, Stack, T, Ts, Tzr) ->
413 448 yeccpars1(S, 24, Ss, Stack, T, Ts, Tzr);
414 449 yeccpars2_17(S, Cat, Ss, Stack, T, Ts, Tzr) ->
415 450 yeccpars2_11(S, Cat, Ss, Stack, T, Ts, Tzr).
416 451
452 + -dialyzer({nowarn_function, yeccpars2_18/7}).
453 + -compile({nowarn_unused_function, yeccpars2_18/7}).
417 454 yeccpars2_18(S, digits, Ss, Stack, T, Ts, Tzr) ->
418 455 yeccpars1(S, 19, Ss, Stack, T, Ts, Tzr);
419 456 yeccpars2_18(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
420 457 NewStack = yeccpars2_18_(Stack),
421 458 yeccgoto_type(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
422 459
460 + -dialyzer({nowarn_function, yeccpars2_19/7}).
461 + -compile({nowarn_unused_function, yeccpars2_19/7}).
423 462 yeccpars2_19(S, letters, Ss, Stack, T, Ts, Tzr) ->
424 463 yeccpars1(S, 20, Ss, Stack, T, Ts, Tzr);
425 464 yeccpars2_19(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
  @@ -428,16 +467,21 @@ yeccpars2_19(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
428 467 yeccgoto_type(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
429 468
430 469 -dialyzer({nowarn_function, yeccpars2_20/7}).
470 + -compile({nowarn_unused_function, yeccpars2_20/7}).
431 471 yeccpars2_20(S, digits, Ss, Stack, T, Ts, Tzr) ->
432 472 yeccpars1(S, 21, Ss, Stack, T, Ts, Tzr);
433 473 yeccpars2_20(_, _, _, _, T, _, _) ->
434 474 yeccerror(T).
435 475
476 + -dialyzer({nowarn_function, yeccpars2_21/7}).
477 + -compile({nowarn_unused_function, yeccpars2_21/7}).
436 478 yeccpars2_21(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
437 479 [_,_,_|Nss] = Ss,
438 480 NewStack = yeccpars2_21_(Stack),
439 481 yeccgoto_type(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
440 482
483 + -dialyzer({nowarn_function, yeccpars2_22/7}).
484 + -compile({nowarn_unused_function, yeccpars2_22/7}).
441 485 yeccpars2_22(S, ',', Ss, Stack, T, Ts, Tzr) ->
442 486 yeccpars1(S, 26, Ss, Stack, T, Ts, Tzr);
443 487 yeccpars2_22(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
  @@ -445,16 +489,21 @@ yeccpars2_22(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
445 489 yeccgoto_comma_delimited_types(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
446 490
447 491 -dialyzer({nowarn_function, yeccpars2_23/7}).
492 + -compile({nowarn_unused_function, yeccpars2_23/7}).
448 493 yeccpars2_23(S, ')', Ss, Stack, T, Ts, Tzr) ->
449 494 yeccpars1(S, 25, Ss, Stack, T, Ts, Tzr);
450 495 yeccpars2_23(_, _, _, _, T, _, _) ->
451 496 yeccerror(T).
452 497
498 + -dialyzer({nowarn_function, yeccpars2_24/7}).
499 + -compile({nowarn_unused_function, yeccpars2_24/7}).
453 500 yeccpars2_24(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
454 501 [_|Nss] = Ss,
455 502 NewStack = yeccpars2_24_(Stack),
456 503 yeccgoto_tuple(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
457 504
505 + -dialyzer({nowarn_function, yeccpars2_25/7}).
506 + -compile({nowarn_unused_function, yeccpars2_25/7}).
458 507 yeccpars2_25(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
459 508 [_,_|Nss] = Ss,
460 509 NewStack = yeccpars2_25_(Stack),
  @@ -462,16 +511,22 @@ yeccpars2_25(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
462 511
463 512 %% yeccpars2_26: see yeccpars2_11
464 513
514 + -dialyzer({nowarn_function, yeccpars2_27/7}).
515 + -compile({nowarn_unused_function, yeccpars2_27/7}).
465 516 yeccpars2_27(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
466 517 [_,_|Nss] = Ss,
467 518 NewStack = yeccpars2_27_(Stack),
468 519 yeccgoto_comma_delimited_types(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
469 520
521 + -dialyzer({nowarn_function, yeccpars2_28/7}).
522 + -compile({nowarn_unused_function, yeccpars2_28/7}).
470 523 yeccpars2_28(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
471 524 [_|Nss] = Ss,
472 525 NewStack = yeccpars2_28_(Stack),
473 526 yeccgoto_type_with_subscripts(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
474 527
528 + -dialyzer({nowarn_function, yeccpars2_29/7}).
529 + -compile({nowarn_unused_function, yeccpars2_29/7}).
475 530 yeccpars2_29(S, '[', Ss, Stack, T, Ts, Tzr) ->
476 531 yeccpars1(S, 30, Ss, Stack, T, Ts, Tzr);
477 532 yeccpars2_29(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
  @@ -479,6 +534,7 @@ yeccpars2_29(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
479 534 yeccgoto_array_subscripts(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
480 535
481 536 -dialyzer({nowarn_function, yeccpars2_30/7}).
537 + -compile({nowarn_unused_function, yeccpars2_30/7}).
482 538 yeccpars2_30(S, ']', Ss, Stack, T, Ts, Tzr) ->
483 539 yeccpars1(S, 31, Ss, Stack, T, Ts, Tzr);
484 540 yeccpars2_30(S, digits, Ss, Stack, T, Ts, Tzr) ->
  @@ -486,40 +542,54 @@ yeccpars2_30(S, digits, Ss, Stack, T, Ts, Tzr) ->
486 542 yeccpars2_30(_, _, _, _, T, _, _) ->
487 543 yeccerror(T).
488 544
545 + -dialyzer({nowarn_function, yeccpars2_31/7}).
546 + -compile({nowarn_unused_function, yeccpars2_31/7}).
489 547 yeccpars2_31(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
490 548 [_|Nss] = Ss,
491 549 NewStack = yeccpars2_31_(Stack),
492 550 yeccgoto_array_subscript(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
493 551
494 552 -dialyzer({nowarn_function, yeccpars2_32/7}).
553 + -compile({nowarn_unused_function, yeccpars2_32/7}).
495 554 yeccpars2_32(S, ']', Ss, Stack, T, Ts, Tzr) ->
496 555 yeccpars1(S, 33, Ss, Stack, T, Ts, Tzr);
497 556 yeccpars2_32(_, _, _, _, T, _, _) ->
498 557 yeccerror(T).
499 558
559 + -dialyzer({nowarn_function, yeccpars2_33/7}).
560 + -compile({nowarn_unused_function, yeccpars2_33/7}).
500 561 yeccpars2_33(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
501 562 [_,_|Nss] = Ss,
502 563 NewStack = yeccpars2_33_(Stack),
503 564 yeccgoto_array_subscript(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
504 565
566 + -dialyzer({nowarn_function, yeccpars2_34/7}).
567 + -compile({nowarn_unused_function, yeccpars2_34/7}).
505 568 yeccpars2_34(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
506 569 [_|Nss] = Ss,
507 570 NewStack = yeccpars2_34_(Stack),
508 571 yeccgoto_array_subscripts(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
509 572
573 + -dialyzer({nowarn_function, yeccpars2_35/7}).
574 + -compile({nowarn_unused_function, yeccpars2_35/7}).
510 575 yeccpars2_35(S, '->', Ss, Stack, T, Ts, Tzr) ->
511 576 yeccpars1(S, 42, Ss, Stack, T, Ts, Tzr);
512 577 yeccpars2_35(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
513 578 NewStack = yeccpars2_35_(Stack),
514 579 yeccgoto_selector(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
515 580
581 + -dialyzer({nowarn_function, yeccpars2_36/7}).
582 + -compile({nowarn_unused_function, yeccpars2_36/7}).
516 583 yeccpars2_36(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
517 584 [_|Nss] = Ss,
518 585 NewStack = yeccpars2_36_(Stack),
519 586 yeccgoto_dispatch(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
520 587
588 + -dialyzer({nowarn_function, yeccpars2_37/7}).
589 + -compile({nowarn_unused_function, yeccpars2_37/7}).
521 590 yeccpars2_37(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
522 - yeccgoto_selector(hd(Ss), Cat, Ss, Stack, T, Ts, Tzr).
591 + NewStack = yeccpars2_37_(Stack),
592 + yeccgoto_selector(hd(Ss), Cat, Ss, NewStack, T, Ts, Tzr).
523 593
524 594 yeccpars2_38(S, ')', Ss, Stack, T, Ts, Tzr) ->
525 595 yeccpars1(S, 40, Ss, Stack, T, Ts, Tzr);
  @@ -527,16 +597,21 @@ yeccpars2_38(S, Cat, Ss, Stack, T, Ts, Tzr) ->
527 597 yeccpars2_11(S, Cat, Ss, Stack, T, Ts, Tzr).
528 598
529 599 -dialyzer({nowarn_function, yeccpars2_39/7}).
600 + -compile({nowarn_unused_function, yeccpars2_39/7}).
530 601 yeccpars2_39(S, ')', Ss, Stack, T, Ts, Tzr) ->
531 602 yeccpars1(S, 41, Ss, Stack, T, Ts, Tzr);
532 603 yeccpars2_39(_, _, _, _, T, _, _) ->
533 604 yeccerror(T).
534 605
606 + -dialyzer({nowarn_function, yeccpars2_40/7}).
607 + -compile({nowarn_unused_function, yeccpars2_40/7}).
535 608 yeccpars2_40(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
536 609 [_|Nss] = Ss,
537 610 NewStack = yeccpars2_40_(Stack),
538 611 yeccgoto_typespec(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
539 612
613 + -dialyzer({nowarn_function, yeccpars2_41/7}).
614 + -compile({nowarn_unused_function, yeccpars2_41/7}).
540 615 yeccpars2_41(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
541 616 [_,_|Nss] = Ss,
542 617 NewStack = yeccpars2_41_(Stack),
  @@ -544,17 +619,22 @@ yeccpars2_41(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
544 619
545 620 %% yeccpars2_42: see yeccpars2_11
546 621
622 + -dialyzer({nowarn_function, yeccpars2_43/7}).
623 + -compile({nowarn_unused_function, yeccpars2_43/7}).
547 624 yeccpars2_43(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
548 625 [_,_|Nss] = Ss,
549 626 NewStack = yeccpars2_43_(Stack),
550 627 yeccgoto_nontrivial_selector(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
551 628
552 629 -dialyzer({nowarn_function, yeccpars2_44/7}).
630 + -compile({nowarn_unused_function, yeccpars2_44/7}).
553 631 yeccpars2_44(S, ')', Ss, Stack, T, Ts, Tzr) ->
554 632 yeccpars1(S, 46, Ss, Stack, T, Ts, Tzr);
555 633 yeccpars2_44(_, _, _, _, T, _, _) ->
556 634 yeccerror(T).
557 635
636 + -dialyzer({nowarn_function, yeccpars2_45/7}).
637 + -compile({nowarn_unused_function, yeccpars2_45/7}).
558 638 yeccpars2_45(_S, '$end', Ss, Stack, T, Ts, Tzr) ->
559 639 [_|Nss] = Ss,
560 640 NewStack = 'yeccpars2_45_\'$end\''(Stack),
  @@ -564,6 +644,8 @@ yeccpars2_45(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
564 644 NewStack = yeccpars2_45_(Stack),
565 645 yeccgoto_typespec(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
566 646
647 + -dialyzer({nowarn_function, yeccpars2_46/7}).
648 + -compile({nowarn_unused_function, yeccpars2_46/7}).
567 649 yeccpars2_46(_S, '$end', Ss, Stack, T, Ts, Tzr) ->
568 650 [_,_|Nss] = Ss,
569 651 NewStack = 'yeccpars2_46_\'$end\''(Stack),
  @@ -573,6 +655,8 @@ yeccpars2_46(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
573 655 NewStack = yeccpars2_46_(Stack),
574 656 yeccgoto_typespec(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
575 657
658 + -dialyzer({nowarn_function, yeccpars2_47/7}).
659 + -compile({nowarn_unused_function, yeccpars2_47/7}).
576 660 yeccpars2_47(S, '->', Ss, Stack, T, Ts, Tzr) ->
577 661 yeccpars1(S, 48, Ss, Stack, T, Ts, Tzr);
578 662 yeccpars2_47(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
  @@ -582,29 +666,36 @@ yeccpars2_47(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
582 666
583 667 %% yeccpars2_48: see yeccpars2_11
584 668
669 + -dialyzer({nowarn_function, yeccpars2_49/7}).
670 + -compile({nowarn_unused_function, yeccpars2_49/7}).
585 671 yeccpars2_49(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
586 672 [_,_,_|Nss] = Ss,
587 673 NewStack = yeccpars2_49_(Stack),
588 674 yeccgoto_nontrivial_selector(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
589 675
676 + -dialyzer({nowarn_function, yeccpars2_50/7}).
677 + -compile({nowarn_unused_function, yeccpars2_50/7}).
590 678 yeccpars2_50(_S, Cat, Ss, Stack, T, Ts, Tzr) ->
591 679 [_|Nss] = Ss,
592 680 NewStack = yeccpars2_50_(Stack),
593 681 yeccgoto_identifier_parts(hd(Nss), Cat, Nss, NewStack, T, Ts, Tzr).
594 682
595 683 -dialyzer({nowarn_function, yeccgoto_array_subscript/7}).
684 + -compile({nowarn_unused_function, yeccgoto_array_subscript/7}).
596 685 yeccgoto_array_subscript(15, Cat, Ss, Stack, T, Ts, Tzr) ->
597 686 yeccpars2_29(29, Cat, Ss, Stack, T, Ts, Tzr);
598 687 yeccgoto_array_subscript(29, Cat, Ss, Stack, T, Ts, Tzr) ->
599 688 yeccpars2_29(29, Cat, Ss, Stack, T, Ts, Tzr).
600 689
601 690 -dialyzer({nowarn_function, yeccgoto_array_subscripts/7}).
691 + -compile({nowarn_unused_function, yeccgoto_array_subscripts/7}).
602 692 yeccgoto_array_subscripts(15=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
603 693 yeccpars2_28(_S, Cat, Ss, Stack, T, Ts, Tzr);
604 694 yeccgoto_array_subscripts(29=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
605 695 yeccpars2_34(_S, Cat, Ss, Stack, T, Ts, Tzr).
606 696
607 697 -dialyzer({nowarn_function, yeccgoto_comma_delimited_types/7}).
698 + -compile({nowarn_unused_function, yeccgoto_comma_delimited_types/7}).
608 699 yeccgoto_comma_delimited_types(8, Cat, Ss, Stack, T, Ts, Tzr) ->
609 700 yeccpars2_44(44, Cat, Ss, Stack, T, Ts, Tzr);
610 701 yeccgoto_comma_delimited_types(17, Cat, Ss, Stack, T, Ts, Tzr) ->
  @@ -615,16 +706,19 @@ yeccgoto_comma_delimited_types(38, Cat, Ss, Stack, T, Ts, Tzr) ->
615 706 yeccpars2_39(39, Cat, Ss, Stack, T, Ts, Tzr).
616 707
617 708 -dialyzer({nowarn_function, yeccgoto_dispatch/7}).
709 + -compile({nowarn_unused_function, yeccgoto_dispatch/7}).
618 710 yeccgoto_dispatch(0, Cat, Ss, Stack, T, Ts, Tzr) ->
619 711 yeccpars2_7(7, Cat, Ss, Stack, T, Ts, Tzr).
620 712
621 713 -dialyzer({nowarn_function, yeccgoto_identifier/7}).
714 + -compile({nowarn_unused_function, yeccgoto_identifier/7}).
622 715 yeccgoto_identifier(0, Cat, Ss, Stack, T, Ts, Tzr) ->
623 716 yeccpars2_6(6, Cat, Ss, Stack, T, Ts, Tzr);
624 717 yeccgoto_identifier(10, Cat, Ss, Stack, T, Ts, Tzr) ->
625 718 yeccpars2_6(6, Cat, Ss, Stack, T, Ts, Tzr).
626 719
627 720 -dialyzer({nowarn_function, yeccgoto_identifier_part/7}).
721 + -compile({nowarn_unused_function, yeccgoto_identifier_part/7}).
628 722 yeccgoto_identifier_part(0, Cat, Ss, Stack, T, Ts, Tzr) ->
629 723 yeccpars2_5(5, Cat, Ss, Stack, T, Ts, Tzr);
630 724 yeccgoto_identifier_part(5, Cat, Ss, Stack, T, Ts, Tzr) ->
  @@ -633,6 +727,7 @@ yeccgoto_identifier_part(10, Cat, Ss, Stack, T, Ts, Tzr) ->
633 727 yeccpars2_5(5, Cat, Ss, Stack, T, Ts, Tzr).
634 728
635 729 -dialyzer({nowarn_function, yeccgoto_identifier_parts/7}).
730 + -compile({nowarn_unused_function, yeccgoto_identifier_parts/7}).
636 731 yeccgoto_identifier_parts(0=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
637 732 yeccpars2_4(_S, Cat, Ss, Stack, T, Ts, Tzr);
638 733 yeccgoto_identifier_parts(5=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
  @@ -641,16 +736,19 @@ yeccgoto_identifier_parts(10=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
641 736 yeccpars2_4(_S, Cat, Ss, Stack, T, Ts, Tzr).
642 737
643 738 -dialyzer({nowarn_function, yeccgoto_nontrivial_selector/7}).
739 + -compile({nowarn_unused_function, yeccgoto_nontrivial_selector/7}).
644 740 yeccgoto_nontrivial_selector(0=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
645 741 yeccpars2_3(_S, Cat, Ss, Stack, T, Ts, Tzr);
646 742 yeccgoto_nontrivial_selector(10=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
647 743 yeccpars2_37(_S, Cat, Ss, Stack, T, Ts, Tzr).
648 744
649 745 -dialyzer({nowarn_function, yeccgoto_selector/7}).
746 + -compile({nowarn_unused_function, yeccgoto_selector/7}).
650 747 yeccgoto_selector(10=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
651 748 yeccpars2_36(_S, Cat, Ss, Stack, T, Ts, Tzr).
652 749
653 750 -dialyzer({nowarn_function, yeccgoto_tuple/7}).
751 + -compile({nowarn_unused_function, yeccgoto_tuple/7}).
654 752 yeccgoto_tuple(0=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
655 753 yeccpars2_2(_S, Cat, Ss, Stack, T, Ts, Tzr);
656 754 yeccgoto_tuple(8=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
  @@ -669,6 +767,7 @@ yeccgoto_tuple(48=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
669 767 yeccpars2_16(_S, Cat, Ss, Stack, T, Ts, Tzr).
670 768
671 769 -dialyzer({nowarn_function, yeccgoto_type/7}).
770 + -compile({nowarn_unused_function, yeccgoto_type/7}).
672 771 yeccgoto_type(8, Cat, Ss, Stack, T, Ts, Tzr) ->
673 772 yeccpars2_15(15, Cat, Ss, Stack, T, Ts, Tzr);
674 773 yeccgoto_type(11, Cat, Ss, Stack, T, Ts, Tzr) ->
  @@ -685,6 +784,7 @@ yeccgoto_type(48=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
685 784 yeccpars2_49(_S, Cat, Ss, Stack, T, Ts, Tzr).
686 785
687 786 -dialyzer({nowarn_function, yeccgoto_type_with_subscripts/7}).
787 + -compile({nowarn_unused_function, yeccgoto_type_with_subscripts/7}).
688 788 yeccgoto_type_with_subscripts(8, Cat, Ss, Stack, T, Ts, Tzr) ->
689 789 yeccpars2_22(22, Cat, Ss, Stack, T, Ts, Tzr);
690 790 yeccgoto_type_with_subscripts(11=_S, Cat, Ss, Stack, T, Ts, Tzr) ->
  @@ -697,6 +797,7 @@ yeccgoto_type_with_subscripts(38, Cat, Ss, Stack, T, Ts, Tzr) ->
697 797 yeccpars2_22(22, Cat, Ss, Stack, T, Ts, Tzr).
698 798
699 799 -dialyzer({nowarn_function, yeccgoto_typespec/7}).
800 + -compile({nowarn_unused_function, yeccgoto_typespec/7}).
700 801 yeccgoto_typespec(0, Cat, Ss, Stack, T, Ts, Tzr) ->
701 802 yeccpars2_1(1, Cat, Ss, Stack, T, Ts, Tzr);
702 803 yeccgoto_typespec(6, Cat, Ss, Stack, T, Ts, Tzr) ->
  @@ -705,259 +806,356 @@ yeccgoto_typespec(10, Cat, Ss, Stack, T, Ts, Tzr) ->
705 806 yeccpars2_35(35, Cat, Ss, Stack, T, Ts, Tzr).
706 807
707 808 -compile({inline,yeccpars2_2_/1}).
809 + -dialyzer({nowarn_function, yeccpars2_2_/1}).
810 + -compile({nowarn_unused_function, yeccpars2_2_/1}).
708 811 -file("src/ethereum_abi_parser.yrl", 3).
709 812 yeccpars2_2_(__Stack0) ->
710 - [__1 | __Stack] = __Stack0,
813 + [___1 | __Stack] = __Stack0,
711 814 [begin
712 - { selector , # { function => nil , types => [ __1 ] , returns => nil } }
815 + {selector, #{function => nil, types => [___1], returns => nil}}
713 816 end | __Stack].
714 817
715 818 -compile({inline,yeccpars2_3_/1}).
819 + -dialyzer({nowarn_function, yeccpars2_3_/1}).
820 + -compile({nowarn_unused_function, yeccpars2_3_/1}).
716 821 -file("src/ethereum_abi_parser.yrl", 4).
717 822 yeccpars2_3_(__Stack0) ->
718 - [__1 | __Stack] = __Stack0,
823 + [___1 | __Stack] = __Stack0,
719 824 [begin
720 - { selector , __1 }
825 + {selector, ___1}
721 826 end | __Stack].
722 827
723 828 -compile({inline,yeccpars2_4_/1}).
829 + -dialyzer({nowarn_function, yeccpars2_4_/1}).
830 + -compile({nowarn_unused_function, yeccpars2_4_/1}).
724 831 -file("src/ethereum_abi_parser.yrl", 22).
725 832 yeccpars2_4_(__Stack0) ->
726 - [__1 | __Stack] = __Stack0,
833 + [___1 | __Stack] = __Stack0,
727 834 [begin
728 - iolist_to_binary ( __1 )
835 + iolist_to_binary(___1)
729 836 end | __Stack].
730 837
731 838 -compile({inline,yeccpars2_5_/1}).
839 + -dialyzer({nowarn_function, yeccpars2_5_/1}).
840 + -compile({nowarn_unused_function, yeccpars2_5_/1}).
732 841 -file("src/ethereum_abi_parser.yrl", 24).
733 842 yeccpars2_5_(__Stack0) ->
734 - [__1 | __Stack] = __Stack0,
843 + [___1 | __Stack] = __Stack0,
735 844 [begin
736 - [ __1 ]
845 + [___1]
737 846 end | __Stack].
738 847
739 848 -compile({inline,yeccpars2_9_/1}).
849 + -dialyzer({nowarn_function, yeccpars2_9_/1}).
850 + -compile({nowarn_unused_function, yeccpars2_9_/1}).
740 851 -file("src/ethereum_abi_parser.yrl", 29).
741 852 yeccpars2_9_(__Stack0) ->
742 - [__1 | __Stack] = __Stack0,
853 + [___1 | __Stack] = __Stack0,
743 854 [begin
744 - v ( __1 )
855 + v(___1)
745 856 end | __Stack].
746 857
747 858 -compile({inline,yeccpars2_12_/1}).
859 + -dialyzer({nowarn_function, yeccpars2_12_/1}).
860 + -compile({nowarn_unused_function, yeccpars2_12_/1}).
748 861 -file("src/ethereum_abi_parser.yrl", 28).
749 862 yeccpars2_12_(__Stack0) ->
750 - [__1 | __Stack] = __Stack0,
863 + [___1 | __Stack] = __Stack0,
751 864 [begin
752 - v ( __1 )
865 + v(___1)
753 866 end | __Stack].
754 867
755 868 -compile({inline,yeccpars2_13_/1}).
869 + -dialyzer({nowarn_function, yeccpars2_13_/1}).
870 + -compile({nowarn_unused_function, yeccpars2_13_/1}).
756 871 -file("src/ethereum_abi_parser.yrl", 27).
757 872 yeccpars2_13_(__Stack0) ->
758 - [__1 | __Stack] = __Stack0,
873 + [___1 | __Stack] = __Stack0,
759 874 [begin
760 - v ( __1 )
875 + v(___1)
761 876 end | __Stack].
762 877
763 878 -compile({inline,yeccpars2_14_/1}).
879 + -dialyzer({nowarn_function, yeccpars2_14_/1}).
880 + -compile({nowarn_unused_function, yeccpars2_14_/1}).
764 881 -file("src/ethereum_abi_parser.yrl", 1).
765 882 yeccpars2_14_(__Stack0) ->
766 - [__2,__1 | __Stack] = __Stack0,
883 + [___2,___1 | __Stack] = __Stack0,
767 884 [begin
768 - { type , __2 }
885 + {type, ___2}
886 + end | __Stack].
887 +
888 + -compile({inline,yeccpars2_15_/1}).
889 + -dialyzer({nowarn_function, yeccpars2_15_/1}).
890 + -compile({nowarn_unused_function, yeccpars2_15_/1}).
891 + -file("src/ethereum_abi_parser.yrl", 31).
892 + yeccpars2_15_(__Stack0) ->
893 + [___1 | __Stack] = __Stack0,
894 + [begin
895 + ___1
896 + end | __Stack].
897 +
898 + -compile({inline,yeccpars2_16_/1}).
899 + -dialyzer({nowarn_function, yeccpars2_16_/1}).
900 + -compile({nowarn_unused_function, yeccpars2_16_/1}).
901 + -file("src/ethereum_abi_parser.yrl", 46).
902 + yeccpars2_16_(__Stack0) ->
903 + [___1 | __Stack] = __Stack0,
904 + [begin
905 + ___1
769 906 end | __Stack].
770 907
771 908 -compile({inline,yeccpars2_18_/1}).
772 - -file("src/ethereum_abi_parser.yrl", 41).
909 + -dialyzer({nowarn_function, yeccpars2_18_/1}).
910 + -compile({nowarn_unused_function, yeccpars2_18_/1}).
911 + -file("src/ethereum_abi_parser.yrl", 40).
773 912 yeccpars2_18_(__Stack0) ->
774 - [__1 | __Stack] = __Stack0,
913 + [___1 | __Stack] = __Stack0,
775 914 [begin
776 - plain_type ( list_to_atom ( v ( __1 ) ) )
915 +
916 + plain_type(list_to_atom(v(___1)))
777 917 end | __Stack].
778 918
779 919 -compile({inline,yeccpars2_19_/1}).
780 - -file("src/ethereum_abi_parser.yrl", 43).
920 + -dialyzer({nowarn_function, yeccpars2_19_/1}).
921 + -compile({nowarn_unused_function, yeccpars2_19_/1}).
922 + -file("src/ethereum_abi_parser.yrl", 42).
781 923 yeccpars2_19_(__Stack0) ->
782 - [__2,__1 | __Stack] = __Stack0,
924 + [___2,___1 | __Stack] = __Stack0,
783 925 [begin
784 - juxt_type ( list_to_atom ( v ( __1 ) ) , list_to_integer ( v ( __2 ) ) )
926 +
927 + juxt_type(list_to_atom(v(___1)), list_to_integer(v(___2)))
785 928 end | __Stack].
786 929
787 930 -compile({inline,yeccpars2_21_/1}).
788 - -file("src/ethereum_abi_parser.yrl", 45).
931 + -dialyzer({nowarn_function, yeccpars2_21_/1}).
932 + -compile({nowarn_unused_function, yeccpars2_21_/1}).
933 + -file("src/ethereum_abi_parser.yrl", 44).
789 934 yeccpars2_21_(__Stack0) ->
790 - [__4,__3,__2,__1 | __Stack] = __Stack0,
935 + [___4,___3,___2,___1 | __Stack] = __Stack0,
791 936 [begin
792 - double_juxt_type ( list_to_atom ( v ( __1 ) ) , v ( __3 ) , list_to_integer ( v ( __2 ) ) , list_to_integer ( v ( __4 ) ) )
937 +
938 + double_juxt_type(list_to_atom(v(___1)), v(___3), list_to_integer(v(___2)), list_to_integer(v(___4)))
793 939 end | __Stack].
794 940
795 941 -compile({inline,yeccpars2_22_/1}).
942 + -dialyzer({nowarn_function, yeccpars2_22_/1}).
943 + -compile({nowarn_unused_function, yeccpars2_22_/1}).
796 944 -file("src/ethereum_abi_parser.yrl", 19).
797 945 yeccpars2_22_(__Stack0) ->
798 - [__1 | __Stack] = __Stack0,
946 + [___1 | __Stack] = __Stack0,
799 947 [begin
800 - [ __1 ]
948 + [___1]
801 949 end | __Stack].
802 950
803 951 -compile({inline,yeccpars2_24_/1}).
952 + -dialyzer({nowarn_function, yeccpars2_24_/1}).
953 + -compile({nowarn_unused_function, yeccpars2_24_/1}).
804 954 -file("src/ethereum_abi_parser.yrl", 16).
805 955 yeccpars2_24_(__Stack0) ->
806 - [__2,__1 | __Stack] = __Stack0,
956 + [___2,___1 | __Stack] = __Stack0,
807 957 [begin
808 958 {tuple, []}
809 959 end | __Stack].
810 960
811 961 -compile({inline,yeccpars2_25_/1}).
962 + -dialyzer({nowarn_function, yeccpars2_25_/1}).
963 + -compile({nowarn_unused_function, yeccpars2_25_/1}).
812 964 -file("src/ethereum_abi_parser.yrl", 17).
813 965 yeccpars2_25_(__Stack0) ->
814 - [__3,__2,__1 | __Stack] = __Stack0,
966 + [___3,___2,___1 | __Stack] = __Stack0,
815 967 [begin
816 - { tuple , __2 }
968 + {tuple, ___2}
817 969 end | __Stack].
818 970
819 971 -compile({inline,yeccpars2_27_/1}).
972 + -dialyzer({nowarn_function, yeccpars2_27_/1}).
973 + -compile({nowarn_unused_function, yeccpars2_27_/1}).
820 974 -file("src/ethereum_abi_parser.yrl", 20).
821 975 yeccpars2_27_(__Stack0) ->
822 - [__3,__2,__1 | __Stack] = __Stack0,
976 + [___3,___2,___1 | __Stack] = __Stack0,
823 977 [begin
824 - [ __1 | __3 ]
978 + [___1 | ___3]
825 979 end | __Stack].
826 980
827 981 -compile({inline,yeccpars2_28_/1}).
982 + -dialyzer({nowarn_function, yeccpars2_28_/1}).
983 + -compile({nowarn_unused_function, yeccpars2_28_/1}).
828 984 -file("src/ethereum_abi_parser.yrl", 32).
829 985 yeccpars2_28_(__Stack0) ->
830 - [__2,__1 | __Stack] = __Stack0,
986 + [___2,___1 | __Stack] = __Stack0,
831 987 [begin
832 - with_subscripts ( __1 , __2 )
988 + with_subscripts(___1, ___2)
833 989 end | __Stack].
834 990
835 991 -compile({inline,yeccpars2_29_/1}).
992 + -dialyzer({nowarn_function, yeccpars2_29_/1}).
993 + -compile({nowarn_unused_function, yeccpars2_29_/1}).
836 994 -file("src/ethereum_abi_parser.yrl", 34).
837 995 yeccpars2_29_(__Stack0) ->
838 - [__1 | __Stack] = __Stack0,
996 + [___1 | __Stack] = __Stack0,
839 997 [begin
840 - [ __1 ]
998 + [___1]
841 999 end | __Stack].
842 1000
843 1001 -compile({inline,yeccpars2_31_/1}).
1002 + -dialyzer({nowarn_function, yeccpars2_31_/1}).
1003 + -compile({nowarn_unused_function, yeccpars2_31_/1}).
844 1004 -file("src/ethereum_abi_parser.yrl", 37).
845 1005 yeccpars2_31_(__Stack0) ->
846 - [__2,__1 | __Stack] = __Stack0,
1006 + [___2,___1 | __Stack] = __Stack0,
847 1007 [begin
848 1008 variable
849 1009 end | __Stack].
850 1010
851 1011 -compile({inline,yeccpars2_33_/1}).
1012 + -dialyzer({nowarn_function, yeccpars2_33_/1}).
1013 + -compile({nowarn_unused_function, yeccpars2_33_/1}).
852 1014 -file("src/ethereum_abi_parser.yrl", 38).
853 1015 yeccpars2_33_(__Stack0) ->
854 - [__3,__2,__1 | __Stack] = __Stack0,
1016 + [___3,___2,___1 | __Stack] = __Stack0,
855 1017 [begin
856 - list_to_integer ( v ( __2 ) )
1018 + list_to_integer(v(___2))
857 1019 end | __Stack].
858 1020
859 1021 -compile({inline,yeccpars2_34_/1}).
1022 + -dialyzer({nowarn_function, yeccpars2_34_/1}).
1023 + -compile({nowarn_unused_function, yeccpars2_34_/1}).
860 1024 -file("src/ethereum_abi_parser.yrl", 35).
861 1025 yeccpars2_34_(__Stack0) ->
862 - [__2,__1 | __Stack] = __Stack0,
1026 + [___2,___1 | __Stack] = __Stack0,
863 1027 [begin
864 - [ __1 | __2 ]
1028 + [___1 | ___2]
865 1029 end | __Stack].
866 1030
867 1031 -compile({inline,yeccpars2_35_/1}).
1032 + -dialyzer({nowarn_function, yeccpars2_35_/1}).
1033 + -compile({nowarn_unused_function, yeccpars2_35_/1}).
868 1034 -file("src/ethereum_abi_parser.yrl", 6).
869 1035 yeccpars2_35_(__Stack0) ->
870 - [__1 | __Stack] = __Stack0,
1036 + [___1 | __Stack] = __Stack0,
871 1037 [begin
872 - # { function => nil , types => __1 , returns => nil }
1038 + #{function => nil, types => ___1, returns => nil}
873 1039 end | __Stack].
874 1040
875 1041 -compile({inline,yeccpars2_36_/1}).
1042 + -dialyzer({nowarn_function, yeccpars2_36_/1}).
1043 + -compile({nowarn_unused_function, yeccpars2_36_/1}).
876 1044 -file("src/ethereum_abi_parser.yrl", 2).
877 1045 yeccpars2_36_(__Stack0) ->
878 - [__2,__1 | __Stack] = __Stack0,
1046 + [___2,___1 | __Stack] = __Stack0,
879 1047 [begin
880 - { selector , __2 }
1048 + {selector, ___2}
1049 + end | __Stack].
1050 +
1051 + -compile({inline,yeccpars2_37_/1}).
1052 + -dialyzer({nowarn_function, yeccpars2_37_/1}).
1053 + -compile({nowarn_unused_function, yeccpars2_37_/1}).
1054 + -file("src/ethereum_abi_parser.yrl", 7).
1055 + yeccpars2_37_(__Stack0) ->
1056 + [___1 | __Stack] = __Stack0,
1057 + [begin
1058 + ___1
881 1059 end | __Stack].
882 1060
883 1061 -compile({inline,yeccpars2_40_/1}).
1062 + -dialyzer({nowarn_function, yeccpars2_40_/1}).
1063 + -compile({nowarn_unused_function, yeccpars2_40_/1}).
884 1064 -file("src/ethereum_abi_parser.yrl", 13).
885 1065 yeccpars2_40_(__Stack0) ->
886 - [__2,__1 | __Stack] = __Stack0,
1066 + [___2,___1 | __Stack] = __Stack0,
887 1067 [begin
888 1068 []
889 1069 end | __Stack].
890 1070
891 1071 -compile({inline,yeccpars2_41_/1}).
1072 + -dialyzer({nowarn_function, yeccpars2_41_/1}).
1073 + -compile({nowarn_unused_function, yeccpars2_41_/1}).
892 1074 -file("src/ethereum_abi_parser.yrl", 14).
893 1075 yeccpars2_41_(__Stack0) ->
894 - [__3,__2,__1 | __Stack] = __Stack0,
1076 + [___3,___2,___1 | __Stack] = __Stack0,
895 1077 [begin
896 - __2
1078 + ___2
897 1079 end | __Stack].
898 1080
899 1081 -compile({inline,yeccpars2_43_/1}).
1082 + -dialyzer({nowarn_function, yeccpars2_43_/1}).
1083 + -compile({nowarn_unused_function, yeccpars2_43_/1}).
900 1084 -file("src/ethereum_abi_parser.yrl", 9).
901 1085 yeccpars2_43_(__Stack0) ->
902 - [__3,__2,__1 | __Stack] = __Stack0,
1086 + [___3,___2,___1 | __Stack] = __Stack0,
903 1087 [begin
904 - # { function => nil , types => __1 , returns => __3 }
1088 + #{function => nil, types => ___1, returns => ___3}
905 1089 end | __Stack].
906 1090
907 1091 -compile({inline,'yeccpars2_45_\'$end\''/1}).
1092 + -dialyzer({nowarn_function, 'yeccpars2_45_\'$end\''/1}).
1093 + -compile({nowarn_unused_function, 'yeccpars2_45_\'$end\''/1}).
908 1094 -file("src/ethereum_abi_parser.yrl", 16).
909 1095 'yeccpars2_45_\'$end\''(__Stack0) ->
910 - [__2,__1 | __Stack] = __Stack0,
1096 + [___2,___1 | __Stack] = __Stack0,
911 1097 [begin
912 1098 {tuple, []}
913 1099 end | __Stack].
914 1100
915 1101 -compile({inline,yeccpars2_45_/1}).
1102 + -dialyzer({nowarn_function, yeccpars2_45_/1}).
1103 + -compile({nowarn_unused_function, yeccpars2_45_/1}).
916 1104 -file("src/ethereum_abi_parser.yrl", 13).
917 1105 yeccpars2_45_(__Stack0) ->
918 - [__2,__1 | __Stack] = __Stack0,
1106 + [___2,___1 | __Stack] = __Stack0,
919 1107 [begin
920 1108 []
921 1109 end | __Stack].
922 1110
923 1111 -compile({inline,'yeccpars2_46_\'$end\''/1}).
1112 + -dialyzer({nowarn_function, 'yeccpars2_46_\'$end\''/1}).
1113 + -compile({nowarn_unused_function, 'yeccpars2_46_\'$end\''/1}).
924 1114 -file("src/ethereum_abi_parser.yrl", 17).
925 1115 'yeccpars2_46_\'$end\''(__Stack0) ->
926 - [__3,__2,__1 | __Stack] = __Stack0,
1116 + [___3,___2,___1 | __Stack] = __Stack0,
927 1117 [begin
928 - { tuple , __2 }
1118 + {tuple, ___2}
929 1119 end | __Stack].
930 1120
931 1121 -compile({inline,yeccpars2_46_/1}).
1122 + -dialyzer({nowarn_function, yeccpars2_46_/1}).
1123 + -compile({nowarn_unused_function, yeccpars2_46_/1}).
932 1124 -file("src/ethereum_abi_parser.yrl", 14).
933 1125 yeccpars2_46_(__Stack0) ->
934 - [__3,__2,__1 | __Stack] = __Stack0,
1126 + [___3,___2,___1 | __Stack] = __Stack0,
935 1127 [begin
936 - __2
1128 + ___2
937 1129 end | __Stack].
938 1130
939 1131 -compile({inline,yeccpars2_47_/1}).
1132 + -dialyzer({nowarn_function, yeccpars2_47_/1}).
1133 + -compile({nowarn_unused_function, yeccpars2_47_/1}).
940 1134 -file("src/ethereum_abi_parser.yrl", 10).
941 1135 yeccpars2_47_(__Stack0) ->
942 - [__2,__1 | __Stack] = __Stack0,
1136 + [___2,___1 | __Stack] = __Stack0,
943 1137 [begin
944 - # { function => __1 , types => __2 , returns => nil }
1138 + #{function => ___1, types => ___2, returns => nil}
945 1139 end | __Stack].
946 1140
947 1141 -compile({inline,yeccpars2_49_/1}).
1142 + -dialyzer({nowarn_function, yeccpars2_49_/1}).
1143 + -compile({nowarn_unused_function, yeccpars2_49_/1}).
948 1144 -file("src/ethereum_abi_parser.yrl", 11).
949 1145 yeccpars2_49_(__Stack0) ->
950 - [__4,__3,__2,__1 | __Stack] = __Stack0,
1146 + [___4,___3,___2,___1 | __Stack] = __Stack0,
951 1147 [begin
952 - # { function => __1 , types => __2 , returns => __4 }
1148 + #{function => ___1, types => ___2, returns => ___4}
953 1149 end | __Stack].
954 1150
955 1151 -compile({inline,yeccpars2_50_/1}).
1152 + -dialyzer({nowarn_function, yeccpars2_50_/1}).
1153 + -compile({nowarn_unused_function, yeccpars2_50_/1}).
956 1154 -file("src/ethereum_abi_parser.yrl", 25).
957 1155 yeccpars2_50_(__Stack0) ->
958 - [__2,__1 | __Stack] = __Stack0,
1156 + [___2,___1 | __Stack] = __Stack0,
959 1157 [begin
960 - [ __1 | __2 ]
1158 + [___1 | ___2]
961 1159 end | __Stack].