1
0
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:
EnzoVezzaro 2022-11-01 10:46:45 -04:00 committed by GitHub
parent a21671c853
commit cdb9f8e082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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[]> {