olympus-protocol-connector
Version:
Module made by Olympus Labs for easier access to the Olympus protocol through Javascript/Typescript
12 lines (11 loc) • 669 B
TypeScript
import { Service } from '../../Service';
import { WhitelistType } from '../../interfaces/Enums';
import { DerivativeService } from '../../derivatives/Derivative';
export declare class WhitelistService extends Service {
static get(address: string): Promise<WhitelistService>;
static create(derivative: DerivativeService): Promise<WhitelistService>;
private constructor();
hasPermission(derivativeAddress: string, category: WhitelistType, wallet: string): Promise<boolean>;
isEnabled(derivativeAddress: string, category: WhitelistType): Promise<boolean>;
isAllowed(derivativeAddress: string, category: number, wallet: string): Promise<boolean>;
}