minermedic/pools/base_pool.py
def build_creation_parameters(self, pool, pool_attrs, pool_classname):

        """
        Builds a set of parameters to be used by the system to create a Mining Pool Object

        Returns:
                dict
        """

        params = {}

        # FOR THE OBJECT MODEL
        params['app_id'] = get_app_id('minermedic')
        params['model_name'] = self.CLASSTYPE + "_" + pool_attrs['name'].upper()
        params['model_classtype'] = self.CLASSTYPE
        params['model_description'] = pool_attrs['description']
        params['model_classname'] = pool_classname

        # FOR THE OBJECT
        # name of the object that will be created
        params['ip_address'] = pool

        # Set the unique ID of the pool by using the POOL URL - this can be overridden in the subclasses
        params['unique_id'] = pool

        return params

        Builds a set of parameters to be used by the system to create a Mining Pool Object

        Returns:
                dict
        
Builds a set of parameters to be used by the system to create a Mining Pool Object
Builds a set of parameters to be used by the system to create a Mining Pool Object
def build_creation_parameters(self, pool, pool_attrs, pool_classname):
        params = {}
        params['app_id'] = get_app_id('minermedic')
        params['model_name'] = self.CLASSTYPE + "_" + pool_attrs['name'].upper()
        params['model_classtype'] = self.CLASSTYPE
        params['model_description'] = pool_attrs['description']
        params['model_classname'] = pool_classname
        params['ip_address'] = pool
        params['unique_id'] = pool
        return params
def build_creation_parameters ( self , pool , pool_attrs , pool_classname ) : params = { } params [ 'app_id' ] = get_app_id ( 'minermedic' ) params [ 'model_name' ] = self . CLASSTYPE + "_" + pool_attrs [ 'name' ] . upper ( ) params [ 'model_classtype' ] = self . CLASSTYPE params [ 'model_description' ] = pool_attrs [ 'description' ] params [ 'model_classname' ] = pool_classname params [ 'ip_address' ] = pool params [ 'unique_id' ] = pool return params
Builds a set of parameters to be used by the system to create a Mining Pool Object
Builds a set of parameters to be used by the system to create a Mining Pool Object
"""
        Builds a set of parameters to be used by the system to create a Mining Pool Object

        Returns:
                dict
        """ # FOR THE OBJECT MODEL # FOR THE OBJECT # name of the object that will be created # Set the unique ID of the pool by using the POOL URL - this can be overridden in the subclasses
None
self
pool
pool_attrs
pool_classname