/*!-----------------------------------------------------------
* Copyright (c) IJS Technologies. All rights reserved.
* Released under dual AGPLv3/commercial license
* https://ijs.network
*-----------------------------------------------------------*/
///
export interface MessageTypeProperty {
name: string;
type: string;
}
export type EIP712TypeMap = {
[type: string]: MessageTypeProperty[];
};
export interface IEIP712Domain {
name: string;
version: string;
chainId: number;
verifyingContract: string;
}
export declare enum SignTypedDataVersion {
V1 = "V1",
V3 = "V3",
V4 = "V4"
}
export interface MessageTypes {
EIP712Domain: MessageTypeProperty[];
[additionalProperties: string]: MessageTypeProperty[];
}
export interface TypedMessage {
types: T;
primaryType: keyof T;
domain: {
name?: string;
version?: string;
chainId?: number;
verifyingContract?: string;
salt?: ArrayBuffer;
};
message: Record;
}
export interface IMerkleTreeAbiItem {
name: string;
type: string;
}
export interface TransformableToArray {
toArray(): Uint8Array;
toBuffer?(): Buffer;
}
export interface TransformableToBuffer {
toBuffer(): Buffer;
toArray?(): Uint8Array;
}
export type NestedUint8Array = Array;
export type NestedBufferArray = Array;
export type PrefixedHexString = string;
export type ToBufferInputTypes = PrefixedHexString | number | bigint | Buffer | Uint8Array | number[] | TransformableToArray | TransformableToBuffer | null | undefined;