UNPKG

web3-plugin-eas

Version:

Web3.js plugin for Ethereum Attestation Service(EAS)

23 lines (22 loc) 572 B
import { Web3 } from "web3"; export type ContractAddresses = { id: number; chain: string; schemaRegistry: string; eas: string; eip712Proxy?: string; indexer?: string; }; export declare const contractAddresses: ContractAddresses[]; export type SchemaValue = string | boolean | number | bigint; export interface SchemaItem { name: string; type: string; value: SchemaValue; } export declare class SchemaEncoder { signature: string[]; web3: Web3; constructor(schema: string); encodeData(dataSchema: SchemaItem[]): string; }