import { provider } from "web3-core"; /** * Allows to create VASP contracts and query the registry */ export default class VASPIndexContract { private contractArtifact; /** * * @param _provider Web3 Provider (signing capabilities needed if creating VASP contracts) * @param _address Address of the VASPFacade contract * @param _defaultSender default "from" */ constructor(_provider: provider, _address: string, _defaultSender?: string); private setAddress; /** * Creates a new VASP contract * * @param _owner Address of VASP Contract owner * @param _vaspCode VASPCode */ createVASPContract(_owner: string, _vaspCode: string): Promise; /** * Get VASP contract address by VASP code * @param _code VASP code */ getVASPAddressByCode(_code: string): Promise; /** * Get VASP contract code by VASP contract address * @param _address VASP contract address */ getVASPCodeByAddress(_address: string): Promise; }