@liskhq/lisk-framework-faucet-plugin
Version:
A plugin for distributing testnet tokens from a newly developed blockchain application.
94 lines • 2.52 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.authorizeParamsSchema = exports.fundParamsSchema = exports.configSchema = void 0;
exports.configSchema = {
$id: '#/plugins/liskFaucet/config',
type: 'object',
properties: {
port: {
type: 'integer',
minimum: 1,
maximum: 65535,
},
host: {
type: 'string',
format: 'ip',
},
encryptedPrivateKey: {
type: 'string',
description: 'Encrypted private key of the faucet account',
},
tokenID: {
type: 'string',
format: 'hex',
description: 'TokenID of faucet',
},
applicationUrl: {
type: 'string',
format: 'uri',
description: 'URL to connect',
},
fee: {
type: 'string',
description: 'The transaction fee used to faucet an account',
},
amount: {
type: 'string',
description: 'Number of tokens to fund an account per request',
},
tokenPrefix: {
type: 'string',
description: 'The token prefix associated with your application',
},
logoURL: {
type: 'string',
format: 'uri',
description: 'The URL of the logo used on the UI',
},
captchaSecretkey: {
type: 'string',
description: 'The re-captcha secret key',
},
captchaSitekey: {
type: 'string',
description: 'The re-captcha site key',
},
},
required: ['tokenID', 'encryptedPrivateKey', 'captchaSecretkey', 'captchaSitekey'],
default: {
port: 4004,
host: '127.0.0.1',
applicationUrl: 'ws://localhost:7887/rpc-ws',
fee: '0.1',
amount: '100',
tokenPrefix: 'lsk',
},
};
exports.fundParamsSchema = {
$id: '/lisk/faucet/fund',
type: 'object',
required: ['address'],
properties: {
address: {
type: 'string',
format: 'hex',
},
token: {
type: 'string',
},
},
};
exports.authorizeParamsSchema = {
$id: '/lisk/faucet/auth',
type: 'object',
required: ['password', 'enable'],
properties: {
password: {
type: 'string',
},
enable: {
type: 'boolean',
},
},
};
//# sourceMappingURL=schemas.js.map