2024-08-20 09:44:15 +00:00
|
|
|
|
using GethPlugin;
|
|
|
|
|
using Utils;
|
2024-08-01 07:09:30 +00:00
|
|
|
|
|
|
|
|
|
namespace CodexPlugin.Hooks
|
2024-07-26 06:39:27 +00:00
|
|
|
|
{
|
|
|
|
|
public interface ICodexNodeHooks
|
|
|
|
|
{
|
2024-08-20 09:44:15 +00:00
|
|
|
|
void OnNodeStarting(DateTime startUtc, string image, EthAccount? ethAccount);
|
2024-08-13 11:48:54 +00:00
|
|
|
|
void OnNodeStarted(string peerId, string nodeId);
|
2024-07-26 06:39:27 +00:00
|
|
|
|
void OnNodeStopping();
|
2024-08-01 07:09:30 +00:00
|
|
|
|
void OnFileUploading(string uid, ByteSize size);
|
|
|
|
|
void OnFileUploaded(string uid, ByteSize size, ContentId cid);
|
|
|
|
|
void OnFileDownloading(ContentId cid);
|
|
|
|
|
void OnFileDownloaded(ByteSize size, ContentId cid);
|
2024-08-20 09:44:15 +00:00
|
|
|
|
void OnStorageContractSubmitted(StoragePurchaseContract storagePurchaseContract);
|
|
|
|
|
void OnStorageContractUpdated(StoragePurchase purchaseStatus);
|
2024-08-20 10:13:42 +00:00
|
|
|
|
void OnStorageAvailabilityCreated(StorageAvailability response);
|
2024-07-26 06:39:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|