• This repository has been archived on 20/Dec/2022
  • Stars
    star
    398
  • Rank 108,325 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 2 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The NEST Prize Bot is a tool for the activity of the NEST community.

NEST Prize Bot

The NEST Prize Bot is a tool developed by our team for the activity of the NEST community. It can record the receipt of Prize and export them.

This repository contains:

  1. The bot main program
  2. The contract interface used by the bot
  3. Get the function source code of the condition interface

Table of Contents

Background

Our development team has developed countless telegram bots for rewarding active users, which is a very exhausting job. Therefore, we decided to develop a general-purpose bot that can help members of the NEST community to distribute and receive NEST red packets in Telegram groups.

The goals for this repository are:

  1. Record the receipt of NEST Prize
  2. Export all the receipt data
  3. Reduce the cost of reward distribution and reduce transaction errors
  4. Anti cheating

Install

This project uses a serverless architecture design, so you need to be familiar with AWS related services, including: Lambda, DynamoDB, IAM, CloudWatch, etc.

$ npm install

Usage

You need to replace some configuration in the source code, including:

  1. Create a new Telegram bot account and configure its token in Lambda's environment variables
  2. Modify the whitelist of administrators in the original code, WHITELIST
  3. Need to create a DynamoDB database

DynamoDB Design

Table: nest-prize

Attribute Name Type Description
chat_id Number pk of table
message_id Number sk of table
status String pk of GSI(status-index)

Table: nest-prize-users

Attribute Name Type Description
user_id Number pk
wallet Number pk of GSI(wallet-index)

Example Bot

NEST Prize Bot

Related Efforts

Maintainers

@tunogya.

Contributing

Feel free to dive in! Open an issue or submit PRs.

Contributors

This project exists thanks to all the people who contribute.

@kitty-tin, @wll2143

License

MIT Β© NEST Protocol

More Repositories

1

NEST-Oracle-V4.0

The NEST Oracle Smart Contract 4.0 is a solidity smart contract implementation of NEST Protocol which provide a unique on-chain Price Oracle through a decentralized mechanism. And it's opening for Everyone to open a PriceChannel.
JavaScript
416
star
2

NEST-Prize-WebApp

WebApp for Telegram Bot
TypeScript
156
star
3

NEST-Oracle-V3

The NEST Oracle Smart Contract 3.0 is a solidity smart contract implementation of NEST Protocol which provide a unique on-chain Price Oracle through a decentralized mechanism
Solidity
39
star
4

NEST-PVM-V1.0

Probability Virtual Machine (PVM) for NEST
JavaScript
31
star
5

NEST-Oracle-V3.6

The NEST Oracle Smart Contract 3.6 is a solidity smart contract implementation of NEST Protocol which provide a unique on-chain Price Oracle through a decentralized mechanism.
Solidity
15
star
6

NEST-Oracle-V3.5

The NEST Oracle Smart Contract 3.5 is a solidity smart contract implementation of NEST Protocol which provide a unique on-chain Price Oracle through a decentralized mechanism.
JavaScript
10
star
7

NEST-Announcement

NEST Protocol Dev Announcement
9
star
8

NEST-Oracle-Miner

The NEST3.0 automatic quotation program is an example program. Related parameters such as block interval and quotation gasPrice multiples are not the optimal strategy plan. Users can adjust it according to the actual situation.
Java
6
star
9

NEST-Oracle-Verifier

The NEST3.0 automatic order taking arbitrage program is an example program. Related parameters such as price deviation percentage, the default value is 2%, which is not necessarily the optimal order taking arbitrage ratio, and users can adjust it according to the actual situation.
Java
4
star
10

NESTFi-Sentio-Datasource

3
star
11

NEST-Protocol-Website-V2

TypeScript
3
star
12

NESTCraft-Playground

TypeScript
3
star
13

NEST-Oracle-V4.0-minner

NEST 4.0 automatic quotation program is a sample program ,which cannot be used directly,It must be redeveloped according to the code logic of this program
Java
2
star
14

NEST-Workspace

Clojure
2
star
15

NEST-Oracle-Web

Nest oracle machine web-side page, including quotation, arbitrage, income collection and other functions.
HTML
2
star
16

NEST-PVM-Web-User-Interface

User-operable UI page that can interact with the contract.
HTML
2
star
17

NEST-NFT-Generation

JavaScript
1
star
18

NESTFiBot

TypeScript
1
star
19

NEST-Protocol-Website

NEST official website, including NEST mechanism introduction and content links.
TypeScript
1
star
20

NEST-NFT-Page

JavaScript
1
star
21

NEST-Improvement-Proposals

NEST Improvement Proposals
1
star
22

NEST-Docs

NEST-related usage documentation, security audit reports
1
star
23

NEST-Website-CMS

TypeScript
1
star
24

NEST-Oracle-Web-V3.6

NESTV3.6 version of the website project. Including retrieving locked positions, reselling and voting functions.
TypeScript
1
star