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.1.2 to 0.1.3

2

dist/types.d.ts

@@ -46,3 +46,3 @@ /**

export declare type Tuple<Type, Size extends number> = Size extends Size ? number extends Size ? Type[] : _TupleOf<Type, Size, []> : never;
declare type _TupleOf<TNumber, TSize extends number, R extends unknown[]> = R['length'] extends TSize ? R : _TupleOf<TNumber, TSize, [TNumber, ...R]>;
declare type _TupleOf<TNumber, TSize extends number, R extends readonly unknown[]> = R['length'] extends TSize ? R : _TupleOf<TNumber, TSize, readonly [TNumber, ...R]>;
export {};

@@ -28,3 +28,3 @@ import { Abi, AbiParameter, AbiStateMutability, AbiType, MBits, SolidityAddress, SolidityArray, SolidityBool, SolidityBytes, SolidityFixedArrayRange, SolidityFixedArraySizeLookup, SolidityFunction, SolidityInt, SolidityString, SolidityTuple, TypedData, TypedDataParameter, TypedDataType } from './abi';

} & {
[_ in SolidityArray]: unknown[];
[_ in SolidityArray]: readonly unknown[];
};

@@ -52,5 +52,7 @@ declare type GreaterThan48Bits = Exclude<MBits, 8 | 16 | 24 | 32 | 40 | 48 | ''>;

components: infer TComponents extends readonly AbiParameter[];
} ? _HasUnnamedAbiParameter<TComponents> extends true ? {
[K in keyof TComponents]: AbiParameterToPrimitiveType<TComponents[K]>;
} : {
} ? _HasUnnamedAbiParameter<TComponents> extends true ? readonly [
...{
[K in keyof TComponents]: AbiParameterToPrimitiveType<TComponents[K]>;
}
] : {
[Component in TComponents[number] as Component['name']]: AbiParameterToPrimitiveType<Component>;

@@ -68,3 +70,3 @@ } : never :

type: Head;
}>>, SolidityFixedArraySizeLookup[Size]> : AbiParameterToPrimitiveType<Merge<TAbiParameter, {
}>>, SolidityFixedArraySizeLookup[Size]> : readonly AbiParameterToPrimitiveType<Merge<TAbiParameter, {
type: Head;

@@ -71,0 +73,0 @@ }>>[] : never : unknown;

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

"license": "WAGMIT",
"version": "0.1.2",
"version": "0.1.3",
"repository": {

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

@@ -322,2 +322,18 @@ # ABIType

### TypedData
[EIP-712](https://eips.ethereum.org/EIPS/eip-712#definition-of-typed-structured-data-%F0%9D%95%8A) Typed Data Specification
```ts
import { TypedData } from 'abitype'
```
### TypedDataDomain
[EIP-712](https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator) Domain
```ts
import { TypedDataDomain } from 'abitype'
```
### TypedDataParameter

@@ -339,10 +355,2 @@

### TypedData
[EIP-712](https://eips.ethereum.org/EIPS/eip-712#definition-of-typed-structured-data-%F0%9D%95%8A) Typed Data Specification
```ts
import { TypedData } from 'abitype'
```
## Configuration

@@ -349,0 +357,0 @@

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