Skip to content

Releases: wevm/abitype

[email protected]

11 Oct 20:07
f8abb47
Compare
Choose a tag to compare

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, and ResolvedConfig to Register, DefaultRegister, and ResolvedRegister respectively.

    - import { Config, DefaultConfig, ResolvedConfig } from 'abitype'
    + import { Register, DefaultRegister, ResolvedRegister } from 'abitype'

    To configure ABIType, target Register instead of Config:

    declare module 'abitype' {
    - export interface Config {
    + export interface Register {
        BigIntType: bigint & { foo: 'bar' }
      }
    }

[email protected]

09 Oct 16:30
e2797ef
Compare
Choose a tag to compare

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]

03 Oct 17:40
529da5c
Compare
Choose a tag to compare

Patch Changes

  • #192 998fc3c Thanks @Raiden1411! - Fixed an issue where Zod's parsed ABIs where not assignable to the Abi type.

[email protected]

18 Aug 15:50
bb4bf39
Compare
Choose a tag to compare

Patch Changes

[email protected]

17 Aug 07:21
54a8985
Compare
Choose a tag to compare

Patch Changes

  • #185 f5b27a8 Thanks @StanleyDing! - Fixed a bug where an empty string on the name property in AbiParameter wasn't allowed.

[email protected]

28 Jul 07:34
74899ee
Compare
Choose a tag to compare

Patch Changes

  • #179 f0f2503 Thanks @Raiden1411! - Fixed a bug on TypedDataToPrimitiveTypes where it would create an infinite cyclic type if the type was an array type of keyof TypedData.

[email protected]

22 Jul 05:11
debaa4e
Compare
Choose a tag to compare

Patch Changes

  • #175 af5af6b Thanks @Raiden1411! - Fixed a bug on formatAbiParameter where it would infer incorrectly if the nested elements of the components property had no name property and the type property was of type tuple 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]

22 Jul 05:10
06b7d28
Compare
Choose a tag to compare

Patch Changes

  • #176 bf526d8 Thanks @tmm! - Fixed issue with format utils where empty name (e.g. name: '') would add extra space after type.

[email protected]

18 Jul 19:26
8def0ae
Compare
Choose a tag to compare

Patch Changes

  • #170 dbe16a2 Thanks @Raiden1411! - Fixed bug where type instantiation is excessively deep and possibly infinite when using formatAbiParameter with exactOptionalPropertyTypes set to false.

[email protected]

12 Jul 20:27
fb53bb6
Compare
Choose a tag to compare

Patch Changes