Launching Proposals on SPORTS

account = "sports-gov"

nodelist = NodeList()
nodelist.update_nodes()
nodes = nodelist.get_nodes(hive=True)
hive = Hive(node=nodes)


def transfer_token(to, amount, symbol, memo, account):
    he_wallet = Wallet(account, blockchain_instance=hive)
    transfer_tx = he_wallet.transfer(to, amount, symbol, memo)
    time.sleep(1)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(transfer_tx), "stake_tx", account)


transfer_token("sportsprojects", 1, "SPORTS", "Please fund this account with 24,960,203 SPORTS and send 3,952,615 SPORTS to @patrickulrich.", account)

!end

We are very happy to announce that we've prepared a partnership with the ARCHON tribe to deploy their governance layerware for the SPORTS ecosystem. Pending the approval of this proposal, we will be able to operate our community without relying on any one individual's sole decision making and instead use our shared consensus to run and grow the community through the use of governance proposals.

image.png

Anyone will be able to propose 'code snippets' (as seen above) via a SportsTalkSocial.com post that, once approved by stakeholder vote, will be activated and ran by the @sports-gov account. These snippets can run anything from Hive Engine token transfers to witness votes for community held accounts. This will open the opportunities for what we can do to the imagination of our community. You can learn more about the originally developed system by reading @taskmanager's code snippet release.


How proposals works

I was preparing a guide for how to interact with the different code snippets that are available but @archonapp already published a great guide that I've used below and replaced their snippets relating to ARCHON with SPORTS. You can view their original publication here.

sportstalkbreak.png

HEADER CODE

account = "sports-gov"


nodelist = NodeList()
nodelist.update_nodes()
nodes = nodelist.get_nodes(hive=True)
hive = Hive(node=nodes)

Code Snippet Functions

1-2: Sell/Buy Hive-Engine Token

def sell_token(symbol, amount, price, account):
    he_market = Market(blockchain_instance=hive)
    market_trans = he_market.sell(account, amount, symbol, price)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(market_trans), "market_tx", account)


def buy_token(symbol, amount, price, account):
    he_market = Market(blockchain_instance=hive)
    market_trans = he_market.buy(account, amount, symbol, price)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(market_trans), "market_tx", account)

With these definitions, you can instruct the proposal (if approved) to buy or sell any token on hive-engine. Check the wallet first. Selling tokens that aren't there or buying an amount that there isn't swap.hive for will result in failure.

After defining, you can command:

sell_token("SPORTS", 250.00, 0.45, account)
time.sleep(30)
sell_token("ARCHON", 1.00, 3.333, account)
time.sleep(30)
sell_token("ASH", 225.00, 0.00495, account)
time.sleep(30)
buy_token("PAL", 500, 0.285, account)
time.sleep(30)

All code snippets must end with ``` and then !end


image.png

3-4: Power up HIVE, Power down HIVE.

def power_up_hive(to, amount, account):
    hive_account = Account(account, blockchain_instance=hive)    
    hive_power_tx = hive_account.transfer_to_vesting(amount, to, account)
    time.sleep(4)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(hive_power_tx), "hive_tx", account)


def power_down_hive(amount, account):
    hive_account = Account(account, blockchain_instance=hive)
    h_v = hive.token_power_to_vests(amount)
    hive_power_tx = hive_account.withdraw_vesting(h_v, account)
    time.sleep(4)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(hive_power_tx), "hive_tx", account)

power_down_hive(1, account)
time.sleep(30)
power_up_hive("sports-gov", 1, account)
time.sleep(30)
power_up_hive("sportstalksocial", 0.1, account)

5-6: Stake/Unstake Hive-Engine Token

def stake_token(amount, symbol, account):
    he_wallet = Wallet(account, blockchain_instance=hive)
    stake_trans = he_wallet.stake(amount=amount, symbol=symbol, receiver=account)
    time.sleep(1)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(stake_trans), "stake_tx", account)


def unstake_token(amount, symbol, account):
    he_wallet = Wallet(account, blockchain_instance=hive)
    unstake_trans = he_wallet.unstake(amount=amount, symbol=symbol)
    time.sleep(1)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(unstake_trans), "stake_tx", account)

7-8: Send HIVE or HIVE-ENGINE token to account

def transfer_hive(to, amount, asset, memo, account):
    hive_account = Account(account, blockchain_instance=hive)
    hive_tx = hive_account.transfer(to, amount, asset, memo, account)
    time.sleep(4)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(hive_tx), "hive_tx", account)

def transfer_token(to, amount, symbol, memo, account):
    he_wallet = Wallet(account, blockchain_instance=hive)
    transfer_tx = he_wallet.transfer(to, amount, symbol, memo)
    time.sleep(1)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(transfer_tx), "stake_tx", account)

transfer_hive("mydemouser", 5, "HIVE", "Your demo memo", account)
time.sleep(1)
transfer_token("mydemouser", 10, "SPORTS", "Your demo memo", account)

9-10 APPROVE or UNAPPROVE witness

def approve_witnesses(witness, account):
    hive_account = Account(account, blockchain_instance=hive)
    witness_tx = hive_account.approvewitness(witness, account)
    time.sleep(4)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(witness_tx), "witness_tx", account)


def remove_witnesses(witness, account):
    hive_account = Account(account, blockchain_instance=hive)
    witness_tx = hive_account.disapprovewitness(witness, account)
    time.sleep(4)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(witness_tx), "witness_tx", account)


approve_witnesses("blocktrades", account)
time.sleep(30)
remove_witnesses("jerrybanfield", account)

Again, all code snippets must end with ``` and then !end


