Version Packages#15
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@evmnow/sdk@0.7.0
Minor Changes
9d6eaa4Thanks @jwahdatehagh! - Correctness, robustness, and API hardening across the SDK.Fixes
runtimeBytecodefield instead ofdeployedBytecode(which the live API rejects with HTTP 400) and surfaceruntimeBytecode.onchainBytecodeasdeployedBytecode. Field selectors are validated against the known v2 field list (buildSourcifyFields,SOURCIFY_V2_FIELDS).contracts/{chainId}/{address}.jsonfirst with a flat-layout fallback; documents with a mismatchedchainIdare discarded; malformed JSON shapes (arrays, non-stringincludes) return null instead of crashingget().merge/mergeNatspecDocsskip__proto__,constructor, andprototypekeys (prototype-pollution hardening)..ethcheck and hashing, soVitalik.eth/VITALIK.ETHresolve correctly.metadataLayeris now first-target-wins, consistent with the NatSpec merge.name()/symbol()fill uses the bytes32-aware, sanitizing token decoder (fixes MKR/SAI-style tokens; hostile values are capped/stripped).call.valueas0for locked value constraints.$identifiers, aligned betweenactions.tsandvalidate.ts.InvalidAddressErroron mismatch.Robustness
includesresolution only followshttps:URLs; the schema base is configurable (schemaBaseUrl, defaulthttps://evmnow.github.io/contract-metadata/v1).resolveUricaps response bodies at ~1 MB and recognizes thedata:application/json;charset=utf-8,variant.New options & API
ContractClientConfig:schemaBaseUrl,cache(per-client memoization + in-flight dedup of repository/Sourcify fetches, default on),ensResolver(custom ENS Universal Resolver address).InvalidAddressError,ChainIdMismatchError,ContractClientConfigError.filterSourcifyBySelectors,buildSourcifyFields,SOURCIFY_V2_FIELDS,decodeSymbol,sanitizeSymbol,normalizeEnsName,UNIVERSAL_RESOLVER,AbiItem../actions,./natspec,./interfaces/detect,./interfaces/erc20,./interfaces/erc721,./package.json.ContractResult.abi,ProxyResolution.compositeAbi,TargetInfo.abi, andSourcifyResult.abiare now typed asAbiItem[]instead ofunknown[].decimals()andsymbol()concurrently.