UNPKG

@liskhq/lisk-framework-faucet-plugin

Version:

A plugin for distributing testnet tokens from a newly developed blockchain application.

76 lines (75 loc) 2.08 kB
import { BasePlugin, PluginInitContext } from 'lisk-sdk'; import { FaucetPluginConfig } from './types'; import { Endpoint } from './endpoint'; export declare class FaucetPlugin extends BasePlugin<FaucetPluginConfig> { configSchema: { $id: string; type: string; properties: { port: { type: string; minimum: number; maximum: number; }; host: { type: string; format: string; }; encryptedPrivateKey: { type: string; description: string; }; tokenID: { type: string; format: string; description: string; }; applicationUrl: { type: string; format: string; description: string; }; fee: { type: string; description: string; }; amount: { type: string; description: string; }; tokenPrefix: { type: string; description: string; }; logoURL: { type: string; format: string; description: string; }; captchaSecretkey: { type: string; description: string; }; captchaSitekey: { type: string; description: string; }; }; required: string[]; default: { port: number; host: string; applicationUrl: string; fee: string; amount: string; tokenPrefix: string; }; }; endpoint: Endpoint; private _server; private readonly _state; get nodeModulePath(): string; init(context: PluginInitContext): Promise<void>; load(): Promise<void>; unload(): Promise<void>; }