Author Topic: Developer delegate: dev.bitsharesblocks  (Read 104856 times)

0 Members and 1 Guest are viewing this topic.

Offline liondani

  • Hero Member
  • *****
  • Posts: 3737
  • Inch by inch, play by play
    • View Profile
    • My detailed info
  • BitShares: liondani
  • GitHub: liondani
@svk

On  https://bitsharesblocks.com/asset/orderbook?asset=USD
On the MARGIN CALL ORDERS (Cover bitUSD)  table the last short that shows up expires at 7 June... Can you add all data for all shorts?
It would be great to have the list for all expirations for the whole month! (one month from now)
« Last Edit: May 31, 2015, 04:43:48 am by liondani »

Offline kenCode

  • Hero Member
  • *****
  • Posts: 2283
    • View Profile
    • Agorise
#1 Did I do something wrong with the "bitsharestalk" key?
 
#2 It still doesn't show my Delegate services, my gravatar image, or my email:
http://bitsharesblocks.com/delegate/info?name=delegate.kencode
 
Here is the Console code I used:
Code: [Select]
>> wallet_account_update_registration delegate.kencode delegate.kencode {"services":"BitShares Sales & Support, DAC Builder, PR Agent, Copy Editor, Social Mediums & Translator","gravatarID":"3e4a1a8b2521be32eb3244b9cfbf7669 ","version":"0.9.0","website":"http://BitShares-Munich.de","email":"ken@BitShares-Munich.de","delegate":{"handle":{"bitsharestalk":"kenCode"},"country":"de","description":"BitShares Munich","proposal":"https://bitsharestalk.org/index.php?topic=16072"}} 100

TIMESTAMP           BLOCK     FROM                TO                  AMOUNT                  MEMO                                        FEE                 ID     
======================================================================================================================================================================
2015-05-15T13:05:09 PENDING   delegate.kencode    delegate.kencode    0.00000 BTS             Update delegate.kencode's public data       0.50000 BTS         ba0a2615

 
#3 Let me know what I should fix please :)
Thanx,
  -ken
kenCode - Decentraliser @ Agorise
Matrix/Keybase/Hive/Commun/Github: @Agorise
www.PalmPay.chat

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
I think that bitsharesblocks is not yet parsing all values you could possibly store in your public data ...
also note that the "proposal" on the wiki is still a "proposal" .. and no one can be force to follow that syntax ..
It's a difficult thing for svk to be compatible with "moving parts" :)

Offline kenCode

  • Hero Member
  • *****
  • Posts: 2283
    • View Profile
    • Agorise
Well, it's looking better, but it still doesn't show my Delegate services, my gravatar and such:
http://bitsharesblocks.com/delegate/info?name=delegate.kencode
 
Here is the Console code I used:
Code: [Select]
>> wallet_account_update_registration delegate.kencode delegate.kencode {"services":"BitShares Sales & Support, DAC Builder, PR Agent, Copy Editor, Social Mediums & Translator","gravatarID":"3e4a1a8b2521be32eb3244b9cfbf7669","version":"0.9.0","website":"http://BitShares-Munich.de","email":"ken@BitShares-Munich.de","delegate":{"handle":{"bitsharestalk":"kenCode"},"country":"de","description":"BitShares Munich","proposal":"https://bitsharestalk.org/index.php?topic=16072"}} 100

TIMESTAMP           BLOCK     FROM                TO                  AMOUNT                  MEMO                                        FEE                 ID     
======================================================================================================================================================================
2015-05-15T13:05:09 PENDING   delegate.kencode    delegate.kencode    0.00000 BTS             Update delegate.kencode's public data       0.50000 BTS         ba0a2615

 
Is my syntax off?
Is bitsharesblocks not ready for the json key/value pairs that the wiki states?
 
Let me know what I should fix if you could, please :)
Thanx,
  -ken
kenCode - Decentraliser @ Agorise
Matrix/Keybase/Hive/Commun/Github: @Agorise
www.PalmPay.chat

Offline BunkerChainLabs-DataSecurityNode

cass and xeroc made the impression that it was somehow my fault. sorry if i took their smirks the wrong way.
I was making fun of this .. sorry if it came across as an insult .. It's difficult to make fun over the internet .. I apologize

Well I thought it was funny. :)
+-+-+-+-+-+-+-+-+-+-+
www.Peerplays.com | Decentralized Gaming Built with Graphene - Now with BookiePro and Sweeps!
+-+-+-+-+-+-+-+-+-+-+

Offline cass

  • Hero Member
  • *****
  • Posts: 4311
  • /(┬.┬)\
    • View Profile
Who's pointing fingers or laughing? I simply pointed out you used incorrect json which is why it didn't work, ranting and raving won't change that.

Services and email don't show because I never added them to Bitsharesblocks, they do exist in your public_data however.

Like I said the wiki does give you a handy script you can use to update the public data. As for the CLI, it's always been recommended best practice to run delegates using a VPS, which means you have no access to the GUI.

cass and xeroc made the impression that it was somehow my fault. sorry if i took their smirks the wrong way.
 
svk, you're cool too no worries, I'm just frustrated the past few days. sorry guys.

? i just quoted OPs post ... nothing more .. and i was just kidding ..
█║▌║║█  - - -  The quieter you become, the more you are able to hear  - - -  █║▌║║█

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
cass and xeroc made the impression that it was somehow my fault. sorry if i took their smirks the wrong way.
I was making fun of this .. sorry if it came across as an insult .. It's difficult to make fun over the internet .. I apologize