image.png

sportstalkbreak.png

Proposal Requirements

The code above will be needed to work within Proposals on the SPORTS Petition and Proposal System. The following requirements also apply:

#sportstalk tag to post to the tribe

#sportsgov tag to showcase it's a governance post

#sportsproposal tag to make it a proposal

100,000 SPORTS sent to @sports-gov with your post URL as a memo

AND

#hive-py tag to pick up the code snippets

sportstalkbreak.png

Voting for Proposals

Any user can make a proposal even if they are not a SPORTS tribe member. @sports-gov will show up some time after posting to leave 2 comments, 'YES' and 'NO' once it locates a SPORTS transfer.

image.png


image.png

As the comment indicates, all SPORTS stakeholders can vote on these comments (with any %) to indicate their support for either the YES or the NO, whether they want the proposal to pass and the code to execute, or whether they want the NO conditions to go forward. There is a third option, and that is neither - if neither yes or no get 50% of the votes, neither YES nor NO will win.

The SPORTS Governance Power of each member is based on their SPORTS stake. You can request the governance power of any account or check out the top accounts by visiting #sports-governance in the SportsTalkSocial Discord

sportstalkbreak.png

How petitions works

Petitions are a simplified version of proposals. They don't have to have a code function and are not binding to any form of action. They are instead a way for users to make their will known.

The idea would be that if you wanted to find out if there was support for some kind of action without spending 100,000 SPORTS on a proposal you can issue a petition to see if the community was interested in moving in that direction. If you found positive support you'll be better prepared to issue a proposal or maybe find someone to cover your proposal's fee.

sportstalkbreak.png

Petition Requirements

The code above will be needed to work within Proposals on the SPORTS Petition and Proposal System. The following requirements also apply:

#sportstalk tag to post to the tribe

#sportsgov tag to showcase it's a governance post

#sportspetitions tag to make it a petition

1 SPORTS sent to @sports-gov with your post URL as a memo

sportstalkbreak.png


This Proposal

account = "sports-gov"

nodelist = NodeList()
nodelist.update_nodes()
nodes = nodelist.get_nodes(hive=True)
hive = Hive(node=nodes)


def transfer_token(to, amount, symbol, memo, account):
    he_wallet = Wallet(account, blockchain_instance=hive)
    transfer_tx = he_wallet.transfer(to, amount, symbol, memo)
    time.sleep(1)
    c = Comment(loaded_post, steem_instance=hive)
    c.reply(str(transfer_tx), "stake_tx", account)


transfer_token("sportsprojects", 1, "SPORTS", "Please fund this account with 24,960,203 SPORTS and send 3,952,615 SPORTS to @patrickulrich.", account)

Summary

You may have noticed that this post started with a set of code. That's because this announcement post is also a proposal that will be parsed by the ARCHON system to launch the project. If stakeholders approve this proposal it will send 1 SPORTS from the @sports-gov account to @sportsprojects with a memo requesting funding. The SPORTS requested are 24,960,203 to be sent to @sports-gov and 3,952,615 to be sent to @patrickulrich.

The Costs

These combined amounts (28,912,818 SPORTS) equate to a 2% increase in the current circulating supply of SPORTS that are available as per our site's record while this post was being prepared. The SPORTS held in @sports-gov will be available for funding future proposals from anyone in the community.

image.png

