mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
added more storage types to getFileInfo (#1640)
* added ipfs interface to getFileInfo * added GraphqlQuery and Smartcontract interfaces to getFileInfo
This commit is contained in:
parent
a21671c853
commit
cdb9f8e082
@ -13,7 +13,10 @@ import {
|
||||
ProviderComputeInitializeResults,
|
||||
ServiceEndpoint,
|
||||
UrlFile,
|
||||
UserCustomParameters
|
||||
UserCustomParameters,
|
||||
Ipfs,
|
||||
Smartcontract,
|
||||
GraphqlQuery
|
||||
} from '../@types'
|
||||
|
||||
export class Provider {
|
||||
@ -196,7 +199,7 @@ export class Provider {
|
||||
* @return {Promise<FileInfo[]>} urlDetails
|
||||
*/
|
||||
public async getFileInfo(
|
||||
file: UrlFile | Arweave,
|
||||
file: UrlFile | Arweave | Ipfs | GraphqlQuery | Smartcontract,
|
||||
providerUri: string,
|
||||
signal?: AbortSignal
|
||||
): Promise<FileInfo[]> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user