Skip to content

Commit

Permalink
Tweak some parameters of built-in functions
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiraldez committed Nov 26, 2024
1 parent a6b610c commit 4c19da0
Show file tree
Hide file tree
Showing 20 changed files with 138 additions and 135 deletions.
21 changes: 12 additions & 9 deletions crates/solidity/inputs/language/src/definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6738,37 +6738,40 @@ codegen_language_macros::compile!(Language(
functions = [
BuiltInFunction(
name = "decode",
parameters = ["bytes memory encodedData", "$Types encodedTypesTuple"],
return_type = "$Types",
parameters = ["bytes memory encodedData", "$Type[] encodedTypesTuple"],
return_type = "$Any[]",
enabled = From("0.5.0")
),
BuiltInFunction(
name = "encode",
parameters = ["$Args valuesToEncode"],
parameters = ["$Any[] valuesToEncode"],
return_type = "bytes memory",
enabled = From("0.4.22")
),
BuiltInFunction(
name = "encodeCall",
parameters = ["function() functionPointer", "$Args functionArgumentsTuple"],
parameters = [
"function() functionPointer",
"$Any[] functionArgumentsTuple"
],
return_type = "bytes memory",
enabled = From("0.8.11")
),
BuiltInFunction(
name = "encodePacked",
parameters = ["$Args valuesToEncode"],
parameters = ["$Any[] valuesToEncode"],
return_type = "bytes memory",
enabled = From("0.4.22")
),
BuiltInFunction(
name = "encodeWithSelector",
parameters = ["bytes4 selector", "$Args functionArgumentsTuple"],
parameters = ["bytes4 selector", "$Any[] functionArgumentsTuple"],
return_type = "bytes memory",
enabled = From("0.4.22")
),
BuiltInFunction(
name = "encodeWithSignature",
parameters = ["string memory signature", "$Args valuesToEncode"],
parameters = ["string memory signature", "$Any[] valuesToEncode"],
return_type = "bytes memory",
enabled = From("0.4.22")
)
Expand Down Expand Up @@ -6885,7 +6888,7 @@ codegen_language_macros::compile!(Language(
fields = [],
functions = [BuiltInFunction(
name = "concat",
parameters = ["$Args bytesToConcatenate"],
parameters = ["bytes[] bytesToConcatenate"],
return_type = "bytes memory"
)]
),
Expand Down Expand Up @@ -6964,7 +6967,7 @@ codegen_language_macros::compile!(Language(
fields = [],
functions = [BuiltInFunction(
name = "concat",
parameters = ["$Args stringsToConcatenate"],
parameters = ["string[] stringsToConcatenate"],
return_type = "string memory"
)]
),
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4c19da0

Please sign in to comment.