create account

RE: Draft list of all API calls within the Steem codebase by remlaps

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @l0k1/draft-list-of-all-api-calls-within-the-steem-codebase

· @remlaps ·
> find steem|grep api\.cpp$|xargs cat|grep api\:\:|grep -v ASSERT|grep -v '^ '|grep -v '^/'|sed 's/ / /g'|sed 's/ / /g'|sed 's/^ //g'

Just for fun, thought I'd take a swipe at removing some of the pipelines.   I think this is more or less the same thing...

    find steem -name \*api.cpp -exec sed -n '/ASSERT/ d;/^\// d;/^ / d;s/  */ /g;/api\:\:/ p' {} \;
👍  
properties (23)
authorremlaps
permlinkre-l0k1-draft-list-of-all-api-calls-within-the-steem-codebase-20170402t014908712z
categorydawn-network
json_metadata{"tags":["dawn-network"],"app":"steemit/0.1"}
created2017-04-02 01:49:12
last_update2017-04-02 01:49:12
depth1
children1
last_payout2017-04-09 01:49:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length358
author_reputation33,149,047,814,372
root_title"Draft list of all API calls within the Steem codebase"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,920,878
net_rshares158,067,730,310
author_curate_reward""
vote details (1)
@l0k1 · (edited)
btw, two of the functions get chopped out of the code, one of them has a very long parameter list one to a line, and another one with a break. I used `grep \($` to isolate them so I could manually add their parameters.

Yeah, so many pipes is just an easy way to build up the correct substitutions and filters bit by bit until you have the right lines coming out.
👍  
properties (23)
authorl0k1
permlinkre-remlaps-re-l0k1-draft-list-of-all-api-calls-within-the-steem-codebase-20170402t085900970z
categorydawn-network
json_metadata{"tags":["dawn-network"],"app":"steemit/0.1"}
created2017-04-02 08:59:03
last_update2017-04-02 09:00:00
depth2
children0
last_payout2017-04-09 08:59:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length363
author_reputation94,800,257,230,993
root_title"Draft list of all API calls within the Steem codebase"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,922,453
net_rshares13,620,273,736
author_curate_reward""
vote details (1)