Nxt Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Nxt Client 1.11.5 - NEW RELEASE: Ardor 2.0.3e TestNet IS LAUNCHED!

Pages: [1]

Author Topic: Asset Feeds  (Read 856 times)

NxtSwe

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 659
    • View Profile
  • Karma: +119/-9
Asset Feeds
June 26, 2016, 11:56:19 am

Howdy,

I've seen some suggestions about extending the data an asset issuer can give to their asset holders and potential buyers.
Since the core devs are super busy working on 1.9 and Ardor, it will not be a priority for them to include that now.

So I thought I'd make a plugin for now, and if there's interest, maybe the core devs can just snatch it and incorporate it into the core client at a later time.

This is work in progress, and this what I've done so far:


Features:
  • News feed, asset issuer writes something and it pops up here. Stored as a prunable message, so it will be removed after 30'000 blocks (21 days) by default.
  • Logo, stored in the data cloud by asset issuer. This will also be pruned by default.
  • Custom asset info, stored as key + value on the asset issuer account. Stored as account properties and will remain until asset issuer removes them.

Only asset issuer can update this info btw.
Admittedly, front end layout is not my specialty, so there's definitely room for UI improvements. But what do you think of the basic idea?
Check out the NxtLib, the .NET Framework API for the Nxt platform.

blackyblack1

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1626
    • View Profile
  • Karma: +162/-82
Re: Asset Feeds
June 26, 2016, 03:29:27 pm

Looks great.

capodieci

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1289
  • Tips go to DeBuNe Dev fund
    • View Profile
    • DeBuNe - Decentralised Business Network
  • Karma: +246/-18
Re: Asset Feeds
June 27, 2016, 02:47:05 am

Only asset issuer can update this info btw.
Admittedly, front end layout is not my specialty, so there's definitely room for UI improvements. But what do you think of the basic idea?

That's amazing. I suggest to have it in the stable 1.9. Going by plugin the limit is that news and logo are seen ONLY by those with the plugin, which is a limit. It would be great if it was there for everyone!

R

NOTE: cool you used DeBuNe as example ;)
- Decentralised Business Network: DeBuNe -
Asset: 6926770479287491943 - Issuer: NXT-GQ27-DD53-YM6K-ER6HK
OTDocs.com - debune.org - nxtforum.org/debune - NEW: thesoundkey.com

NxtSwe

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 659
    • View Profile
  • Karma: +119/-9
Re: Asset Feeds
June 27, 2016, 06:18:05 am

Only asset issuer can update this info btw.
Admittedly, front end layout is not my specialty, so there's definitely room for UI improvements. But what do you think of the basic idea?

That's amazing. I suggest to have it in the stable 1.9. Going by plugin the limit is that news and logo are seen ONLY by those with the plugin, which is a limit. It would be great if it was there for everyone!

R

NOTE: cool you used DeBuNe as example ;)
Yes, to my knowledge plugins is not used by anyone, so this is merely to set some kind of standard of how to store the information.
I have already talked to testdruif about this and he wants to add it directly to the core client, so I've stopped working at this for the moment and we'll see what happens.

I tossed up the code here, please note that it is work in progress, so it is by no means ready to copy-paste directly into core client.
https://github.com/libertyswede/AssetFeed
Check out the NxtLib, the .NET Framework API for the Nxt platform.

NxtSwe

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 659
    • View Profile
  • Karma: +119/-9
Re: Asset Feeds
June 27, 2016, 06:18:26 am

Thank you for the feedback!
Check out the NxtLib, the .NET Framework API for the Nxt platform.

shmoula

  • Full Member
  • ***
  • Offline Offline
  • Posts: 125
    • View Profile
    • Homepage
  • Karma: +18/-4
Re: Asset Feeds
July 03, 2016, 01:27:32 pm

Yeah, finally someone! Thanks!!
Pages: [1]