function Contracts(cb, scope) {
    library = {
        logger: scope.logger,
        sequence: scope.sequence,
        ed: scope.ed,
        db: scope.db,
        network: scope.network,
        schema: scope.schema,
        balancesSequence: scope.balancesSequence,
        logic: {
            transaction: scope.logic.transaction,
            contract: scope.logic.contract
        },
        config: {
            forging: {
                secret: scope.config.forging.secret,
                access: {
                    whiteList: scope.config.forging.access.whiteList,
                },
            },
            contributors: scope.config.contributors
        },
    };

    self = this;
    self.type = transactionTypes.REWARD;

    __private.assetTypes[transactionTypes.REWARD] = library.logic.transaction.attachAssetType(
        transactionTypes.REWARD, new Contract(scope.config, scope.db)
    );

    __private.assetTypes[transactionTypes.MIGRATION] = library.logic.transaction.attachAssetType(
        transactionTypes.MIGRATION, new Migration(scope.config, scope.db)
    );

    setImmediate(cb, null, self);
}
/**
 * Initializes library with scope content and generates a Contract instance.
 * Calls logic.transaction.attachAssetType().
 * @memberof module:contracts
 * @class
 * @classdesc Main contracts methods.
 * @implements module:contracts.Contract#Contract
 * @param {scope} scope - App instance.
 * @param {function} cb - Callback function.
 * @return {setImmediateCallback} With `this` as data.
 */
Initializes library with scope content and generates a Contract instance.
Initializes library with scope content and generates a Contract instance .
function Contracts(cb, scope) {
    library = {
        logger: scope.logger,
        sequence: scope.sequence,
        ed: scope.ed,
        db: scope.db,
        network: scope.network,
        schema: scope.schema,
        balancesSequence: scope.balancesSequence,
        logic: {
            transaction: scope.logic.transaction,
            contract: scope.logic.contract
        },
        config: {
            forging: {
                secret: scope.config.forging.secret,
                access: {
                    whiteList: scope.config.forging.access.whiteList,
                },
            },
            contributors: scope.config.contributors
        },
    };
    self = this;
    self.type = transactionTypes.REWARD;
    __private.assetTypes[transactionTypes.REWARD] = library.logic.transaction.attachAssetType(
        transactionTypes.REWARD, new Contract(scope.config, scope.db)
    );
    __private.assetTypes[transactionTypes.MIGRATION] = library.logic.transaction.attachAssetType(
        transactionTypes.MIGRATION, new Migration(scope.config, scope.db)
    );
    setImmediate(cb, null, self);
}
function Contracts ( cb , scope ) { library = { logger : scope . logger , sequence : scope . sequence , ed : scope . ed , db : scope . db , network : scope . network , schema : scope . schema , balancesSequence : scope . balancesSequence , logic : { transaction : scope . logic . transaction , contract : scope . logic . contract } , config : { forging : { secret : scope . config . forging . secret , access : { whiteList : scope . config . forging . access . whiteList , } , } , contributors : scope . config . contributors } , } ; self = this ; self . type = transactionTypes . REWARD ; __private . assetTypes [ transactionTypes . REWARD ] = library . logic . transaction . attachAssetType ( transactionTypes . REWARD , new Contract ( scope . config , scope . db ) ) ; __private . assetTypes [ transactionTypes . MIGRATION ] = library . logic . transaction . attachAssetType ( transactionTypes . MIGRATION , new Migration ( scope . config , scope . db ) ) ; setImmediate ( cb , null , self ) ; }
Initializes library with scope content and generates a Contract instance.
Initializes library with scope content and generates a Contract instance .