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,
|
ProviderComputeInitializeResults,
|
||||||
ServiceEndpoint,
|
ServiceEndpoint,
|
||||||
UrlFile,
|
UrlFile,
|
||||||
UserCustomParameters
|
UserCustomParameters,
|
||||||
|
Ipfs,
|
||||||
|
Smartcontract,
|
||||||
|
GraphqlQuery
|
||||||
} from '../@types'
|
} from '../@types'
|
||||||
|
|
||||||
export class Provider {
|
export class Provider {
|
||||||
@ -196,7 +199,7 @@ export class Provider {
|
|||||||
* @return {Promise<FileInfo[]>} urlDetails
|
* @return {Promise<FileInfo[]>} urlDetails
|
||||||
*/
|
*/
|
||||||
public async getFileInfo(
|
public async getFileInfo(
|
||||||
file: UrlFile | Arweave,
|
file: UrlFile | Arweave | Ipfs | GraphqlQuery | Smartcontract,
|
||||||
providerUri: string,
|
providerUri: string,
|
||||||
signal?: AbortSignal
|
signal?: AbortSignal
|
||||||
): Promise<FileInfo[]> {
|
): Promise<FileInfo[]> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user