Comparing version 0.0.12 to 0.0.13
@@ -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']; | ||
} |
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`): |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32226
402
411