Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/@types/Provider.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { type Multiaddr } from '@multiformats/multiaddr'
import { Signer } from 'ethers'
import type { PeerId } from '@libp2p/interface'
import type { AccessList } from './AccessList.js'
export interface ProviderFees {
providerFeeAddress: string
Expand Down Expand Up @@ -44,6 +47,12 @@ export interface ServiceEndpoint {
urlPath: string
}

export interface NodeP2P {
nodeId: string
multiaddress?: Multiaddr[]
}
export type OceanNode = string | NodeP2P | PeerId

export interface NodeStatusProvider {
chainId: string
network: string
Expand Down Expand Up @@ -155,3 +164,11 @@ export interface NodeLogEntry {
message: string
meta?: Record<string, any>
}

export interface CompleteSignature {
consumerAddress: string
nonce: string
signature: string
}

export type SignerOrAuthTokenOrSignature = string | Signer | CompleteSignature
Loading
Loading