Edgeless Lounge Lottery Smart Contract Beta (Tech Savvy Post)





The Edgeless Lounge lottery smart contract (beta version) is deployed on a Ropsten testnet blockchain:

https://ropsten.etherscan.io/address/0xa53001cdc1257ae0e20c1cbc3d800c67df95c8c4#code

The lottery smart contract is directly connected to a Black Jack smart contract, which we have just updated too. What’s a purpose of a lottery, and how does it function, is described in our previous blog post: here

The new Black Jack smart contract can be found there:

https://ropsten.etherscan.io/address/0xfbc76d976777c44cd01069664885da3acfad87b2#code

Now you can interact with a smart contract using myetherwallet.com using their Ropsten testnet panel.

Click “Contracts” in their menu: https://www.myetherwallet.com/#contracts

In fields:

“Contract Address” add: 0xA53001cDC1257aE0e20C1cbC3D800C67Df95C8C4

“ABI / JSON Interface” add:

[{“constant”:true,”inputs”:[],”name”:”payoutBalance”,”outputs”:[{“name”:””,”type”:”uint256"}],”payable”:false,”type”:”function”},{“constant”:true,”inputs”:[],”name”:”currentTokenBalance”,”outputs”:[{“name”:””,”type”:”uint256"}],”payable”:false,”type”:”function”},{“constant”:true,”inputs”:

[{“name”:””,”type”:”address”}],”name”:”balances”,”outputs”:[{“name”:””,”type”:”uint256"}],”payable”:false,”type”:”function”},{“constant”:false,”inputs”:[],”name”:”payout”,”outputs”:[{“name”:”success”,”type”:”bool”}],”payable”:true,”type”:”function”},{“constant”:false,”inputs”:[],”name”:”claimShare”,”outputs”:[],”payable”:false,”type”:”function”},{“constant”:true,”inputs”:[{“name”:””,”type”:”address”}],”name”:”lastAction”,”outputs”:[{“name”:””,”type”:”uint256"}],”payable”:false,”type”:”function”},{“constant”:false,”inputs”:[],”name”:”retrieveEDG”,”outputs”:[],”payable”:false,”type”:”function”},{“constant”:true,”inputs”:[],”name”:”owner”,”outputs”:[{“name”:””,”type”:”address”}],”payable”:false,”type”:”function”},{“constant”:true,”inputs”:[],”name”:”tokenBalance”,”outputs”:[{“name”:””,”type”:”uint256"}],”payable”:false,”type”:”function”},{“constant”:false,”inputs”:[{“name”:”newOwner”,”type”:”address”}],”name”:”changeOwner”,”outputs”:[],”payable”:false,”type”:”function”},{“constant”:false,”inputs”:[{“name”:”addr”,”type”:”address”}],”name”:”disapproveAddress”,”outputs”:[],”payable”:false,”type”:”function”},{“constant”:true,”inputs”:[{“name”:””,”type”:”address”}],”name”:”authorized”,”outputs”:[{“name”:””,”type”:”bool”}],”payable”:false,”type”:”function”},{“constant”:false,”inputs”:[{“name”:”amount”,”type”:”uint256"},{“name”:”holder”,”type”:”address”}],”name”:”assignTokens”,”outputs”:[],”payable”:false,”type”:”function”},{“constant”:true,”inputs”:[],”name”:”payoutTime”,”outputs”:[{“name”:””,”type”:”uint256"}],”payable”:false,”type”:”function”},{“constant”:false,”inputs”:[{“name”:”amount”,”type”:”uint256"}],”name”:”storeEDG”,”outputs”:[],”payable”:false,”type”:”function”},{“constant”:false,”inputs”:[{“name”:”addr”,”type”:”address”}],”name”:”approveAddress”,”outputs”:[],”payable”:false,”type”:”function”},{“inputs”:[{“name”:”tokenAddress”,”type”:”address”}],”payable”:false,”type”:”constructor”},{“anonymous”:false,”inputs”:[{“indexed”:true,”name”:”holder”,”type”:”address”},{“indexed”:false,”name”:”amount”,”type”:”uint256"}],”name”:”storedEDG”,”type”:”event”},{“anonymous”:false,”inputs”:[{“indexed”:true,”name”:”holder”,”type”:”address”},{“indexed”:false,”name”:”amount”,”type”:”uint256"}],”name”:”retrievedEDG”,”type”:”event”},{“anonymous”:false,”inputs”:[{“indexed”:true,”name”:”sharer”,”type”:”address”},{“indexed”:false,”name”:”amount”,”type”:”uint256"}],”name”:”sharedProfit”,”type”:”event”},{“anonymous”:false,”inputs”:[{“indexed”:true,”name”:”holder”,”type”:”address”},{“indexed”:false,”name”:”amount”,”type”:”uint256"}],”name”:”profitClaimed”,”type”:”event”}]

dow which allows you to call smart contract functions by sending EDG tokens.

and click “Access”

Now, you will see a window which allows you to call smart contract functions by sending EDG tokens.

Feel free to test it out, and let us know your feedback to this address: [email protected].

With a full version launch and a smart contract, these functions will be connected to a new front end lottery interface. Players will be able to participate in a lottery with just a click of a button.

What’s next on our Development Road Map? Dice Smart Contract and new dapps front end interface.

QUICK LINKS:

Website: www.edgeless.io

White paper: http://bit.ly/2jHIb7T

Slack: edgelessethcasino.signup.team

Telegram: https://t.me/joinchat/AAAAAEBTy7K9KXQcQsyozQ

Reddit: reddit.com/r/edgeless

Twitter: twitter.com/edgelessproject

Facebook: www.facebook.com/EdgelessCasino