

def add_asset(self, params):
    self.controller.add_asset_definition({
        'monikers': [params['moniker']],
        'color_set': [params['color_desc']],
        'unit': params['unit'],
    })
    if (len(self.get_all_addresses(params['moniker'])) == 0):
        self.get_new_address(params['moniker'])

dataset/ETHPy150Open chromaway/ngcccbase/ui/wallet.py Wallet.add_asset/original