Releases: wevm/abitype
Releases · wevm/abitype
[email protected]
Minor Changes
-
#198
a12abfd
Thanks @tmm! - Breaking: Renamed'abitype/test
' entrypoint to'abitype/abis'
.- import { erc20Abi } from 'abitype/test' + import { erc20Abi } from 'abitype/abis'
Breaking: Removed
zeroAddress
export from'abitype/abis'
. You can copy it directly into your project if you still need to use it.- import { zeroAddress } from 'abitype/abis' + export const zeroAddress = '0x0000000000000000000000000000000000000000' as const
Breaking: Renamed
Config
,DefaultConfig
, andResolvedConfig
toRegister
,DefaultRegister
, andResolvedRegister
respectively.- import { Config, DefaultConfig, ResolvedConfig } from 'abitype' + import { Register, DefaultRegister, ResolvedRegister } from 'abitype'
To configure ABIType, target
Register
instead ofConfig
:declare module 'abitype' { - export interface Config { + export interface Register { BigIntType: bigint & { foo: 'bar' } } }
[email protected]
Patch Changes
-
#194
380c9d9
Thanks @mathieu-bour! - Changed the following types to readonly in zod package:AbiContructor.inputs
AbiError.inputs
AbiEvent.inputs
AbiFunction.inputs
/AbiFunction.outputs
[email protected]
Patch Changes
- #192
998fc3c
Thanks @Raiden1411! - Fixed an issue where Zod's parsed ABIs where not assignable to theAbi
type.
[email protected]
[email protected]
Patch Changes
- #185
f5b27a8
Thanks @StanleyDing! - Fixed a bug where an empty string on thename
property in AbiParameter wasn't allowed.
[email protected]
Patch Changes
- #179
f0f2503
Thanks @Raiden1411! - Fixed a bug onTypedDataToPrimitiveTypes
where it would create an infinite cyclic type if thetype
was an array type ofkeyof TypedData
.
[email protected]
Patch Changes
-
#175
af5af6b
Thanks @Raiden1411! - Fixed a bug onformatAbiParameter
where it would infer incorrectly if the nested elements of thecomponents
property had noname
property and thetype
property was of typetuple
type.Before:
type test = FormatAbiParameter<{ // ^? test = "(tuple)" type: "tuple"; components: [{ type: "tuple"; components: [{ type: "string" }] }]; }>;
After:
type test = FormatAbiParameter<{ // ^? type test = "((string))" type: "tuple"; components: [{ type: "tuple"; components: [{ type: "string" }] }]; }>;
[email protected]
[email protected]
Patch Changes
- #170
dbe16a2
Thanks @Raiden1411! - Fixed bug where type instantiation is excessively deep and possibly infinite when usingformatAbiParameter
withexactOptionalPropertyTypes
set tofalse
.
[email protected]
Patch Changes
- #165
27b763b
Thanks @Raiden1411! - Added zod EIP-712 typed data parser.