The 3,952,615 to be sent to @patrickulrich equate to the current market value of 2,500 ARCHON along with 100,000 SPORTS as a reimbursement for funding this proposal's fee. This is derived by taking the current Hive value of 2,500 ARCHON (736.62) and finding the current value at our current market rate of SPORTS (3,852,615).

image.png

image.png

Benefits To SPORTS

This will allow the community to make decisions via the proposal system. This may be on things as simple as what to do with post rewards for community accounts but it will also act as a way to disperse SPORTS to users who are making contributions towards growing the project via the request for @sportsprojects to unlock 2% of the circulating supply amount of SPORTS held there. These acts of funding will reward users for anything their imagination can dream up that will be of value to the stakeholders of the community.

Additionally @sports-gov's account has given posting permission to @rewarding. This will allow it to follow the votes issued by @sportstalksocial at 100%. This will mean that any of the posts that get curated via the daily curation report will also get a vote from the 2,500 ARCHON stake held in this account. This will add to the earning value of being one of the top posts in any of our monitored sports and thus should result in more content being created for the site.

How to Vote

@sports-gov will reply to this post with two comments. If you'd like to see this proposal pass then upvote the YES comment with any % upvote.

image.png

We hope you will consider voting yes to activate this proposal.

sportstalkbreak.png

SportsTalk.png | dTube.png | Discord.png | Twitter.png | Facebook.png | StateoftheDapps.png



0
0
0.000
63 comments
avatar

YES

Upvote here to support the proposal, any % upvote will trigger 100% GP support.
All rewards from this comment go to the governance fund

0
0
0.000
avatar
(Edited)

Voted

Later edit: this is my main account, but the vote goes from @erikahfit.
Let me know if it's not considered valid, so I can vote again. Sorry for the mixup.

0
0
0.000
avatar

It doesn't look like it was picked up. I don't see you listed on the Discord bot.

0
0
0.000
avatar

Ok, voting from my alt now, where the stake is.

0
0
0.000
avatar

NO

Upvote here to STOP the proposal, any % upvote will trigger 100% GP support.
All rewards from this comment go to the governance fund

0
0
0.000
avatar

SPORTS is one of the reasons I'm back and active on Hive. I hope things change for good.

0
0
0.000
avatar

It will . This post will be a game changer for SPORTS.

0
0
0.000
avatar
(Edited)

I want to thank everyone who has already voted on this proposal. We still need just under 30% of stake (GP) to be voting either way for the vote to be considered valid and meet a 51% quorum. I'm humbly tagging our SPORTS Top 50 Stakeholders (Governance Power) as a notification that the proposal is active. If you still have any questions about how this system will work or the benefits it can have for our tribe please don't hesitate to bring a discussion to this. If you feel you are ready to cast a vote I ask that you consider either voting to approve or disapprove of this new system.

RankAccountGovernance PowerStakeVote
1@uyobong.sports4.96%57662581.729Yes
2@jphamer14.82%56037897.556Yes
3@edkarnie4.73%55048120.257No Vote
4@razackpulo.sport4.54%52804141.351Yes
5@cryptoandsports3.97%46155510.736No Vote
6@airforce3.61%41929317.36No Vote
7@mk-sports-token3.49%40629591.822No Vote
8@dalzphoto3.15%36671973.45No Vote
9@rezoanulv.sports2.57%29906243.496Yes
10@toni.sports2.43%28231955.376Yes
11@erikahfit2.38%27717858.229No Vote
12@bozz.sports1.84%21348094.486No Vote
13@patrickulrich1.44%16772919.517Yes
14@ctpsb1.42%16531008.164No Vote
15@cruisin1.40%16295898.201No Vote
16@dfacademy-sports1.31%15249515.47Yes
17@fitcoin1.31%15191863.775No Vote
18@abh12345.sports1.18%13744795.022Yes
19@yousaf-sports1.03%12006605.553Yes
20@bcm.sport0.99%11501590.83No Vote
21@roger51200.90%10517148.959No Vote
22@splines0.86%10009458.22No Vote
23@botefarm.sport0.86%9976322.066Yes
24@steem.girl0.79%9234089.193No Vote
25@majorleague0.77%9009911.647Yes
26@brocfml0.77%9002574.541No Vote
27@pele230.72%8361478.422No Vote
28@zahidsun0.67%7741329.842No Vote
29@hivemachine0.64%7398752.194No Vote
30@adhammer0.62%7202101.305No Vote
31@xak0.60%7001384.243Yes
32@flipstar0.59%6823278.121No Vote
33@ptaku0.58%6782750.43No Vote
34@cocukgelisimi0.57%6670824.672No Vote
35@talesfrmthecrypt0.57%6667832.115No Vote
36@alokkumar.sports0.49%5680867.971Yes
37@darewealth0.46%5333392.845Yes
38@ph1102.sports0.45%5212923.844No Vote
39@blanchy.sports0.44%5170170.597No Vote
40@fun.sports0.44%5107652.742No Vote
41@automaton0.44%5075788.2No Vote
42@pjansen0.41%4745100.591No Vote
43@fural0.39%4507688.186No Vote
44@devann.sports0.38%4435542.011No Vote
45@zainalbakri0.37%4319323.019No Vote
46@ekushya0.35%4093075.42No Vote
47@scholaris.sports0.35%4055840.805Yes
48@salimbur0.35%4024114.196No Vote
49@irman0.35%4018488.378No Vote
50@apostlevincent0.31%3662360.617No Vote

