oceanprotocol-archive / bounties

🎣 Bounties for Ocean Protocol
Apache License 2.0
11 stars 0 forks source link

Ocean bounty : Tokens Distributing Telegram Bot for Ocean's Testnet #19

Closed Anirudh2490 closed 3 years ago

Anirudh2490 commented 5 years ago

Telegram bot that distributes testnet Ocean tokens

How can you help?

We want to create a Telegram bot that can help distribute testnet OCN tokens to our users. You can start by setting up our Faucet Server by following the README.md to get set up.

Here’s how the user interaction with our bot would look.

You can modify the bot responses but content of the message must be similar to the above specified template.

What needs to be done?

First step would be to setup the bot using BotFather, a Telegram bot that helps anyone to set up a a bot. We are assuming that you already have a Telegram account, and would recommend downloading the desktop app as well. Once you are done with the set-up, you should have your API token for this bot.

The next step would be to set up a bot server. You can find tutorials on how to set up a Telegram bot server; here’s a link to the official documentation that can help answer any questions you have.

Finally, the bot server and faucet server need to interact to function as per our expectation, as described in the previous section.

We are very happy when

The following are achieved

Seen this problem before?

Any help solving this is welcome. Feel free to leave any comments and help someone else to solve it. We might airdrop tokens to someone even if not directly completing bounty.

Questions & Reviews

Pull requests will be reviewed by one of the maintainers or long-term contributors. In case of any additional questions feel free to ask in this thread and we will do our best to add the missing info :)

Things to know

The bounty lifecycle process including payout will be managed using Gitcoin. We'll be responding to your questions here, but for discussion and clarification we recommend to join also our Gitter channel where our tech community is accessible. In order to see the PROCN balance in your wallet you'll need to reference the related token contract with address 0xf2aabdd898a0139195b2b5da7387d43a45ded254. If you use a Metamask plugin you'll find the the exact steps here. Lastly, even if it is a contest bounty, we will reward all valuable contributions and efforts. We greatly appreciate the value our open source community brings to Ocean and will always award some tokens to all great contributions! :smiley:

Reward

Once the project was reviewed and merged in the master branch, you will receive the reward. PROCN is a proto-Ocean token. Bounty hunters that earn PROCN will be able to convert them 1:1 to Ocean tokens on network launch (Ocean Token will be valued at at 0.22 EUR on network launch). Network launch is expected to happen by Mar 31, 2019. Until then PROCN will be locked and non-transferrable in the ETH wallet to which it is delivered to.

gitcoinbot commented 5 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 2500.0 PROCN attached to it as part of the Ocean Protocol Foundation fund.

gitcoinbot commented 5 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work has been started.

These users each claimed they can complete the work by 2 years, 11 months ago. Please review their action plans below:

1) iamonuwa has been approved to start work.

I've written so many bots on telegram. I understand your requirements and would love to work with the team on getting this done. This is my action plan:

Build a bot that is asynchronous and can queue requests. I'll add a cache service to keep track of user requests. 2) nanspro has been approved to start work.

I have written a similar distribution bot using twitter for ocean protocol and for this one i'll use python-telegram-bot api's . Since @iamonuwa is already working on it i'll only start if multiple contributions are accepted :)

Learn more on the Gitcoin Issue Details page.

iamonuwa commented 5 years ago

This task basically should be done before end of this weekend.

nanspro commented 5 years ago

@Anirudh2490 i have created my repository for the telegram bot.

I have implemented it using Python's telegram-bot package. Pytest is used for testing purposes.

User enters command /requestETH and then bot asks for address, after that it requests faucet for that address. Depending upon faucet response the bot then replies back with custom messages.

gitcoinbot commented 5 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


Work for 2500.0 PROCN has been submitted by:

  1. @nanspro
  2. @iamonuwa

@chalidbdb please take a look at the submitted work:


Anirudh2490 commented 5 years ago

Kindly note, we need the following included Frontend projects code style

E.g. for a React project with CSS modules, look into how it is setup in https://github.com/oceanprotocol/docs. There should be npm tasks setup for linting and formatting too, e.g.: https://github.com/oceanprotocol/docs/blob/master/package.json#L11

And then linting should run as part of the tests, ideally on Travis

nanspro commented 5 years ago

@Anirudh2490 i have implemented it in python so no js code is required as of now. But i can add support for testing-python in travis like this along with pylint support. How about that?

gitcoinbot commented 5 years ago

⚡️ A tip worth 2500.00000 PROCN has been granted to @iamonuwa for this issue from @chalidbdb. ⚡️

Nice work @iamonuwa! Your tip has automatically been deposited in the ETH address we have on file.

gitcoinbot commented 5 years ago

⚡️ A tip worth 1250.00000 PROCN has been granted to @nanspro for this issue from @chalidbdb. ⚡️

Nice work @nanspro! Your tip has automatically been deposited in the ETH address we have on file.

gitcoinbot commented 5 years ago

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This Bounty has been completed.

Additional Tips for this Bounty: