soroban-hooks
Version:
Soroban smart contract watcher and transaction helper
40 lines (39 loc) • 1.24 kB
TypeScript
export default ContractWatchers;
declare class ContractWatchers {
constructor(apiKey: any);
apiKey: any;
create({ webhook_url, chainType, contractAddress, enableTransactionHistory, enableStorage }: {
webhook_url: any;
chainType: any;
contractAddress: any;
enableTransactionHistory?: boolean | undefined;
enableStorage?: boolean | undefined;
}): Promise<{
webhook_url: any;
chainType: any;
contractAddress: any;
enableTransactionHistory: boolean;
enableStorage: boolean;
}>;
getAll({ page, limit }?: {
page?: number | undefined;
limit?: number | undefined;
}): Promise<any>;
getById(id: any): Promise<any>;
update({ id, webhook_url, chainType, contractAddress, enableTransactionHistory, enableStorage, status }: {
id: any;
webhook_url: any;
chainType: any;
contractAddress: any;
enableTransactionHistory: any;
enableStorage: any;
status: any;
}): Promise<{
webhook_url: any;
chainType: any;
contractAddress: any;
enableTransactionHistory: any;
enableStorage: any;
}>;
delete(id: any): Promise<any>;
}