BitShares Forum

Main => Technical Support => Topic started by: qun on September 14, 2017, 11:45:59 am

Title: about UIA issuing shares
Post by: qun on September 14, 2017, 11:45:59 am
I created an asset in my local testnet by using cli_wallet, something like this:

Code: [Select]
create_asset nathan HELLO 3 {"max_supply": "1000000000000000","market_fee_percent": 0.1,"max_market_fee": "1000000000000000","issuer_permissions": 79,"flags": 0,"core_exchange_rate    ": { "base": { "amount": 1, "asset_id": "1.3.0" }, "quote": { "amount": 1, "asset_id": "1.3.1" } }, "whitelist_authorities": [], "blacklist_authorities": [], "whitelist_markets"    : [], "blacklist_markets": [], "description": "", "extensions": [] } {} true

Code: [Select]
issue_asset nathan 10000.0 HELLO memo true

But when I'm trying to issue shares, it says it's a maket issued asset?

Code: [Select]
Assert Exception: !a.is_market_issued(): Cannot manually issue a market-issued asset.

What's wrong here? Totally no idea...

Thanks,
Title: Re: about UIA issuing shares
Post by: pc on September 14, 2017, 03:44:00 pm
I created an asset in my local testnet by using cli_wallet, something like this:

Code: [Select]
create_asset nathan HELLO 3 {"max_supply": "1000000000000000","market_fee_percent": 0.1,"max_market_fee": "1000000000000000","issuer_permissions": 79,"flags": 0,"core_exchange_rate    ": { "base": { "amount": 1, "asset_id": "1.3.0" }, "quote": { "amount": 1, "asset_id": "1.3.1" } }, "whitelist_authorities": [], "blacklist_authorities": [], "whitelist_markets"    : [], "blacklist_markets": [], "description": "", "extensions": [] } {} true

What's wrong here? Totally no idea...


You have specified empty bitasset options instead of null. The presence of bitasset options implies that you want to create a market issued asset.
Title: Re: about UIA issuing shares
Post by: severo on September 14, 2017, 05:01:07 pm
It is complicated to do these things well, if Bitshares wants to compete with new platforms like Waves (bitshares is the best, but is not very user friendly) there should be at least one video showing the creation of an UIA. How can I create a UIA MPA? Where can it be used? in the DEX? It would be interesting to see a clear example developed. It is not always good to let the user have fun.
Title: Re: about UIA issuing shares
Post by: qun on September 15, 2017, 03:41:43 pm
It is complicated to do these things well, if Bitshares wants to compete with new platforms like Waves (bitshares is the best, but is not very user friendly) there should be at least one video showing the creation of an UIA. How can I create a UIA MPA? Where can it be used? in the DEX? It would be interesting to see a clear example developed. It is not always good to let the user have fun.

Totally agree, I just recently started to look at BTS, I can see it has lots of potentials, but to be honest, it lacks a lot of serious documentations, it's hard to figure out the details easily.
Title: Re: about UIA issuing shares
Post by: qun on September 15, 2017, 03:44:23 pm

You have specified empty bitasset options instead of null. The presence of bitasset options implies that you want to create a market issued asset.

Thank you! It gives me some clues, but I need to figure out what the correct bitasset options I should set...
Title: Re: about UIA issuing shares
Post by: pc on September 15, 2017, 03:49:16 pm
Thank you! It gives me some clues, but I need to figure out what the correct bitasset options I should set...

None. Bitassets are market-issued assets, but you want a user-issued asset.

Just write "null" instead of "{}".
Title: Re: about UIA issuing shares
Post by: qun on September 16, 2017, 08:41:17 am
Thank you! It gives me some clues, but I need to figure out what the correct bitasset options I should set...

None. Bitassets are market-issued assets, but you want a user-issued asset.

Just write "null" instead of "{}".

Wow. This works! Thanks a lot.
Title: Re: about UIA issuing shares
Post by: attente on September 16, 2017, 04:16:18 pm
Could anybody please explain me how can I issue shares for distributing dividends on a regular basis? I issued a UIA at testnet but there is no such an option anywhere at my wallet to pay dividends to token holders.
Title: Re: about UIA issuing shares
Post by: pc on September 16, 2017, 06:34:45 pm
Could anybody please explain me how can I issue shares for distributing dividends on a regular basis? I issued a UIA at testnet but there is no such an option anywhere at my wallet to pay dividends to token holders.

There is currently no easy way to do this. We're discussing ways to make this possible, though, see https://github.com/bitshares/bsips/blob/master/bsip-0020.md .

Right now the easiest way to do it would probably to use cryptofresh to get a list of token holders, and then write a program to pay out individual dividends using the API.