added strict param to any function that interacts with resolver contracts
resolvers can return unexpected results. while for most use-cases if a result is malformed it makes sense to return null, if a developer explicitly wants the error data they can use this parameter.
by default, strict will be disabled
strict is false for all decodes in getRecords
added gatewayUrls param to any function that interacts with resolver contracts
used in UniversalResolver as the batch resolver for ccip-read requests
added basic tests for internal resolver getters
added stronger type picking for resolver getter parameters between encode/decode
added test for beam.eco name
added allowMismatch parameter to getName. default is false
added more comprehensive UniversalResolver error safety checking in checkSafeUniversalResolverData, which is used in getName, universalWrapper, and getRecords
added tests for universalWrapper
updated getRecords
removed records parameter, all record params are now at the top level of the object
updated types to be stricter
cleaned up code
in future i think adding a strict param to getRecords would be useful, but it requires support for an array of failures and isn't crucial right now
changes:
strict
param to any function that interacts with resolver contractsstrict
will be disabledstrict
is false for all decodes ingetRecords
gatewayUrls
param to any function that interacts with resolver contractsbeam.eco
nameallowMismatch
parameter togetName
. default is falsecheckSafeUniversalResolverData
, which is used ingetName
,universalWrapper
, andgetRecords
universalWrapper
getRecords
records
parameter, all record params are now at the top level of the objectin future i think adding a
strict
param togetRecords
would be useful, but it requires support for an array of failures and isn't crucial right nowFixes FET-1334