olympus-protocol-connector
Version:
Module made by Olympus Labs for easier access to the Olympus protocol through Javascript/Typescript
20 lines (19 loc) • 799 B
TypeScript
import { Service } from '../../Service';
import { MarketProduct } from '../../interfaces/Enums';
import { DerivativeService } from '../../derivatives/Derivative';
export declare class MarketplaceService extends Service {
static create(derivative: DerivativeService): Promise<MarketplaceService>;
/**
* refactor for get
* @param marketPlaceAddress marketplace address
*/
static getByMarketplaceAddress(marketPlaceAddress: string): Promise<MarketplaceService>;
private constructor();
getAllProducts(): Promise<string[]>;
getOwnProductAddress(fromAddress: string): Promise<string[]>;
/**
* get own products // TODO should implement pagination
* @param fromAddress address
*/
getOwnProducts(fromAddress: string): Promise<MarketProduct[]>;
}