mastercoin-MSC / mastercore

mastercore info
mastercoin.org
MIT License
24 stars 11 forks source link

Need: "get owners" RPC call #261

Closed dexX7 closed 9 years ago

dexX7 commented 9 years ago

This is partially touched by getsto_MP, but it might be useful to have a call to get all holders of a token explicitly.

Use case: "create a document including a list of all current shareholders" (in the case of a legit company)

I'll sign up for this task, but I'm not sure, if I get this ready within the next days due to xmas.

Related: #262

zathras-crypto commented 9 years ago

Sorry Xmas day so not too much in terms of response, but this one already exists; getallbalancesforid_MP.

Merry Xmas all :) On 25/12/2014 4:54 AM, "dexX7" notifications@github.com wrote:

This is partially touched by getsto_MP, but it might be useful to have a call to get all holders of a token explicitly.

Use case: "create a document including a list of all current shareholders" (in the case of a legit company)

Second one will be added in a minute.

— Reply to this email directly or view it on GitHub https://github.com/mastercoin-MSC/mastercore/issues/261.

dexX7 commented 9 years ago

D'oh, you're right actually. ;)

Merry xmas!

dexX7 commented 9 years ago

I'm reopening for the sake of a discussion. It seems to be a question of semantics: is "a list of all balances of a property" the same as "a list of all owners and their balance of a property"?

A rather significant difference is that token issuers are excluded from "owners" as per "send to owners".

Maybe getallbalancesforid_MP could be extended to have an optional include_owner parameter, but it would be pretty useless.

Or there is another call to "calculate the share" where an amount "to distrbute" could be provided and a list of holders and their "share" is returned, basically simulating a "send to owners" transaction with an arbitrary amount.

dexX7 commented 9 years ago

I initially had this for a Bitcoin STO in mind. I have a POC-quality refactored version of STO + Bitcoin STO in one of my private repos for some time now, so I'm going to close this. Ping me, if you decide it's worth to publish.