solidity/test/libsolidity/ABIJson
Soham Zemse fa78e0f3d4 feat: allow named parameters in mapping types
Co-authored-by: Hari <webmail.hari@gmail.com>

test: add parser and abi test cases

docs: add example on using named parameters for mappings

- Add changelog

feat: update antlr grammar to allow named parameters in mappings

fix: prevent conflicting mapping parameter names

ref: change order of mapping initializers

test: update expectations and fix build

test: add more tests

fix: use common error & code for conflicting params

fix: issue with accessing nested mapping

test: add conflicting params tests for more nested levels

Update libsolidity/analysis/DeclarationTypeChecker.cpp

Co-authored-by: Nikola Matić <nikola.matic@ethereum.org>

fix: error reported with the same code twice

test: add more tests for 3 level nested mapping

Address review comments
2022-12-08 11:56:58 +01:00
..
basic_test.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
constructor_abi.sol Update tests. 2020-07-07 12:16:18 +02:00
empty_contract.sol Automated ABI Json tests. 2019-07-02 18:11:49 +02:00
empty_name_input_parameter_with_named_one.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
empty_name_return_parameters.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
errors_referenced.sol Add errors to the ABI. 2021-03-30 21:16:58 +02:00
errors.sol Add errors to the ABI. 2021-03-30 21:16:58 +02:00
event_structs.sol Use new abicoder pragma. 2020-11-24 14:57:45 +01:00
events_anonymous.sol Automated ABI Json tests. 2019-07-02 18:11:49 +02:00
events.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
function_type_extended.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
function_type.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
global_struct.sol Use new abicoder pragma. 2020-11-24 14:57:45 +01:00
include_fallback_function.sol Split fallback function and introduce "fallback()" and "receive()" syntax. 2019-11-04 17:17:58 +01:00
inherited.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
internal_constructor.sol Update tests. 2020-07-07 12:16:18 +02:00
library_function.sol Merge remote-tracking branch 'origin/develop' into develop_060 2019-11-14 13:42:46 +01:00
mapping.sol feat: allow named parameters in mapping types 2022-12-08 11:56:58 +01:00
multiple_methods_order.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
multiple_methods.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
multiple_params.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
payable_constructor_abi.sol Update tests. 2020-07-07 12:16:18 +02:00
payable_fallback_function.sol Split fallback function and introduce "fallback()" and "receive()" syntax. 2019-11-04 17:17:58 +01:00
payable_function.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
pure_function.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
receive_ether_and_fallback_function.sol Split fallback function and introduce "fallback()" and "receive()" syntax. 2019-11-04 17:17:58 +01:00
receive_ether_function.sol Split fallback function and introduce "fallback()" and "receive()" syntax. 2019-11-04 17:17:58 +01:00
return_param_in_abi.sol Update tests. 2020-07-07 12:16:18 +02:00
return_structs_with_contracts.sol Use new abicoder pragma. 2020-11-24 14:57:45 +01:00
return_structs.sol Use new abicoder pragma. 2020-11-24 14:57:45 +01:00
structs_and_arrays.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00
structs_in_libraries.sol Use new abicoder pragma. 2020-11-24 14:57:45 +01:00
user_defined_value_type.sol Changing the UserDefinedValueType::toString to userdefined <name> 2021-09-15 17:25:23 +02:00
view_function.sol Drop constant and payable fields from ABI. 2019-09-06 14:42:09 +02:00