GentBG x PUSSTEEM - burning both STEEM and PUSS

Image
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/gentbg-x-pussteem-burning-both-steem-and-puss Hello, this is @joviansummer(witness: @jswit), developer of GentBG project. I registered @gentbg account to PUSSTEEM about a week ago and donated some of my own PUSS token to @gentbg's EPUSS account. Now, @gentbg will burn STEEM and EPUSS at the same time. PUSSTEEM's boosting upvotes will help increasing baseline burning significantly. @gentbg's SP reward is delegate to @jsup to get automated upvotes, forming a baseline burning of liquid reward independent of other people's upvotes. Some may argue 100%(both liquid and SP reward) burning is much better, but I chose this approach to prevent @gentbg from becoming a spamming account. Constantly asking for upvotes via mentioning and commenting every week may eventually become a big annoyance to curators. That being said, anyone is welcome to participate in countering STEEM inflation by giving upvotes ...

파이썬(steem-python)에서 업보팅 수행

by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/mjeae-steem-python


steem-python으로 업보팅을 하는 코드입니다. 오토보팅 서비스와 업보팅 서비스에서 사용중인 코드인데 정리해 둡니다.

업보팅을 수행하려면 포스트 식별자(id)를 알아야 합니다. 예를 들어 제가 어제 올린 글의 주소는 아래와 같습니다.

https://steemit.com/hive-141029/@joviansummer/jsup-templar-kr-id

여기서 포스트 식별자는 스팀 ID부터 시작해서 이어지는 뒷부분, 즉 아래와 같습니다.

joviansummer/jsup-templar-kr-id

예를 들어 jsup 계정으로 이 포스트에 보팅 비중 99.55%로 업보팅을 하는 상황이라면, 아래와 같이 코드가 구성됩니다. 당연히 업보팅을 하기 위해 포스팅키도 필요합니다.

from steem import Steem

# 보팅하는 id: jsup
VOTER_ID = 'jsup'
# jsup의 포스팅키: abcd라고 가정
POSTING_KEY = 'abcd'

# 포스트 식별자: joviansummer/jsup-templar-kr-id 
POST_ID = 'joviansummer/jsup-templar-kr-id'

# 보팅 비중: 99.55%
VOTE_WEIGHT = '99.55'

# 업보팅 수행 
user = Steem(keys=[POSTING_KEY])
user.commit.vote(POST_ID, float(VOTE_WEIGHT), VOTER_ID)

업보팅 코드 자체는 매우 간단한 것을 볼 수 있습니다. 실제로 코딩을 할 때는 업보팅 자체보다 보팅 비중 계산, 포스트 식별자 확인, 예외 처리 등 다른 부분이 훨씬 작업이 복잡합니다.

Comments

Popular posts from this blog

스티미언의 영향력 지수 계산

jsup/avle code update - you don't have to write post everyday

jsup/avle 보팅 코드 갱신 - 1일1포스팅 강박에서 벗어나기