import { KeyPair } from "./tools"; import { provider } from "web3-core"; /** VASP Code already exists in VASPIndex */ export declare class VASPCodeConflictError extends Error { } /** Return of VASP creation */ export declare type CreateVASPReturn = { /** Address of deployed VASP contract*/ vaspAddress: string; /** Handshake Keys */ handshakeKeys: KeyPair; /** Signing Keys */ signingKeys: KeyPair; }; export declare type VASPFactoryOptions = { provider?: provider; defaultSender?: string; rpcUrl?: string; privateKey?: string; vaspIndexAddress: string; vaspOwner?: string; }; /** * Creates VASP contracts thru VASPIndex and sets the * handshake and signing keys */ export default class VASPFactory { private web3Provider; private vaspIndexContract; private vaspOwner?; /** * * @param options */ constructor(options: VASPFactoryOptions); /** * Creates a VASP contract, generates keys and store them on the contract * * @param _vaspCode Desired VASP code */ createVASP(_vaspCode: string): Promise; }