From 4c19da043ebcb9322119c82c77df33242c7b2102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustavo=20Gir=C3=A1ldez?= Date: Tue, 26 Nov 2024 18:19:04 -0500 Subject: [PATCH] Tweak some parameters of built-in functions --- .../inputs/language/src/definition.rs | 21 +++++++++++-------- .../bindings/generated/built_ins/0.4.11.sol | 4 ++-- .../bindings/generated/built_ins/0.4.17.sol | 4 ++-- .../bindings/generated/built_ins/0.4.22.sol | 12 +++++------ .../bindings/generated/built_ins/0.5.0.sol | 14 ++++++------- .../bindings/generated/built_ins/0.5.3.sol | 14 ++++++------- .../bindings/generated/built_ins/0.6.0.sol | 14 ++++++------- .../bindings/generated/built_ins/0.6.2.sol | 14 ++++++------- .../bindings/generated/built_ins/0.6.7.sol | 14 ++++++------- .../bindings/generated/built_ins/0.6.8.sol | 14 ++++++------- .../bindings/generated/built_ins/0.7.0.sol | 14 ++++++------- .../bindings/generated/built_ins/0.8.0.sol | 14 ++++++------- .../bindings/generated/built_ins/0.8.11.sol | 16 +++++++------- .../bindings/generated/built_ins/0.8.18.sol | 16 +++++++------- .../bindings/generated/built_ins/0.8.2.sol | 14 ++++++------- .../bindings/generated/built_ins/0.8.24.sol | 16 +++++++------- .../bindings/generated/built_ins/0.8.26.sol | 16 +++++++------- .../bindings/generated/built_ins/0.8.4.sol | 14 ++++++------- .../bindings/generated/built_ins/0.8.7.sol | 14 ++++++------- .../bindings/generated/built_ins/0.8.8.sol | 14 ++++++------- 20 files changed, 138 insertions(+), 135 deletions(-) diff --git a/crates/solidity/inputs/language/src/definition.rs b/crates/solidity/inputs/language/src/definition.rs index 196b044d2..e73802487 100644 --- a/crates/solidity/inputs/language/src/definition.rs +++ b/crates/solidity/inputs/language/src/definition.rs @@ -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") ) @@ -6885,7 +6888,7 @@ codegen_language_macros::compile!(Language( fields = [], functions = [BuiltInFunction( name = "concat", - parameters = ["$Args bytesToConcatenate"], + parameters = ["bytes[] bytesToConcatenate"], return_type = "bytes memory" )] ), @@ -6964,7 +6967,7 @@ codegen_language_macros::compile!(Language( fields = [], functions = [BuiltInFunction( name = "concat", - parameters = ["$Args stringsToConcatenate"], + parameters = ["string[] stringsToConcatenate"], return_type = "string memory" )] ), diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.4.11.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.4.11.sol index e6031a2c2..a01247842 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.4.11.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.4.11.sol @@ -48,7 +48,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $Function { function(uint amount) returns (function()) gas; @@ -66,7 +66,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.4.17.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.4.17.sol index 18e0f4f96..3ad1ac662 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.4.17.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.4.17.sol @@ -48,7 +48,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $Function { function(uint amount) returns (function()) gas; @@ -67,7 +67,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.4.22.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.4.22.sol index 3558a73f1..e0928e5bb 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.4.22.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.4.22.sol @@ -23,10 +23,10 @@ contract $BuiltIns$ { function sha3(bytes memory) public returns (bytes32); function suicide(address payable recipient) public; struct $AbiType { - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -56,7 +56,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $Function { function(uint amount) returns (function()) gas; @@ -75,7 +75,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.5.0.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.5.0.sol index 365807be4..18996d2bb 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.5.0.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.5.0.sol @@ -21,11 +21,11 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -54,7 +54,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $Function { function(uint amount) returns (function()) gas; @@ -72,7 +72,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.5.3.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.5.3.sol index 962c44516..5dd4bb075 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.5.3.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.5.3.sol @@ -21,11 +21,11 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -54,7 +54,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $Function { function(uint amount) returns (function()) gas; @@ -72,7 +72,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.0.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.0.sol index a61ee7d33..2fcabbc92 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.0.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.0.sol @@ -21,11 +21,11 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -55,7 +55,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $Function { function(uint amount) returns (function()) gas; @@ -73,7 +73,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.2.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.2.sol index 970182e4c..dc0081894 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.2.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.2.sol @@ -21,11 +21,11 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -55,7 +55,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -78,7 +78,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.7.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.7.sol index 8117413c3..4a57dfa48 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.7.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.7.sol @@ -21,11 +21,11 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -55,7 +55,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -78,7 +78,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.8.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.8.sol index 7729502cf..a20e478f5 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.8.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.6.8.sol @@ -21,11 +21,11 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -55,7 +55,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -78,7 +78,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.7.0.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.7.0.sol index 6d01d31b6..6c4e69b5d 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.7.0.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.7.0.sol @@ -21,11 +21,11 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -55,7 +55,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -74,7 +74,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.0.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.0.sol index d166afdac..4626514db 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.0.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.0.sol @@ -16,11 +16,11 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -53,7 +53,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -72,7 +72,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.11.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.11.sol index c419a8b9b..4fd057bb0 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.11.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.11.sol @@ -16,12 +16,12 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function(function() functionPointer, $Args functionArgumentsTuple) returns (bytes memory) encodeCall; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function(function() functionPointer, $Any[] functionArgumentsTuple) returns (bytes memory) encodeCall; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -55,7 +55,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -78,7 +78,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.18.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.18.sol index 2d25af277..edf82c7c7 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.18.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.18.sol @@ -16,12 +16,12 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function(function() functionPointer, $Args functionArgumentsTuple) returns (bytes memory) encodeCall; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function(function() functionPointer, $Any[] functionArgumentsTuple) returns (bytes memory) encodeCall; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -56,7 +56,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -79,7 +79,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.2.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.2.sol index 4a97115c9..be45a8cbf 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.2.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.2.sol @@ -16,11 +16,11 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -53,7 +53,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -73,7 +73,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.24.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.24.sol index 5b017eedd..5b537bd6f 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.24.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.24.sol @@ -17,12 +17,12 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function(function() functionPointer, $Args functionArgumentsTuple) returns (bytes memory) encodeCall; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function(function() functionPointer, $Any[] functionArgumentsTuple) returns (bytes memory) encodeCall; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -58,7 +58,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -81,7 +81,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.26.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.26.sol index f071ec1b2..b27eff44b 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.26.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.26.sol @@ -18,12 +18,12 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function(function() functionPointer, $Args functionArgumentsTuple) returns (bytes memory) encodeCall; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function(function() functionPointer, $Any[] functionArgumentsTuple) returns (bytes memory) encodeCall; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -59,7 +59,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -82,7 +82,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.4.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.4.sol index 233fd9bc5..4ac08e94d 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.4.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.4.sol @@ -16,11 +16,11 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -53,7 +53,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -76,7 +76,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.7.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.7.sol index be5a5eb33..503367efb 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.7.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.7.sol @@ -16,11 +16,11 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -54,7 +54,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -77,7 +77,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice; diff --git a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.8.sol b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.8.sol index 900db1992..ec34656db 100644 --- a/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.8.sol +++ b/crates/solidity/outputs/cargo/crate/src/generated/bindings/generated/built_ins/0.8.8.sol @@ -16,11 +16,11 @@ contract $BuiltIns$ { function selfdestruct(address payable recipient) public; function sha256(bytes memory) public returns (bytes32); struct $AbiType { - function(bytes memory encodedData, $Types encodedTypesTuple) returns ($Types) decode; - function($Args valuesToEncode) returns (bytes memory) encode; - function($Args valuesToEncode) returns (bytes memory) encodePacked; - function(bytes4 selector, $Args functionArgumentsTuple) returns (bytes memory) encodeWithSelector; - function(string memory signature, $Args valuesToEncode) returns (bytes memory) encodeWithSignature; + function(bytes memory encodedData, $Type[] encodedTypesTuple) returns ($Any[]) decode; + function($Any[] valuesToEncode) returns (bytes memory) encode; + function($Any[] valuesToEncode) returns (bytes memory) encodePacked; + function(bytes4 selector, $Any[] functionArgumentsTuple) returns (bytes memory) encodeWithSelector; + function(string memory signature, $Any[] valuesToEncode) returns (bytes memory) encodeWithSignature; } struct $address { uint256 balance; @@ -54,7 +54,7 @@ contract $BuiltIns$ { uint length; } struct $BytesType { - function($Args bytesToConcatenate) returns (bytes memory) concat; + function(bytes[] bytesToConcatenate) returns (bytes memory) concat; } struct $CallOptions { uint gas; @@ -77,7 +77,7 @@ contract $BuiltIns$ { uint value; } struct $StringType { - function($Args stringsToConcatenate) returns (string memory) concat; + function(string[] stringsToConcatenate) returns (string memory) concat; } struct $TransactionType { uint gasprice;