function Accounts(cb, scope) {
    library = {
        ed: scope.ed,
        db: scope.db,
        cache: scope.cache,
        logger: scope.logger,
        schema: scope.schema,
        balancesSequence: scope.balancesSequence,
        logic: {
            account: scope.logic.account,
            transaction: scope.logic.transaction,
            contract: scope.logic.contract,
            vote: scope.logic.vote
        },
        config: scope.config
    };
    self = this;

    __private.assetTypes[transactionTypes.VOTE] = library.logic.transaction.attachAssetType(
        transactionTypes.VOTE,
        new Vote(
            scope.logger,
            scope.schema,
            scope.db,
            scope.logic.frozen
        )
    );

    __private.assetTypes[transactionTypes.REFERRAL] = library.logic.transaction.attachAssetType(
        transactionTypes.REFERRAL,
        new Referral(
            scope.logger,
            scope.schema,
            scope.db,
            scope.logic.account
        )
    );

    setImmediate(cb, null, self);
}
/**
 * Initializes library with scope content and generates a Vote instance.
 * Calls logic.transaction.attachAssetType().
 * @memberof module:accounts
 * @class
 * @classdesc Main accounts methods.
 * @implements module:accounts.Account#Vote
 * @param {scope} scope - App instance.
 * @param {function} cb - Callback function.
 * @return {setImmediateCallback} Callback function with `self` as data.
 */
Initializes library with scope content and generates a Vote instance.
Initializes library with scope content and generates a Vote instance .
function Accounts(cb, scope) {
    library = {
        ed: scope.ed,
        db: scope.db,
        cache: scope.cache,
        logger: scope.logger,
        schema: scope.schema,
        balancesSequence: scope.balancesSequence,
        logic: {
            account: scope.logic.account,
            transaction: scope.logic.transaction,
            contract: scope.logic.contract,
            vote: scope.logic.vote
        },
        config: scope.config
    };
    self = this;
    __private.assetTypes[transactionTypes.VOTE] = library.logic.transaction.attachAssetType(
        transactionTypes.VOTE,
        new Vote(
            scope.logger,
            scope.schema,
            scope.db,
            scope.logic.frozen
        )
    );
    __private.assetTypes[transactionTypes.REFERRAL] = library.logic.transaction.attachAssetType(
        transactionTypes.REFERRAL,
        new Referral(
            scope.logger,
            scope.schema,
            scope.db,
            scope.logic.account
        )
    );
    setImmediate(cb, null, self);
}
function Accounts ( cb , scope ) { library = { ed : scope . ed , db : scope . db , cache : scope . cache , logger : scope . logger , schema : scope . schema , balancesSequence : scope . balancesSequence , logic : { account : scope . logic . account , transaction : scope . logic . transaction , contract : scope . logic . contract , vote : scope . logic . vote } , config : scope . config } ; self = this ; __private . assetTypes [ transactionTypes . VOTE ] = library . logic . transaction . attachAssetType ( transactionTypes . VOTE , new Vote ( scope . logger , scope . schema , scope . db , scope . logic . frozen ) ) ; __private . assetTypes [ transactionTypes . REFERRAL ] = library . logic . transaction . attachAssetType ( transactionTypes . REFERRAL , new Referral ( scope . logger , scope . schema , scope . db , scope . logic . account ) ) ; setImmediate ( cb , null , self ) ; }
Initializes library with scope content and generates a Vote instance.
Initializes library with scope content and generates a Vote instance .