@@ -326,3 +326,53 @@ func (s TxStatus) String() string {
326326 return fmt .Sprintf ("Unknown TxStatus (%d)" , int32 (s ))
327327 }
328328}
329+
330+ // BlobUploadStatus represents the status of a blob upload
331+ type BlobUploadStatus int
332+
333+ const (
334+ // BlobUploadStatusUndefined indicates an undefined status
335+ BlobUploadStatusUndefined BlobUploadStatus = iota
336+ // BlobUploadStatusPending indicates a pending upload status
337+ BlobUploadStatusPending
338+ // BlobUploadStatusUploaded indicates a successful upload status
339+ BlobUploadStatusUploaded
340+ // BlobUploadStatusFailed indicates a failed upload status
341+ BlobUploadStatusFailed
342+ )
343+
344+ func (s BlobUploadStatus ) String () string {
345+ switch s {
346+ case BlobUploadStatusPending :
347+ return "BlobUploadStatusPending"
348+ case BlobUploadStatusUploaded :
349+ return "BlobUploadStatusUploaded"
350+ case BlobUploadStatusFailed :
351+ return "BlobUploadStatusFailed"
352+ default :
353+ return fmt .Sprintf ("Unknown BlobUploadStatus (%d)" , int32 (s ))
354+ }
355+ }
356+
357+ // BlobStoragePlatform represents the platform a blob upload to
358+ type BlobStoragePlatform int
359+
360+ const (
361+ // BlobStoragePlatformUndefined indicates an undefined platform
362+ BlobStoragePlatformUndefined BlobStoragePlatform = iota
363+ // BlobStoragePlatformS3 represents AWS S3
364+ BlobStoragePlatformS3
365+ // BlobStoragePlatformArweave represents storage blockchain Arweave
366+ BlobStoragePlatformArweave
367+ )
368+
369+ func (s BlobStoragePlatform ) String () string {
370+ switch s {
371+ case BlobStoragePlatformS3 :
372+ return "BlobStoragePlatformS3"
373+ case BlobStoragePlatformArweave :
374+ return "BlobStoragePlatformArweave"
375+ default :
376+ return fmt .Sprintf ("Unknown BlobStoragePlatform (%d)" , int32 (s ))
377+ }
378+ }
0 commit comments