This project provides a user management, blog, notification, airdrop, and reports services.
Lively Off-chain provides services on Web 2.0 and Web 3.0 technologies. so it implements services for Web 2.0 which provides a lot of web API and it implements also services to interact with smart contracts on the Polygon blockchain network. it doesn't have any UI for provided services.
the user management, blog, reports, and notification services provide web (2.0) API but an airdrop is a hybrid service that provides web API and it interacts with smart contracts to transfer tokens and it fetches data from social media platforms such as Twitter, Instagram, Telegram and etc to observe users' actions according to airdrop instructions.
Nodejs >= 18
Yarn
Nestjs
Typescript
Postgresql
Redis
first, install yarn and don't use npm because it couldn't resolve dependencies correctly.
- yarn
npm install yarn@latest -g
git clone https://github.com/Livelyverse/lively-offchain.git
cd lively-offchain
yarn install
yarn build
yarn start
After launch, it, checks API with swagger with address http://localhost:3001/api
- Build problem
go to node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts file and add declare to first of line 159 as follows
node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:159:14 - error TS2612: Property 'provider' will overwrite the base property in 'Signer'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration. 159 readonly provider: JsonRpcProvider;
declare readonly provider: JsonRpcProvider;
go to node_modules/@ethersproject/providers/src.ts/ankr-provider.ts file and add declare to first of line 37 as followsnode_modules/@ethersproject/providers/src.ts/ankr-provider.ts:37:14 - error TS2612: Property 'apiKey' will overwrite the base property in 'UrlJsonRpcProvider'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration. 37 readonly apiKey: string;
declare readonly apiKey: string;
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Sina Tadayon https://github.com/SinaTadayon
Mansour Farabi https://github.com/MFarabi
Ali Shokoohi https://github.com/ali-shokoohi