UNPKG

@decaf-ts/fabric-weaver

Version:
14 lines (13 loc) 3.2 kB
import { Logger } from "@decaf-ts/logging"; import { BCCSPConfig, ChaincodeConfig, DeliveryClientConfig, DiscoveryConfig, GatewayConfig, GeneralConfig, GossipConfig, HandlersConfig, KeepAliveConfig, LedgerStateConfig, LimitsConfig, MSGSizeConfig, MSPConfig, PrivateDataStoreConfig, ProfileConfig, TLSConfig, VMConfig } from "../../fabric/interfaces/fabric/peer-config"; import { MetricsConfig, OperationsConfig } from "../../fabric/interfaces/fabric/general-configs"; export declare function issuePeer(log: Logger, cpath: string, gossip?: GossipConfig, tls?: TLSConfig, authTimeWindow?: string, keepAlive?: KeepAliveConfig, gateway?: GatewayConfig, general?: GeneralConfig, bccsp?: BCCSPConfig, msp?: MSPConfig, clientConnectionTimeout?: string, delivery?: DeliveryClientConfig, profile?: ProfileConfig, handlers?: HandlersConfig, discovery?: DiscoveryConfig, limits?: LimitsConfig, msgSize?: MSGSizeConfig, chaincode?: ChaincodeConfig, state?: LedgerStateConfig, blockchain?: any, enableLedgerHistoryDatabase?: boolean, pvtData?: PrivateDataStoreConfig, ledgerSnapshosRootDir?: string, operation?: OperationsConfig, metrics?: MetricsConfig, vm?: VMConfig): void; export declare function startPeer(logger: Logger): Promise<void>; export declare function bootPeer(log: Logger, cpath: string, gossip?: GossipConfig, tls?: TLSConfig, authTimeWindow?: string, keepAlive?: KeepAliveConfig, gateway?: GatewayConfig, general?: GeneralConfig, bccsp?: BCCSPConfig, msp?: MSPConfig, clientConnectionTimeout?: string, delivery?: DeliveryClientConfig, profile?: ProfileConfig, handlers?: HandlersConfig, discovery?: DiscoveryConfig, limits?: LimitsConfig, msgSize?: MSGSizeConfig, chaincode?: ChaincodeConfig, state?: LedgerStateConfig, blockchain?: any, enableLedgerHistoryDatabase?: boolean, pvtData?: PrivateDataStoreConfig, ledgerSnapshosRootDir?: string, operation?: OperationsConfig, metrics?: MetricsConfig, vm?: VMConfig): Promise<void>; export declare function hasPeerInitialized(fileLocation?: string): boolean; export declare function peerFetchGenesisBlock(logger?: Logger, channelID?: string, ordererAddress?: string, blockNumber?: string, outputFile?: string, tlsEnabled?: boolean, tlsCACertFile?: string): void; export declare function peerJoinChannel(logger?: Logger, blockPath?: string): Promise<void>; export declare function packageChaincode(logger?: Logger, outputFile?: string, contractPath?: string, lang?: string, contractName?: string, contractVersion?: string): void; export declare function installChaincode(logger: Logger, contractLocation?: string): void; export declare function approveChaincode(logger: Logger, ordererAddress?: string, channelID?: string, chaincodeName?: string, version?: string, sequence?: string, enableTLS?: boolean, tlsCACertFile?: string, collectionConfigPath?: string, ordererTLSHostnameOverride?: string): void; export declare function commitChainCode(logger: Logger, ordererAddress?: string, channelID?: string, chaincodeName?: string, version?: string, sequence?: string, enableTLS?: boolean, tlsCACertFile?: string, collectionConfigPath?: string, ordererTLSHostnameOverride?: string, peerAddresses?: string[], peerTLSRoots?: string[]): Promise<void>;