Comparing version 0.1.2 to 0.1.3
@@ -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 @@ |
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
33966
452
400