Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

abitype

Package Overview
Dependencies
Maintainers
2
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abitype - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

3

dist/config.d.ts

@@ -24,2 +24,4 @@ /**

FixedArrayLengthUpperBound: 5;
/** TypeScript type to use for `int` and `uint` values */
NumberType: number | bigint;
}

@@ -38,2 +40,3 @@ /**

FixedArrayLengthUpperBound: Config['FixedArrayLengthUpperBound'] extends number ? Config['FixedArrayLengthUpperBound'] : DefaultConfig['FixedArrayLengthUpperBound'];
NumberType: Config['NumberType'] extends number | bigint ? Config['NumberType'] : DefaultConfig['NumberType'];
}

3

dist/utils.d.ts
import { Abi, AbiEvent, AbiFunction, AbiParameter, AbiStateMutability, AbiType, Address, SolidityAddress, SolidityArray, SolidityBool, SolidityBytes, SolidityFixedArrayRange, SolidityFixedArraySizeLookup, SolidityFunction, SolidityInt, SolidityString, SolidityTuple, TypedData, TypedDataParameter, TypedDataType } from './abi';
import { ResolvedConfig } from './config';
import { Merge, Tuple } from './types';

@@ -21,3 +22,3 @@ /**

} & {
[_ in SolidityInt]: number | bigint;
[_ in SolidityInt]: ResolvedConfig['NumberType'];
} & {

@@ -24,0 +25,0 @@ [_ in SolidityString]: string;

@@ -5,3 +5,3 @@ {

"license": "WAGMIT",
"version": "0.0.12",
"version": "0.0.13",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -372,7 +372,8 @@ # ABIType

| Option | Type | Default | Description |
| ---------------------------- | ----------------- | ------- | -------------------------------------------------------------------------------------------------------- |
| `ArrayMaxDepth` | `number \| false` | `2` | Maximum depth for nested array types (e.g. `string[][]`). When `false`, there is no maximum array depth. |
| `FixedArrayLengthLowerBound` | `number` | `1` | Lower bound for fixed array length |
| `FixedArrayLengthUpperBound` | `number` | `5` | Upper bound for fixed array length |
| Option | Type | Default | Description |
| ---------------------------- | ----------------- | ------------------ | -------------------------------------------------------------------------------------------------------- |
| `ArrayMaxDepth` | `number \| false` | `2` | Maximum depth for nested array types (e.g. `string[][]`). When `false`, there is no maximum array depth. |
| `FixedArrayLengthLowerBound` | `number` | `1` | Lower bound for fixed array length |
| `FixedArrayLengthUpperBound` | `number` | `5` | Upper bound for fixed array length |
| `NumberType` | TypeScript type | `number \| bigint` | TypeScript type to use for `int` and `uint` values. |

@@ -379,0 +380,0 @@ Configuration options are customizable using [declaration merging](https://www.typescriptlang.org/docs/handbook/declaration-merging.html). Just extend the `Config` interface either directly in your code or in a `d.ts` file (e.g. `abi.d.ts`):

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc