@siglesiasg/node-red-hyperledger-fabric-gateway
Version:
Hyperledger Fabric 2.x nodes for node-red with latest fabric-gateway library
44 lines • 1.16 kB
TypeScript
import { NodeAPI } from 'node-red';
import { ConnectionNodeDef } from './../nodes/connection-config-node.def';
export interface ConnectionConfigModel {
gateway: GatewayConfigModel;
identity: IdentityConfigModel;
channel: ChannelConfigModel;
}
interface GatewayConfigModel {
gatewaySelector: string;
name: string;
peer: PeerConfigModel;
}
export interface IdentityConfigModel {
identitySelector: string;
name: string;
mspId: MspIdConfigModel;
certType: string;
cert?: string;
privateKey?: string;
certPath?: string;
privateKeyPath?: string;
microfabUrl?: string;
microfabId?: string;
}
interface ChannelConfigModel {
channelSelector: string;
name: string;
channel: string;
}
interface MspIdConfigModel {
mspIdSelector: string;
name: string;
mspId: string;
}
interface PeerConfigModel {
peerSelector: string;
name: string;
url: string;
tls?: string;
grpcOptions?: string;
}
export declare function buildConnectionConfig(RED: NodeAPI, config: ConnectionNodeDef): ConnectionConfigModel;
export {};
//# sourceMappingURL=connection-config.model.d.ts.map