types.ts 768 B

1234567891011121314151617181920212223242526272829303132333435
  1. export type MemberJson = {
  2. memberId: string
  3. rootAccount: string
  4. controllerAccount: string
  5. handle: string
  6. about?: string
  7. avatarUri?: string
  8. registeredAtTime: number
  9. registeredAtBlock: number
  10. }
  11. export type StorageSystemJson = {
  12. id: string
  13. blacklist: string[]
  14. storageBucketsPerBagLimit: number
  15. distributionBucketsPerBagLimit: number
  16. uploadingBlocked: boolean
  17. dataObjectFeePerMb: number | string
  18. storageBucketMaxObjectsCountLimit: number | string
  19. storageBucketMaxObjectsSizeLimit: number | string
  20. }
  21. export type WorkerJson = {
  22. workerId: string
  23. metadata?: string
  24. createdAt: number
  25. }
  26. export type WorkingGroupJson = {
  27. workers: WorkerJson[]
  28. }
  29. export type WorkingGroupsJson = {
  30. [group in 'GATEWAY' | 'STORAGE']?: WorkingGroupJson
  31. }