Skip to content

Commit

Permalink
Use generic Signer interface, not EdSigner
Browse files Browse the repository at this point in the history
  • Loading branch information
Peeja committed Oct 7, 2024
1 parent 5abf1ac commit 584d350
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions packages/upload-api/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import type {
} from '@ucanto/interface'
import type { ProviderInput, ConnectionView } from '@ucanto/server'

import { Signer as EdSigner } from '@ucanto/principal/ed25519'
import { StorefrontService } from '@web3-storage/filecoin-api/types'
import { ServiceContext as FilecoinServiceContext } from '@web3-storage/filecoin-api/storefront/api'
import { DelegationsStorage as Delegations } from './types/delegations.js'
Expand Down Expand Up @@ -398,35 +397,34 @@ export type UploadServiceContext = ConsumerServiceContext &
SpaceServiceContext &
RevocationServiceContext &
ConcludeServiceContext & {
signer: EdSigner.Signer
signer: Signer
uploadTable: UploadTable
}

export interface AccessClaimContext {
signer: EdSigner.Signer
signer: Signer
delegationsStorage: Delegations
}

export interface AccessServiceContext extends AccessClaimContext, AgentContext {
signer: EdSigner.Signer
email: Email
url: URL
provisionsStorage: Provisions
rateLimitsStorage: RateLimits
}

export interface ConsumerServiceContext {
signer: EdSigner.Signer
signer: Signer
provisionsStorage: Provisions
}

export interface CustomerServiceContext {
signer: EdSigner.Signer
signer: Signer
provisionsStorage: Provisions
}

export interface AdminServiceContext {
signer: EdSigner.Signer
signer: Signer
uploadTable: UploadTable
storeTable: StoreTable
}
Expand All @@ -447,7 +445,7 @@ export interface ProviderServiceContext {
}

export interface SubscriptionServiceContext {
signer: EdSigner.Signer
signer: Signer
provisionsStorage: Provisions
subscriptionsStorage: SubscriptionsStorage
}
Expand Down

0 comments on commit 584d350

Please sign in to comment.