Options
All
  • Public
  • Public/Protected
  • All
Menu

@shadow-drive/sdk - v5.0.0

Index

Type aliases

CreateStorageResponse: { shdw_bucket: string; transaction_signature: string }

Type declaration

  • shdw_bucket: string
  • transaction_signature: string
CustomError: NotEnoughStorage | FileNameLengthExceedsLimit | InvalidSha256Hash | HasHadBadCsam | StorageAccountMarkedImmutable | ClaimingStakeTooSoon | SolanaStorageAccountNotMutable | RemovingTooMuchStorage | UnsignedIntegerCastFailed | NonzeroRemainingFileAccounts | AccountStillInGracePeriod | AccountNotMarkedToBeDeleted | FileStillInGracePeriod | FileNotMarkedToBeDeleted | FileMarkedImmutable | NoStorageIncrease | ExceededStorageLimit | InsufficientFunds | NotEnoughStorageOnShadowDrive | AccountTooSmall | DidNotAgreeToToS | InvalidTokenTransferAmounts | FailedToCloseAccount | FailedToTransferToEmissionsWallet | FailedToTransferToEmissionsWalletFromUser | FailedToReturnUserFunds | NeedSomeFees | NeedSomeCrankBps | AlreadyMarkedForDeletion | EmptyStakeAccount | IdentifierExceededMaxLength | OnlyAdmin1CanChangeAdmins | OnlyOneOwnerAllowedInV1_5
ListObjectsResponse: { keys: string[] }

Type declaration

  • keys: string[]
ShadowBatchUploadResponse: { fileName: string; location: string; status: string }

Type declaration

  • fileName: string
  • location: string
  • status: string
ShadowDriveResponse: { message: string; transaction_signature?: string }

Type declaration

  • message: string
  • Optional transaction_signature?: string
ShadowEditResponse: { finalized_location: string }

Type declaration

  • finalized_location: string
ShadowFile: { file: Buffer; name?: string }

Type declaration

  • file: Buffer
  • Optional name?: string
ShadowUploadResponse: { finalized_locations: string[]; message: string; upload_errors: UploadError[] }

Type declaration

  • finalized_locations: string[]
  • message: string
  • upload_errors: UploadError[]
StorageAccountInfo: { account_counter_seed: number; creation_epoch: number; creation_time: number; current_usage: number; delete_request_epoch: number; identifier: string; immutable: boolean; last_fee_epoch: number; owner1: web3.PublicKey; reserved_bytes: number; storage_account: web3.PublicKey; to_be_deleted: boolean; version: "V1" | "V2" }

Type declaration

  • account_counter_seed: number
  • creation_epoch: number
  • creation_time: number
  • current_usage: number
  • delete_request_epoch: number
  • identifier: string
  • immutable: boolean
  • last_fee_epoch: number
  • owner1: web3.PublicKey
  • reserved_bytes: number
  • storage_account: web3.PublicKey
  • to_be_deleted: boolean
  • version: "V1" | "V2"

Generated using TypeDoc