@keccak256-evg/passport-sdk
Version:
T-REX Passport SDK for interacting with Passport and Registry contracts
25 lines (24 loc) • 714 B
TypeScript
export interface ContractMethodCheck {
method: string;
exists: boolean;
error?: string;
}
export interface ContractVerificationResult {
contractAddress: string;
chainId: number;
isAccessible: boolean;
supportedMethods: ContractMethodCheck[];
recommendations: string[];
}
/**
* 验证合约地址并检查支持的方法
*/
export declare function verifyContractMethods(client: any, chain: any, contractAddress: string): Promise<ContractVerificationResult>;
/**
* 快速检查合约兼容性
*/
export declare function quickContractCheck(client: any, chain: any, contractAddress: string): Promise<{
isCompatible: boolean;
issues: string[];
suggestions: string[];
}>;