zodor-protocol-web3
Version:
SDK to interact with zodor protocol
25 lines • 896 B
TypeScript
import { ContractRunner, ethers } from 'ethers';
import { Network } from '../types';
export declare class ClaimRegistry {
readonly contract: ethers.Contract;
readonly network: Network;
constructor(options: {
network: Network;
contractRunner?: ContractRunner;
privateKey?: string;
customRpcUrl?: string;
});
addClaim(options: {
walletAddress: string;
type: string;
data: string;
expirationTime: number;
proofHash: string;
issuer: string;
}): Promise<any>;
revokeClaim(walletAddress: string, type: string, reason: string): Promise<any>;
renewClaim(walletAddress: string, type: string, newExpiration: number): Promise<any>;
verifyClaim(walletAddress: string, type: string): Promise<boolean>;
addClaimType(type: string): Promise<any>;
}
//# sourceMappingURL=claimRegistry.d.ts.map