0
0
0.000
avatar

Voted!

0
0
0.000
avatar

Thank you for the support @pele23. I just updated the list for the top 100 stakeholders in a new post. We're only 18% away now.

0
0
0.000
avatar

If I increase my stake, would it automatically add to my vote value on the proposal?

0
0
0.000
avatar

I believe so. I just updated the numbers and you're stake went up by at least 100K SPORTS.

0
0
0.000
avatar

Okay, another question:

Does my voting manna affect my vote on a proposal?

Assuming I have 60 million SPORTS stake which gives 17k SPORTS in vote and I had drained my voting manna in voting for post to say 10% which would be less than 3,000, what would happen to my vote on a proposal at that time?

0
0
0.000
avatar

No, voting % or power is not reflected at all. A 1% vote for Yes is the same as a 100% vote the same as a 1% voting mana would be the same as a 100% voting mana. It's just looking at the stake for each person to determine their GP.

0
0
0.000
avatar

@ptaku, to cię powinno zainteresować, nie wiem czy głosowałeś

0
0
0.000
avatar

Dzięki za info. Muszę poczytać. A Ty co sądzisz?

0
0
0.000
avatar

Zagłosowałem na tak. Zawsze to coś ciekawego się będzie dziać. Teoretycznie użytkownicy będą mieć więcej do powiedzenia

0
0
0.000
avatar

I was really impressed with the response rate by tagging the top 50 stakeholders yesterday so I decided to expand the list to the top 100 stakeholders today. That being said I want to thank everyone who has already voted on this proposal so far. We are now just 18% of GP away for the vote to be considered valid and meet a 51% quorum. If you still have any questions about how this system will work or the benefits it can have for our tribe please don't hesitate to bring a discussion to this. If you feel you are ready to cast a vote I ask that you consider either voting to approve or disapprove of this new system.