Offline kenCode

  • Hero Member
  • *****
  • Posts: 2283
    • View Profile
    • Agorise
Who's pointing fingers or laughing? I simply pointed out you used incorrect json which is why it didn't work, ranting and raving won't change that.

Services and email don't show because I never added them to Bitsharesblocks, they do exist in your public_data however.

Like I said the wiki does give you a handy script you can use to update the public data. As for the CLI, it's always been recommended best practice to run delegates using a VPS, which means you have no access to the GUI.

cass and xeroc made the impression that it was somehow my fault. sorry if i took their smirks the wrong way.
 
svk, you're cool too no worries, I'm just frustrated the past few days. sorry guys.
kenCode - Decentraliser @ Agorise
Matrix/Keybase/Hive/Commun/Github: @Agorise
www.PalmPay.chat

Offline fav

  • Hero Member
  • *****
  • Posts: 4278
  • No Pain, No Gain
    • View Profile
    • Follow Me!
  • BitShares: fav
you're welcome :D I added a url to my delegate post.

It won't work unless you use the correct format though as described in the wiki, I think you added the full url as a field in your json.

yeah, I'll delete it or try to get it fixed asap. it's not that important in my opinion.

Offline svk

you're welcome :D I added a url to my delegate post.

It won't work unless you use the correct format though as described in the wiki, I think you added the full url as a field in your json.
Worker: dev.bitsharesblocks

Offline svk

Uh huh, that's what I thought.
It's not the user's fault (me).
 
The bts.wiki doesn't say anything about having to use the Console, CLI or Command Line anything:
http://wiki.bitshares.org/index.php/Delegate/PublicData
 
The wiki even says that I can use keys such as "services" and "email" which also don't show once I paid to have them published:
http://bitsharesblocks.com/delegate/info?name=delegate.kencode
 
This is exactly the kind of bs I'm ranting about. Laughing it off and pointing the finger at somebody else instead of taking responsibility (whether it's your job or not) and just get the damn job done. What's it going to take?

Who's pointing fingers or laughing? I simply pointed out you used incorrect json which is why it didn't work, ranting and raving won't change that.

Services and email don't show because I never added them to Bitsharesblocks, they do exist in your public_data however.

Like I said the wiki does give you a handy script you can use to update the public data. As for the CLI, it's always been recommended best practice to run delegates using a VPS, which means you have no access to the GUI.
Worker: dev.bitsharesblocks

Offline fav

  • Hero Member
  • *****
  • Posts: 4278
  • No Pain, No Gain
    • View Profile
    • Follow Me!
  • BitShares: fav
@svk one of your processes that fill the delegates database seem to be broken .. I can't find any of the bunkermining delegates

Hey guys, I just posted this tech support question and was told to notify this thread, so here it is:
https://bitsharestalk.org/index.php/topic,16344.msg209004.html#msg209004
 
Please and thanx :)
  -ken


Both questions are related, Ken you broke the backend script that updates the delegate info with incorrect json in your public data field. favdesu also has some reaaaally strange fields in his json that made it impossible to update the mongo database. I pushed an update that removes incorrect fields so it's working again now.

If you want the backend to pick up your delegate.description etc fields you need to use proper json, not "delegate.description"

you're welcome :D I added a url to my delegate post.

Offline kenCode

  • Hero Member
  • *****
  • Posts: 2283
    • View Profile
    • Agorise
Uh huh, that's what I thought.
It's not the user's fault (me).
 
The bts.wiki doesn't say anything about having to use the Console, CLI or Command Line anything:
http://wiki.bitshares.org/index.php/Delegate/PublicData
 
The wiki even says that I can use keys such as "services" and "email" which also don't show once I paid to have them published:
http://bitsharesblocks.com/delegate/info?name=delegate.kencode
 
This is exactly the kind of bs I'm ranting about. Laughing it off and pointing the finger at somebody else instead of taking responsibility (whether it's your job or not) and just get the damn job done. What's it going to take?
kenCode - Decentraliser @ Agorise
Matrix/Keybase/Hive/Commun/Github: @Agorise
www.PalmPay.chat

Offline svk

You want me to past json code into the key field? So what goes into the value field?
I know json quite well, but bts.wiki specifically says to use "website" as a key (for example) and "delegate.proposal" as a key.
Not everybody knows json or will understand what to paste into these fields.
 
I know it's easier to blame it on the user though, right?
 
Be specific, please:
 


"delegate.description" is not a valid key, "delegate" is a key and "description" is a subkey in "delegate". I don't believe you can set subfields like this using the GUI, so use the Command Line Interface instead. xeroc made a little python script that does it for you if you don't want to do it yourself:

http://wiki.bitshares.org/index.php/Delegate/PublicData

Otherwise, just use this template:

https://bitsharestalk.org/index.php/topic,11485.msg154443.html#msg154443
Worker: dev.bitsharesblocks

Offline kenCode

  • Hero Member
  • *****
  • Posts: 2283
    • View Profile
    • Agorise
You want me to past json code into the key field? So what goes into the value field?
I know json quite well, but bts.wiki specifically says to use "website" as a key (for example) and "delegate.proposal" as a key.
Not everybody knows json or will understand what to paste into these fields.
 
I know it's easier to blame it on the user though, right?
 
Be specific, please:
 
kenCode - Decentraliser @ Agorise
Matrix/Keybase/Hive/Commun/Github: @Agorise
www.PalmPay.chat