RankAccountGovernance PowerStakeVote
1@uyobong.sports4.96%57788543.231Yes
2@jphamer14.82%56136103.203Yes
3@edkarnie4.74%55233536.949No Vote
4@razackpulo.sport4.54%52898264.67Yes
5@cryptoandsports3.96%46209677.264No Vote
6@airforce3.60%41955629.995No Vote
7@mk-sports-token3.49%40689861.71No Vote
8@dalzphoto3.14%36594009.731No Vote
9@rezoanulv.sports2.57%29995956.446Yes
10@toni.sports2.43%28275819.398Yes
11@erikahfit2.38%27770803.586No Vote
12@bozz.sports1.84%21402067.317No Vote
13@patrickulrich1.44%16804703.532Yes
14@ctpsb1.42%16555238.931Yes
15@cruisin1.40%16300390.414No Vote
16@dfacademy-sports1.31%15271597.31Yes
17@fitcoin1.31%15212585.176No Vote
18@abh12345.sports1.18%13799490.262Yes
19@yousaf-sports1.03%12028775.884Yes
20@bcm.sport0.99%11517307.182No Vote
21@roger51200.90%10545071.615No Vote
22@botefarm.sport0.86%10026953.198Yes
23@splines0.86%10026250.142Yes
24@steem.girl0.79%9249529.014No Vote
25@majorleague0.77%9021255.289Yes
26@brocfml0.77%9010353.056No Vote
27@pele230.72%8373033.957Yes
28@zahidsun0.67%7772273.322Yes
29@hivemachine0.64%7414761.166No Vote
30@adhammer0.62%7216984.461Yes
31@xak0.60%7011109.751Yes
32@flipstar0.59%6823278.121No Vote
33@ptaku0.58%6797626.177No Vote
34@cocukgelisimi0.58%6721015.352No Vote
35@talesfrmthecrypt0.57%6667832.115No Vote
36@alokkumar.sports0.49%5706194.968Yes
37@ph1102.sports0.46%5372770.544Yes
38@darewealth0.46%5340348.029Yes
39@blanchy.sports0.44%5170170.597No Vote
40@fun.sports0.44%5120495.945No Vote
41@automaton0.44%5083461.712No Vote
42@pjansen0.41%4772124.273No Vote
43@fural0.39%4512774.339No Vote
44@devann.sports0.38%4445708.092No Vote
45@zainalbakri0.37%4331755.265Yes
46@scholaris.sports0.36%4205652.997Yes
47@ekushya0.35%4100900.985Yes
48@salimbur0.35%4029756.651No Vote
49@irman0.35%4023714.041No Vote
50@apostlevincent0.31%3668209.959Yes
51@lightsplasher0.31%3631639.052No Vote
52@coiotes0.28%3318383.089Yes
53@fajarsdq0.28%3268253.357No Vote
54@hykss.sports0.28%3267948.845No Vote
55@pouchon0.28%3255226.221No Vote
56@sportscurator0.28%3234252.555No Vote
57@flipstar.sports0.27%3201554.691No Vote
58@indosports0.27%3174997.999Yes
59@celioeguga0.27%3126389.871No Vote
60@h770.26%3036707.004Yes
61@hivesportsnews0.25%2969646.282No Vote
62@jersteemit.sport0.25%2941063.643No Vote
63@grandiosae0.25%2883563.332No Vote
64@flaxz0.25%2868098.251No Vote
65@costanza.sports0.25%2858427.997No Vote
66@beatsbema0.24%2764450.073No Vote
67@tbnfl4sun0.24%2761025.459No Vote
68@shahzad010.23%2657793.171No Vote
69@cloudblade0.22%2621903.027No Vote
70@tomlee0.22%2600038.48No Vote
71@djsl820.22%2574312.346No Vote
72@sportsmod0.21%2500000No Vote
73@toufiq7770.21%2495280.925No Vote
74@rosatravels0.21%2477751.649No Vote
75@moyse0.21%2440029.661No Vote
76@ireneblessing0.21%2438525.859No Vote
77@solairitas0.20%2329810.228No Vote
78@kolawole0.20%2325342.885No Vote
79@actifit-peter0.20%2307434.514No Vote
80@tolustx0.20%2296999.317No Vote
81@limka0.20%2275804.221No Vote
82@opochtli0.19%2173834.398No Vote
83@cabinet24.sports0.19%2172424.731No Vote
84@sports.guy550.18%2149673.489No Vote
85@jgb0.18%2131900.771No Vote
86@arsenal4life0.18%2115347.605No Vote
87@philnewton0.18%2110581.111No Vote
88@yohann0.18%2101514.951Yes
89@sportfrei0.18%2042380.73No Vote
90@michealb0.17%2006454.346No Vote
91@broncnutz0.17%2003482.833No Vote
92@fit.zone0.17%1973063.553No Vote
93@naha0.17%1955434.136No Vote
94@nurdinnakaturi0.17%1938468.857No Vote
95@elfman20180.16%1880363.029No Vote
96@arbi.sportstalk0.16%1863155.948No Vote
97@samic.sports0.16%1862885.086No Vote
98@freddio.sport0.16%1861589.246No Vote
99@simaroy0.15%1799646.559No Vote
100@hykss0.15%1787745.204No Vote
0
0
0.000
avatar
avatar

Ah yes .... Ill take a look, thansk for the mention asher

0
0
0.000
avatar

No worries. I have a feeling that most have their main account tied to notification apps :)

0
0
0.000
avatar

Thanks for the notice, I'll look into it

0
0
0.000
avatar
(Edited)

Voted. Thanks for the reminder. Never look for the alt lol.

0
0
0.000
avatar

Awesome.

0
0
0.000
avatar

It went over quorum this morning so it should pass when it finalizes. Thank you for all your help getting here!

0
0
0.000
avatar
(Edited)

We are now just 18% of GP away for the vote to be considered valid and meet a 51% quorum

  1. what do i need to read to decide? 2) can my vote be worth more by increasing stake before voting

EDIT: figured it out

0
0
0.000
avatar

Thank you for supporting this @michealb. It looks like you found the post but if I can answer any questions about the system feel free to ping me!

You can increase your stake at any time before the proposal finishes. If you add more stake before the end of the proposal period you will update on the for the new amount.

0
0
0.000
avatar

thank you, for mentioning my name there. maybe I will be active again in sports

0
0
0.000